simple 16-Dec-2024 10:58:20 Build O3 Reference Application - Build Frontend - Default Job #1512 (O3-BF-JOB1-1512) started building on agent xiao.openmrs.org (3), bamboo version: 8.2.4 simple 16-Dec-2024 10:58:20 Remote agent on host xiao.openmrs.org simple 16-Dec-2024 10:58:20 Build working directory is /home/bamboo-agent/bamboo-agent/xml-data/build-dir/O3-BF-JOB1 simple 16-Dec-2024 10:58:20 Executing build O3 Reference Application - Build Frontend - Default Job #1512 (O3-BF-JOB1-1512) simple 16-Dec-2024 10:58:20 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout' simple 16-Dec-2024 10:58:20 Checking out into /home/bamboo-agent/bamboo-agent/xml-data/build-dir/O3-BF-JOB1 simple 16-Dec-2024 10:58:20 Updating source code to revision: 7a40ad9c1f9efe2993560e3806d18f9a2b6f7d28 simple 16-Dec-2024 10:58:20 Fetching 'refs/heads/main' from 'https://github.com/openmrs/openmrs-distro-referenceapplication.git'. simple 16-Dec-2024 10:58:21 Checking out revision 7a40ad9c1f9efe2993560e3806d18f9a2b6f7d28. simple 16-Dec-2024 10:58:21 Creating local git repository in '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/O3-BF-JOB1/.git'. simple 16-Dec-2024 10:58:21 Cloning into '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/O3-BF-JOB1'... simple 16-Dec-2024 10:58:21 done. simple 16-Dec-2024 10:58:21 Switched to a new branch 'main' simple 16-Dec-2024 10:58:21 Branch 'main' set up to track remote branch 'main' from 'origin'. simple 16-Dec-2024 10:58:21 Updated source code to revision: 7a40ad9c1f9efe2993560e3806d18f9a2b6f7d28 simple 16-Dec-2024 10:58:21 Finished task 'Checkout Default Repository' with result: Success simple 16-Dec-2024 10:58:21 Running pre-build action: Build Log Labeller Pre Build Action simple 16-Dec-2024 10:58:21 Running pre-build action: VCS Version Collector simple 16-Dec-2024 10:58:21 Running pre-build action: Run Predator simple 16-Dec-2024 10:58:21 [PredatorPreBuildAction] Starting predator plugin, pre build agent cleaner simple 16-Dec-2024 10:58:21 [PredatorPreBuildAction] Running these commands: /opt/scripts/cleanup-before-building.sh simple 16-Dec-2024 10:58:21 [PredatorPreBuildAction] Running command '[/opt/scripts/cleanup-before-building.sh]' simple 16-Dec-2024 10:58:21 [PredatorPreBuildAction] Command '[/opt/scripts/cleanup-before-building.sh]' completed with exit code 0 simple 16-Dec-2024 10:58:21 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent): 3084 java 1262 bamboo-age 2999Mb 539Mb 01:06:05 /usr/lib/jvm/java-8-ope simple 16-Dec-2024 10:58:21 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent): 1262 wrapper 1 bamboo-age 16Mb 1Mb 00:17:01 /home/bamboo-agent/bamb simple 16-Dec-2024 10:58:21 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent): 1 systemd 0 root 164Mb 11Mb 00:01:50 /sbin/init simple 16-Dec-2024 10:58:21 [PredatorPreBuildAction] No processes found for (chromium|chrome|webdriver|mysql|java|mvn|node|npm) simple 16-Dec-2024 10:58:21 [PredatorPreBuildAction] Initial free space: 5.5970726 GB simple 16-Dec-2024 10:58:21 [PredatorPreBuildAction] Deleting folder /home/bamboo-agent/bamboo-agent/xml-data/build-dir/O3-DD3-JOB1 simple 16-Dec-2024 10:58:21 [PredatorPreBuildAction] Deleting 0 snapshot folders from /home/bamboo-agent/.m2/repository simple 16-Dec-2024 10:58:21 [PredatorPreBuildAction] Maven snapshot disk freed: 0 GB simple 16-Dec-2024 10:58:21 [PredatorPreBuildAction] 0 empty artifacts were found and deleted by Predator simple 16-Dec-2024 10:58:22 [PredatorPreBuildAction] Maven stable disk freed: 0.0 GB, deleted 0 files simple 16-Dec-2024 10:58:22 [PredatorPreBuildAction] File /home/bamboo-agent/.npmrc does not exist. simple 16-Dec-2024 10:58:22 [PredatorPreBuildAction] File /home/bamboo-agent/.docker/config.json does not exist. simple 16-Dec-2024 10:58:22 [PredatorPreBuildAction] File /home/bamboo-agent/.OpenMRS/liquibaseUpdateLogs.txt does not exist. simple 16-Dec-2024 10:58:22 [PredatorPreBuildAction] Final free space: 5.597069 GB simple 16-Dec-2024 10:58:22 [PredatorPreBuildAction] Done command 16-Dec-2024 10:58:22 Substituting variable: ${bamboo.dockerhub.username} with openmrsci command 16-Dec-2024 10:58:22 Substituting password variable: ${bamboo.dockerhub.password} command 16-Dec-2024 10:58:22 Substituting variable: ${bamboo.docker.image.platforms} with linux/amd64,linux/arm64 simple 16-Dec-2024 10:58:22 Starting task 'Build and publish image' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script' command 16-Dec-2024 10:58:22 Beginning to execute external process for build 'O3 Reference Application - Build Frontend - Default Job #1512 (O3-BF-JOB1-1512)'\n ... running command line: \n/home/bamboo-agent/bamboo-agent/temp/O3-BF-JOB1-1512-ScriptBuildTask-8534565180981250556.sh\n ... in: /home/bamboo-agent/bamboo-agent/xml-data/build-dir/O3-BF-JOB1\n error 16-Dec-2024 10:58:22 + [[ ehuB != ehuxB ]] build 16-Dec-2024 10:58:22 Start of Lmod init/bash script to define the module command error 16-Dec-2024 10:58:22 + echo 'Start of Lmod init/bash script to define the module command' error 16-Dec-2024 10:58:22 + LMOD_PKG=/usr/share/lmod/lmod error 16-Dec-2024 10:58:22 + LMOD_DIR=/usr/share/lmod/lmod/libexec error 16-Dec-2024 10:58:22 + LMOD_CMD=/usr/share/lmod/lmod/libexec/lmod error 16-Dec-2024 10:58:22 + MODULESHOME=/usr/share/lmod/lmod error 16-Dec-2024 10:58:22 + export LMOD_PKG error 16-Dec-2024 10:58:22 + export LMOD_CMD error 16-Dec-2024 10:58:22 + export LMOD_DIR error 16-Dec-2024 10:58:22 + export MODULESHOME error 16-Dec-2024 10:58:22 + LMOD_VERSION=6.6 error 16-Dec-2024 10:58:22 + export LMOD_VERSION error 16-Dec-2024 10:58:22 + '[' : '!=' : ']' error 16-Dec-2024 10:58:22 + unalias ml error 16-Dec-2024 10:58:22 + true error 16-Dec-2024 10:58:22 ++ echo YES error 16-Dec-2024 10:58:22 ++ /usr/bin/tr '[:upper:]' '[:lower:]' error 16-Dec-2024 10:58:22 + export_module=yes error 16-Dec-2024 10:58:22 + '[' -n '5.1.16(1)-release' -a yes '!=' no ']' error 16-Dec-2024 10:58:22 + export -f module error 16-Dec-2024 10:58:22 + export -f ml error 16-Dec-2024 10:58:22 + unset export_module error 16-Dec-2024 10:58:22 + '[' -n '' ']' error 16-Dec-2024 10:58:22 + '[' 5 -ge 3 ']' error 16-Dec-2024 10:58:22 + '[' -r /usr/share/lmod/lmod/init/lmod_bash_completions ']' error 16-Dec-2024 10:58:22 + '[' -n '' ']' error 16-Dec-2024 10:58:22 + [[ ehuB != ehuxB ]] error 16-Dec-2024 10:58:22 + echo 'End of Lmod init/bash script to define the module command' build 16-Dec-2024 10:58:22 End of Lmod init/bash script to define the module command error 16-Dec-2024 10:58:22 + export IMAGE=openmrs/openmrs-reference-application-3-frontend error 16-Dec-2024 10:58:22 + IMAGE=openmrs/openmrs-reference-application-3-frontend error 16-Dec-2024 10:58:22 + docker login -u openmrsci -p ******** error 16-Dec-2024 10:58:22 WARNING! Using --password via the CLI is insecure. Use --password-stdin. error 16-Dec-2024 10:58:22 WARNING! Your password will be stored unencrypted in /home/bamboo-agent/.docker/config.json. error 16-Dec-2024 10:58:22 Configure a credential helper to remove this warning. See error 16-Dec-2024 10:58:22 https://docs.docker.com/engine/reference/commandline/login/#credentials-store error 16-Dec-2024 10:58:22 build 16-Dec-2024 10:58:22 Login Succeeded error 16-Dec-2024 10:58:22 ++ date +%s error 16-Dec-2024 10:58:22 + docker buildx build --pull --push --platform linux/amd64,linux/arm64 --build-arg CACHE_BUST=1734346702 -t openmrs/openmrs-reference-application-3-frontend:nightly -t openmrs/openmrs-reference-application-3-frontend:dev3 frontend/ error 16-Dec-2024 10:58:22 #1 [internal] load build definition from Dockerfile error 16-Dec-2024 10:58:22 #1 transferring dockerfile: 1.46kB done error 16-Dec-2024 10:58:22 #1 DONE 0.0s error 16-Dec-2024 10:58:22 error 16-Dec-2024 10:58:22 #2 [auth] docker/dockerfile:pull token for registry-1.docker.io error 16-Dec-2024 10:58:22 #2 DONE 0.0s error 16-Dec-2024 10:58:22 error 16-Dec-2024 10:58:22 #3 resolve image config for docker-image://docker.io/docker/dockerfile:1.3 error 16-Dec-2024 10:58:23 #3 DONE 0.3s error 16-Dec-2024 10:58:23 error 16-Dec-2024 10:58:23 #4 docker-image://docker.io/docker/dockerfile:1.3@sha256:42399d4635eddd7a9b8a24be879d2f9a930d0ed040a61324cfdf59ef1357b3b2 error 16-Dec-2024 10:58:23 #4 resolve docker.io/docker/dockerfile:1.3@sha256:42399d4635eddd7a9b8a24be879d2f9a930d0ed040a61324cfdf59ef1357b3b2 0.0s done error 16-Dec-2024 10:58:23 #4 CACHED error 16-Dec-2024 10:58:23 error 16-Dec-2024 10:58:23 #1 [internal] load build definition from Dockerfile error 16-Dec-2024 10:58:23 #1 transferring dockerfile: 1.46kB done error 16-Dec-2024 10:58:23 #1 DONE 0.0s error 16-Dec-2024 10:58:23 error 16-Dec-2024 10:58:23 #5 [internal] load build definition from Dockerfile error 16-Dec-2024 10:58:23 #5 DONE 0.0s error 16-Dec-2024 10:58:23 error 16-Dec-2024 10:58:23 #6 [internal] load .dockerignore error 16-Dec-2024 10:58:23 #6 transferring context: 2B done error 16-Dec-2024 10:58:23 #6 DONE 0.0s error 16-Dec-2024 10:58:23 error 16-Dec-2024 10:58:23 #7 [auth] library/node:pull token for registry-1.docker.io error 16-Dec-2024 10:58:23 #7 DONE 0.0s error 16-Dec-2024 10:58:23 error 16-Dec-2024 10:58:23 #8 [auth] library/nginx:pull token for registry-1.docker.io error 16-Dec-2024 10:58:23 #8 DONE 0.0s error 16-Dec-2024 10:58:23 error 16-Dec-2024 10:58:23 #9 [linux/amd64 internal] load metadata for docker.io/library/node:18-alpine error 16-Dec-2024 10:58:23 #9 DONE 0.2s error 16-Dec-2024 10:58:23 error 16-Dec-2024 10:58:23 #10 [linux/amd64 internal] load metadata for docker.io/library/nginx:1.25-alpine error 16-Dec-2024 10:58:23 #10 DONE 0.2s error 16-Dec-2024 10:58:23 error 16-Dec-2024 10:58:23 #11 [linux/arm64 internal] load metadata for docker.io/library/nginx:1.25-alpine error 16-Dec-2024 10:58:23 #11 DONE 0.2s error 16-Dec-2024 10:58:23 error 16-Dec-2024 10:58:23 #12 [internal] load build context error 16-Dec-2024 10:58:23 #12 transferring context: 7.01kB done error 16-Dec-2024 10:58:23 #12 DONE 0.0s error 16-Dec-2024 10:58:23 error 16-Dec-2024 10:58:23 #13 [linux/amd64 dev 1/8] FROM docker.io/library/node:18-alpine@sha256:6eb9c3d9bd191bd2cc6ce7ec3d5ec4c2127616140c8586af96a6bec8f28689d1 error 16-Dec-2024 10:58:23 #13 resolve docker.io/library/node:18-alpine@sha256:6eb9c3d9bd191bd2cc6ce7ec3d5ec4c2127616140c8586af96a6bec8f28689d1 0.1s done error 16-Dec-2024 10:58:23 #13 DONE 0.1s error 16-Dec-2024 10:58:23 error 16-Dec-2024 10:58:23 #14 [linux/amd64 dev 2/8] RUN mkdir -p /app error 16-Dec-2024 10:58:23 #14 CACHED error 16-Dec-2024 10:58:23 error 16-Dec-2024 10:58:23 #15 [linux/amd64 dev 4/8] COPY spa-assemble-config.json . error 16-Dec-2024 10:58:23 #15 CACHED error 16-Dec-2024 10:58:23 error 16-Dec-2024 10:58:23 #16 [linux/amd64 dev 3/8] WORKDIR /app error 16-Dec-2024 10:58:23 #16 CACHED error 16-Dec-2024 10:58:23 error 16-Dec-2024 10:58:23 #17 [linux/amd64 dev 5/8] COPY spa-build-config.json . error 16-Dec-2024 10:58:23 #17 CACHED error 16-Dec-2024 10:58:23 error 16-Dec-2024 10:58:23 #18 [linux/amd64 stage-1 1/8] FROM docker.io/library/nginx:1.25-alpine@sha256:516475cc129da42866742567714ddc681e5eed7b9ee0b9e9c015e464b4221a00 error 16-Dec-2024 10:58:23 #18 resolve docker.io/library/nginx:1.25-alpine@sha256:516475cc129da42866742567714ddc681e5eed7b9ee0b9e9c015e464b4221a00 0.1s done error 16-Dec-2024 10:58:23 #18 DONE 0.1s error 16-Dec-2024 10:58:23 error 16-Dec-2024 10:58:23 #19 [linux/arm64 stage-1 1/8] FROM docker.io/library/nginx:1.25-alpine@sha256:516475cc129da42866742567714ddc681e5eed7b9ee0b9e9c015e464b4221a00 error 16-Dec-2024 10:58:23 #19 resolve docker.io/library/nginx:1.25-alpine@sha256:516475cc129da42866742567714ddc681e5eed7b9ee0b9e9c015e464b4221a00 0.1s done error 16-Dec-2024 10:58:23 #19 DONE 0.1s error 16-Dec-2024 10:58:23 error 16-Dec-2024 10:58:23 #20 [linux/amd64 dev 6/8] RUN npx --legacy-peer-deps openmrs@next assemble --manifest --mode config --config spa-assemble-config.json --target ./spa error 16-Dec-2024 10:58:24 #20 1.176 npm warn exec The following package was not found and will be installed: openmrs@6.0.1-pre.2566 error 16-Dec-2024 10:59:44 #20 80.77 npm error code ETARGET error 16-Dec-2024 10:59:44 #20 80.78 npm error notarget No matching version found for @openmrs/esm-framework@6.0.1-pre.2566. error 16-Dec-2024 10:59:44 #20 80.78 npm error notarget In most cases you or one of your dependencies are requesting error 16-Dec-2024 10:59:44 #20 80.78 npm error notarget a package version that doesn't exist. error 16-Dec-2024 10:59:44 #20 80.78 npm notice error 16-Dec-2024 10:59:44 #20 80.78 npm notice New minor version of npm available! 10.8.2 -> 10.9.2 error 16-Dec-2024 10:59:44 #20 80.78 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.2 error 16-Dec-2024 10:59:44 #20 80.78 npm notice To update run: npm install -g npm@10.9.2 error 16-Dec-2024 10:59:44 #20 80.78 npm notice error 16-Dec-2024 10:59:44 #20 80.78 npm error A complete log of this run can be found in: /root/.npm/_logs/2024-12-16T10_58_23_884Z-debug-0.log error 16-Dec-2024 10:59:44 #20 ERROR: process "/bin/sh -c npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} assemble --manifest --mode config --config spa-assemble-config.json --target ./spa" did not complete successfully: exit code: 1 error 16-Dec-2024 10:59:44 ------ error 16-Dec-2024 10:59:44 > [linux/amd64 dev 6/8] RUN npx --legacy-peer-deps openmrs@next assemble --manifest --mode config --config spa-assemble-config.json --target ./spa: error 16-Dec-2024 10:59:44 #20 80.77 npm error code ETARGET error 16-Dec-2024 10:59:44 #20 80.78 npm error notarget No matching version found for @openmrs/esm-framework@6.0.1-pre.2566. error 16-Dec-2024 10:59:44 #20 80.78 npm error notarget In most cases you or one of your dependencies are requesting error 16-Dec-2024 10:59:44 #20 80.78 npm error notarget a package version that doesn't exist. error 16-Dec-2024 10:59:44 #20 80.78 npm notice error 16-Dec-2024 10:59:44 #20 80.78 npm notice New minor version of npm available! 10.8.2 -> 10.9.2 error 16-Dec-2024 10:59:44 #20 80.78 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.9.2 error 16-Dec-2024 10:59:44 #20 80.78 npm notice To update run: npm install -g npm@10.9.2 error 16-Dec-2024 10:59:44 #20 80.78 npm notice error 16-Dec-2024 10:59:44 #20 80.78 npm error A complete log of this run can be found in: /root/.npm/_logs/2024-12-16T10_58_23_884Z-debug-0.log error 16-Dec-2024 10:59:44 ------ error 16-Dec-2024 10:59:44 Dockerfile:16 error 16-Dec-2024 10:59:44 -------------------- error 16-Dec-2024 10:59:44 14 | error 16-Dec-2024 10:59:44 15 | ARG CACHE_BUST error 16-Dec-2024 10:59:44 16 | >>> RUN npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} assemble --manifest --mode config --config spa-assemble-config.json --target ./spa error 16-Dec-2024 10:59:44 17 | RUN npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} build --build-config spa-build-config.json --target ./spa error 16-Dec-2024 10:59:44 18 | RUN if [ ! -f ./spa/index.html ]; then echo 'Build failed. Please check the logs above for details. This may have happened because of an update to a library that OpenMRS depends on.'; exit 1; fi error 16-Dec-2024 10:59:44 -------------------- error 16-Dec-2024 10:59:44 error: failed to solve: process "/bin/sh -c npx --legacy-peer-deps openmrs@${APP_SHELL_VERSION:-next} assemble --manifest --mode config --config spa-assemble-config.json --target ./spa" did not complete successfully: exit code: 1 simple 16-Dec-2024 10:59:44 Failing task since return code of [/home/bamboo-agent/bamboo-agent/temp/O3-BF-JOB1-1512-ScriptBuildTask-8534565180981250556.sh] was 1 while expected 0 simple 16-Dec-2024 10:59:44 Finished task 'Build and publish image' with result: Failed simple 16-Dec-2024 10:59:44 Running post build plugin 'Docker Container Cleanup' simple 16-Dec-2024 10:59:44 Running post build plugin 'NCover Results Collector' simple 16-Dec-2024 10:59:44 Running post build plugin 'Build Results Label Collector' simple 16-Dec-2024 10:59:44 Running post build plugin 'Clover Results Collector' simple 16-Dec-2024 10:59:44 Running post build plugin 'npm Cache Cleanup' simple 16-Dec-2024 10:59:44 Running post build plugin 'Artifact Copier' simple 16-Dec-2024 10:59:44 Finalising the build... simple 16-Dec-2024 10:59:44 Stopping timer. simple 16-Dec-2024 10:59:44 Build O3-BF-JOB1-1512 completed. simple 16-Dec-2024 10:59:44 Running on server: post build plugin 'Build Hanging Detection Configuration' simple 16-Dec-2024 10:59:44 Running on server: post build plugin 'NCover Results Collector' simple 16-Dec-2024 10:59:44 Running on server: post build plugin 'Build Labeller' simple 16-Dec-2024 10:59:44 Running on server: post build plugin 'Clover Delta Calculator' simple 16-Dec-2024 10:59:44 Running on server: post build plugin 'Maven Dependencies Postprocessor' simple 16-Dec-2024 10:59:44 All post build plugins have finished simple 16-Dec-2024 10:59:44 Generating build results summary... simple 16-Dec-2024 10:59:44 Saving build results to disk... simple 16-Dec-2024 10:59:44 Store variable context... simple 16-Dec-2024 10:59:44 Finished building O3-BF-JOB1-1512.