【问题标题】:Not able to upgrade jenkins to the latest version无法将詹金斯升级到最新版本
【发布时间】:2016-06-05 22:18:20
【问题描述】:

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

我也这样做了——停止当前的 jenkins,使用 wget 下载,删除所有固定的插件,然后启动它。我收到"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

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

【问题讨论】:

  • 在 /etc/sysconfig/jenkins 中设置 JENKINS_AJP_PORT="-1" 解决了问题,我可以成功启动 Jenkins 并登录,但日志文件中还有其他严重错误

标签: jenkins


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-07
    • 2021-10-20
    相关资源
    最近更新 更多