2015-06-30 124 views
18

我詹金斯建设取出码突然不工作now.The错误如下: -詹金斯无法从远程混帐

Fetching changes from the remote Git repository 
> git config remote.origin.url <url> # timeout=10 
ERROR: Error fetching remote repo 'origin' 
hudson.plugins.git.GitException: Failed to fetch from <url> 
    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:622) 
    at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) 
    at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528) 
    at hudson.model.Run.execute(Run.java:1759) 
    at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529) 
    at hudson.model.ResourceController.execute(ResourceController.java:89) 
    at hudson.model.Executor.run(Executor.java:240) 
Caused by: hudson.plugins.git.GitException: Command "git config remote.origin.url <url> returned status code 4: 
stdout: 
stderr: error: failed to write new configuration file .git/config.lock 

我无法找出根本原因。 我已经检查这是/ var/lib中/詹金斯詹金斯主文件夹的权限和所有权: - drwxrwxrwx 17个詹金斯詹金斯4096 6月25日04:30詹金斯

权限和詹金斯的工作区文件夹内。git的文件夹的所有权是: - drwxrwxrwx 8 jenkins jenkins 4096 Jun 30 21:51 .git

请指导我解决问题。

+4

我寻找一个解决这个问题总是让我担心的权限,但问题不在于。这是从机上的磁盘大小。/dev/sda2用完了100%,因为詹金斯无法取出代码。我从/ tmp文件夹中删除了不需要的文件,这给了我/ dev/sda2中的一些空间。希望这有助于面临类似问题的人们。 – nishat

回答

3

尝试清理工作区文件并重建。

12

当詹金斯虚拟机的磁盘空间不足时经验丰富。清理它,不再看到这个问题。

+0

我如何清理,我应该清理什么? – Oni1

+0

看看你有的文件,并尝试了解你不再需要什么 – thepolina

+0

通常清理/ tmp文件夹是安全的。 – nishat

0

我通过将用户帐户控制设置设置为“从不通知”并重新启动计算机并将节点重新连接到Jenkins来解决了此错误。

+0

对我来说重启帮助... –

-1

我看到相同的问题,但磁盘空间和虚拟机内存不是问题。什么固定对我来说是使工作再克隆的构建:

  1. 去就业的“配置”页
  2. 在源代码管理→混帐→附加行为,添加行为“消灭仓库&力克隆”
  3. 保存
  4. 构建