之后更新 Jenkins 连接失败
Update Jenkins failed to connect afterward
我在尝试更新我们的 Jenkins 服务器时遇到了噩梦。我们正在使用 Debian VM 来托管我们的服务器。上次更新是2年前。所以我克隆了 VM 以防万一(谢天谢地,因为有)。我下载了最新的 war 文件并将其移动到 /usr/share/jenkins 并完成了:
service jenkins stop
service jenkins start
我正在从 2.190.3 更新,java 8 仍然安装。
从那里开始,我尝试在浏览器上检查更新是否已完成,但最终出现了 502 错误的网关页面。
当我尝试时:
java -jar jenkins-cli.jar -s http://localhost:8080/ version
我得到:
java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:607)
at java.net.Socket.connect(Socket.java:556)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:357)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1340)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1315)
at hudson.cli.FullDuplexHttpStream.<init>(FullDuplexHttpStream.java:71)
at hudson.cli.CLI.plainHttpConnection(CLI.java:279)
at hudson.cli.CLI._main(CLI.java:271)
at hudson.cli.CLI.main(CLI.java:83)
但是当我检查 Jenkins 的状态时:
● jenkins.service - LSB: Start Jenkins at boot time
Loaded: loaded (/etc/init.d/jenkins; generated; vendor preset: enabled)
Active: active (exited) since Sat 2021-06-26 12:26:17 BST; 1min 9s ago
Docs: man:systemd-sysv-generator(8)
Process: 2269 ExecStop=/etc/init.d/jenkins stop (code=exited, status=0/SUCCESS)
Process: 2308 ExecStart=/etc/init.d/jenkins start (code=exited, status=0/SUCCESS)
所以我有点困惑。有什么想法吗?
遵循这些 steps 而不是下载 war 文件并移动它。
我在尝试更新我们的 Jenkins 服务器时遇到了噩梦。我们正在使用 Debian VM 来托管我们的服务器。上次更新是2年前。所以我克隆了 VM 以防万一(谢天谢地,因为有)。我下载了最新的 war 文件并将其移动到 /usr/share/jenkins 并完成了:
service jenkins stop
service jenkins start
我正在从 2.190.3 更新,java 8 仍然安装。
从那里开始,我尝试在浏览器上检查更新是否已完成,但最终出现了 502 错误的网关页面。
当我尝试时:
java -jar jenkins-cli.jar -s http://localhost:8080/ version
我得到:
java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:607)
at java.net.Socket.connect(Socket.java:556)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:357)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1340)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1315)
at hudson.cli.FullDuplexHttpStream.<init>(FullDuplexHttpStream.java:71)
at hudson.cli.CLI.plainHttpConnection(CLI.java:279)
at hudson.cli.CLI._main(CLI.java:271)
at hudson.cli.CLI.main(CLI.java:83)
但是当我检查 Jenkins 的状态时:
● jenkins.service - LSB: Start Jenkins at boot time
Loaded: loaded (/etc/init.d/jenkins; generated; vendor preset: enabled)
Active: active (exited) since Sat 2021-06-26 12:26:17 BST; 1min 9s ago
Docs: man:systemd-sysv-generator(8)
Process: 2269 ExecStop=/etc/init.d/jenkins stop (code=exited, status=0/SUCCESS)
Process: 2308 ExecStart=/etc/init.d/jenkins start (code=exited, status=0/SUCCESS)
所以我有点困惑。有什么想法吗?
遵循这些 steps 而不是下载 war 文件并移动它。