解决“该Jenkins似乎已离线”

本文介绍了如何处理Jenkins因连接更新服务器超时而显示离线的状态。通过更改更新中心URL到清华大学开源软件镜像站,或修改default.json文件替换更新源,可以解决此问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

查看Jenkins日志,其实是连接updateserver超时导致的:

# vim /var/log/jenkins/jenkins.log
信息: The attempt #1 to do the action check updates server failed with an allowed exception:
java.net.SocketTimeoutException: connect timed out
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
……
二月 14, 2019 11:01:15 下午 hudson.util.Retrier start
信息: Calling the listener of the allowed exception 'connect timed out' at the attempt #1 to do the action check updates server
二月 14, 2019 11:01:15 下午 hudson.util.Retrier start
信息: Attempted the action check updates server for 1 time(s) with no success
二月 14, 2019 11:01:15 下午 hudson.PluginManager doCheckUpdatesServer
严重: Error checking update sites for 1 attempt(s). Last exception was: SocketTimeoutException: connect timed out
二月 14, 2019 11:01:15 下午 hudson.model.AsyncPeriodicWork$1 run
信息: Finished Download metadata. 20,727 ms
二月 14, 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值