This Jenkins instance appears to be offline

Source: Internet
Author: User

Tomcat mode when starting Jenkins, reported: This Jenkins instance appears to be offline and offers options to "Configure Proxy" or "Skip Plugin Installation "

There is a post online:

In the My case, it had something to does with SSL. I manage to fix it by editing '/var/lib/jenkins/hudson.model.updatecenter.xml ' and the 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>

Directly wget HTTPSon the Jenkins server://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 ... 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]

Really because of the problem of HTTPS, modify it to HTTP, restart Jenkins OK

 

This Jenkins instance appears to be offline

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.