This Jenkins instance appears to be offline

來源:互聯網
上載者:User

標籤:str   ...   connect   website   tps   option   eth   center   json   

tomcat 方式啟動jenkins時,報:This Jenkins instance appears to be offline and offers options to "Configure Proxy" or "Skip Plugin Installation"

網上有個文章:

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.

[[email protected] 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伺服器 直接 wget https://updates.jenkins.io/update-center.json

[[email protected] jenkins]# wget https://updates.jenkins.io/update-center.json--2017-09-19 12:35:45--  https://updates.jenkins.io/update-center.jsonResolving updates.jenkins.io... 52.202.51.185Connecting 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

[[email protected] jenkins]# wget http://updates.jenkins.io/update-center.json--2017-09-19 12:36:30--  http://updates.jenkins.io/update-center.jsonResolving updates.jenkins.io... 52.202.51.185Connecting to updates.jenkins.io|52.202.51.185|:80... connected.HTTP request sent, awaiting response... 301 Moved PermanentlyLocation: http://updates.jenkins.io/current/update-center.json [following]--2017-09-19 12:36:30--  http://updates.jenkins.io/current/update-center.jsonReusing existing connection to updates.jenkins.io:80.HTTP request sent, awaiting response... 302 FoundLocation: 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.jsonResolving mirrors.jenkins-ci.org... 52.202.51.185Reusing existing connection to updates.jenkins.io:80.HTTP request sent, awaiting response... 302 FoundLocation: 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.jsonResolving mirrors.tuna.tsinghua.edu.cn... 101.6.6.178, 2402:f000:1:416:101:6:6:177Connecting to mirrors.tuna.tsinghua.edu.cn|101.6.6.178|:80... connected.HTTP request sent, awaiting response... 200 OKLength: 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]

  確實是因為https的問題,把它修改成http,重啟jenkins就OK了

 

 

This Jenkins instance appears to be offline

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.