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