simple 01-Sep-2025 07:08:30 Build O3 Reference Application - Build Backend - Build and Publish the Backend Image #196 (O3-BK-JOB1-196) is being prepared for building on agent ploong.openmrs.org, bamboo version: 11.0.2 simple 01-Sep-2025 07:08:30 Remote agent on host ploong.openmrs.org simple 01-Sep-2025 07:08:30 Build working directory is /data/bamboo-agent/xml-data/build-dir/O3-BK-JOB1 simple 01-Sep-2025 07:08:30 Executing build O3 Reference Application - Build Backend - Build and Publish the Backend Image #196 (O3-BK-JOB1-196) simple 01-Sep-2025 07:08:30 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout' simple 01-Sep-2025 07:08:30 Checking out into /data/bamboo-agent/xml-data/build-dir/O3-BK-JOB1 simple 01-Sep-2025 07:08:30 Updating source code to revision: 0169d01009c4d44ddac964269e8a27be2d511db3 simple 01-Sep-2025 07:08:30 Fetching 'refs/heads/main' from 'https://github.com/openmrs/openmrs-distro-referenceapplication'. simple 01-Sep-2025 07:08:31 Checking out revision 0169d01009c4d44ddac964269e8a27be2d511db3. simple 01-Sep-2025 07:08:31 From file:///data/bamboo-agent/xml-data/build-dir/_git-repositories-cache/e7e068bc411e31d387c931253dc2b1fe9ed461ad simple 01-Sep-2025 07:08:31 62c08cf..0169d01 main -> origin/main simple 01-Sep-2025 07:08:31 * [new tag] 3.8.0 -> 3.8.0 simple 01-Sep-2025 07:08:31 Already on 'main' simple 01-Sep-2025 07:08:31 Your branch is behind 'origin/main' by 2 commits, and can be fast-forwarded. simple 01-Sep-2025 07:08:31 (use "git pull" to update your local branch) simple 01-Sep-2025 07:08:31 HEAD is now at 0169d01 (release-revert) Reset to dev versions simple 01-Sep-2025 07:08:31 Updated source code to revision: 0169d01009c4d44ddac964269e8a27be2d511db3 simple 01-Sep-2025 07:08:31 Finished task 'Checkout Default Repository' with result: Success simple 01-Sep-2025 07:08:31 Running pre-build action: Build Log Labeller Pre Build Action simple 01-Sep-2025 07:08:31 Running pre-build action: VCS Version Collector simple 01-Sep-2025 07:08:31 Running pre-build action: Run Predator simple 01-Sep-2025 07:08:31 [PredatorPreBuildAction] Starting predator plugin, pre build agent cleaner simple 01-Sep-2025 07:08:31 [PredatorPreBuildAction] Running these commands: /opt/scripts/cleanup-before-building.sh simple 01-Sep-2025 07:08:31 [PredatorPreBuildAction] Running command '[/opt/scripts/cleanup-before-building.sh]' simple 01-Sep-2025 07:08:31 [PredatorPreBuildAction] Command '[/opt/scripts/cleanup-before-building.sh]' skipped, continuing. This is almost never a cause of failed builds. Exception: java.io.IOException: Cannot run program "/opt/scripts/cleanup-before-building.sh": error=2, No such file or directory simple 01-Sep-2025 07:08:31 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent): 1966 java 1348 bamboo-age 3163Mb 486Mb 00:03:06 /usr/lib/jvm/java-21-op simple 01-Sep-2025 07:08:31 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent): 1348 wrapper 1286 bamboo-age 88Mb 4Mb 00:01:01 /data/bamboo-agent/bin/ simple 01-Sep-2025 07:08:31 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent): 1286 bamboo 711 bamboo-age 3Mb 1Mb 00:00:00 /bin/sh /data/bamboo-ag simple 01-Sep-2025 07:08:31 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent): 711 java 1 bamboo-age 4037Mb 57Mb 00:00:52 /usr/lib/jvm/java-21-op simple 01-Sep-2025 07:08:31 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent): 1 systemd 0 root 163Mb 11Mb 00:00:03 /sbin/init simple 01-Sep-2025 07:08:31 [PredatorPreBuildAction] No processes found for (chromium|chrome|webdriver|mysql|java|mvn|node|npm) simple 01-Sep-2025 07:08:31 [PredatorPreBuildAction] Initial free space: 83.7608 GB simple 01-Sep-2025 07:08:31 [PredatorPreBuildAction] Deleting folder /data/bamboo-agent/xml-data/build-dir/temporaryArtifactStorage simple 01-Sep-2025 07:08:31 [PredatorPreBuildAction] Maven local repository /home/bamboo-agent/.m2/repositorydoesn't exist, skipping the removal of maven snapshots simple 01-Sep-2025 07:08:31 [PredatorPreBuildAction] Maven local repository /home/bamboo-agent/.m2/repositorydoesn't exist, skipping the removal of empty artifacts simple 01-Sep-2025 07:08:31 [PredatorPreBuildAction] Maven local repository /home/bamboo-agent/.m2/repositorydoesn't exist, skipping the removal of maven snapshots simple 01-Sep-2025 07:08:31 [PredatorPreBuildAction] File /home/bamboo-agent/.npmrc does not exist. simple 01-Sep-2025 07:08:31 [PredatorPreBuildAction] File /home/bamboo-agent/.docker/config.json does not exist. simple 01-Sep-2025 07:08:31 [PredatorPreBuildAction] File /home/bamboo-agent/.OpenMRS/liquibaseUpdateLogs.txt does not exist. simple 01-Sep-2025 07:08:31 [PredatorPreBuildAction] Final free space: 83.76082 GB simple 01-Sep-2025 07:08:31 [PredatorPreBuildAction] Done simple 01-Sep-2025 07:08:31 Build O3 Reference Application - Build Backend - Build and Publish the Backend Image #196 (O3-BK-JOB1-196) started building on agent 'ploong.openmrs.org' (Remote agent on host ploong.openmrs.org) command 01-Sep-2025 07:08:31 Substituting variable: ${bamboo.docker.image.platforms} with linux/amd64,linux/arm64 command 01-Sep-2025 07:08:31 Substituting variable: ${bamboo.docker.image.tag} with nightly command 01-Sep-2025 07:08:31 Substituting variable: ${bamboo.docker.image.tag.env} with dev3 simple 01-Sep-2025 07:08:31 Starting task 'Build and publish Docker image and Maven artifacts' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script' command 01-Sep-2025 07:08:31 Beginning to execute external process for build 'O3 Reference Application - Build Backend - Build and Publish the Backend Image #196 (O3-BK-JOB1-196)'\n ... running command line: \n/data/bamboo-agent/temp/O3-BK-JOB1-196-ScriptBuildTask-5317802129020838168.sh\n ... in: /data/bamboo-agent/xml-data/build-dir/O3-BK-JOB1\n error 01-Sep-2025 07:08:31 + export IMAGE=openmrs/openmrs-reference-application-3-backend error 01-Sep-2025 07:08:31 + IMAGE=openmrs/openmrs-reference-application-3-backend error 01-Sep-2025 07:08:31 ++ date +%s error 01-Sep-2025 07:08:31 + docker buildx build --pull --platform linux/amd64,linux/arm64 --build-arg MVN_ARGS=deploy --build-arg CACHE_BUST=1756710511 -t openmrs/openmrs-reference-application-3-backend:nightly -t openmrs/openmrs-reference-application-3-backend:dev3 . error 01-Sep-2025 07:08:31 #0 building with "default" instance using docker driver error 01-Sep-2025 07:08:31 error 01-Sep-2025 07:08:31 #1 [internal] load build definition from Dockerfile error 01-Sep-2025 07:08:31 #1 transferring dockerfile: 1.92kB done error 01-Sep-2025 07:08:31 #1 DONE 0.0s error 01-Sep-2025 07:08:31 error 01-Sep-2025 07:08:31 #2 resolve image config for docker-image://docker.io/docker/dockerfile:1 error 01-Sep-2025 07:08:31 #2 DONE 0.3s error 01-Sep-2025 07:08:32 error 01-Sep-2025 07:08:32 #3 docker-image://docker.io/docker/dockerfile:1@sha256:38387523653efa0039f8e1c89bb74a30504e76ee9f565e25c9a09841f9427b05 error 01-Sep-2025 07:08:32 #3 resolve docker.io/docker/dockerfile:1@sha256:38387523653efa0039f8e1c89bb74a30504e76ee9f565e25c9a09841f9427b05 0.1s done error 01-Sep-2025 07:08:32 #3 CACHED error 01-Sep-2025 07:08:32 error 01-Sep-2025 07:08:32 #4 [linux/amd64 internal] load metadata for docker.io/openmrs/openmrs-core:nightly-amazoncorretto-17 error 01-Sep-2025 07:08:32 #4 ... error 01-Sep-2025 07:08:32 error 01-Sep-2025 07:08:32 #5 [linux/arm64 internal] load metadata for docker.io/openmrs/openmrs-core:dev-amazoncorretto-17 error 01-Sep-2025 07:08:32 #5 DONE 0.3s error 01-Sep-2025 07:08:32 error 01-Sep-2025 07:08:32 #4 [linux/amd64 internal] load metadata for docker.io/openmrs/openmrs-core:nightly-amazoncorretto-17 error 01-Sep-2025 07:08:32 #4 DONE 0.3s error 01-Sep-2025 07:08:32 error 01-Sep-2025 07:08:32 #6 [linux/amd64 internal] load metadata for docker.io/openmrs/openmrs-core:dev-amazoncorretto-17 error 01-Sep-2025 07:08:32 #6 DONE 0.3s error 01-Sep-2025 07:08:32 error 01-Sep-2025 07:08:32 #7 [linux/arm64 internal] load metadata for docker.io/openmrs/openmrs-core:nightly-amazoncorretto-17 error 01-Sep-2025 07:08:32 #7 DONE 0.3s error 01-Sep-2025 07:08:32 error 01-Sep-2025 07:08:32 #8 [internal] load .dockerignore error 01-Sep-2025 07:08:32 #8 transferring context: 101B done error 01-Sep-2025 07:08:32 #8 DONE 0.0s error 01-Sep-2025 07:08:32 error 01-Sep-2025 07:08:32 #9 [internal] load build context error 01-Sep-2025 07:08:32 #9 DONE 0.0s error 01-Sep-2025 07:08:32 error 01-Sep-2025 07:08:32 #10 [linux/arm64 stage-1 1/6] FROM docker.io/openmrs/openmrs-core:nightly-amazoncorretto-17@sha256:5dd46beb350c580436f32c01edfcdfcd132e6e23fdd2468a97eb347b574811bc error 01-Sep-2025 07:08:32 #10 resolve docker.io/openmrs/openmrs-core:nightly-amazoncorretto-17@sha256:5dd46beb350c580436f32c01edfcdfcd132e6e23fdd2468a97eb347b574811bc 0.1s done error 01-Sep-2025 07:08:32 #10 CACHED error 01-Sep-2025 07:08:32 error 01-Sep-2025 07:08:32 #11 [linux/arm64 dev 1/11] FROM docker.io/openmrs/openmrs-core:dev-amazoncorretto-17@sha256:a60e88672bdb3ef0cece78a5d6dc5aa8f58558a673133ed21413c1596c997afb error 01-Sep-2025 07:08:32 #11 resolve docker.io/openmrs/openmrs-core:dev-amazoncorretto-17@sha256:a60e88672bdb3ef0cece78a5d6dc5aa8f58558a673133ed21413c1596c997afb 0.1s done error 01-Sep-2025 07:08:32 #11 DONE 0.2s error 01-Sep-2025 07:08:32 error 01-Sep-2025 07:08:32 #12 [linux/amd64 stage-1 1/6] FROM docker.io/openmrs/openmrs-core:nightly-amazoncorretto-17@sha256:5dd46beb350c580436f32c01edfcdfcd132e6e23fdd2468a97eb347b574811bc error 01-Sep-2025 07:08:32 #12 resolve docker.io/openmrs/openmrs-core:nightly-amazoncorretto-17@sha256:5dd46beb350c580436f32c01edfcdfcd132e6e23fdd2468a97eb347b574811bc 0.1s done error 01-Sep-2025 07:08:32 #12 CACHED error 01-Sep-2025 07:08:32 error 01-Sep-2025 07:08:32 #9 [internal] load build context error 01-Sep-2025 07:08:32 #9 transferring context: 19.37kB done error 01-Sep-2025 07:08:32 #9 DONE 0.0s error 01-Sep-2025 07:08:32 error 01-Sep-2025 07:08:32 #13 [linux/arm64 dev 2/11] WORKDIR /openmrs_distro error 01-Sep-2025 07:08:32 #13 CACHED error 01-Sep-2025 07:08:32 error 01-Sep-2025 07:08:32 #14 [linux/arm64 dev 3/11] COPY pom.xml ./ error 01-Sep-2025 07:08:32 #14 DONE 0.1s error 01-Sep-2025 07:08:32 error 01-Sep-2025 07:08:32 #15 [linux/amd64 dev 1/11] FROM docker.io/openmrs/openmrs-core:dev-amazoncorretto-17@sha256:a60e88672bdb3ef0cece78a5d6dc5aa8f58558a673133ed21413c1596c997afb error 01-Sep-2025 07:08:32 #15 resolve docker.io/openmrs/openmrs-core:dev-amazoncorretto-17@sha256:a60e88672bdb3ef0cece78a5d6dc5aa8f58558a673133ed21413c1596c997afb 0.2s done error 01-Sep-2025 07:08:32 #15 extracting sha256:b384aba76dbc237c79169c94fb8f91033bc0d4135757a811ee7a651d1dc73154 error 01-Sep-2025 07:08:32 #15 ... error 01-Sep-2025 07:08:32 error 01-Sep-2025 07:08:32 #16 [linux/arm64 dev 4/11] COPY distro ./distro/ error 01-Sep-2025 07:08:32 #16 DONE 0.1s error 01-Sep-2025 07:08:32 error 01-Sep-2025 07:08:32 #17 [linux/arm64 dev 5/11] RUN --mount=type=secret,id=m2settings,target=/usr/share/maven/ref/settings-docker.xml if [[ "deploy" != "deploy" || "$(arch)" = "x86_64" ]]; then mvn -s /usr/share/maven/ref/settings-docker.xml -U -P distro deploy; else mvn -s /usr/share/maven/ref/settings-docker.xml -U -P distro install; fi error 01-Sep-2025 07:08:33 #17 0.281 exec /bin/sh: exec format error error 01-Sep-2025 07:08:33 #17 ERROR: process "/bin/sh -c if [[ \"$MVN_ARGS\" != \"deploy\" || \"$(arch)\" = \"x86_64\" ]]; then mvn $MVN_ARGS_SETTINGS $MVN_ARGS; else mvn $MVN_ARGS_SETTINGS install; fi" did not complete successfully: exit code: 255 error 01-Sep-2025 07:08:33 error 01-Sep-2025 07:08:33 #15 [linux/amd64 dev 1/11] FROM docker.io/openmrs/openmrs-core:dev-amazoncorretto-17@sha256:a60e88672bdb3ef0cece78a5d6dc5aa8f58558a673133ed21413c1596c997afb error 01-Sep-2025 07:08:33 #15 extracting sha256:b384aba76dbc237c79169c94fb8f91033bc0d4135757a811ee7a651d1dc73154 0.6s done error 01-Sep-2025 07:08:33 #15 DONE 0.8s error 01-Sep-2025 07:08:33 error 01-Sep-2025 07:08:33 #18 [linux/amd64 dev 2/11] WORKDIR /openmrs_distro error 01-Sep-2025 07:08:33 #18 CANCELED error 01-Sep-2025 07:08:33 ------ error 01-Sep-2025 07:08:33 > [linux/arm64 dev 5/11] RUN --mount=type=secret,id=m2settings,target=/usr/share/maven/ref/settings-docker.xml if [[ "deploy" != "deploy" || "$(arch)" = "x86_64" ]]; then mvn -s /usr/share/maven/ref/settings-docker.xml -U -P distro deploy; else mvn -s /usr/share/maven/ref/settings-docker.xml -U -P distro install; fi: error 01-Sep-2025 07:08:33 0.281 exec /bin/sh: exec format error error 01-Sep-2025 07:08:33 ------ error 01-Sep-2025 07:08:33 Dockerfile:16 error 01-Sep-2025 07:08:33 -------------------- error 01-Sep-2025 07:08:33 14 | ARG CACHE_BUST error 01-Sep-2025 07:08:33 15 | # Build the distro, but only deploy from the amd64 build error 01-Sep-2025 07:08:33 16 | >>> RUN --mount=type=secret,id=m2settings,target=/usr/share/maven/ref/settings-docker.xml if [[ "$MVN_ARGS" != "deploy" || "$(arch)" = "x86_64" ]]; then mvn $MVN_ARGS_SETTINGS $MVN_ARGS; else mvn $MVN_ARGS_SETTINGS install; fi error 01-Sep-2025 07:08:33 17 | error 01-Sep-2025 07:08:33 18 | RUN cp /openmrs_distro/distro/target/sdk-distro/web/openmrs_core/openmrs.war /openmrs/distribution/openmrs_core/ error 01-Sep-2025 07:08:33 -------------------- error 01-Sep-2025 07:08:33 ERROR: failed to solve: process "/bin/sh -c if [[ \"$MVN_ARGS\" != \"deploy\" || \"$(arch)\" = \"x86_64\" ]]; then mvn $MVN_ARGS_SETTINGS $MVN_ARGS; else mvn $MVN_ARGS_SETTINGS install; fi" did not complete successfully: exit code: 255 simple 01-Sep-2025 07:08:33 Failing task since return code of [/data/bamboo-agent/temp/O3-BK-JOB1-196-ScriptBuildTask-5317802129020838168.sh] was 1 while expected 0 simple 01-Sep-2025 07:08:33 Finished task 'Build and publish Docker image and Maven artifacts' with result: Failed simple 01-Sep-2025 07:08:33 Running post build plugin 'Docker Container Cleanup' simple 01-Sep-2025 07:08:33 Running post build plugin 'NCover Results Collector' simple 01-Sep-2025 07:08:33 Running post build plugin 'Build Results Label Collector' simple 01-Sep-2025 07:08:33 Running post build plugin 'Clover Results Collector' simple 01-Sep-2025 07:08:33 Running post build plugin 'npm Cache Cleanup' simple 01-Sep-2025 07:08:33 Running post build plugin 'Artifact Copier' simple 01-Sep-2025 07:08:33 Finalising the build... simple 01-Sep-2025 07:08:33 Stopping timer. simple 01-Sep-2025 07:08:33 Build O3-BK-JOB1-196 completed. simple 01-Sep-2025 07:08:33 Running on server: post build plugin 'Build Hanging Detection Configuration' simple 01-Sep-2025 07:08:33 Running on server: post build plugin 'NCover Results Collector' simple 01-Sep-2025 07:08:33 Running on server: post build plugin 'Build Labeller' simple 01-Sep-2025 07:08:33 Running on server: post build plugin 'Clover Delta Calculator' simple 01-Sep-2025 07:08:33 Running on server: post build plugin 'Maven Dependencies Postprocessor' simple 01-Sep-2025 07:08:33 All post build plugins have finished simple 01-Sep-2025 07:08:33 Generating build results summary... simple 01-Sep-2025 07:08:33 Saving build results to disk... simple 01-Sep-2025 07:08:33 Store variable context... simple 01-Sep-2025 07:08:33 Finished building O3-BK-JOB1-196.