I'm trying to clone a git repository and I get the following error message. I'm not sure what that message means. I have tried a number of things to try to fix it, but I was not successful.
(java.lang.RuntimeException : com.atlassian.bamboo.repository.RepositoryException: Cannot fetch branch '(unresolved) fa960aa' from 'ssh://git@{StashURL}/cm/cpa-mc-windows.git' to source directory 'C:\Bamboo\xml-data\build-dir\CMC-PDD-JOB1\cpa-mc-windows'. com.atlassian.bamboo.plugins.git.GitCommandException: command C:\progra~2\Git\bin\git.exe ls-remote ssh://40fae8cf-0aae-4390-ac9e-b0b70ede372e@127.0.0.1:64977/cm/cpa-mc-windows.git failed with code 128. Working directory was [C:\Bamboo\xml-data\build-dir\CMC-PDD-JOB1\cpa-mc-windows]., 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])
Hi Chris,
This issue most likely due to the fact that you have not defined an ssh excecutable to the environment variables OR there is space in the path. A test you could do to isolate if this is an issue with bamboo, is to try to clone the repository manually from a command line and see if it works
Regards,
Sultan
Hi Sultan,
Thank you for your reply. That fixed part of the problem (The space in the path). I still had a similar issue but it was an a permissions issue with the temp folder for the agent.
Thanks,
Chris
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.