[英]Jenkins cannot access git
After a crash of the Jenkins server, I cannot start my projects builds. 在Jenkins服务器崩溃后,我无法启动我的项目构建。
I get this weird message. 我收到这个奇怪的消息。 Any clues? 有线索吗?
hudson.plugins.git.GitException: Command "git fetch --tags --progress origin +refs/heads/master:refs/remotes/origin/master --prune" returned status code 128:
stdout:
stderr: error: object file .git/objects/10/f103eb6e4590be766e67ca961e65f5c4e6836c is empty
error: object file .git/objects/10/f103eb6e4590be766e67ca961e65f5c4e6836c is empty
fatal: loose object 10f103eb6e4590be766e67ca961e65f5c4e6836c (stored in .git/objects/10/f103eb6e4590be766e67ca961e65f5c4e6836c) is corrupt
fatal: The remote end hung up unexpectedly
Had the same a few times. 有几次相同。
Sometimes the answer of @"Mukesh M" may help - that is a decent approach. 有时@“Mukesh M”的回答可能有所帮助 - 这是一个不错的方法。 In other cases, the following approach helped me a few times. 在其他情况下,以下方法帮助了我几次。
First visit the /var/jenkins_home/caches folder. 首先访问/ var / jenkins_home / caches文件夹。 Delete the git-hashes. 删除git-hashes。 The next start of the job will retrieve everything from git again so the job will run smooth again. 下一次开始工作将再次从git中检索所有内容,以便作业再次顺利运行。 So omitting the git cache. 所以省略git缓存。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.