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