日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

This Jenkins instance appears to be offline

發(fā)布時(shí)間:2025/7/14 编程问答 28 豆豆
生活随笔 收集整理的這篇文章主要介紹了 This Jenkins instance appears to be offline 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

tomcat 方式啟動(dòng)jenkins時(shí),報(bào):This Jenkins instance appears to be offline and offers options to "Configure Proxy" or "Skip Plugin Installation"

網(wǎng)上有個(gè)帖子:

In my case, it has something to do with SSL. I manage to fix it by editing `/var/lib/jenkins/hudson.model.UpdateCenter.xml` and change url to use `http` instead of `https`.

Restart jenkins and reload the website, it no longer shows offline.

[root@server-test jenkins]# find / -name "hudson.model.UpdateCenter.xml" /work/data/jenkins/hudson.model.UpdateCenter.xml

 

<?xml version='1.0' encoding='UTF-8'?> <sites><site><id>default</id><url>https://updates.jenkins.io/update-center.json</url></site> </sites>

在jenkins服務(wù)器 直接 wget?https://updates.jenkins.io/update-center.json

[root@server-test jenkins]# wget https://updates.jenkins.io/update-center.json --2017-09-19 12:35:45-- https://updates.jenkins.io/update-center.json Resolving updates.jenkins.io... 52.202.51.185 Connecting to updates.jenkins.io|52.202.51.185|:443... connected. ERROR: certificate common name “pkg.jenkins.io” doesn’t match requested host name “updates.jenkins.io”. To connect to updates.jenkins.io insecurely, use ‘--no-check-certificate’.

wget?http://updates.jenkins.io/update-center.json

[root@server-test jenkins]# wget http://updates.jenkins.io/update-center.json --2017-09-19 12:36:30-- http://updates.jenkins.io/update-center.json Resolving updates.jenkins.io... 52.202.51.185 Connecting to updates.jenkins.io|52.202.51.185|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: http://updates.jenkins.io/current/update-center.json [following] --2017-09-19 12:36:30-- http://updates.jenkins.io/current/update-center.json Reusing existing connection to updates.jenkins.io:80. HTTP request sent, awaiting response... 302 Found Location: http://mirrors.jenkins-ci.org/updates/current/update-center.json [following] --2017-09-19 12:36:31-- http://mirrors.jenkins-ci.org/updates/current/update-center.json Resolving mirrors.jenkins-ci.org... 52.202.51.185 Reusing existing connection to updates.jenkins.io:80. HTTP request sent, awaiting response... 302 Found Location: http://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/current/update-center.json [following] --2017-09-19 12:36:31-- http://mirrors.tuna.tsinghua.edu.cn/jenkins/updates/current/update-center.json Resolving mirrors.tuna.tsinghua.edu.cn... 101.6.6.178, 2402:f000:1:416:101:6:6:177 Connecting to mirrors.tuna.tsinghua.edu.cn|101.6.6.178|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1229441 (1.2M) [application/json] Saving to: “update-center.json”100%[=====================================================================================================================================================>] 1,229,441 2.43M/s in 0.5s 2017-09-19 12:36:32 (2.43 MB/s) - “update-center.json” saved [1229441/1229441]

  確實(shí)是因?yàn)閔ttps的問(wèn)題,把它修改成http,重啟jenkins就OK了

 

?

轉(zhuǎn)載于:https://www.cnblogs.com/wujuan321/p/7551232.html

總結(jié)

以上是生活随笔為你收集整理的This Jenkins instance appears to be offline的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。