启动jenkins解锁后,报错“Failed to update the default Update Site 'default'”
报错信息:
// 报错信息
2019-11-05 02:01:43.970+0000 [id=40] INFO hudson.util.Retrier#start: The attempt #1 to do the action check updates server failed with an allowed exception:
java.net.SocketTimeoutException: connect timed outat 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:589)at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)at sun.net.NetworkClient.doConnect(NetworkClient.java:175)at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1105)at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)at sun.net.www.protocol.http.HttpURLConnection.followRedirect0(HttpURLConnection.java:2662)at sun.net.www.protocol.http.HttpURLConnection.followRedirect(HttpURLConnection.java:2584)at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1770)at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)at hudson.model.DownloadService.loadJSON(DownloadService.java:167)at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:189)at hudson.PluginManager.checkUpdatesServer(PluginManager.java:1762)at hudson.util.Retrier.start(Retrier.java:62)at hudson.PluginManager.doCheckUpdatesServer(PluginManager.java:1733)at jenkins.model.DownloadSettings$DailyCheck.execute(DownloadSettings.java:130)at hudson.model.AsyncPeriodicWork$1.run(AsyncPeriodicWork.java:101)at java.lang.Thread.run(Thread.java:745)
2019-11-05 02:01:43.971+0000 [id=40] INFO 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
2019-11-05 02:01:43.977+0000 [id=40] INFO hudson.util.Retrier#start: Attempted the action check updates server for 1 time(s) with no success
2019-11-05 02:01:43.985+0000 [id=27] WARNING hudson.model.UpdateCenter#updateDefaultSite: Upgrading Jenkins. Failed to update the default Update Site 'default'. Plugin upgrades may fail.
java.net.SocketTimeoutException: connect timed outat 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:589)at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)at sun.net.NetworkClient.doConnect(NetworkClient.java:175)at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1105)at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)at sun.net.www.protocol.http.HttpURLConnection.followRedirect0(HttpURLConnection.java:2662)at sun.net.www.protocol.http.HttpURLConnection.followRedirect(HttpURLConnection.java:2584)at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1770)at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)at hudson.model.DownloadService.loadJSON(DownloadService.java:167)at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:189)at hudson.model.UpdateCenter.updateDefaultSite(UpdateCenter.java:2456)at jenkins.install.SetupWizard.init(SetupWizard.java:168)at jenkins.install.InstallState$InitialSecuritySetup.initializeState(InstallState.java:166)at jenkins.model.Jenkins.setInstallState(Jenkins.java:1089)at jenkins.install.InstallUtil.proceedToNextStateFrom(InstallUtil.java:96)at jenkins.install.InstallState$Unknown.initializeState(InstallState.java:84)at jenkins.model.Jenkins$16.run(Jenkins.java:3277)at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)at jenkins.model.Jenkins$5.runTask(Jenkins.java:1118)at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)at java.lang.Thread.run(Thread.java:745)
2019-11-05 02:01:44.018+0000 [id=40] SEVERE hudson.PluginManager#doCheckUpdatesServer: Error checking update sites for 1 attempt(s). Last exception was: SocketTimeoutException: connect timed out
2019-11-05 02:01:44.058+0000 [id=40] INFO hudson.model.AsyncPeriodicWork$1#run: Finished Download metadata. 36,249 ms
2019-11-05 02:01:44.078+0000 [id=27] INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization
看到最后报错是因为
2019-11-05 02:01:43.985+0000 [id=27] WARNING hudson.model.UpdateCenter#updateDefaultSite: Upgrading Jenkins. Failed to update the default Update Site 'default'. Plugin upgrades may fail.
java.net.SocketTimeoutException: connect timed out
找到相关的配置文件
[root@auto-server02 jenkins]# cat /var/lib/jenkins/hudson.model.UpdateCenter.xml
<?xml version='1.1' encoding='UTF-8'?>
<sites><site><id>default</id><url>https://updates.jenkins.io/update-center.json</url></site>
考虑是url问题,修改为国内的源,也有朋友说是https的问题, 建议改为http,经过验证, 不是这个的原因,还是要修改源,如下:
[root@auto-server02 jenkins]# vi /var/lib/jenkins/hudson.model.UpdateCenter.xml<?xml version='1.1' encoding='UTF-8'?>
<sites><site><id>default</id><url>https://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/update-center.json</url></site>
</sites>
重启Jenkins
systemctl restart jenkins
此时再去登录jenkins,插件可以正确显示 , 报错不在存在,问题解决。
启动jenkins解锁后,报错“Failed to update the default Update Site 'default'”相关推荐
- mesos-master启动失败,报错Failed to load unknown flag 'quorum.rpmsave'
[现象] mesos启动失败,查看mesos状态报错: [root@hps102 ~]# systemctl status mesos-master ● mesos-master.service - ...
- jenkins打包报错Failed to connect to repository : Command “/usr/bin/git ls-remote -h -- http://git.c5game
Failed to connect to repository : Command "/usr/bin/git ls-remote -h -- http://git.c5game.com/c ...
- Docker启动失败报错Failed to start Docker Application Container Engine解决方案
在给一台腾讯云机器安装docker后发现无法启动,总是报错Failed to start Docker Application Container Engine,解决思路分享一下,以免各位童鞋踩坑. ...
- Ubuntu 20.04.3 启动sshd失败,报错:Failed to start OpenBSD Secure Shell server
环境: Ubuntu 20.04.3-live-server hyper-v虚拟环境 问题描述: Ubuntu 20.04.3 启动sshd失败,报错:Failed to start OpenBSD ...
- 【Linux部署】第一次部署ZooKeeper启动两次报错问题解决 Could not find or load main class+Failed to bind to /0.0.0.0:8080
使用 zkServer.sh start-foreground 启动可以看到报错信息,使用的时候还是用 zkServer.sh start 来启动服务. 1.第一次安装报错 安装包(apache-zo ...
- 启动 docker 容器报错 (iptables failed: iptables --wait -t filter -A DOCKER ! -i docker0 -o docker0
前言 centos7 phpstudy 1.2 linux 版 启动 docker 容器报错 shell> docker start nexus3 Error response from dae ...
- 启动docker容器报错 driver failed programming external connectivity on endpoint
启动docker容器报错 driver failed programming external connectivity on endpoint
- MYSQL—— 启动MYSQL 57 报错“The service MYSQL57 failed the most recent........等”的问题解决方式!...
每天开机之后,启动MYSQL Notifier就报错,第一次出现重启电脑后解决,后面的几天老是出现,重启电脑好几次都没有解决,感觉很烦人,一定要搞定这个问题找到原因,于是有了下文....... 启动M ...
- 启动jupyter notebook 报错:ImportError:DLL load failed,找不到指定模块的解决办法
问题描述: 今天点击jupyternotebook的时候发现,无法启动了.然后使用下面的命令,在cmd窗口也无法启动 jupyter notebook 报错信息(当时忘记截图了):DLL load f ...
- 解决Jenkins插件下载失败或下载慢或报错There were errors checking the update sites: SSLHandshakeException: sun.secu
jenkins下载插件速度非常慢,而且经常提示下载插件失败,有时候还会出现报错There were errors checking the update sites: SSLHandshakeExce ...
最新文章
- GPT-3模型为何难以复现?这也许是分布式AI框架的最优设计
- ubuntu php7 memcache,linux ubuntu下安装php memcache扩展
- js 光标移动到输入框最后位置函数
- 转换环境与执行环境、宿主环境与独立环境、宿主实现与独立实现
- Spring4.X系列之AOP基础篇
- 学习笔记之-MySql高级之sql优化
- JAVA程序中 + 号的使用
- 还在担心没有服务器做不了数据分析?这个免费资源看一下!
- python 中判断是不是通过break;跳出循环(一分钟读懂)
- 解释说明CCIE考试中的RIP问题
- word2019如何删除段落文字带颜色的背景
- 拔丝芋头的Java学习日记--Day2
- 接口测试是什么?为什么要做接口测试?
- ul阻燃标准有几个等级_阻燃等级划分标准
- 很厉害的 SQL函数Group_concat用法,
- STM32F103--BKP
- No executable file specified.Use the “file“ or “exec-file“ command.
- Spring5底层原理 学习笔记(二)AOP篇
- Java 位运算详解
- 云等保工作究竟要如何开展?