java Jenkins hudson.util.IOException2:远程文件操作失败
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12566457/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Jenkins hudson.util.IOException2: remote file operation failed
提问by user1636922
I'm using CentOS 5 and Jenkins 1.430. When I try to build, I get an error:
我正在使用 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.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
This thread seems to say it's something wrong with Master/Slave: https://groups.google.com/forum/?fromgroups=#!topic/jenkinsci-issues/MaMqjK3iW8Y
这个帖子似乎说主/从有问题:https: //groups.google.com/forum/?fromgroups =#!topic/jenkinsci-issues/MaMqjK3iW8Y
But it doesn't really offer a solution. The Jenkin slave says it's connected and it's reflected on the Jenkins project page.
但它并没有真正提供解决方案。Jenkin slave 说它已连接并反映在 Jenkins 项目页面上。
采纳答案by user1636922
Well apparently disabling the slave and rebooting it worked. bleh
好吧,显然禁用从站并重新启动它起作用了。布莱
回答by user892729
If you don't want to reboot then simply kill these processes on the slave
如果您不想重新启动,那么只需在从站上终止这些进程
$ 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
Then launch the slave agent again
然后再次启动从代理
回答by Balmipour
Got a quite similar error, and fixed it by reverting the "publish over ssh" plug-in from 1.14 to 1.13
得到了一个非常相似的错误,并通过将“通过 ssh 发布”插件从 1.14 恢复到 1.13 来修复它
Our Jenkins server is run on Debian 8.2 (Jessie), and our slaves under Ubuntu 14.04 (trusty)
我们的 Jenkins 服务器在 Debian 8.2 (Jessie) 上运行,而我们的奴隶在 Ubuntu 14.04 (trusty) 下运行
回答by sunil
Terminated the slave and launched it again. Working perfectly.
终止奴隶并再次启动它。完美运行。