无法将jenkins升级到最新版本

时间:2016-06-05 22:18:21

标签: jenkins

我在Linux自己的容器中运行Jenkins 1.6.43。我想升级到最新的2.7版本。发行说明说我要做的就是下载最新的Jenkins,删除固定的插件并重启。

我做了同样的事情 - 使用wget下载停止的当前jenkins,删除所有固定插件然后启动它。我得到了"started jenkins - ok",但没有发生任何事情。我没有看到任何进程在运行!我尝试使用2.6和2.7版本,我看到相同的结果!如果我恢复到之前的1.643战争并重新启动,我看不到任何进程正在运行。

日志显示:

SEVERE: Container startup failed
java.io.IOException: Failed to start a listener: winstone.Ajp13ConnectorFactory
        at winstone.Launcher.spawnListener(Launcher.java:207)
        at winstone.Launcher.<init>(Launcher.java:148)
        at winstone.Launcher.main(Launcher.java:352)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at Main._main(Main.java:246)
        at Main.main(Main.java:91)
Caused by: java.lang.UnsupportedOperationException: AJP support is removed in Winstone 3.0 due to Jetty 9 not supporting AJP. For reverse proxying, please use HTTP instead of AJP.
        at winstone.Ajp13ConnectorFactory.start(Ajp13ConnectorFactory.java:31)
        at winstone.Launcher.spawnListener(Launcher.java:205)
        ... 8 more

Running from: /usr/lib/jenkins/jenkins.war
Jun 05, 2016 3:17:25 PM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Logging initialized @930ms
Jun 05, 2016 3:17:25 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Jun 05, 2016 3:17:25 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: Empty contextPath
Jun 05, 2016 3:17:25 PM winstone.Logger logInternal
INFO: Winstone shutdown successfully
Jun 05, 2016 3:17:25 PM winstone.Logger logInternal
SEVERE: Container startup failed
java.io.IOException: Failed to start a listener: winstone.Ajp13ConnectorFactory
        at winstone.Launcher.spawnListener(Launcher.java:207)
        at winstone.Launcher.<init>(Launcher.java:148)
        at winstone.Launcher.main(Launcher.java:352)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at Main._main(Main.java:246)
        at Main.main(Main.java:91)
Caused by: java.lang.UnsupportedOperationException: AJP support is removed in Winstone 3.0 due to Jetty 9 not supporting AJP. For reverse proxying, please use HTTP instead of AJP.
        at winstone.Ajp13ConnectorFactory.start(Ajp13ConnectorFactory.java:31)
        at winstone.Launcher.spawnListener(Launcher.java:205)
        ... 8 more

有人可以帮忙!!!如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

这帮助我解决了这个问题 设置JENKINS_AJP_PORT =&#34; -1&#34;在/ etc / sysconfig / jenkins然后我重新启动