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