Plan responsible for building Docker images for the 3.x demo and development sites

Build: #2247 failed

Job: Build Gateway was successful

Stages & jobs

  1. Build

  2. Deploy

  3. Generate pre-filled Docker Images

  4. Run E2E tests

Build log

The build generated 232 lines of output. Download or view full build log.

26-Jan-2024 16:28:27 Build Reference Application - Distribution 3.x - Build Gateway #2247 (REFAPP-D3X-GTW-2247) started building on agent yu.openmrs.org (3), bamboo version: 8.2.4
26-Jan-2024 16:28:27 Remote agent on host yu.openmrs.org
26-Jan-2024 16:28:27 Build working directory is /home/bamboo-agent/bamboo-agent/xml-data/build-dir/REFAPP-D3X-GTW
26-Jan-2024 16:28:27 Executing build Reference Application - Distribution 3.x - Build Gateway #2247 (REFAPP-D3X-GTW-2247)
26-Jan-2024 16:28:27 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
26-Jan-2024 16:28:27 Checking out into /home/bamboo-agent/bamboo-agent/xml-data/build-dir/REFAPP-D3X-GTW
26-Jan-2024 16:28:27 Updating source code to revision: c41afd8baf19cd4a6c51a8f6ae58dab301ace2ae
26-Jan-2024 16:28:27 Creating local git repository in '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/REFAPP-D3X-GTW/.git'.
26-Jan-2024 16:28:27 hint: Using 'master' as the name for the initial branch. This default branch name
26-Jan-2024 16:28:27 Initialized empty Git repository in /home/bamboo-agent/bamboo-agent/xml-data/build-dir/REFAPP-D3X-GTW/.git/
26-Jan-2024 16:28:27 hint: is subject to change. To configure the initial branch name to use in all
26-Jan-2024 16:28:27 hint: of your new repositories, which will suppress this warning, call:
26-Jan-2024 16:28:27 hint:
26-Jan-2024 16:28:27 hint:         git config --global init.defaultBranch <name>
26-Jan-2024 16:28:27 hint:
26-Jan-2024 16:28:27 hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
26-Jan-2024 16:28:27 hint: 'development'. The just-created branch can be renamed via this command:
26-Jan-2024 16:28:27 hint:
26-Jan-2024 16:28:27 hint:         git branch -m <name>
26-Jan-2024 16:28:27 Fetching 'refs/heads/main' from 'https://github.com/openmrs/openmrs-distro-referenceapplication.git'.
26-Jan-2024 16:28:29 From https://github.com/openmrs/openmrs-distro-referenceapplication
26-Jan-2024 16:28:29 * [new branch]      main       -> main
26-Jan-2024 16:28:29 * [new tag]         2.0.1769      -> 2.0.1769
26-Jan-2024 16:28:29 * [new tag]         2.1           -> 2.1
26-Jan-2024 16:28:29 * [new tag]         2.10.0        -> 2.10.0
26-Jan-2024 16:28:29 * [new tag]         2.2           -> 2.2
26-Jan-2024 16:28:29 * [new tag]         2.3           -> 2.3
26-Jan-2024 16:28:29 * [new tag]         2.4           -> 2.4
26-Jan-2024 16:28:29 * [new tag]         2.5           -> 2.5
26-Jan-2024 16:28:29 * [new tag]         2.6.0         -> 2.6.0
26-Jan-2024 16:28:29 * [new tag]         2.7.0         -> 2.7.0
26-Jan-2024 16:28:29 * [new tag]         2.8.0         -> 2.8.0
26-Jan-2024 16:28:29 * [new tag]         2.8.1         -> 2.8.1
26-Jan-2024 16:28:29 * [new tag]         2.9.0         -> 2.9.0
26-Jan-2024 16:28:29 * [new tag]         3.0.0-alpha.2 -> 3.0.0-alpha.2
26-Jan-2024 16:28:29 * [new tag]         3.0.0-alpha.3 -> 3.0.0-alpha.3
26-Jan-2024 16:28:29 * [new tag]         3.0.0-alpha.4 -> 3.0.0-alpha.4
26-Jan-2024 16:28:29 * [new tag]         3.0.0-alpha.5 -> 3.0.0-alpha.5
26-Jan-2024 16:28:29 * [new tag]         3.0.0-alpha.6 -> 3.0.0-alpha.6
26-Jan-2024 16:28:29 * [new tag]         3.0.0-alpha.7 -> 3.0.0-alpha.7
26-Jan-2024 16:28:29 * [new tag]         3.0.0-beta.1  -> 3.0.0-beta.1
26-Jan-2024 16:28:29 * [new tag]         3.0.0-beta.10 -> 3.0.0-beta.10
26-Jan-2024 16:28:29 * [new tag]         3.0.0-beta.11 -> 3.0.0-beta.11
26-Jan-2024 16:28:29 * [new tag]         3.0.0-beta.12 -> 3.0.0-beta.12
26-Jan-2024 16:28:29 * [new tag]         3.0.0-beta.13 -> 3.0.0-beta.13
26-Jan-2024 16:28:29 * [new tag]         3.0.0-beta.14 -> 3.0.0-beta.14
26-Jan-2024 16:28:29 * [new tag]         3.0.0-beta.15 -> 3.0.0-beta.15
26-Jan-2024 16:28:29 * [new tag]         3.0.0-beta.16 -> 3.0.0-beta.16
26-Jan-2024 16:28:29 * [new tag]         3.0.0-beta.2  -> 3.0.0-beta.2
26-Jan-2024 16:28:29 * [new tag]         3.0.0-beta.3  -> 3.0.0-beta.3
26-Jan-2024 16:28:29 * [new tag]         3.0.0-beta.4  -> 3.0.0-beta.4
26-Jan-2024 16:28:29 * [new tag]         3.0.0-beta.5  -> 3.0.0-beta.5
26-Jan-2024 16:28:29 * [new tag]         3.0.0-beta.6  -> 3.0.0-beta.6
26-Jan-2024 16:28:29 * [new tag]         3.0.0-beta.7  -> 3.0.0-beta.7
26-Jan-2024 16:28:29 * [new tag]         3.0.0-beta.8  -> 3.0.0-beta.8
26-Jan-2024 16:28:29 * [new tag]         3.0.0-beta.9  -> 3.0.0-beta.9
26-Jan-2024 16:28:29 * [new tag]         latest        -> latest
26-Jan-2024 16:28:29 Checking out revision c41afd8baf19cd4a6c51a8f6ae58dab301ace2ae.
26-Jan-2024 16:28:29 Switched to branch 'main'
26-Jan-2024 16:28:29 Updated source code to revision: c41afd8baf19cd4a6c51a8f6ae58dab301ace2ae
26-Jan-2024 16:28:29 Finished task 'Checkout Default Repository' with result: Success
26-Jan-2024 16:28:29 Running pre-build action: Build Log Labeller Pre Build Action
26-Jan-2024 16:28:29 Running pre-build action: VCS Version Collector
26-Jan-2024 16:28:29 Running pre-build action: Run Predator
26-Jan-2024 16:28:29 [PredatorPreBuildAction] Starting predator plugin, pre build agent cleaner
26-Jan-2024 16:28:29 [PredatorPreBuildAction] Running these commands: /opt/scripts/cleanup-before-building.sh
26-Jan-2024 16:28:29 [PredatorPreBuildAction] Running command '[/opt/scripts/cleanup-before-building.sh]'
26-Jan-2024 16:28:29 [PredatorPreBuildAction] Command '[/opt/scripts/cleanup-before-building.sh]' completed with exit code 0
26-Jan-2024 16:28:29 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent):  3119 java        1290 bamboo-age 2972Mb  482Mb 00:21:34 /usr/lib/jvm/java-8-ope
26-Jan-2024 16:28:29 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent):  1290 wrapper        1 bamboo-age   16Mb    3Mb 00:05:36 /home/bamboo-agent/bamb
26-Jan-2024 16:28:29 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent):     1 systemd        0 root        164Mb   11Mb 00:00:37 /sbin/init             
26-Jan-2024 16:28:29 [PredatorPreBuildAction] No processes found for (chromium|chrome|webdriver|mysql|java|mvn|node|npm)
26-Jan-2024 16:28:29 [PredatorPreBuildAction] Initial free space: 5.9138184 GB
26-Jan-2024 16:28:29 [PredatorPreBuildAction] Deleting folder /home/bamboo-agent/bamboo-agent/xml-data/build-dir/REFAPP-D3X-F2
26-Jan-2024 16:28:29 [PredatorPreBuildAction] Deleting 20 snapshot folders from /home/bamboo-agent/.m2/repository
26-Jan-2024 16:28:29 [PredatorPreBuildAction] Maven snapshot disk freed: 0 GB
26-Jan-2024 16:28:29 [PredatorPreBuildAction] 0 empty artifacts were found and deleted by Predator
26-Jan-2024 16:28:29 [PredatorPreBuildAction] Maven stable disk freed: 0.8322378 GB, deleted 520 files
26-Jan-2024 16:28:29 [PredatorPreBuildAction] File /home/bamboo-agent/.npmrc does not exist.
26-Jan-2024 16:28:29 [PredatorPreBuildAction] Deleting file /home/bamboo-agent/.docker/config.json
26-Jan-2024 16:28:29 [PredatorPreBuildAction] File /home/bamboo-agent/.OpenMRS/liquibaseUpdateLogs.txt does not exist.
26-Jan-2024 16:28:29 [PredatorPreBuildAction] Final free space: 5.935314 GB
26-Jan-2024 16:28:29 [PredatorPreBuildAction] Done
26-Jan-2024 16:28:29
Substituting variable: ${bamboo.dockerhub.username} with openmrsci
26-Jan-2024 16:28:29
Substituting password variable: ${bamboo.dockerhub.password}
26-Jan-2024 16:28:29
Substituting variable: ${bamboo.docker.image.platforms} with linux/amd64,linux/arm64
26-Jan-2024 16:28:29 Starting task 'Build and publish image' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
26-Jan-2024 16:28:29
Beginning to execute external process for build 'Reference Application - Distribution 3.x - Build Gateway #2247 (REFAPP-D3X-GTW-2247)'
... running command line:
/home/bamboo-agent/bamboo-agent/temp/REFAPP-D3X-GTW-2247-ScriptBuildTask-1111121235436398210.sh
... in: /home/bamboo-agent/bamboo-agent/xml-data/build-dir/REFAPP-D3X-GTW
26-Jan-2024 16:28:29 + [[ ehuB != ehuxB ]]
26-Jan-2024 16:28:29 Start of Lmod init/bash script to define the module command
26-Jan-2024 16:28:29 + echo 'Start of Lmod init/bash script to define the module command'
26-Jan-2024 16:28:29 + LMOD_PKG=/usr/share/lmod/lmod
26-Jan-2024 16:28:29 + LMOD_DIR=/usr/share/lmod/lmod/libexec
26-Jan-2024 16:28:29 + LMOD_CMD=/usr/share/lmod/lmod/libexec/lmod
26-Jan-2024 16:28:29 + MODULESHOME=/usr/share/lmod/lmod
26-Jan-2024 16:28:29 + export LMOD_PKG
26-Jan-2024 16:28:29 + export LMOD_CMD
26-Jan-2024 16:28:29 + export LMOD_DIR
26-Jan-2024 16:28:29 + export MODULESHOME
26-Jan-2024 16:28:29 + LMOD_VERSION=6.6
26-Jan-2024 16:28:29 + export LMOD_VERSION
26-Jan-2024 16:28:29 + '[' : '!=' : ']'
26-Jan-2024 16:28:29 + unalias ml
26-Jan-2024 16:28:29 + true
26-Jan-2024 16:28:29 ++ echo YES
26-Jan-2024 16:28:29 ++ /usr/bin/tr '[:upper:]' '[:lower:]'
26-Jan-2024 16:28:29 + export_module=yes
26-Jan-2024 16:28:29 + '[' -n '5.1.16(1)-release' -a yes '!=' no ']'
26-Jan-2024 16:28:29 + export -f module
26-Jan-2024 16:28:29 + export -f ml
26-Jan-2024 16:28:29 + unset export_module
26-Jan-2024 16:28:29 + '[' -n '' ']'
26-Jan-2024 16:28:29 + '[' 5 -ge 3 ']'
26-Jan-2024 16:28:29 + '[' -r /usr/share/lmod/lmod/init/lmod_bash_completions ']'
26-Jan-2024 16:28:29 + '[' -n '' ']'
26-Jan-2024 16:28:29 + [[ ehuB != ehuxB ]]
26-Jan-2024 16:28:29 + echo 'End of Lmod init/bash script to define the module command'
26-Jan-2024 16:28:29 + export IMAGE=openmrs/openmrs-reference-application-3-gateway
26-Jan-2024 16:28:29 + IMAGE=openmrs/openmrs-reference-application-3-gateway
26-Jan-2024 16:28:29 + docker login -u openmrsci -p ********
26-Jan-2024 16:28:29 End of Lmod init/bash script to define the module command
26-Jan-2024 16:28:30 WARNING! Using --password via the CLI is insecure. Use --password-stdin.
26-Jan-2024 16:28:30 WARNING! Your password will be stored unencrypted in /home/bamboo-agent/.docker/config.json.
26-Jan-2024 16:28:30 Configure a credential helper to remove this warning. See
26-Jan-2024 16:28:30 https://docs.docker.com/engine/reference/commandline/login/#credentials-store
26-Jan-2024 16:28:30
26-Jan-2024 16:28:30 Login Succeeded
26-Jan-2024 16:28:30 + docker buildx build --pull --push --platform linux/amd64,linux/arm64 -t openmrs/openmrs-reference-application-3-gateway:nightly -t openmrs/openmrs-reference-application-3-gateway:dev3 gateway/
26-Jan-2024 16:28:30 #1 [internal] load build definition from Dockerfile
26-Jan-2024 16:28:30 #1 transferring dockerfile: 205B done
26-Jan-2024 16:28:30 #1 DONE 0.1s
26-Jan-2024 16:28:30
26-Jan-2024 16:28:30 #2 resolve image config for docker.io/docker/dockerfile:1.3
26-Jan-2024 16:28:30 #2 ...
26-Jan-2024 16:28:30
26-Jan-2024 16:28:30 #3 [auth] docker/dockerfile:pull token for registry-1.docker.io
26-Jan-2024 16:28:30 #3 DONE 0.0s
26-Jan-2024 16:28:30
26-Jan-2024 16:28:30 #2 resolve image config for docker.io/docker/dockerfile:1.3
26-Jan-2024 16:28:30 #2 DONE 0.3s
26-Jan-2024 16:28:31
26-Jan-2024 16:28:31 #4 docker-image://docker.io/docker/dockerfile:1.3@sha256:42399d4635eddd7a9b8a24be879d2f9a930d0ed040a61324cfdf59ef1357b3b2
26-Jan-2024 16:28:31 #4 resolve docker.io/docker/dockerfile:1.3@sha256:42399d4635eddd7a9b8a24be879d2f9a930d0ed040a61324cfdf59ef1357b3b2 0.0s done
26-Jan-2024 16:28:31 #4 CACHED
26-Jan-2024 16:28:31
26-Jan-2024 16:28:31 #5 [internal] load .dockerignore
26-Jan-2024 16:28:31 #5 transferring context:
26-Jan-2024 16:28:31 #5 transferring context: 2B done
26-Jan-2024 16:28:31 #5 DONE 0.1s
26-Jan-2024 16:28:31
26-Jan-2024 16:28:31 #6 [auth] library/nginx:pull token for registry-1.docker.io
26-Jan-2024 16:28:31 #6 DONE 0.0s
26-Jan-2024 16:28:31
26-Jan-2024 16:28:31 #7 [linux/amd64 internal] load metadata for docker.io/library/nginx:1.25-alpine
26-Jan-2024 16:28:31 #7 DONE 0.2s
26-Jan-2024 16:28:31
26-Jan-2024 16:28:31 #8 [linux/arm64 internal] load metadata for docker.io/library/nginx:1.25-alpine
26-Jan-2024 16:28:31 #8 DONE 0.2s
26-Jan-2024 16:28:31
26-Jan-2024 16:28:31 #9 [internal] load build context
26-Jan-2024 16:28:31 #9 transferring context: 3.48kB done
26-Jan-2024 16:28:31 #9 DONE 0.1s
26-Jan-2024 16:28:31
26-Jan-2024 16:28:31 #10 [linux/amd64 1/3] FROM docker.io/library/nginx:1.25-alpine@sha256:a59278fd22a9d411121e190b8cec8aa57b306aa3332459197777583beb728f59
26-Jan-2024 16:28:31 #10 resolve docker.io/library/nginx:1.25-alpine@sha256:a59278fd22a9d411121e190b8cec8aa57b306aa3332459197777583beb728f59
26-Jan-2024 16:28:31 #10 ...
26-Jan-2024 16:28:31
26-Jan-2024 16:28:31 #11 [linux/arm64 1/3] FROM docker.io/library/nginx:1.25-alpine@sha256:a59278fd22a9d411121e190b8cec8aa57b306aa3332459197777583beb728f59
26-Jan-2024 16:28:31 #11 resolve docker.io/library/nginx:1.25-alpine@sha256:a59278fd22a9d411121e190b8cec8aa57b306aa3332459197777583beb728f59 0.1s done
26-Jan-2024 16:28:31 #11 DONE 0.1s
26-Jan-2024 16:28:31
26-Jan-2024 16:28:31 #10 [linux/amd64 1/3] FROM docker.io/library/nginx:1.25-alpine@sha256:a59278fd22a9d411121e190b8cec8aa57b306aa3332459197777583beb728f59
26-Jan-2024 16:28:31 #10 CACHED
26-Jan-2024 16:28:31
26-Jan-2024 16:28:31 #11 [linux/arm64 1/3] FROM docker.io/library/nginx:1.25-alpine@sha256:a59278fd22a9d411121e190b8cec8aa57b306aa3332459197777583beb728f59
26-Jan-2024 16:28:31 #11 CACHED
26-Jan-2024 16:28:31
26-Jan-2024 16:28:31 #12 [linux/amd64 2/3] COPY nginx.conf /etc/nginx/nginx.conf
26-Jan-2024 16:28:31 #12 DONE 0.1s
26-Jan-2024 16:28:31
26-Jan-2024 16:28:31 #13 [linux/arm64 2/3] COPY nginx.conf /etc/nginx/nginx.conf
26-Jan-2024 16:28:31 #13 DONE 0.1s
26-Jan-2024 16:28:31
26-Jan-2024 16:28:31 #14 [linux/arm64 3/3] COPY default.conf.template /etc/nginx/templates/
26-Jan-2024 16:28:31 #14 DONE 0.2s
26-Jan-2024 16:28:31
26-Jan-2024 16:28:31 #15 [linux/amd64 3/3] COPY default.conf.template /etc/nginx/templates/
26-Jan-2024 16:28:31 #15 DONE 0.2s
26-Jan-2024 16:28:31
26-Jan-2024 16:28:31 #16 exporting to image
26-Jan-2024 16:28:31 #16 exporting layers
26-Jan-2024 16:28:32 #16 exporting layers 0.3s done
26-Jan-2024 16:28:32 #16 exporting manifest sha256:9d600a8b1b32b3c9c314ef610574ed67938c46f716cc3d046515263ed3e4e151 0.0s done
26-Jan-2024 16:28:32 #16 exporting config sha256:8d2eb431eba7a6e44cd9b37bf56815389031590fccfbafc856761bf28bb556b5
26-Jan-2024 16:28:32 #16 exporting config sha256:8d2eb431eba7a6e44cd9b37bf56815389031590fccfbafc856761bf28bb556b5 0.0s done
26-Jan-2024 16:28:32 #16 exporting manifest sha256:febe8949f5c4ac9b6297b2859829f8de9cec4ca39ddea4ecfd507542a19641d8 0.0s done
26-Jan-2024 16:28:32 #16 exporting config sha256:0fefa51807ebe1566b10dde86f2c162615c72d355b4c9e930c84e0c31bb667a7 0.0s done
26-Jan-2024 16:28:32 #16 exporting manifest list sha256:5c9b8a63b5bc299cd60ae5d8c53e8702a6da8c2e40d8739a65d8069a5d5b85eb 0.0s done
26-Jan-2024 16:28:32 #16 pushing layers
26-Jan-2024 16:28:32 #16 ...
26-Jan-2024 16:28:32
26-Jan-2024 16:28:32 #17 [auth] openmrs/openmrs-reference-application-3-gateway:pull,push token for registry-1.docker.io
26-Jan-2024 16:28:32 #17 DONE 0.0s
26-Jan-2024 16:28:32
26-Jan-2024 16:28:32 #16 exporting to image
26-Jan-2024 16:28:34 #16 pushing layers 1.8s done
26-Jan-2024 16:28:34 #16 pushing manifest for docker.io/openmrs/openmrs-reference-application-3-gateway:nightly@sha256:5c9b8a63b5bc299cd60ae5d8c53e8702a6da8c2e40d8739a65d8069a5d5b85eb
26-Jan-2024 16:28:35 #16 pushing manifest for docker.io/openmrs/openmrs-reference-application-3-gateway:nightly@sha256:5c9b8a63b5bc299cd60ae5d8c53e8702a6da8c2e40d8739a65d8069a5d5b85eb 0.8s done
26-Jan-2024 16:28:35 #16 pushing layers 0.9s done
26-Jan-2024 16:28:35 #16 pushing manifest for docker.io/openmrs/openmrs-reference-application-3-gateway:dev3@sha256:5c9b8a63b5bc299cd60ae5d8c53e8702a6da8c2e40d8739a65d8069a5d5b85eb
26-Jan-2024 16:28:36 #16 pushing manifest for docker.io/openmrs/openmrs-reference-application-3-gateway:dev3@sha256:5c9b8a63b5bc299cd60ae5d8c53e8702a6da8c2e40d8739a65d8069a5d5b85eb 0.3s done
26-Jan-2024 16:28:36 #16 DONE 4.3s
26-Jan-2024 16:28:36 Finished task 'Build and publish image' with result: Success
26-Jan-2024 16:28:36 Running post build plugin 'Docker Container Cleanup'
26-Jan-2024 16:28:36 Running post build plugin 'NCover Results Collector'
26-Jan-2024 16:28:36 Running post build plugin 'Build Results Label Collector'
26-Jan-2024 16:28:36 Running post build plugin 'Clover Results Collector'
26-Jan-2024 16:28:36 Running post build plugin 'npm Cache Cleanup'
26-Jan-2024 16:28:36 Running post build plugin 'Artifact Copier'
26-Jan-2024 16:28:36 Finalising the build...
26-Jan-2024 16:28:36 Stopping timer.
26-Jan-2024 16:28:36 Build REFAPP-D3X-GTW-2247 completed.
26-Jan-2024 16:28:36 Running on server: post build plugin 'Build Hanging Detection Configuration'
26-Jan-2024 16:28:36 Running on server: post build plugin 'NCover Results Collector'
26-Jan-2024 16:28:36 Running on server: post build plugin 'Build Labeller'
26-Jan-2024 16:28:36 Running on server: post build plugin 'Clover Delta Calculator'
26-Jan-2024 16:28:36 Running on server: post build plugin 'Maven Dependencies Postprocessor'
26-Jan-2024 16:28:36 All post build plugins have finished
26-Jan-2024 16:28:36 Generating build results summary...
26-Jan-2024 16:28:36 Saving build results to disk...
26-Jan-2024 16:28:36 Store variable context...
26-Jan-2024 16:28:36 Finished building REFAPP-D3X-GTW-2247.