error fetching git repo

79 views
Skip to first unread message

Eyal Edri

unread,
Jun 6, 2011, 2:44:05 AM6/6/11
to jenkins...@googlegroups.com
Hi,

I've been seeing this error lately using the latest Jenkins (1.414) and
git plugin (1.9).
I've followed the guide on the plugin page and changed 'git' to the full
path of git, but it didn't solved the problem.

Usually running the same job again immediately after succeeds.

ERROR: Problem fetching from origin / origin - could be unavailable.
Continuing anyway
ERROR: (Underlying report) : Error performing command: /usr/bin/git fetch
-t git://git.company.com/users/proj/proj.git
+refs/heads/*:refs/remotes/origin/*
Command "/usr/bin/git fetch -t git://git.company.com/users/proj/proj.git
+refs/heads/*:refs/remotes/origin/*" returned status code 1: error: Ref
refs/remotes/origin/my_branch is at
8232c9c7c19a707bd31ca9b5b4ea89b97f0c2de5 but expected
893e07025ee5b94e80db1ca5354b7dbc530c139f
From git://git.company.com/users/proj/proj
! 893e070..8232c9c my_branch -> origin/my_branch (unable to update
local ref)

ERROR: Could not fetch from any repository
FATAL: Could not fetch from any repository
hudson.plugins.git.GitException: Could not fetch from any repository
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:950)
at hudson.plugins.git.GitSCM$2.invoke(GitSCM.java:908)
at hudson.FilePath.act(FilePath.java:758)
at hudson.FilePath.act(FilePath.java:740)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:908)
at
hudson.model.AbstractProject.checkout(AbstractProject.java:1181)
at
hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:536)
at
hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:424)
at hudson.model.Run.run(Run.java:1375)
at
hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:467)
at
hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:145)


is this a bug? Or it happens due to network errors?

Thanks,

Eyal.

Nigel Magnay

unread,
Jun 6, 2011, 3:44:46 AM6/6/11
to jenkins...@googlegroups.com
This is nothing to do with the plugin - this is the underlying repository that's broken somehow. All the output in the error is coming from the git commandline (you can verify this by cd-ing into the directory and retrying natively).

I'd check 'git --version' that it isn't some ancient version, and if it isn't probably google for the git error.

Eyal Edri

unread,
Jun 14, 2011, 10:27:38 AM6/14/11
to jenkins...@googlegroups.com

I noticed it happens when we create a new tag or branch on the git repo.

And the git plugin thinks it’s a code change via the poll and for some reason fails.

 

Is it a bug or misconfiguration of the plugin?

Can we avoid this error?

 

Thanks,

 

Eyal

Reply all
Reply to author
Forward
0 new messages