在Fedora 25上无法启动Jenkins全新安装

时间:2017-02-01 09:13:12

标签: java jenkins fedora-25

我使用dnf在Fedora 25上安装了Jenkins。但是,当我访问默认URL时,我看到503异常。

其他人是否看到过这种行为?我们是否需要在安装后更改任何配置或是否存在依赖关系?

Jenkins日志显示以下错误

Feb 01, 2017 6:34:01 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: Failed startup of context w.{,file:/usr/share/jenkins/webroot/},/usr/share/jenkins/webroot
java.io.FileNotFoundException: /usr/share/jenkins/webroot/WEB-INF/lib/mina-core.jar (Too many levels of symbolic links)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at org.eclipse.jetty.util.resource.FileResource.getInputStream(FileResource.java:286)
    at org.eclipse.jetty.webapp.JarScanner.matched(JarScanner.java:151)
    at org.eclipse.jetty.util.PatternMatcher.matchPatterns(PatternMatcher.java:100)
    at org.eclipse.jetty.util.PatternMatcher.match(PatternMatcher.java:82)
    at org.eclipse.jetty.webapp.JarScanner.scan(JarScanner.java:84)
    at org.eclipse.jetty.webapp.MetaInfConfiguration.preConfigure(MetaInfConfiguration.java:84)
    at org.eclipse.jetty.webapp.WebAppContext.preConfigure(WebAppContext.java:457)
    at winstone.HostConfiguration$1.preConfigure(HostConfiguration.java:166)
    at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:493)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:95)
    at org.eclipse.jetty.server.Server.doStart(Server.java:282)
    at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64)
    at winstone.Launcher.<init>(Launcher.java:152)
    at winstone.Launcher.main(Launcher.java:352)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at Main._main(Main.java:290)
    at Main.main(Main.java:104)

1 个答案:

答案 0 :(得分:1)

终于找到了答案!希望这对其他人也有帮助

cd /usr/share/jenkins/webroot/WEB-INF/lib
sudo ln -sf `build-classpath jtidy` jtidy.jar
sudo ln -sf `build-classpath apache-mina/mina-core` mina-core.jar

sudo systemctl start jenkins.service

谢谢Tim Way Open Bug 1401161

感谢Redlab对此进行调查:)

希望很快就能解决这个问题!