Deploy OpenBoxes (Grails 3 branch) to obnavtest1.pih-emr.org

Build: #171 failed

Job: Default Job failed

Stages & jobs

  1. Build

Build log

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

20-Oct-2022 15:35:38 Build OpenBoxes - Deploy Application - OBNAV Test 1 (OBNAV-TEST1) - Default Job #171 (OPENBOXES-SDOD2-DJ-171) started building on agent Deploy PIHEMR, bamboo version: 8.2.3
20-Oct-2022 15:35:38 Agent to deploy the PIH-EMR using puppet
20-Oct-2022 15:35:38 Build working directory is /opt/bamboo-home/local-working-dir/OPENBOXES-SDOD2-DJ
20-Oct-2022 15:35:38 Executing build OpenBoxes - Deploy Application - OBNAV Test 1 (OBNAV-TEST1) - Default Job #171 (OPENBOXES-SDOD2-DJ-171)
20-Oct-2022 15:35:38 Starting task 'Source Code Checkout' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
20-Oct-2022 15:35:38 Build always requires a clean checkout
20-Oct-2022 15:35:38 Cleaning build directory '/opt/bamboo-home/local-working-dir/OPENBOXES-SDOD2-DJ'
20-Oct-2022 15:35:38 Checking out into /opt/bamboo-home/local-working-dir/OPENBOXES-SDOD2-DJ
20-Oct-2022 15:35:38 Updating source code to revision: 4e5259f18a9d1a80823753814db25b0f6a515ad2
20-Oct-2022 15:35:38 Fetching 'refs/heads/feature/upgrade-to-grails-3.3.10' from 'https://github.com/openboxes/openboxes.git'.
20-Oct-2022 15:35:39 From https://github.com/openboxes/openboxes
20-Oct-2022 15:35:39 * [new tag]             show            -> show
20-Oct-2022 15:35:39 * [new tag]             v0.5.0.3        -> v0.5.0.3
20-Oct-2022 15:35:39 * [new tag]             v0.5.1.3        -> v0.5.1.3
20-Oct-2022 15:35:39 * [new tag]             v0.5.2          -> v0.5.2
20-Oct-2022 15:35:39 * [new tag]             v0.5.4          -> v0.5.4
20-Oct-2022 15:35:39 * [new tag]             v0.5.5          -> v0.5.5
20-Oct-2022 15:35:39 * [new tag]             v0.5.6          -> v0.5.6
20-Oct-2022 15:35:39 * [new tag]             v0.5.7          -> v0.5.7
20-Oct-2022 15:35:39 * [new tag]             v0.5.8          -> v0.5.8
20-Oct-2022 15:35:39 * [new tag]             v0.6.0          -> v0.6.0
20-Oct-2022 15:35:39 * [new tag]             v0.6.1          -> v0.6.1
20-Oct-2022 15:35:39 * [new tag]             v0.6.2          -> v0.6.2
20-Oct-2022 15:35:39 * [new tag]             v0.6.3          -> v0.6.3
20-Oct-2022 15:35:39 * [new tag]             v0.6.3.1        -> v0.6.3.1
20-Oct-2022 15:35:39 * [new tag]             v0.6.3.2        -> v0.6.3.2
20-Oct-2022 15:35:39 * [new tag]             v0.6.5          -> v0.6.5
20-Oct-2022 15:35:39 * [new tag]             v0.6.6          -> v0.6.6
20-Oct-2022 15:35:39 * [new tag]             v0.6.7          -> v0.6.7
20-Oct-2022 15:35:39 * [new tag]             v0.6.8          -> v0.6.8
20-Oct-2022 15:35:39 * [new tag]             v0.6.9          -> v0.6.9
20-Oct-2022 15:35:39 * [new tag]             v0.7.0          -> v0.7.0
20-Oct-2022 15:35:39 * [new tag]             v0.7.1          -> v0.7.1
20-Oct-2022 15:35:39 * [new tag]             v0.7.10         -> v0.7.10
20-Oct-2022 15:35:39 * [new tag]             v0.7.11         -> v0.7.11
20-Oct-2022 15:35:39 * [new tag]             v0.7.12         -> v0.7.12
20-Oct-2022 15:35:39 * [new tag]             v0.7.13         -> v0.7.13
20-Oct-2022 15:35:39 * [new tag]             v0.7.14         -> v0.7.14
20-Oct-2022 15:35:39 * [new tag]             v0.7.15         -> v0.7.15
20-Oct-2022 15:35:39 * [new tag]             v0.7.16         -> v0.7.16
20-Oct-2022 15:35:39 * [new tag]             v0.7.17         -> v0.7.17
20-Oct-2022 15:35:39 * [new tag]             v0.7.18         -> v0.7.18
20-Oct-2022 15:35:39 * [new tag]             v0.7.19         -> v0.7.19
20-Oct-2022 15:35:39 * [new tag]             v0.7.2          -> v0.7.2
20-Oct-2022 15:35:39 * [new tag]             v0.7.20         -> v0.7.20
20-Oct-2022 15:35:39 * [new tag]             v0.7.21         -> v0.7.21
20-Oct-2022 15:35:39 * [new tag]             v0.7.22         -> v0.7.22
20-Oct-2022 15:35:39 * [new tag]             v0.7.23         -> v0.7.23
20-Oct-2022 15:35:39 * [new tag]             v0.7.24         -> v0.7.24
20-Oct-2022 15:35:39 * [new tag]             v0.7.25         -> v0.7.25
20-Oct-2022 15:35:39 * [new tag]             v0.7.26         -> v0.7.26
20-Oct-2022 15:35:39 * [new tag]             v0.7.26-223     -> v0.7.26-223
20-Oct-2022 15:35:39 * [new tag]             v0.7.27         -> v0.7.27
20-Oct-2022 15:35:39 * [new tag]             v0.7.28         -> v0.7.28
20-Oct-2022 15:35:39 * [new tag]             v0.7.29         -> v0.7.29
20-Oct-2022 15:35:39 * [new tag]             v0.7.29.1       -> v0.7.29.1
20-Oct-2022 15:35:39 * [new tag]             v0.7.3          -> v0.7.3
20-Oct-2022 15:35:39 * [new tag]             v0.7.3.1        -> v0.7.3.1
20-Oct-2022 15:35:39 * [new tag]             v0.7.30         -> v0.7.30
20-Oct-2022 15:35:39 * [new tag]             v0.7.32         -> v0.7.32
20-Oct-2022 15:35:39 * [new tag]             v0.7.4          -> v0.7.4
20-Oct-2022 15:35:39 * [new tag]             v0.7.5          -> v0.7.5
20-Oct-2022 15:35:39 * [new tag]             v0.7.6          -> v0.7.6
20-Oct-2022 15:35:39 * [new tag]             v0.7.7          -> v0.7.7
20-Oct-2022 15:35:39 * [new tag]             v0.7.8          -> v0.7.8
20-Oct-2022 15:35:39 * [new tag]             v0.7.9          -> v0.7.9
20-Oct-2022 15:35:39 * [new tag]             v0.8.10         -> v0.8.10
20-Oct-2022 15:35:39 * [new tag]             v0.8.11         -> v0.8.11
20-Oct-2022 15:35:39 * [new tag]             v0.8.12         -> v0.8.12
20-Oct-2022 15:35:39 * [new tag]             v0.8.13         -> v0.8.13
20-Oct-2022 15:35:39 * [new tag]             v0.8.13-hotfix1 -> v0.8.13-hotfix1
20-Oct-2022 15:35:39 * [new tag]             v0.8.13-hotfix2 -> v0.8.13-hotfix2
20-Oct-2022 15:35:39 * [new tag]             v0.8.14         -> v0.8.14
20-Oct-2022 15:35:39 * [new tag]             v0.8.14-hotfix1 -> v0.8.14-hotfix1
20-Oct-2022 15:35:39 * [new tag]             v0.8.15         -> v0.8.15
20-Oct-2022 15:35:39 * [new tag]             v0.8.15-hotfix1 -> v0.8.15-hotfix1
20-Oct-2022 15:35:39 * [new tag]             v0.8.15-hotfix2 -> v0.8.15-hotfix2
20-Oct-2022 15:35:39 * [new tag]             v0.8.15-hotfix3 -> v0.8.15-hotfix3
20-Oct-2022 15:35:39 * [new tag]             v0.8.16         -> v0.8.16
20-Oct-2022 15:35:39 * [new tag]             v0.8.16-hotfix1 -> v0.8.16-hotfix1
20-Oct-2022 15:35:39 * [new tag]             v0.8.16-hotfix2 -> v0.8.16-hotfix2
20-Oct-2022 15:35:39 * [new tag]             v0.8.16-hotfix3 -> v0.8.16-hotfix3
20-Oct-2022 15:35:39 * [new tag]             v0.8.17         -> v0.8.17
20-Oct-2022 15:35:39 * [new tag]             v0.8.17-hotfix1 -> v0.8.17-hotfix1
20-Oct-2022 15:35:39 * [new tag]             v0.8.17-hotfix2 -> v0.8.17-hotfix2
20-Oct-2022 15:35:39 * [new tag]             v0.8.17-hotfix3 -> v0.8.17-hotfix3
20-Oct-2022 15:35:39 * [new tag]             v0.8.17-hotfix4 -> v0.8.17-hotfix4
20-Oct-2022 15:35:39 * [new tag]             v0.8.17-hotfix5 -> v0.8.17-hotfix5
20-Oct-2022 15:35:39 * [new tag]             v0.8.17-hotfix6 -> v0.8.17-hotfix6
20-Oct-2022 15:35:39 * [new tag]             v0.8.18         -> v0.8.18
20-Oct-2022 15:35:39 * [new tag]             v0.8.18-hotfix1 -> v0.8.18-hotfix1
20-Oct-2022 15:35:39 * [new tag]             v0.8.18-hotfix2 -> v0.8.18-hotfix2
20-Oct-2022 15:35:39 * [new tag]             v0.8.18-hotfix3 -> v0.8.18-hotfix3
20-Oct-2022 15:35:39 * [new tag]             v0.8.5          -> v0.8.5
20-Oct-2022 15:35:39 * [new tag]             v0.8.6          -> v0.8.6
20-Oct-2022 15:35:39 * [new tag]             v0.8.6-hotfix1  -> v0.8.6-hotfix1
20-Oct-2022 15:35:39 * [new tag]             v0.8.7          -> v0.8.7
20-Oct-2022 15:35:39 * [new tag]             v0.8.7-hotfix1  -> v0.8.7-hotfix1
20-Oct-2022 15:35:39 * [new tag]             v0.8.7-hotfix2  -> v0.8.7-hotfix2
20-Oct-2022 15:35:39 * [new tag]             v0.8.8          -> v0.8.8
20-Oct-2022 15:35:39 * [new tag]             v0.8.8-hotfix1  -> v0.8.8-hotfix1
20-Oct-2022 15:35:39 * [new tag]             v0.8.8-hotfix2  -> v0.8.8-hotfix2
20-Oct-2022 15:35:39 * [new tag]             v0.8.9          -> v0.8.9
20-Oct-2022 15:35:39 * [new tag]             v0.8.9-hotfix1  -> v0.8.9-hotfix1
20-Oct-2022 15:35:39 * [new tag]             v0.8.9-hotfix2  -> v0.8.9-hotfix2
20-Oct-2022 15:35:39 * [new tag]             v0.9.0-alpha-2  -> v0.9.0-alpha-2
20-Oct-2022 15:35:39 Checking out revision 4e5259f18a9d1a80823753814db25b0f6a515ad2.
20-Oct-2022 15:35:39 Creating local git repository in '/opt/bamboo-home/local-working-dir/OPENBOXES-SDOD2-DJ/.git'.
20-Oct-2022 15:35:39 Cloning into '/opt/bamboo-home/local-working-dir/OPENBOXES-SDOD2-DJ'...
20-Oct-2022 15:35:39 done.
20-Oct-2022 15:35:39 Switched to a new branch 'feature/upgrade-to-grails-3.3.10'
20-Oct-2022 15:35:39 Branch 'feature/upgrade-to-grails-3.3.10' set up to track remote branch 'feature/upgrade-to-grails-3.3.10' from 'origin'.
20-Oct-2022 15:35:39 Updated source code to revision: 4e5259f18a9d1a80823753814db25b0f6a515ad2
20-Oct-2022 15:35:39 Finished task 'Source Code Checkout' with result: Success
20-Oct-2022 15:35:39 Running pre-build action: VCS Version Collector
20-Oct-2022 15:35:39 Running pre-build action: Build Log Labeller Pre Build Action
20-Oct-2022 15:35:39
Substituting variable: ${bamboo.buildNumber} with 171
20-Oct-2022 15:35:39 Starting task 'grails prod war --non-interactive --plain-output' of type 'com.atlassian.bamboo.plugins.bamboo-grails-plugin:grailsBuilderTaskType'
20-Oct-2022 15:35:39 Error occurred while running Task 'grails prod war --non-interactive --plain-output(2)' of type com.atlassian.bamboo.plugins.bamboo-grails-plugin:grailsBuilderTaskType.
20-Oct-2022 15:35:39 java.lang.IllegalStateException: Cannot find Grails home at '/usr/local/sdkman/candidates/grails/3.3.16/bin/grails'
20-Oct-2022 15:35:39         at com.atlassian.bamboo.plugins.grails.GrailsBuildTask.getGrailsHome(GrailsBuildTask.java:197)
20-Oct-2022 15:35:39         at com.atlassian.bamboo.plugins.grails.GrailsBuildTask.getExecutable(GrailsBuildTask.java:153)
20-Oct-2022 15:35:39         at com.atlassian.bamboo.plugins.grails.GrailsBuildTask.getGrailsProcesses(GrailsBuildTask.java:111)
20-Oct-2022 15:35:39         at com.atlassian.bamboo.plugins.grails.GrailsBuildTask.execute(GrailsBuildTask.java:85)
20-Oct-2022 15:35:39         at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$2(TaskExecutorImpl.java:321)
20-Oct-2022 15:35:39         at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:258)
20-Oct-2022 15:35:39         at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:321)
20-Oct-2022 15:35:39         at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:118)
20-Oct-2022 15:35:39         at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:73)
20-Oct-2022 15:35:39         at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:205)
20-Oct-2022 15:35:39         at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:177)
20-Oct-2022 15:35:39         at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:169)
20-Oct-2022 15:35:39         at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:118)
20-Oct-2022 15:35:39         at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:162)
20-Oct-2022 15:35:39         at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.lambda$start$0(DefaultBuildAgent.java:122)
20-Oct-2022 15:35:39         at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
20-Oct-2022 15:35:39         at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
20-Oct-2022 15:35:39         at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
20-Oct-2022 15:35:39         at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
20-Oct-2022 15:35:39         at java.lang.Thread.run(Thread.java:750)
20-Oct-2022 15:35:39 Starting task 'sudo service tomcat9 restart' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.command'
20-Oct-2022 15:35:39
Beginning to execute external process for build 'OpenBoxes - Deploy Application - OBNAV Test 1 (OBNAV-TEST1) - Default Job #171 (OPENBOXES-SDOD2-DJ-171)'
... running command line:
/usr/bin/ssh -vv jmiranda@obnavtest1.pih-emr.org sudo service tomcat9 restart
... in: /opt/bamboo-home/local-working-dir/OPENBOXES-SDOD2-DJ
20-Oct-2022 15:35:39 OpenSSH_8.2p1 Ubuntu-4ubuntu0.5, OpenSSL 1.1.1f  31 Mar 2020
20-Oct-2022 15:35:39 debug1: Reading configuration data /etc/ssh/ssh_config
20-Oct-2022 15:35:39 debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
20-Oct-2022 15:35:39 debug1: /etc/ssh/ssh_config line 21: Applying options for *
20-Oct-2022 15:35:39 debug2: resolving "obnavtest1.pih-emr.org" port 22
20-Oct-2022 15:35:39 debug2: ssh_connect_direct
20-Oct-2022 15:35:39 debug1: Connecting to obnavtest1.pih-emr.org [52.251.34.23] port 22.
20-Oct-2022 15:37:49 debug1: connect to address 52.251.34.23 port 22: Connection timed out
20-Oct-2022 15:37:49 ssh: connect to host obnavtest1.pih-emr.org port 22: Connection timed out
20-Oct-2022 15:37:49 Failing task since return code of [/usr/bin/ssh -vv jmiranda@obnavtest1.pih-emr.org sudo service tomcat9 restart] was 255 while expected 0
20-Oct-2022 15:37:49 Finished task 'sudo service tomcat9 restart' with result: Failed
20-Oct-2022 15:37:49 Running post build plugin 'Artifact Copier'
20-Oct-2022 15:37:49 Publishing an artifact: Latest WAR
20-Oct-2022 15:37:49 Unable to publish artifact [Latest WAR]: the source directory /opt/bamboo-home/local-working-dir/OPENBOXES-SDOD2-DJ/build/libs does not exist.
20-Oct-2022 15:37:49 The artifact hasn't been successfully published after 1.257 ms
20-Oct-2022 15:37:49 Running post build plugin 'npm Cache Cleanup'
20-Oct-2022 15:37:49 Running post build plugin 'NCover Results Collector'
20-Oct-2022 15:37:49 Running post build plugin 'Build Results Label Collector'
20-Oct-2022 15:37:49 Running post build plugin 'Clover Results Collector'
20-Oct-2022 15:37:49 Running post build plugin 'Docker Container Cleanup'
20-Oct-2022 15:37:49 Finalising the build...
20-Oct-2022 15:37:49 Stopping timer.
20-Oct-2022 15:37:49 Build OPENBOXES-SDOD2-DJ-171 completed.
20-Oct-2022 15:37:49 Running on server: post build plugin 'Build Hanging Detection Configuration'
20-Oct-2022 15:37:49 Running on server: post build plugin 'NCover Results Collector'
20-Oct-2022 15:37:49 Running on server: post build plugin 'Build Labeller'
20-Oct-2022 15:37:49 Running on server: post build plugin 'Clover Delta Calculator'
20-Oct-2022 15:37:49 Running on server: post build plugin 'Maven Dependencies Postprocessor'
20-Oct-2022 15:37:49 All post build plugins have finished
20-Oct-2022 15:37:49 Generating build results summary...
20-Oct-2022 15:37:49 Saving build results to disk...
20-Oct-2022 15:37:49 Store variable context...
20-Oct-2022 15:37:49 Finished building OPENBOXES-SDOD2-DJ-171.