Jenkins hudson.util.IOException2:远程文件操作失败

时间:2012-09-24 13:50:31

标签: java jenkins

我正在使用CentOS 5和Jenkins 1.430。当我尝试构建时,我收到一个错误:

hudson.util.IOException2: remote file operation failed: /home/build/jenkins/workspace/tests at hudson.remoting.Channel@6c89db9a:build-test
at hudson.FilePath.act(FilePath.java:754)
    at hudson.FilePath.act(FilePath.java:740)
    at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:705)
    at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:654)
    at hudson.model.AbstractProject.checkout(AbstractProject.java:1193)
    at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:566)
    at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:454)
    at hudson.model.Run.run(Run.java:1376)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    at hudson.model.ResourceController.execute(ResourceController.java:88)
    at hudson.model.Executor.run(Executor.java:230)
Caused by: java.io.IOException: Remote call on build-test failed
    at hudson.remoting.Channel.call(Channel.java:690)
    at hudson.FilePath.act(FilePath.java:747)
    ... 10 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class hudson.model.Hudson
    at hudson.scm.SubversionWorkspaceSelector.syncWorkspaceFormatFromMaster(SubversionWorkspaceSelector.java:85)
    at hudson.scm.SubversionSCM.createSvnClientManager(SubversionSCM.java:782)
    at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:725)
    at hudson.scm.SubversionSCM$CheckOutTask.invoke(SubversionSCM.java:712)
    at hudson.FilePath$FileCallableWrapper.call(FilePath.java:1995)
    at hudson.remoting.UserRequest.perform(UserRequest.java:118)
    at hudson.remoting.UserRequest.perform(UserRequest.java:48)
    at hudson.remoting.Request$2.run(Request.java:287)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
Email was triggered for: Failure
Sending email for trigger: Failure
An attempt to send an e-mail to empty list of recipients, ignored.
Finished: FAILURE

这个主题似乎说Master / Slave出了问题: https://groups.google.com/forum/?fromgroups=#!topic/jenkinsci-issues/MaMqjK3iW8Y

但它并没有真正提供解决方案。 Jenkin奴隶说它已经连接起来,它反映在Jenkins项目页面上。

4 个答案:

答案 0 :(得分:9)

很明显禁用了奴隶并重新启动它有效。的Bleh

答案 1 :(得分:2)

如果您不想重启,那么只需在奴隶上杀死这些进程

$ ps -ef | grep java
1006     11948 11930  0 Jul17 ?        00:00:00 bash -c cd "/mnt/jenkins" && java  -jar slave.jar
1006     11949 11948  0 Jul17 ?        00:02:55 java -jar slave.jar

然后再次启动奴隶代理

答案 2 :(得分:0)

得到了一个非常相似的错误,并通过将“发布于ssh”插件从1.14恢复为1.13来修复它

我们的Jenkins服务器在Debian 8.2(Jessie)上运行,我们的奴隶在Ubuntu 14.04下运行(可靠)

答案 3 :(得分:0)

终止奴隶并再次启动它。工作完美。