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/Xcode.app/Contents/Developer/usr/libexec/git-core/git -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!

D.Mills

3 comments
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(OperationContext.java:134)  
at  jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(GitVcsSupport.java:500)  
at  jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getCurrentState(GitVcsSupport.java:132)  
at  jetbrains.buildServer.buildTriggers.vcs.git.GitCollectChangesPolicy.getCurrentState(GitCollectChangesPolicy.java:138)  
at  jetbrains.buildServer.vcs.impl.VcsRootInstancesManagerImpl$SVcsRootInstance.getCurrentState(VcsRootInstancesManagerImpl.java:95)  
at  jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.getCurrentState(VcsChangesLoaderImpl.java:162)  
at  jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.collectStatesForAllRoots(VcsChangesLoaderImpl.java:77)  
at  jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.getLoadChangesIntervals(VcsChangesLoaderImpl.java:217)  
at  jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.loadChangesNoLocking(VcsChangesLoaderImpl.java:186)  
at  jetbrains.buildServer.vcs.impl.VcsChangesLoaderImpl.loadChangesBetweenRoots(VcsChangesLoaderImpl.java:44)  
at  jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChangesBetweenRoots(VcsManagerImpl.java:194)  
at  jetbrains.buildServer.serverSide.impl.auth.SecuredVcsManager.loadChangesBetweenRoots(SecuredVcsManager.java:88)  
at  jetbrains.buildServer.vcs.impl.VcsChangesCollectorImpl$1.call(VcsChangesCollectorImpl.java:5)  
at  jetbrains.buildServer.vcs.impl.VcsChangesCollectorImpl$1.call(VcsChangesCollectorImpl.java:2)  
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at  java.util.concurrent.FutureTask.run(Unknown Source)
at  java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at  java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at  java.lang.Thread.run(Unknown 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?

D.Mills

0
Comment actions Permalink

Hi Dean,

it seems like this is http://youtrack.jetbrains.com/issue/TW-25832. Please install the latest build of git-plugin from here: http://teamcity.jetbrains.com/viewType.html?buildTypeId=bt395&tab=buildTypeStatusDiv it contains the fix. To install it put jetbrains.git.zip into .BuildServer/plugins and restart the server.

0
Comment actions Permalink

If still actual:

Fix for the first issue is available as a recent patch, see http://youtrack.jetbrains.com/issue/TW-25832
The second might need a detailed issue in the tracker.

0

Please sign in to leave a comment.