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://996b848f-72e6-4fd4-bb8c-301e0ea08cb4@127.0.0.1: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://996b848f-72e6-4fd4-bb8c-301e0ea08cb4@127.0.0.1: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
b709691-51a4-4bbb-a2db-2e577f651948@127.0.0.1:59838/ac/ipipe.git
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.
Hello Michal,
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:
-Djava.io.tmpdir=C:\temp
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.
—
Kind regards,
Rafael P. Sperafico
I have randomly the same problem on Windows 2012 R2, is there solution on this error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.