gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-30 06:55:11 24 4
gpt4 key购买 nike

我已经使用 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)

最佳答案

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

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

谢谢蒂姆·韦 Open Bug 1401161

感谢 Redlab 对此进行调查:)

希望这个问题能尽快得到解决!

关于java - Jenkins 全新安装无法在 Fedora 25 上启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41975875/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com