Constant github authentication failure on OSX agent

Trying to setup an OSX agent to do checkouts via github, but am getting auth errors like this every time we try to run the project:

Error while applying patch: Failed to perform checkout on  agent:  '/Applications/ -c  core.askpass=/Applications/buildAgent/temp/globalTmp/pass5737997944512262942  fetch --progress origin  +refs/heads/base_project:refs/remotes/origin/base_project' command  failed.
stderr: fatal: Authentication failed

I have successfully connected to git from the command-line of the agent, using the same credentials as TC is setup to use. It is set to use https as ssh setup didn't work well for the agent, so we switched. Anyone have any ideas what I should be looking for or trying next? I can provide more information (logs, config, etc) if that would be helpful. Thanks for any and all help!


Comment actions Permalink

Switched back to ssh, got the default key working, created a new account on the OSX box to mimic the GitHub account, ssh key added, passphrase added to keychain. Everything works fine from a terminal on the agent, able to connect and clone from GitHub without any issues. Changed TC config over to use Default Private Key, run build, get new error:

Failed for the root 'Molokini-base_project'  #9: List remote refs failed: com.jcraft.jsch.JSchException: Auth fail

jetbrains.buildServer.vcs.VcsException:  List remote refs failed: com.jcraft.jsch.JSchException: Auth fail
at  jetbrains.buildServer.buildTriggers.vcs.git.OperationContext.wrapException(  
at  jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(  
at  jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getCurrentState(  
at  jetbrains.buildServer.buildTriggers.vcs.git.GitCollectChangesPolicy.getCurrentState(  
at  jetbrains.buildServer.vcs.impl.VcsRootInstancesManagerImpl$SVcsRootInstance.getCurrentState(  
at  jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.getCurrentState(  
at  jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.collectStatesForAllRoots(  
at  jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.getLoadChangesIntervals(  
at  jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.loadChangesNoLocking(  
at  jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.loadChangesBetweenRoots(  
at  jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChangesBetweenRoots(  
at  jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.loadChangesBetweenRoots(  
at  jetbrains.buildServer.vcs.impl.VcsChangesCollectorImpl$  
at  jetbrains.buildServer.vcs.impl.VcsChangesCollectorImpl$  
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at Source)
at  java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at  java.util.concurrent.ThreadPoolExecutor$ Source)
at Source)

What do you have to do to get this thing to actually work?! Does anyone actually use this? Why is something that should be fairly straight forward and simple, so difficult to configure? Can anyone help?


Comment actions Permalink

Hi Dean,

it seems like this is Please install the latest build of git-plugin from here: it contains the fix. To install it put into .BuildServer/plugins and restart the server.

Comment actions Permalink

If still actual:

Fix for the first issue is available as a recent patch, see
The second might need a detailed issue in the tracker.


Please sign in to leave a comment.