a********l 发帖数: 980 | 1 SA weekend patch reboot之后突然就没法build了...
build 的 console output-
> /usr/bin/git fetch --tags --progress /home/user/repositories/git/user.git
+refs/heads/*:refs/remotes/origin/*
ERROR: Error fetching remote repo 'origin'
hudson.plugins.git.GitException: Failed to fetch from /home/user/
repositories/git/user.git
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:735)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:983)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1016)
at hudson.scm.SCM.checkout(SCM.java:484)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1270)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(
AbstractBuild.java:609)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.
java:531)
at hudson.model.Run.execute(Run.java:1717)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:537)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Caused by: hudson.plugins.git.GitException: Command "/usr/bin/git fetch --
tags --progress /home/user/repositories/git/user.git +refs/heads/*:refs/
remotes/origin/*" returned status code 128:
stdout:
stderr: error: cannot run git-upload-pack '/home/user/repositories/git/user.
git': No such file or directory
fatal: unable to fork
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(
CliGitAPIImpl.java:1591)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.
launchCommandWithCredentials(CliGitAPIImpl.java:1379)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(
CliGitAPIImpl.java:86)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl
.java:324)
at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:733)
... 11 more
ERROR: Error fetching remote repo 'origin'
Finished: FAILURE
1. git和jenkins 在一个box上,应该不是ssh的问题
2. login bax as jenkins, run /usr/bin/git fetch --tags --progress /home/user
/repositories/git/user.git +refs/heads/*:refs/remotes/origin/* 没有问题
3. Upgrade jenkins到1.600, GIT client plugin 到1.17.1, GIT Plugin到2.3.5还是
不行
4. 新建Freestyle project
, gradle project,不在Configure System里specify JDK, 可以fetch-
Fetching upstream changes from /home/user/repositories/git/user.git
> /usr/bin/git --version # timeout=10
> /usr/bin/git fetch --tags --progress /home/user/repositories/git/user.git
+refs/heads/*:refs/remotes/origin/*
> /usr/bin/git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> /usr/bin/git rev-parse refs/remotes/origin/origin/master^{commit} #
timeout=10
Checking out Revision c6223c5c4693dc9be933b9e4b2fa915fea311891 (refs/remotes
/origin/master)
> /usr/bin/git config core.sparsecheckout # timeout=10
> /usr/bin/git checkout -f c6223c5c4693dc9be933b9e4b2fa915fea311891
> /usr/bin/git rev-list 050ac61d242b61ab88f533932820cab4e44db7b7 # timeout=
10
[Gradle] - Launching build.
[PROJECT] $ /var/lib/jenkins/tools/hudson.plugins.gradle.GradleInstallation/
Main/bin/gradle
ERROR: JAVA_HOME is not set and no 'java' command could be found in your
PATH.
specify JDK之后就不能fetch, same error
5. 新建Maven project 不work, same error
哪位大牛有啥clue可以further debug 一下。。。?bow~ |
ET 发帖数: 10701 | 2 stackoverflow is your rescue.
git
【在 a********l 的大作中提到】![](/moin_static193/solenoid/img/up.png) : SA weekend patch reboot之后突然就没法build了... : build 的 console output- : > /usr/bin/git fetch --tags --progress /home/user/repositories/git/user.git : +refs/heads/*:refs/remotes/origin/* : ERROR: Error fetching remote repo 'origin' : hudson.plugins.git.GitException: Failed to fetch from /home/user/ : repositories/git/user.git : at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:735) : at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:983) : at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1016)
|
c*********e 发帖数: 16335 | 3 想想你改了些什么?
git
【在 a********l 的大作中提到】![](/moin_static193/solenoid/img/up.png) : SA weekend patch reboot之后突然就没法build了... : build 的 console output- : > /usr/bin/git fetch --tags --progress /home/user/repositories/git/user.git : +refs/heads/*:refs/remotes/origin/* : ERROR: Error fetching remote repo 'origin' : hudson.plugins.git.GitException: Failed to fetch from /home/user/ : repositories/git/user.git : at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:735) : at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:983) : at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1016)
|
a********l 发帖数: 980 | 4 那里也发贴了
【在 ET 的大作中提到】![](/moin_static193/solenoid/img/up.png) : stackoverflow is your rescue. : : git
|
a********l 发帖数: 980 | 5 上上周五还好用的,周末SA一patch,一reboot就不行了。。。我自己啥都没改啊...
【在 c*********e 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 想想你改了些什么? : : git
|
c*********e 发帖数: 16335 | 6 patch是什么?
【在 a********l 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 上上周五还好用的,周末SA一patch,一reboot就不行了。。。我自己啥都没改啊...
|
a********l 发帖数: 980 | 7 把server上的一些模块升级一下,SA说是改了unix core 和rsysinfo 应该没系
【在 c*********e 的大作中提到】![](/moin_static193/solenoid/img/up.png) : patch是什么?
|
c*********e 发帖数: 16335 | 8 去这个目录里找这个文件存在吗?
'/home/user/repositories/git/user.git': No such file or directory
【在 a********l 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 把server上的一些模块升级一下,SA说是改了unix core 和rsysinfo 应该没系
|
a********l 发帖数: 980 | 9 存在,如果新建free style project, 不specify JDK, 用 gradle的话可以fetch,但
specify JDK后就不能fetch了
【在 c*********e 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 去这个目录里找这个文件存在吗? : '/home/user/repositories/git/user.git': No such file or directory
|
b******7 发帖数: 123 | 10 jdk升级了?
【在 a********l 的大作中提到】![](/moin_static193/solenoid/img/up.png) : 存在,如果新建free style project, 不specify JDK, 用 gradle的话可以fetch,但 : specify JDK后就不能fetch了
|
a********l 发帖数: 980 | 11 没。。。一直都是jdk_l.7_64l55之类的
【在 b******7 的大作中提到】![](/moin_static193/solenoid/img/up.png) : jdk升级了?
|