Builds the O3 backend
Build: #196 failed
Job: Build and Publish the Backend Image failed
Build log
The build generated 160 lines of output. Download or view full build log.
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 |
01-Sep-2025 07:08:30 | Remote agent on host ploong.openmrs.org |
01-Sep-2025 07:08:30 | Build working directory is /data/bamboo-agent/xml-data/build-dir/O3-BK-JOB1 |
01-Sep-2025 07:08:30 | Executing build O3 Reference Application - Build Backend - Build and Publish the Backend Image #196 (O3-BK-JOB1-196) |
01-Sep-2025 07:08:30 | Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout' |
01-Sep-2025 07:08:30 | Checking out into /data/bamboo-agent/xml-data/build-dir/O3-BK-JOB1 |
01-Sep-2025 07:08:30 | Updating source code to revision: 0169d01009c4d44ddac964269e8a27be2d511db3 |
01-Sep-2025 07:08:30 | Fetching 'refs/heads/main' from 'https://github.com/openmrs/openmrs-distro-referenceapplication'. |
01-Sep-2025 07:08:31 | Checking out revision 0169d01009c4d44ddac964269e8a27be2d511db3. |
01-Sep-2025 07:08:31 | From file:///data/bamboo-agent/xml-data/build-dir/_git-repositories-cache/e7e068bc411e31d387c931253dc2b1fe9ed461ad |
01-Sep-2025 07:08:31 | 62c08cf..0169d01 main -> origin/main |
01-Sep-2025 07:08:31 | * [new tag] 3.8.0 -> 3.8.0 |
01-Sep-2025 07:08:31 | Already on 'main' |
01-Sep-2025 07:08:31 | Your branch is behind 'origin/main' by 2 commits, and can be fast-forwarded. |
01-Sep-2025 07:08:31 | (use "git pull" to update your local branch) |
01-Sep-2025 07:08:31 | HEAD is now at 0169d01 (release-revert) Reset to dev versions |
01-Sep-2025 07:08:31 | Updated source code to revision: 0169d01009c4d44ddac964269e8a27be2d511db3 |
01-Sep-2025 07:08:31 | Finished task 'Checkout Default Repository' with result: Success |
01-Sep-2025 07:08:31 | Running pre-build action: Build Log Labeller Pre Build Action |
01-Sep-2025 07:08:31 | Running pre-build action: VCS Version Collector |
01-Sep-2025 07:08:31 | Running pre-build action: Run Predator |
01-Sep-2025 07:08:31 | [PredatorPreBuildAction] Starting predator plugin, pre build agent cleaner |
01-Sep-2025 07:08:31 | [PredatorPreBuildAction] Running these commands: /opt/scripts/cleanup-before-building.sh |
01-Sep-2025 07:08:31 | [PredatorPreBuildAction] Running command '[/opt/scripts/cleanup-before-building.sh]' |
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 |
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 |
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/ |
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 |
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 |
01-Sep-2025 07:08:31 | [PredatorPreBuildAction] Identifying Bamboo agent process (or parent): 1 systemd 0 root 163Mb 11Mb 00:00:03 /sbin/init |
01-Sep-2025 07:08:31 | [PredatorPreBuildAction] No processes found for (chromium|chrome|webdriver|mysql|java|mvn|node|npm) |
01-Sep-2025 07:08:31 | [PredatorPreBuildAction] Initial free space: 83.7608 GB |
01-Sep-2025 07:08:31 | [PredatorPreBuildAction] Deleting folder /data/bamboo-agent/xml-data/build-dir/temporaryArtifactStorage |
01-Sep-2025 07:08:31 | [PredatorPreBuildAction] Maven local repository /home/bamboo-agent/.m2/repositorydoesn't exist, skipping the removal of maven snapshots |
01-Sep-2025 07:08:31 | [PredatorPreBuildAction] Maven local repository /home/bamboo-agent/.m2/repositorydoesn't exist, skipping the removal of empty artifacts |
01-Sep-2025 07:08:31 | [PredatorPreBuildAction] Maven local repository /home/bamboo-agent/.m2/repositorydoesn't exist, skipping the removal of maven snapshots |
01-Sep-2025 07:08:31 | [PredatorPreBuildAction] File /home/bamboo-agent/.npmrc does not exist. |
01-Sep-2025 07:08:31 | [PredatorPreBuildAction] File /home/bamboo-agent/.docker/config.json does not exist. |
01-Sep-2025 07:08:31 | [PredatorPreBuildAction] File /home/bamboo-agent/.OpenMRS/liquibaseUpdateLogs.txt does not exist. |
01-Sep-2025 07:08:31 | [PredatorPreBuildAction] Final free space: 83.76082 GB |
01-Sep-2025 07:08:31 | [PredatorPreBuildAction] Done |
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) |
01-Sep-2025 07:08:31 | Substituting variable: ${bamboo.docker.image.platforms} with linux/amd64,linux/arm64 |
01-Sep-2025 07:08:31 | Substituting variable: ${bamboo.docker.image.tag} with nightly |
01-Sep-2025 07:08:31 | Substituting variable: ${bamboo.docker.image.tag.env} with dev3 |
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' |
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)' ... running command line: /data/bamboo-agent/temp/O3-BK-JOB1-196-ScriptBuildTask-5317802129020838168.sh ... in: /data/bamboo-agent/xml-data/build-dir/O3-BK-JOB1 |
01-Sep-2025 07:08:31 | + export IMAGE=openmrs/openmrs-reference-application-3-backend |
01-Sep-2025 07:08:31 | + IMAGE=openmrs/openmrs-reference-application-3-backend |
01-Sep-2025 07:08:31 | ++ date +%s |
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 . |
01-Sep-2025 07:08:31 | #0 building with "default" instance using docker driver |
01-Sep-2025 07:08:31 | |
01-Sep-2025 07:08:31 | #1 [internal] load build definition from Dockerfile |
01-Sep-2025 07:08:31 | #1 transferring dockerfile: 1.92kB done |
01-Sep-2025 07:08:31 | #1 DONE 0.0s |
01-Sep-2025 07:08:31 | |
01-Sep-2025 07:08:31 | #2 resolve image config for docker-image://docker.io/docker/dockerfile:1 |
01-Sep-2025 07:08:31 | #2 DONE 0.3s |
01-Sep-2025 07:08:32 | |
01-Sep-2025 07:08:32 | #3 docker-image://docker.io/docker/dockerfile:1@sha256:38387523653efa0039f8e1c89bb74a30504e76ee9f565e25c9a09841f9427b05 |
01-Sep-2025 07:08:32 | #3 resolve docker.io/docker/dockerfile:1@sha256:38387523653efa0039f8e1c89bb74a30504e76ee9f565e25c9a09841f9427b05 0.1s done |
01-Sep-2025 07:08:32 | #3 CACHED |
01-Sep-2025 07:08:32 | |
01-Sep-2025 07:08:32 | #4 [linux/amd64 internal] load metadata for docker.io/openmrs/openmrs-core:nightly-amazoncorretto-17 |
01-Sep-2025 07:08:32 | #4 ... |
01-Sep-2025 07:08:32 | |
01-Sep-2025 07:08:32 | #5 [linux/arm64 internal] load metadata for docker.io/openmrs/openmrs-core:dev-amazoncorretto-17 |
01-Sep-2025 07:08:32 | #5 DONE 0.3s |
01-Sep-2025 07:08:32 | |
01-Sep-2025 07:08:32 | #4 [linux/amd64 internal] load metadata for docker.io/openmrs/openmrs-core:nightly-amazoncorretto-17 |
01-Sep-2025 07:08:32 | #4 DONE 0.3s |
01-Sep-2025 07:08:32 | |
01-Sep-2025 07:08:32 | #6 [linux/amd64 internal] load metadata for docker.io/openmrs/openmrs-core:dev-amazoncorretto-17 |
01-Sep-2025 07:08:32 | #6 DONE 0.3s |
01-Sep-2025 07:08:32 | |
01-Sep-2025 07:08:32 | #7 [linux/arm64 internal] load metadata for docker.io/openmrs/openmrs-core:nightly-amazoncorretto-17 |
01-Sep-2025 07:08:32 | #7 DONE 0.3s |
01-Sep-2025 07:08:32 | |
01-Sep-2025 07:08:32 | #8 [internal] load .dockerignore |
01-Sep-2025 07:08:32 | #8 transferring context: 101B done |
01-Sep-2025 07:08:32 | #8 DONE 0.0s |
01-Sep-2025 07:08:32 | |
01-Sep-2025 07:08:32 | #9 [internal] load build context |
01-Sep-2025 07:08:32 | #9 DONE 0.0s |
01-Sep-2025 07:08:32 | |
01-Sep-2025 07:08:32 | #10 [linux/arm64 stage-1 1/6] FROM docker.io/openmrs/openmrs-core:nightly-amazoncorretto-17@sha256:5dd46beb350c580436f32c01edfcdfcd132e6e23fdd2468a97eb347b574811bc |
01-Sep-2025 07:08:32 | #10 resolve docker.io/openmrs/openmrs-core:nightly-amazoncorretto-17@sha256:5dd46beb350c580436f32c01edfcdfcd132e6e23fdd2468a97eb347b574811bc 0.1s done |
01-Sep-2025 07:08:32 | #10 CACHED |
01-Sep-2025 07:08:32 | |
01-Sep-2025 07:08:32 | #11 [linux/arm64 dev 1/11] FROM docker.io/openmrs/openmrs-core:dev-amazoncorretto-17@sha256:a60e88672bdb3ef0cece78a5d6dc5aa8f58558a673133ed21413c1596c997afb |
01-Sep-2025 07:08:32 | #11 resolve docker.io/openmrs/openmrs-core:dev-amazoncorretto-17@sha256:a60e88672bdb3ef0cece78a5d6dc5aa8f58558a673133ed21413c1596c997afb 0.1s done |
01-Sep-2025 07:08:32 | #11 DONE 0.2s |
01-Sep-2025 07:08:32 | |
01-Sep-2025 07:08:32 | #12 [linux/amd64 stage-1 1/6] FROM docker.io/openmrs/openmrs-core:nightly-amazoncorretto-17@sha256:5dd46beb350c580436f32c01edfcdfcd132e6e23fdd2468a97eb347b574811bc |
01-Sep-2025 07:08:32 | #12 resolve docker.io/openmrs/openmrs-core:nightly-amazoncorretto-17@sha256:5dd46beb350c580436f32c01edfcdfcd132e6e23fdd2468a97eb347b574811bc 0.1s done |
01-Sep-2025 07:08:32 | #12 CACHED |
01-Sep-2025 07:08:32 | |
01-Sep-2025 07:08:32 | #9 [internal] load build context |
01-Sep-2025 07:08:32 | #9 transferring context: 19.37kB done |
01-Sep-2025 07:08:32 | #9 DONE 0.0s |
01-Sep-2025 07:08:32 | |
01-Sep-2025 07:08:32 | #13 [linux/arm64 dev 2/11] WORKDIR /openmrs_distro |
01-Sep-2025 07:08:32 | #13 CACHED |
01-Sep-2025 07:08:32 | |
01-Sep-2025 07:08:32 | #14 [linux/arm64 dev 3/11] COPY pom.xml ./ |
01-Sep-2025 07:08:32 | #14 DONE 0.1s |
01-Sep-2025 07:08:32 | |
01-Sep-2025 07:08:32 | #15 [linux/amd64 dev 1/11] FROM docker.io/openmrs/openmrs-core:dev-amazoncorretto-17@sha256:a60e88672bdb3ef0cece78a5d6dc5aa8f58558a673133ed21413c1596c997afb |
01-Sep-2025 07:08:32 | #15 resolve docker.io/openmrs/openmrs-core:dev-amazoncorretto-17@sha256:a60e88672bdb3ef0cece78a5d6dc5aa8f58558a673133ed21413c1596c997afb 0.2s done |
01-Sep-2025 07:08:32 | #15 extracting sha256:b384aba76dbc237c79169c94fb8f91033bc0d4135757a811ee7a651d1dc73154 |
01-Sep-2025 07:08:32 | #15 ... |
01-Sep-2025 07:08:32 | |
01-Sep-2025 07:08:32 | #16 [linux/arm64 dev 4/11] COPY distro ./distro/ |
01-Sep-2025 07:08:32 | #16 DONE 0.1s |
01-Sep-2025 07:08:32 | |
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 |
01-Sep-2025 07:08:33 | #17 0.281 exec /bin/sh: exec format 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 |
01-Sep-2025 07:08:33 | |
01-Sep-2025 07:08:33 | #15 [linux/amd64 dev 1/11] FROM docker.io/openmrs/openmrs-core:dev-amazoncorretto-17@sha256:a60e88672bdb3ef0cece78a5d6dc5aa8f58558a673133ed21413c1596c997afb |
01-Sep-2025 07:08:33 | #15 extracting sha256:b384aba76dbc237c79169c94fb8f91033bc0d4135757a811ee7a651d1dc73154 0.6s done |
01-Sep-2025 07:08:33 | #15 DONE 0.8s |
01-Sep-2025 07:08:33 | |
01-Sep-2025 07:08:33 | #18 [linux/amd64 dev 2/11] WORKDIR /openmrs_distro |
01-Sep-2025 07:08:33 | #18 CANCELED |
01-Sep-2025 07:08:33 | ------ |
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: |
01-Sep-2025 07:08:33 | 0.281 exec /bin/sh: exec format error |
01-Sep-2025 07:08:33 | ------ |
01-Sep-2025 07:08:33 | Dockerfile:16 |
01-Sep-2025 07:08:33 | -------------------- |
01-Sep-2025 07:08:33 | 14 | ARG CACHE_BUST |
01-Sep-2025 07:08:33 | 15 | # Build the distro, but only deploy from the amd64 build |
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 |
01-Sep-2025 07:08:33 | 17 | |
01-Sep-2025 07:08:33 | 18 | RUN cp /openmrs_distro/distro/target/sdk-distro/web/openmrs_core/openmrs.war /openmrs/distribution/openmrs_core/ |
01-Sep-2025 07:08:33 | -------------------- |
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 |
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 |
01-Sep-2025 07:08:33 | Finished task 'Build and publish Docker image and Maven artifacts' with result: Failed |
01-Sep-2025 07:08:33 | Running post build plugin 'Docker Container Cleanup' |
01-Sep-2025 07:08:33 | Running post build plugin 'NCover Results Collector' |
01-Sep-2025 07:08:33 | Running post build plugin 'Build Results Label Collector' |
01-Sep-2025 07:08:33 | Running post build plugin 'Clover Results Collector' |
01-Sep-2025 07:08:33 | Running post build plugin 'npm Cache Cleanup' |
01-Sep-2025 07:08:33 | Running post build plugin 'Artifact Copier' |
01-Sep-2025 07:08:33 | Finalising the build... |
01-Sep-2025 07:08:33 | Stopping timer. |
01-Sep-2025 07:08:33 | Build O3-BK-JOB1-196 completed. |
01-Sep-2025 07:08:33 | Running on server: post build plugin 'Build Hanging Detection Configuration' |
01-Sep-2025 07:08:33 | Running on server: post build plugin 'NCover Results Collector' |
01-Sep-2025 07:08:33 | Running on server: post build plugin 'Build Labeller' |
01-Sep-2025 07:08:33 | Running on server: post build plugin 'Clover Delta Calculator' |
01-Sep-2025 07:08:33 | Running on server: post build plugin 'Maven Dependencies Postprocessor' |
01-Sep-2025 07:08:33 | All post build plugins have finished |
01-Sep-2025 07:08:33 | Generating build results summary... |
01-Sep-2025 07:08:33 | Saving build results to disk... |
01-Sep-2025 07:08:33 | Store variable context... |
01-Sep-2025 07:08:33 | Finished building O3-BK-JOB1-196. |