Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-20086

Bamboo Remote Agent cannot delete bamboo-ssh.9900a68e.sh from temporary directory

    XMLWordPrintable

Details

    Description

      Issue

      When running multiple Bamboo Remote Agent(s) on the same box, Remote Agent temporary directory must be set up individually, pointing to a distinct location path, otherwise when running a Git Source Code Checkout builds may conflict with:

      Caused by: java.io.IOException: Unable to delete already existing file: /tmp/bamboo-ssh.9900a68e.sh
      

      How to replicate

      When installing a Bamboo Remote Agent the property java.io.tmpdir does not get applied to the Remote Agent:

      java -Dbamboo.home=/opt/atlassian/product/bamboo/6.x.x/remote/ \
           -Djava.io.tmpdir=/opt/atlassian/product/bamboo/6.x.x/remote/tmp/ \
           -jar atlassian-bamboo-agent-installer-6.x.x.jar http://192.168.15.4:8085/agentServer/ start
      

      Workaround

      Being required to append -Djava.io.tmpdir=/opt/atlassian/product/bamboo/6.x.x/remote/tmp/ to wrapper.conf and restart Bamboo Remote Agent:

      # The Bamboo Agent home configuration file
      wrapper.java.additional.1=-Dbamboo.home=/opt/atlassian/product/bamboo/6.x.x/remote/
      wrapper.java.additional.2=-Dbamboo.agent.ignoreServerCertName=false
      #wrapper.java.additional.3=-Dlog4j.configuration=
      #wrapper.java.additional.3=-agentlib:yjpagent
      wrapper.java.additional.3=-Djava.io.tmpdir=/opt/atlassian/product/bamboo/6.x.x/remote/tmp/
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rsperafico Rafael Sperafico (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: