Running Bamboo 5.9.1 on Windows 7/x64
Executing jobs on a remote Bamboo agent (starting from the CLI) is working without problems.
After installing the Bamboo agent as a service (using InstallBambooAgent-NT.bat and StartBambooAgent-NT.bat as administrator) the following errors are produced when starting a build:
|18-Aug-2015 10:07:35||Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'|
|18-Aug-2015 10:07:35||Updating source code to revision: 2092046078a1e95ff4427733910c2c35ab6f3188|
|18-Aug-2015 10:07:35||C:\Users\bu62ein\AppData\Local\Programs\Git\cmd\git.exe version|
|18-Aug-2015 10:07:35||C:\Users\bu62ein\AppData\Local\Programs\Git\cmd\git.exe log -1 --encoding=UTF-8 --format=%H HEAD|
|18-Aug-2015 10:07:36||C:\Users\bu62ein\AppData\Local\Programs\Git\cmd\git.exe ls-remote ssh://firstname.lastname@example.org:59838/ac/ipipe.git|
|18-Aug-2015 10:07:36||Cannot fetch branch '(unresolved) master' from 'ssh://git@EINAPPL32:7999/ac/ipipe.git' to source directory 'D:\GIT\bamboo\build\_git-repositories-cache\1bf8fe6b220021b84b29bfe98989b7a6fed81ba6'. com.atlassian.bamboo.plugins.git.GitCommandException: command C:\Users\bu62ein\AppData\Local\Programs\Git\cmd\git.exe ls-remote ssh://email@example.com:59838/ac/ipipe.git failed with code 128. Working directory was [D:\GIT\bamboo\build\_git-repositories-cache\1bf8fe6b220021b84b29bfe98989b7a6fed81ba6]., stderr:[error: cannot spawn C:\Windows\system32\config\systemprofile\AppData\Local\Temp\bamboo-ssh.41538fd5.bat: No such file or directory, fatal: unable to fork]|
When running the command from the CLI the following error is returned:
D:\tmp>C:\Users\bu62ein\AppData\Local\Programs\Git\cmd\git.exe ls-remote ssh://4
ssh: connect to host 127.0.0.1 port 59838: Bad file number
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
What can be the problem? I would like start using the Service so I am not depending on starting batch files to keep the bamboo agent up and running.
stderr:[error: cannot spawn C:\Windows\system32\config\systemprofile\AppData\Local\Temp\bamboo-ssh.41538fd5.bat: No such file or directory, fatal: unable to fork]
The issue relates to Bamboo not being able to write to the temporary directory. In this case, please:
If running builds against the Bamboo server and/or Bamboo Local Agent(s)
edit <bamboo-install>/bin/setenv.sh (Linux/MacOS), setenv.bat (Win) and append the following property to JVM_SUPPORT_RECOMMENDED_ARGS=
# on Linux/MacOS -Djava.io.tmpdir=/opt/temp # on Windows -Djava.io.tmpdir=C:\temp
edit <bamboo-remote-agent>/conf/wrapper.conf and add the following:
# on LinuxMacOS wrapper.java.additional.X=-Djava.io.tmpdir=/opt/temp # on Windows wrapper.java.additional.X=-Djava.io.tmpdir=C:\temp
Where X is the next number in sequence
Run tomcat7w //ES//%SERVICENAME% (prior Bamboo v5.10.0).
Run tomcat8w //ES//%SERVICENAME% (Bamboo v5.10.0 and above)
Click on the Java tab and add these to the list of current startup options:
Note: Each option must be on its own line.
Apply the changes and restart the Bamboo service for those to take effect.
Please, make sure the directory provided as temporary directory exists and the user running Bamboo has full permissions against it.
Rafael P. Sperafico
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs