simple 22-Nov-2023 11:49:57 Build ITSM - OpenMRS ID - Build Postfix #72 (II-ID-BP-72) started building on agent xiao.openmrs.org (3), bamboo version: 8.2.4 simple 22-Nov-2023 11:49:57 Remote agent on host xiao.openmrs.org simple 22-Nov-2023 11:49:57 Build working directory is /home/bamboo-agent/bamboo-agent/xml-data/build-dir/II-ID-BP simple 22-Nov-2023 11:49:57 Executing build ITSM - OpenMRS ID - Build Postfix #72 (II-ID-BP-72) simple 22-Nov-2023 11:49:57 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout' simple 22-Nov-2023 11:49:57 Checking out into /home/bamboo-agent/bamboo-agent/xml-data/build-dir/II-ID-BP simple 22-Nov-2023 11:49:57 Updating source code to revision: 2845910714d6aab0b09f181d630f24c8af750598 simple 22-Nov-2023 11:49:57 Fetching 'refs/heads/main' from 'https://github.com/openmrs/openmrs-contrib-itsm-id.git'. simple 22-Nov-2023 11:49:58 From https://github.com/openmrs/openmrs-contrib-itsm-id simple 22-Nov-2023 11:49:58 85f9e75..2845910 main -> main simple 22-Nov-2023 11:49:58 Checking out revision 2845910714d6aab0b09f181d630f24c8af750598. simple 22-Nov-2023 11:49:58 Creating local git repository in '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/II-ID-BP/.git'. simple 22-Nov-2023 11:49:58 Cloning into '/home/bamboo-agent/bamboo-agent/xml-data/build-dir/II-ID-BP'... simple 22-Nov-2023 11:49:58 done. simple 22-Nov-2023 11:49:58 Branch 'main' set up to track remote branch 'main' from 'origin'. simple 22-Nov-2023 11:49:58 Switched to a new branch 'main' simple 22-Nov-2023 11:49:58 Updated source code to revision: 2845910714d6aab0b09f181d630f24c8af750598 simple 22-Nov-2023 11:49:58 Finished task 'Checkout Default Repository' with result: Success simple 22-Nov-2023 11:49:58 Running pre-build action: Build Log Labeller Pre Build Action simple 22-Nov-2023 11:49:58 Running pre-build action: VCS Version Collector simple 22-Nov-2023 11:49:58 Running pre-build action: Run Predator simple 22-Nov-2023 11:49:58 [PredatorPreBuildAction] Starting predator plugin, pre build agent cleaner simple 22-Nov-2023 11:49:58 [PredatorPreBuildAction] Running these commands: /opt/scripts/cleanup-before-building.sh simple 22-Nov-2023 11:49:58 [PredatorPreBuildAction] Running command '[/opt/scripts/cleanup-before-building.sh]' simple 22-Nov-2023 11:49:58 [PredatorPreBuildAction] Command '[/opt/scripts/cleanup-before-building.sh]' completed with exit code 0 simple 22-Nov-2023 11:49:58 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent): 1731 java 1454 bamboo-age 2976Mb 693Mb 00:35:29 /usr/lib/jvm/java-8-ope simple 22-Nov-2023 11:49:58 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent): 1454 wrapper 1 bamboo-age 16Mb 2Mb 00:08:00 /home/bamboo-agent/bamb simple 22-Nov-2023 11:49:58 [PredatorPreBuildAction] Identifying Bamboo agent process (or parent): 1 systemd 0 root 164Mb 11Mb 00:00:49 /sbin/init simple 22-Nov-2023 11:49:58 [PredatorPreBuildAction] No processes found for (chromium|chrome|webdriver|mysql|java|mvn|node|npm) simple 22-Nov-2023 11:49:58 [PredatorPreBuildAction] Initial free space: 5.1618996 GB simple 22-Nov-2023 11:49:58 [PredatorPreBuildAction] Deleting folder /home/bamboo-agent/bamboo-agent/xml-data/build-dir/temporaryArtifactStorage simple 22-Nov-2023 11:49:58 [PredatorPreBuildAction] Deleting folder /home/bamboo-agent/bamboo-agent/xml-data/build-dir/REFAPP-D3X-RPCET simple 22-Nov-2023 11:50:03 [PredatorPreBuildAction] Deleting 6 snapshot folders from /home/bamboo-agent/.m2/repository simple 22-Nov-2023 11:50:03 [PredatorPreBuildAction] Maven snapshot disk freed: 0 GB simple 22-Nov-2023 11:50:03 [PredatorPreBuildAction] 0 empty artifacts were found and deleted by Predator simple 22-Nov-2023 11:50:03 [PredatorPreBuildAction] Maven stable disk freed: 0.54055405 GB, deleted 47 files simple 22-Nov-2023 11:50:03 [PredatorPreBuildAction] File /home/bamboo-agent/.npmrc does not exist. simple 22-Nov-2023 11:50:03 [PredatorPreBuildAction] File /home/bamboo-agent/.docker/config.json does not exist. simple 22-Nov-2023 11:50:03 [PredatorPreBuildAction] File /home/bamboo-agent/.OpenMRS/liquibaseUpdateLogs.txt does not exist. simple 22-Nov-2023 11:50:03 [PredatorPreBuildAction] Final free space: 5.1619034 GB simple 22-Nov-2023 11:50:03 [PredatorPreBuildAction] Done command 22-Nov-2023 11:50:03 Substituting variable: ${bamboo.planRepository.revision} with 2845910714d6aab0b09f181d630f24c8af750598 command 22-Nov-2023 11:50:03 Substituting variable: ${bamboo.image.postfix} with openmrsinfra/openmrs-id-postfix command 22-Nov-2023 11:50:03 Substituting variable: ${bamboo.image.postfix.version} with 3.6 command 22-Nov-2023 11:50:03 Substituting variable: ${bamboo.dockerhub.username} with openmrsci command 22-Nov-2023 11:50:03 Substituting password variable: ${bamboo.dockerhub.password} simple 22-Nov-2023 11:50:03 Starting task 'Build and push postfix image to Docker hub' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script' command 22-Nov-2023 11:50:03 Beginning to execute external process for build 'ITSM - OpenMRS ID - Build Postfix #72 (II-ID-BP-72)'\n ... running command line: \n/home/bamboo-agent/bamboo-agent/temp/II-ID-BP-72-ScriptBuildTask-8114589305921116498.sh\n ... in: /home/bamboo-agent/bamboo-agent/xml-data/build-dir/II-ID-BP\n error 22-Nov-2023 11:50:03 + [[ ehuB != ehuxB ]] error 22-Nov-2023 11:50:03 + echo 'Start of Lmod init/bash script to define the module command' error 22-Nov-2023 11:50:03 + LMOD_PKG=/usr/share/lmod/lmod error 22-Nov-2023 11:50:03 + LMOD_DIR=/usr/share/lmod/lmod/libexec error 22-Nov-2023 11:50:03 + LMOD_CMD=/usr/share/lmod/lmod/libexec/lmod error 22-Nov-2023 11:50:03 + MODULESHOME=/usr/share/lmod/lmod error 22-Nov-2023 11:50:03 + export LMOD_PKG error 22-Nov-2023 11:50:03 + export LMOD_CMD error 22-Nov-2023 11:50:03 + export LMOD_DIR error 22-Nov-2023 11:50:03 + export MODULESHOME error 22-Nov-2023 11:50:03 + LMOD_VERSION=6.6 error 22-Nov-2023 11:50:03 + export LMOD_VERSION error 22-Nov-2023 11:50:03 + '[' : '!=' : ']' error 22-Nov-2023 11:50:03 + unalias ml error 22-Nov-2023 11:50:03 + true build 22-Nov-2023 11:50:03 Start of Lmod init/bash script to define the module command error 22-Nov-2023 11:50:03 ++ echo YES error 22-Nov-2023 11:50:03 ++ /usr/bin/tr '[:upper:]' '[:lower:]' error 22-Nov-2023 11:50:03 + export_module=yes error 22-Nov-2023 11:50:03 + '[' -n '5.1.16(1)-release' -a yes '!=' no ']' error 22-Nov-2023 11:50:03 + export -f module error 22-Nov-2023 11:50:03 + export -f ml error 22-Nov-2023 11:50:03 + unset export_module error 22-Nov-2023 11:50:03 + '[' -n '' ']' error 22-Nov-2023 11:50:03 + '[' 5 -ge 3 ']' error 22-Nov-2023 11:50:03 + '[' -r /usr/share/lmod/lmod/init/lmod_bash_completions ']' error 22-Nov-2023 11:50:03 + '[' -n '' ']' error 22-Nov-2023 11:50:03 + [[ ehuB != ehuxB ]] error 22-Nov-2023 11:50:03 + echo 'End of Lmod init/bash script to define the module command' build 22-Nov-2023 11:50:03 End of Lmod init/bash script to define the module command error 22-Nov-2023 11:50:03 ++ echo 2845910714d6aab0b09f181d630f24c8af750598 error 22-Nov-2023 11:50:03 ++ awk '{print substr($0, 1, 7)}' error 22-Nov-2023 11:50:03 + export GIT_SHA=2845910 error 22-Nov-2023 11:50:03 + GIT_SHA=2845910 error 22-Nov-2023 11:50:03 + export IMAGE=openmrsinfra/openmrs-id-postfix error 22-Nov-2023 11:50:03 + IMAGE=openmrsinfra/openmrs-id-postfix error 22-Nov-2023 11:50:03 + export IMAGE_VERSION=3.6-2845910 error 22-Nov-2023 11:50:03 + IMAGE_VERSION=3.6-2845910 error 22-Nov-2023 11:50:03 + docker login -u openmrsci -p ******** error 22-Nov-2023 11:50:03 WARNING! Using --password via the CLI is insecure. Use --password-stdin. error 22-Nov-2023 11:50:03 WARNING! Your password will be stored unencrypted in /home/bamboo-agent/.docker/config.json. error 22-Nov-2023 11:50:03 Configure a credential helper to remove this warning. See error 22-Nov-2023 11:50:03 https://docs.docker.com/engine/reference/commandline/login/#credentials-store error 22-Nov-2023 11:50:03 build 22-Nov-2023 11:50:03 Login Succeeded error 22-Nov-2023 11:50:03 + docker build --build-arg SMTP_SERVER=mail.jayasanka.me --build-arg SMTP_PORT=587 --build-arg SMTP_USERNAME=username --build-arg SMTP_PASSWORD=password --build-arg LDAP_BIND_PASSWORD=pass -t openmrsinfra/openmrs-id-postfix:nightly -t openmrsinfra/openmrs-id-postfix:3.6-2845910 postfix/ build 22-Nov-2023 11:50:03 Sending build context to Docker daemon 9.728kB build 22-Nov-2023 11:50:03 build 22-Nov-2023 11:50:03 Step 1/8 : FROM alpine:3.18 build 22-Nov-2023 11:50:04 3.18: Pulling from library/alpine build 22-Nov-2023 11:50:04 96526aa774ef: Already exists build 22-Nov-2023 11:50:04 Digest: sha256:eece025e432126ce23f223450a0326fbebde39cdf496a85d8c016293fc851978 build 22-Nov-2023 11:50:04 Status: Downloaded newer image for alpine:3.18 build 22-Nov-2023 11:50:04 ---> 8ca4688f4f35 build 22-Nov-2023 11:50:04 Step 2/8 : RUN apk update && apk add postfix postfix-ldap envsubst cyrus-sasl && apk cache clean build 22-Nov-2023 11:50:04 ---> Running in 86f4f2754414 build 22-Nov-2023 11:50:05 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz build 22-Nov-2023 11:50:05 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz build 22-Nov-2023 11:50:05 v3.18.4-239-gcdb9428c46f [https://dl-cdn.alpinelinux.org/alpine/v3.18/main] build 22-Nov-2023 11:50:05 v3.18.4-244-g117d218742b [https://dl-cdn.alpinelinux.org/alpine/v3.18/community] build 22-Nov-2023 11:50:05 OK: 20076 distinct packages available build 22-Nov-2023 11:50:05 (1/20) Installing gdbm (1.23-r1) build 22-Nov-2023 11:50:05 (2/20) Installing krb5-conf (1.0-r2) build 22-Nov-2023 11:50:05 (3/20) Installing libcom_err (1.47.0-r2) build 22-Nov-2023 11:50:05 (4/20) Installing ncurses-terminfo-base (6.4_p20230506-r0) build 22-Nov-2023 11:50:06 (5/20) Installing libncursesw (6.4_p20230506-r0) build 22-Nov-2023 11:50:06 (6/20) Installing readline (8.2.1-r1) build 22-Nov-2023 11:50:06 (7/20) Installing sqlite-libs (3.41.2-r2) build 22-Nov-2023 11:50:06 (8/20) Installing heimdal-libs (7.8.0-r3) build 22-Nov-2023 11:50:06 (9/20) Installing libsasl (2.1.28-r4) build 22-Nov-2023 11:50:06 (10/20) Installing cyrus-sasl (2.1.28-r4) build 22-Nov-2023 11:50:06 (11/20) Installing libintl (0.21.1-r7) build 22-Nov-2023 11:50:06 (12/20) Installing gettext-envsubst (0.21.1-r7) build 22-Nov-2023 11:50:06 (13/20) Installing icu-data-en (73.2-r2) build 22-Nov-2023 11:50:06 Executing icu-data-en-73.2-r2.post-install build 22-Nov-2023 11:50:06 * build 22-Nov-2023 11:50:06 * If you need ICU with non-English locales and legacy charset support, install build 22-Nov-2023 11:50:06 * package icu-data-full. build 22-Nov-2023 11:50:06 * build 22-Nov-2023 11:50:06 (14/20) Installing libgcc (12.2.1_git20220924-r10) build 22-Nov-2023 11:50:06 (15/20) Installing libstdc++ (12.2.1_git20220924-r10) build 22-Nov-2023 11:50:06 (16/20) Installing icu-libs (73.2-r2) build 22-Nov-2023 11:50:06 (17/20) Installing lmdb (0.9.31-r0) build 22-Nov-2023 11:50:06 (18/20) Installing postfix (3.8.3-r0) build 22-Nov-2023 11:50:06 Executing postfix-3.8.3-r0.pre-install build 22-Nov-2023 11:50:06 (19/20) Installing libldap (2.6.5-r0) build 22-Nov-2023 11:50:06 (20/20) Installing postfix-ldap (3.8.3-r0) build 22-Nov-2023 11:50:06 Executing busybox-1.36.1-r2.trigger build 22-Nov-2023 11:50:06 OK: 25 MiB in 35 packages build 22-Nov-2023 11:50:07 Removing intermediate container 86f4f2754414 build 22-Nov-2023 11:50:07 ---> fcc313b9e1b0 build 22-Nov-2023 11:50:07 Step 3/8 : COPY ./config /etc/postfix build 22-Nov-2023 11:50:07 ---> 731b60f5bb31 build 22-Nov-2023 11:50:07 Step 4/8 : RUN chmod 644 /etc/postfix/clients.cidr /etc/postfix/ldap-aliases.cf.tmpl /etc/postfix/main.cf.tmpl build 22-Nov-2023 11:50:07 ---> Running in 334aa310d7ff build 22-Nov-2023 11:50:07 Removing intermediate container 334aa310d7ff build 22-Nov-2023 11:50:07 ---> d306f5267b8f build 22-Nov-2023 11:50:07 Step 5/8 : COPY ./startup.sh /usr/local/bin/ build 22-Nov-2023 11:50:08 ---> 6b801c88c9ae build 22-Nov-2023 11:50:08 Step 6/8 : RUN chmod +x /usr/local/bin/startup.sh build 22-Nov-2023 11:50:08 ---> Running in 862d944fd82c build 22-Nov-2023 11:50:08 Removing intermediate container 862d944fd82c build 22-Nov-2023 11:50:08 ---> 363615d0f641 build 22-Nov-2023 11:50:08 Step 7/8 : EXPOSE 25 build 22-Nov-2023 11:50:08 ---> Running in 617ad934e29e build 22-Nov-2023 11:50:08 Removing intermediate container 617ad934e29e build 22-Nov-2023 11:50:08 ---> 0b2d4d1223e1 build 22-Nov-2023 11:50:08 Step 8/8 : ENTRYPOINT ["/usr/local/bin/startup.sh"] build 22-Nov-2023 11:50:08 ---> Running in 0e0c1f0c7b8b build 22-Nov-2023 11:50:08 Removing intermediate container 0e0c1f0c7b8b build 22-Nov-2023 11:50:08 ---> e5412f5af483 build 22-Nov-2023 11:50:08 [Warning] One or more build-args [LDAP_BIND_PASSWORD SMTP_PASSWORD SMTP_PORT SMTP_SERVER SMTP_USERNAME] were not consumed build 22-Nov-2023 11:50:08 Successfully built e5412f5af483 build 22-Nov-2023 11:50:08 Successfully tagged openmrsinfra/openmrs-id-postfix:nightly build 22-Nov-2023 11:50:08 Successfully tagged openmrsinfra/openmrs-id-postfix:3.6-2845910 error 22-Nov-2023 11:50:08 + docker push openmrsinfra/openmrs-id-postfix:nightly build 22-Nov-2023 11:50:08 The push refers to repository [docker.io/openmrsinfra/openmrs-id-postfix] build 22-Nov-2023 11:50:09 71736b8fa533: Preparing build 22-Nov-2023 11:50:09 923bf7909520: Preparing build 22-Nov-2023 11:50:09 e48cb5eee287: Preparing build 22-Nov-2023 11:50:09 857fbbb7a0a4: Preparing build 22-Nov-2023 11:50:09 524016d1caf9: Preparing build 22-Nov-2023 11:50:09 cc2447e1835a: Preparing build 22-Nov-2023 11:50:09 cc2447e1835a: Waiting build 22-Nov-2023 11:50:10 923bf7909520: Pushed build 22-Nov-2023 11:50:10 71736b8fa533: Pushed build 22-Nov-2023 11:50:10 e48cb5eee287: Pushed build 22-Nov-2023 11:50:10 cc2447e1835a: Layer already exists build 22-Nov-2023 11:50:10 857fbbb7a0a4: Pushed build 22-Nov-2023 11:50:11 524016d1caf9: Pushed build 22-Nov-2023 11:50:13 nightly: digest: sha256:70bb237ea5d512987fcc13a8a06d0fc731ebc55f310d7a8a5849aa38dbeb90c2 size: 1569 error 22-Nov-2023 11:50:13 + docker push openmrsinfra/openmrs-id-postfix:3.6-2845910 build 22-Nov-2023 11:50:13 The push refers to repository [docker.io/openmrsinfra/openmrs-id-postfix] build 22-Nov-2023 11:50:13 71736b8fa533: Preparing build 22-Nov-2023 11:50:13 923bf7909520: Preparing build 22-Nov-2023 11:50:13 e48cb5eee287: Preparing build 22-Nov-2023 11:50:13 857fbbb7a0a4: Preparing build 22-Nov-2023 11:50:13 524016d1caf9: Preparing build 22-Nov-2023 11:50:13 cc2447e1835a: Preparing build 22-Nov-2023 11:50:13 cc2447e1835a: Waiting build 22-Nov-2023 11:50:13 923bf7909520: Layer already exists build 22-Nov-2023 11:50:13 857fbbb7a0a4: Layer already exists build 22-Nov-2023 11:50:13 71736b8fa533: Layer already exists build 22-Nov-2023 11:50:13 e48cb5eee287: Layer already exists build 22-Nov-2023 11:50:13 524016d1caf9: Layer already exists build 22-Nov-2023 11:50:13 cc2447e1835a: Layer already exists build 22-Nov-2023 11:50:14 3.6-2845910: digest: sha256:70bb237ea5d512987fcc13a8a06d0fc731ebc55f310d7a8a5849aa38dbeb90c2 size: 1569 error 22-Nov-2023 11:50:14 + echo 'Inspecting image for id' error 22-Nov-2023 11:50:14 + docker image inspect '--format={{index .RepoDigests 0}}' openmrsinfra/openmrs-id-postfix:3.6-2845910 build 22-Nov-2023 11:50:14 Inspecting image for id simple 22-Nov-2023 11:50:14 Finished task 'Build and push postfix image to Docker hub' with result: Success simple 22-Nov-2023 11:50:14 Starting task 'Read variables' of type 'com.atlassian.bamboo.plugins.variable.updater.variable-updater-generic:variable-file-reader' simple 22-Nov-2023 11:50:14 Variable wasn't found in the Build context. It possibly doesn't exist. simple 22-Nov-2023 11:50:14 Changing variable docker.image.postfix.id of type RESULT from null to openmrsinfra/openmrs-id-postfix@sha256:70bb237ea5d512987fcc13a8a06d0fc731ebc55f310d7a8a5849aa38dbeb90c2 simple 22-Nov-2023 11:50:14 Finished task 'Read variables' with result: Success simple 22-Nov-2023 11:50:14 Running post build plugin 'Docker Container Cleanup' simple 22-Nov-2023 11:50:14 Running post build plugin 'NCover Results Collector' simple 22-Nov-2023 11:50:14 Running post build plugin 'Build Results Label Collector' simple 22-Nov-2023 11:50:14 Running post build plugin 'Clover Results Collector' simple 22-Nov-2023 11:50:14 Running post build plugin 'npm Cache Cleanup' simple 22-Nov-2023 11:50:14 Running post build plugin 'Artifact Copier' simple 22-Nov-2023 11:50:14 Finalising the build... simple 22-Nov-2023 11:50:14 Stopping timer. simple 22-Nov-2023 11:50:14 Build II-ID-BP-72 completed. simple 22-Nov-2023 11:50:14 Running on server: post build plugin 'Build Hanging Detection Configuration' simple 22-Nov-2023 11:50:14 Running on server: post build plugin 'NCover Results Collector' simple 22-Nov-2023 11:50:14 Running on server: post build plugin 'Build Labeller' simple 22-Nov-2023 11:50:14 Running on server: post build plugin 'Clover Delta Calculator' simple 22-Nov-2023 11:50:14 Running on server: post build plugin 'Maven Dependencies Postprocessor' simple 22-Nov-2023 11:50:14 All post build plugins have finished simple 22-Nov-2023 11:50:14 Generating build results summary... simple 22-Nov-2023 11:50:14 Saving build results to disk... simple 22-Nov-2023 11:50:14 Store variable context... simple 22-Nov-2023 11:50:14 Finished building II-ID-BP-72.