rpm安装jenkins启动后报错 UnknownHostException: centos68-192-168-18-4: Name or service not known 10C
  1. jenkins 版本 jenkins-2.164.1-1.1.noarch.rpm
  2. rpm安装方式安装成功后通过service jenkins start启动报错
  3. hostname和/etc/hosts都已修改centos68
[root@centos68 work]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 centos68
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1 centos68
127.0.0.1 centos68-192-168-18-4
192.168.18.4 centos68

  1. 错误:
[root@centos68 jenkins]# tail -200f /var/log/jenkins/jenkins.log 
Running from: /usr/lib/jenkins/jenkins.war
webroot: $user.home/.jenkins
Mar 26, 2019 2:58:18 PM org.eclipse.jetty.util.log.Log initialized
INFO: Logging initialized @428ms to org.eclipse.jetty.util.log.JavaUtilLog
Mar 26, 2019 2:58:18 PM winstone.Logger logInternal
INFO: Beginning extraction from war file
Mar 26, 2019 2:58:18 PM org.eclipse.jetty.server.Server doStart
INFO: jetty-9.4.z-SNAPSHOT; built: 2018-08-30T13:59:14.071Z; git: 27208684755d94a92186989f695db2d7b21ebc51; jvm 11.0.1+13-LTS
Mar 26, 2019 2:58:18 PM org.eclipse.jetty.webapp.StandardDescriptorProcessor visitServlet
INFO: NO JSP Support for /jenkins, did not find org.eclipse.jetty.jsp.JettyJspServlet
Mar 26, 2019 2:58:18 PM org.eclipse.jetty.server.session.DefaultSessionIdManager doStart
INFO: DefaultSessionIdManager workerName=node0
Mar 26, 2019 2:58:18 PM org.eclipse.jetty.server.session.DefaultSessionIdManager doStart
INFO: No SessionScavenger set, using defaults
Mar 26, 2019 2:58:18 PM org.eclipse.jetty.server.session.HouseKeeper startScavenging
INFO: node0 Scavenging every 660000ms
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields (file:/root/.jenkins/war/WEB-INF/lib/xstream-1.4.7-jenkins-1.jar) to field java.util.TreeMap.comparator
WARNING: Please consider reporting this to the maintainers of com.thoughtworks.xstream.core.util.Fields
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Jenkins home directory: /root/.jenkins found at: $user.home/.jenkins
Mar 26, 2019 2:58:19 PM org.eclipse.jetty.server.handler.ContextHandler doStart
INFO: Started w.@66b72664{Jenkins v2.164.1,/jenkins,file:///root/.jenkins/war/,AVAILABLE}{/root/.jenkins/war}
Mar 26, 2019 2:58:19 PM org.eclipse.jetty.server.AbstractConnector doStart
INFO: Started ServerConnector@76b0ae1b{HTTP/1.1,[http/1.1]}{0.0.0.0:2155}
Mar 26, 2019 2:58:19 PM org.eclipse.jetty.server.Server doStart
INFO: Started @1369ms
Mar 26, 2019 2:58:19 PM winstone.Logger logInternal
INFO: Winstone Servlet Engine v4.0 running: controlPort=disabled
Mar 26, 2019 2:58:19 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Mar 26, 2019 2:58:19 PM hudson.PluginManager loadDetachedPlugins
INFO: Upgrading Jenkins. The last running version was 2.150.1. This Jenkins is version 2.164.1.
Mar 26, 2019 2:58:19 PM hudson.PluginManager loadDetachedPlugins
INFO: Upgraded Jenkins from version 2.150.1 to version 2.164.1. Loaded detached plugins (and dependencies): [jaxb.hpi]
Mar 26, 2019 2:58:19 PM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Mar 26, 2019 2:58:20 PM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Mar 26, 2019 2:58:20 PM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Mar 26, 2019 2:58:20 PM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Mar 26, 2019 2:58:20 PM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Mar 26, 2019 2:58:20 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Started Download metadata
Mar 26, 2019 2:58:20 PM hudson.model.AsyncPeriodicWork$1 run
INFO: Finished Download metadata. 3 ms
Mar 26, 2019 2:58:21 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@3bf691fa: display name [Root WebApplicationContext]; startup date [Tue Mar 26 14:58:21 CST 2019]; root of context hierarchy
Mar 26, 2019 2:58:21 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@3bf691fa]: org.springframework.beans.factory.support.DefaultListableBeanFactory@6a2e76fa
Mar 26, 2019 2:58:21 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@6a2e76fa: defining beans [authenticationManager]; root of factory hierarchy
Mar 26, 2019 2:58:21 PM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@101e1204: display name [Root WebApplicationContext]; startup date [Tue Mar 26 14:58:21 CST 2019]; root of context hierarchy
Mar 26, 2019 2:58:21 PM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@101e1204]: org.springframework.beans.factory.support.DefaultListableBeanFactory@1a7623e2
Mar 26, 2019 2:58:21 PM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1a7623e2: defining beans [filter,legacy]; root of factory hierarchy
Mar 26, 2019 2:58:21 PM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Mar 26, 2019 2:58:21 PM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
Mar 26, 2019 2:58:21 PM javax.jmdns.impl.HostInfo newHostInfo
WARNING: Could not intialize the host network interface on nullbecause of an error: centos68-192-168-18-4: centos68-192-168-18-4: Name or service not known
java.net.UnknownHostException: centos68-192-168-18-4: centos68-192-168-18-4: Name or service not known
        at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1642)
        at javax.jmdns.impl.HostInfo.newHostInfo(HostInfo.java:75)
        at javax.jmdns.impl.JmDNSImpl.<init>(JmDNSImpl.java:407)
        at javax.jmdns.JmDNS.create(JmDNS.java:60)
        at hudson.DNSMultiCast$1.call(DNSMultiCast.java:33)
        at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
        at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.net.UnknownHostException: centos68-192-168-18-4: Name or service not known
        at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
        at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929)
        at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1515)
        at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:848)
        at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1505)
        at java.base/java.net.InetAddress.getLocalHost(InetAddress.java:1637)
        ... 10 more



0

1个回答

0
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
linux+jenkins+tomcat+git 安装过程的的一些小问题
2019独角兽企业重金招聘Python工程师标准&gt;&gt;&gt; ...
linux系统下部署TOMCAT错误java.net.UnknownHostException bogon bogon
linux系统下部署TOMCAT异常错误java.net.UnknownHostException :bogon: bogon 主要原因是主机映射原因 修改hosts文件即可
dubbo服务启动注册报 java.net.UnknownHostException 未知的名称或服务解决办法
重装一台linux服务器部署dubbo服务启动注册到zookepper的时候报 java.net.UnknownHostException 未知的名称或服务 从报错的信息看是没有找到zzyyb对应的名称和服务。于是在linux下用hostname命令查看hostname [root@zzyyb /]# hostname zzyyb 能够正确返回机器的hostname是zzyyb
Docker容器上Spring Cloud微服务相互调用时报错:java.net.UnknownHostException:主机名
项目背景:采用Spring Cloud+IEDA+Maven搭建了由多个微服务组成的项目,部署上线是用的是Docker容器技术。 问题描述:部署上线过程中,各个微服务都正常启动,而且都注册到了eureka注册中心,但是相互调用时报java.net.UnknownHostException:主机名的错误。 原因分析:各个微服务是以“主机名:服务名:端口”的形式注册到注册中心。当本地测试时,主机是同一...
使用yum命令时,虚拟机中CentOS报name or service not known错误,解析不到yum源
http://mirrors.ustc.edu.cn/centos/7.2.1511/os/x86_64/repodata/repomd.xml: [Errno 14] curl#6 - &quot;Could not resolve host: mirrors.ustc.edu.cn; Unknown error&quot; Trying other mirror.   网卡配置问题, 进入 cd /etc/...
ehcache报:java.net.UnknownHostException: xxx: xxx: 未知的名称或服务错误的原因和解决
系统使用到ehcache,部署到linux上,结果系统在启动的时候报:java.net.UnknownHostException: XYPTAPP1: XYPTAPP1: 未知的名称或服务的错误。网上搜到一个文章说的解决办法:http://bjyzxxds.iteye.com/blog/2155347,但是这是啥原因呢?记得ehcache中并没有配置和网络有关的东西啊,不管了打开源码看,按照报错的
jenkins 部署报错 记录
一 、注册cnpm 报错 报错配置 rm -rf ${WORKSPACE}/${JOB_NAME}.tar.gz alias cnpm=&quot;npm --registry=https://registry.npm.taobao.org \ --cache=$HOME/.npm/.cache/cnpm \ --disturl=https://npm.taoba...
Kafka学习之一 :安装启动
kafka
CentOS 7虚拟机无法联网,无法ping通网关,出现name or service not know问题
开始我参考了很多博客,配置ens33文件等操作,然后ping百度,还是不成功,name or service not know问题一直报。 所以,我想说,大家再看其他博客的时候,发现按步骤配下来了,如果还是不能ping通,或许可以试试这个办法。 解决办法 在尝试多次、查阅大量资料后得知,是因为Vmare8相关的虚拟网络进程没有启动。  右击电脑&amp;gt;管理&amp;gt;服务和应用程序&amp;gt;服务&amp;...
Jenkins添加slave节点遇到的问题
slave节点镜像制作: 先下载带jdk8的镜像,在此基础上安装ssh,git等 dockerfile:   FROM 10.19.248.12:30100/library/gongan-jdk8:2.0   RUN rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm   &amp;amp;amp;amp;amp;amp;amp;amp;amp;&amp;amp;amp;amp;amp;amp;am
(已解决)CentOS 7虚拟机无法联网,出现name or service not know问题(固定IP+联网)
编辑中
jenkins-插件更新,报错解决
正确:http://updates.jenkins-ci.org/update-center.json点击立即获取,报错如下图(Oops!)——解决办法,升级站点即可http://updates.jenkins.org/update-center.json(老) 更新为最新站点:http://updates.jenkins-ci.org/update-center.json...
linux 通过rpm包安装和配置 jenkins
Jenkins是基于Java开发的一种持续集成工具,用于监控持续重复的工作,功能包括: 1、持续的软件版本发布/测试项目。 2、监控外部调用执行的工作。 安装环境 操作系统:linux 软件:jdk 软件:tomcat 软件:maven 软件:jenkins jenkins常用的有两种安装方式: 1、直接下载war包jenkins...
安装配置jenkins rpm方式
下载 下载对应的linux就行,我的是centos下下来是jenkins-2.121.3-1.1.noarch.rpm文件 安装 再这之前,你应该安装jdk: rpm -ih jenkins-2.121.3-1.1.noarch.rpm 安装后几个重要位置 war包 /usr/lib/jenkins/jenkins.war ...
hadoop 2.6.1 出现ssh无法解析主机名等错误提示的解决办法
hadoop 2.6.1 出现ssh无法解析主机名等错误提示的解决办法
jenkins可选插件为空的解决方式或jenkins不能联网
jenkins插件获取出现下图: 最后我发现,应该是https证书搞得鬼。那怎么做呢? 打开后这里面最底下有个【升级站点】,把其中的链接改成http的就好了,http://updates.jenkins.io/update-center.json。 然后在服务列表中关闭jenkins,再启动,这样就能正常联网了。
Jenkins插件及 测试源码
  Jenkins 插件: https://updates.jenkins-ci.org/download/plugins/   小米的一份android源码,测试工具,用于抢红包: https://github.com/xiaomi/luckymoneytool  
flume 启动报错
 如下: java.lang.NumberFormatException: For input string: &quot;44444 &quot; at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) a...
部署jenkins中遇到的问题(无法安装插件)
安装jenkins中 因为https证书的问题,导致安装jenkins时无法安装默认插件,重复安装数次无效,最终找到正确的解决方法,因为对大家有帮助解决方案1:安装插件那个页面,就是提示你offline的那个页面,不要动。然后打开一个新的tab,输入网址http://localhost:8080/jenkins/pluginManager/advanced...
Jenkins 启动不来的排查方法
Jenkins 启动不来的排查方法 1、通过 ps -ef | grep tomcat找到jenkins的路径,下有logs,可以查看日志 2、装插件报错时,报错信息里会提示依赖的插件版本号,到jenkins官网下载对应版本的插件即可,注意,一定要下对应版本的jenkins插件,否则会有不兼容的问题 3、如果启动成功,但是执行命令的时候报错(前...
activemq在阿里云部署启动: java.net.UnknownHostException 异常处理
在linux系统下部署Java产品的集群环境时,后台报出如下异常,系统报找不到名为“iZbp18ie9kfhwdt5s8sxyyZ”的主机:  java.net.UnknownHostException: iZbp18ie9kfhwdt5s8sxyyZ: iZbp18ie9kfhwdt5s8sxyyZ: Name or service not known at java.net.InetAdd
Jenkins第一节:linux安装jenkins以及解决各种常见问题
1 下载jenkins [root@VM_0_3_centos jenkins]# wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo [root@VM_0_3_centos jenkins]# rpm --import https://jenkins-ci.org/redhat/j...
CentOS7下安装配置Jenkins
前面简单介绍了下CentOS7下安装配置nuxus和CentOS7下防火墙的配置,今天继续介绍CentOS7下jenkins的安装配置。        我在安装配置时,用的是jenkins的rpm包,下载地址如下:               https://jenkins.io/index.html       安装rpm包:              rpm -ivh /zd/jenk
阿里云centos环境之linux上Jenkins安装(六补)rpm命令安装jenkins及一些常用命令学习
阿里云centos环境之linux上Jenkins安装&lt;六补&gt;rpm命令安装jenkins及一些常用命令学习 上篇文章只简单带过rpm安装jenkins,这里做详细讲解. 第一:下载rpm去jenkins官网下载最新的安装包,这里使用jenkins-2.73.3-1.1.noarch.rpm版本,注意最新的版本jenkins-2.89-1.1.noarch.rpm安装成功后会出现如下图的问题,所
jenkins 安装和使用
1.jenkins 下载 官网:jenkins 下载 长期支持版(LTS),如下图所示: 2.启动: 通过放入 tomcat 启动 通过 java -jar 启动 java -jar jenkins.war &amp;amp; 3.安装Jenkins插件 Email Extension Plugin (邮件通知) GIT plugin (可能已经默认安装了) Publi...
刚刚安装jenkins后,访问报错
环境: centos7:CentOS-7-x86_64-DVD-1810 tomcat:Apache Tomcat/9.0.17 jenkins:Jenkins 2.164.1for Generic Java package (.war) 报错: 解决办法: 点进去上面提示的链接: https://jenkins.io/redirect...
Jenkins进阶系列之——11修改Jenkins用户的密码
转:http://www.cnblogs.com/zz0412/p/jenkins_jj_11.html 点击打开链接
HttpClient 通过域名访问请求接口出现java.net.UnknownHostException解决方法
在项目中,有一个功能需要请求另外一个项目的接口来获取数据。该项目接口都是通过域名请求访问。每当调用到一定阶段后都会出现未知域名,导致请求数据失败。以下是错误内容 java.net.UnknownHostException: XXXX.XXXX.com at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) ...
Jenkins rpm安装报错
jenkins rpm安装报错: Starting Jenkins bash: /usr/bin/java: 没有那个文件或目录 sudo vim /etc/init.d/jenkins candidates=" /usr/local/jdk1.8/bin/java 加入安装好的jdk的路径 /etc/alternatives/java /usr/lib/jvm/java-1.8.0/bin/...
使用rsync同步
更新线上应用的时候,如果手动部署容易出错和遗漏,这里使用Linux自带的rsync功能,当应用在测试机测试ok,自动同步到正式机。这里我们把测试机称为Master,正式机称为Slave,应用从测试机同步到正式机,从Master同步到Slave。以下操作均在root账号下进行。   Master端配置: 1.vi /etc/rsyncd.conf 2.输入以下内容: port = 873 ...
CentOS7下安装配置Jenkins(rpm包) 并新建项目打包到nexus
一、安装 Jenkins官网下载地址: https://jenkins.io/download/ rpm -ivh jenkins-2.138-1.1.noarch.rpm   二、配置 1. jenkins的默认JENKINS_PORT是8080,JENKINS_AJP_PORT默认端口是8009,这同tomcat的默认端口冲突。我这更改为8088和8089。 vi /etc/s...
Caused by: java.net.UnknownHostException: openapi.alipay.com
Caused by: java.net.UnknownHostException: openapi.alipay.com
使用jenkins启动SpringBoot报错
jenkins启动SringBoot偶然报错!!!jenkins启动SpringBoot偶尔会报错!1、环境2、代码3、错误日志 jenkins启动SpringBoot偶尔会报错! 启动SpringBoot的项目的时候。 1、环境 springboot ; jdk 1.8 ; jenkins部署 。 2、代码 1.使用了AsyncTask; import org.springframework...
获取urllib2.urlopen失败时的错误页面
错误方法: import urllib2 req = urllib2.Request('http://127.0.0.1/longerrorpage') try: response=urllib2.urlopen(req) except Exception,e: print e, response.read() HTTP Error 404: Not Found 正确方法:
jenkins安装简要说明
1、配置JAVA环境变量 # mkdir /usr/local/java/ –p # cd /usr/local/java/ # tar zxvf /data/elk5.0/jdk-8u111-linux-x64.tar.gz # cat >>/etc/profileEOF export JAVA_HOME=/usr/local/java/jdk
在安装或更新Jenkins时遇到的坑
1、AJP support is removed in Winstone 3.0 due to Jetty 9 not supporting AJP. java.io.IOException: Failed to start a listener: winstone.Ajp13ConnectorFactory at winstone.Launcher.spawnListener(La
在vagrant中使用docker时无法启动mysql容器的问题
使用了docker构建lnmp环境之后 打开phpmyadmin,使用root 123456登陆,提示 mysqli_real_connect(): php_network_getaddresses: getaddrinfo failed: Try again mysqli_real_connect(): (HY000/2002): php_network_getaddresses: getad...
linux jenkins离线改在线
修改/root/.jenkins/hudson.model.UpdateCenter.xml文件为 &amp;lt;?xml version='1.1' encoding='UTF-8'?&amp;gt; &amp;lt;sites&amp;gt; &amp;lt;site&amp;gt; &amp;lt;id&amp;gt;default&amp;lt;/id&amp;gt; &amp;lt;url&amp;gt;https://mirrors.tuna.ts...
ntpdate同步时间问题
操作系统 fedora16,CentOS6.3 ntpdate版本:ntpdate 4.2.6p4@1.2324-o Thu Oct  6 15:37:56 UTC 2011 (1)    --- fedora                         ntpdate 4.2.4p8@1.1612-o Tue Nov 29 00:06:29 UTC 2011 (1)   --- Cent...
大数据学习11:Maven编译报错以及解决方法,配置aliyun库
一、场景 在用maven对 hadoop,spark等进行源码编译的时候,经常会遇到编译报错。以下为一些解决办法。 二、报错与分析排查: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-remote-resources-plugin:1.5:process (default) on project spark