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.

[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服务器 直接 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]

  确实是因为https的问题,把它修改成http,重启jenkins就OK了

 

This Jenkins instance appears to be offline的更多相关文章

  1. Jenkins - Linux下启动Jenkins报错hudson.WebAppMain#contextDestroyed: Shutting down a Jenkins instance that was still starting up

    报错截图 在Linux下直接运行jenkins.war报错,导致启动失败 报错原因 运行端口已被其他进程占用 解决方法 换个启动端口就可以啦!

  2. Jenkins简明入门(一) -- 安装

    如今Jenkins官网的Guide里使用了Docker,网上很多Jenkins入门教程都已过时了,所以写这一篇入门教程. 官网的Guide Link是:https://jenkins.io/doc/p ...

  3. iOS自动化探索(八)Mac上的Jenkins安装

    安装Jenkins 首先检查是否有Jenkins依赖的java环境 java -version 出现java version "1.8.xx"说明已经安装了java Jackeys ...

  4. Java接口自动化测试实战笔记

    综述 代码管理工具Git 测试框架 TestNG 测试报告 Mock 接口框架 HTTP 协议接口 测试框架 HttpClient SprintBoot 自动化测试开发 数据持久层框架 MyBatis ...

  5. Jenkins Docker 插件

    原文地址:https://wiki.jenkins.io/display/JENKINS/Docker+Plugin Created by magnayn -, last modified by Ni ...

  6. How to use groovy script on jenkins

    1. Install groovy plugin 2. Add a step of groovy. (normal & systerm) 3. Execute groovy script im ...

  7. Jenkins邮件配置,实现邮件发送策略(可实现每个Job对应不同的发送邮箱)

    前言: 首先,要有一个用来发送的邮箱,首选网易!参考:http://www.cnblogs.com/EasonJim/p/6051636.html,这里我注册了网易的免费企业邮箱. 并且我新建没多个邮 ...

  8. Jenkins 2.26 发布,可扩展的持续集成引擎

    Jenkins 2.26 发布了.Jenkins 主要用于持续.自动地构建/测试软件项目,如CruiseControl与DamageControl,监控一些定时执行的任务.更新内容: Allow Co ...

  9. Jenkins: 使用groovy + job-dsl 创建并触发job

    Jenkins: 使用groovy + job-dsl 创建并触发job 背景: 我们的 Automation 测试脚本需要在10个不同语言的机器上跑,本地化测试产品. 我们用Jenkins启动测试执 ...

随机推荐

  1. python select poll epoll的区别

    select 优点:为最早的异步io处理模块,他可以再linux上和windows上使用,跨平台兼容性好,而poll和epoll都不能在windows系统环境中使用. 缺点:select的机制决定了他 ...

  2. 回溯算法 LEETCODE别人的小结 一八皇后问题

    回溯算法实际上是一个类似枚举的搜索尝试过程,主要是在搜索尝试中寻找问题的解,当发现已不满足求解条件时,就回溯返回,尝试别的路径. 回溯法是一种选优搜索法,按选优条件向前搜索,以达到目的.但是当探索到某 ...

  3. Java:<获取>、<删除>指定文件夹及里面所有文件

    工具类代码如下: 一.获取 public Class Test{ //定义全局变量,存放所有文件夹下的文档 List<String> fileList ; public List<S ...

  4. 项目导入时报错:The import javax.servlet.http.HttpServletRequest cannot be resolved 解决方法

    Error: The import javax.servlet cannot be resolved The import javax.servlet.http.HttpServletRequest ...

  5. Cracking The Coding Interview 4.6

    //原文: // // Design an algorithm and write code to find the first common ancestor of two nodes in a b ...

  6. SQL-29 使用join查询方式找出没有分类的电影id以及名称

    题目描述 film表 字段 说明 film_id 电影id title 电影名称 description 电影描述信息 CREATE TABLE IF NOT EXISTS film ( film_i ...

  7. ssh免密登陆

    1:建立新用户hadoop 2:进入/home/hadoop/.ssh/目录 3:所有要免密连接的终端运行: ssh-keygen -t rsa 三次回车后会产生:id_rsa,id_rsa.pub两 ...

  8. Office 365 - For security reasons DTD is prohibited in this XML document

    博客地址:http://blog.csdn.net/FoxDave 今天在测试东西的时候发现在本机运行CSOM代码或使用Office 365 PowerShell时,出现了如下错误: Connec ...

  9. 18-10-18 Python 思维导图 很棒的

    赠送 14 张 Python 知识点思维导图   来源 | Python学习联盟 本文主要涵盖了 Python 编程的核心知识(暂不包括标准库及第三方库). 按顺序依次展示了以下内容的一系列思维导图: ...

  10. winform dataGridView中的button点击判断

    private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.RowI ...