由于方法deleteWinstoneTempContents,Jenkins 2.32.1启动失败

时间:2017-08-13 22:37:03

标签: ubuntu jenkins service

我试图启动我的Jenkins 2.32.1实例(作为服务或手动)并且每个命令都失败了。在jenkins.log中,我可以看到这些消息:

Aug 14, 2017 9:15:03 AM Main deleteWinstoneTempContents
WARNING: Failed to delete the temporary Winstone file /tmp/winstone/jenkins.war
Aug 14, 2017 9:15:03 AM Main _main
WARNING: Failed to delete the temporary file /tmp/dummy5617365540558096686dummy
Exception in thread "main" java.lang.ClassNotFoundException: winstone.Launcher
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at Main._main(Main.java:224)
        at Main.main(Main.java:112)
Running from: /usr/share/jenkins/jenkins.war
Aug 14, 2017 9:15:29 AM Main deleteWinstoneTempContents
WARNING: Failed to delete the temporary Winstone file /tmp/winstone/jenkins.war
Aug 14, 2017 9:15:29 AM Main _main
WARNING: Failed to delete the temporary file /tmp/dummy9095626099550598267dummy
Exception in thread "main" java.lang.ClassNotFoundException: winstone.Launcher
        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at Main._main(Main.java:224)
        at Main.main(Main.java:112)

让我感到惊讶的是机器上没有/tmp/dummy9095626099550598267dummy/tmp/winstone/jenkins.war。关于如何再次启动Jenkins实例的任何想法?

提前致谢。

1 个答案:

答案 0 :(得分:0)

我也遇到了同样的问题。只有在发出重启命令时才会发生这种情况 sudo service jenkins restart

虽然我无法理解错误背后的原因。而是使用重启,我使用停止和启动命令工作正常。

sudo service jenkins stop

sudo service jenkins start