Jenkins为什么说“此Jenkins实例似乎处于脱机状态"? [英] Why does Jenkins say "This Jenkins instance appears to be offline"

查看:232
本文介绍了Jenkins为什么说“此Jenkins实例似乎处于脱机状态"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ubuntu上全新安装了Jenkins 2.32.2. 在该实例上打开浏览器,然后进入标题为 Offline 的页面,并显示消息此Jenkins实例似乎已脱机" ,并提供了"Configure Proxy"或跳过插件安装"

I have a fresh install of Jenkins 2.32.2 on Ubuntu. Opened a browser on the instance and get to a page titled Offline, with the message "This Jenkins instance appears to be offline" and offers options to "Configure Proxy" or "Skip Plugin Installation"

由于我只是使用Internet连接进行安装,因此该机器显然未处于脱机状态. 我还进行了以前的安装,完全按照相同的方式进行了工作. 我删除了以前的安装,因为Pipelines无法正常工作,Google告诉我这是因为JDK9.所以我删除了所有JDK/JRE安装以及jenkins,仅全新安装了JDK 8,安装了Jenkins,然后到了这里.

The machine clearly isn't offline as I just used the internet connection to do the installation. I also had a previous installation, done exactly the same way, that was working. I removed the previous installation as Pipelines wouldn't work and Google told me it was because of JDK 9. So I removed all the JDK/JRE installations as well as jenkins, fresh installed JDK 8 only, installed Jenkins, and got to here.

Jenkins过去曾在此盒子上工作过,那么什么使它认为它是离线的呢?

Jenkins has worked on this box in the past so what makes it think it is offline?

更新:找到了一个日志文件/var/lib/jenkins/logs/tasks/Download metadata.log 并以以下消息开头:致命:连接被拒绝(连接被拒绝) 我认为这表明互联网连接正常,但是其他原因阻止了它获取数据?

Update: Found a log file /var/lib/jenkins/logs/tasks/Download metadata.log and it starts with a message FATAL: Connection refused (Connection refused) I would think that indicates that the internet connection is OK, but something else is stopping it getting data?

更新:基于其他研究,我在插件管理器中检查了更新站点.它被列为 http://updates.jenkins-ci.org/update-center.json ,然后从命令行成功获取该文件的wget.因此,绝对不是连接问题. jenkins可以同时使用http和https,而不能同时使用.

Update: Based on other research I checked the Update Site in the Plugin Manager. This is listed as http://updates.jenkins-ci.org/update-center.json and, from the command line a wget of this file succeeds. So most definitely not a connection issue. Worked with both http and https, jenkins works with neither.

推荐答案

就我而言,它与SSL有关.我设法通过编辑/var/lib/jenkins/hudson.model.UpdateCenter.xml并将其更改为使用http而不是https的方式来解决它.

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.

重新启动jenkins并重新加载网站,它不再显示为脱机状态.

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

这篇关于Jenkins为什么说“此Jenkins实例似乎处于脱机状态"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆