timja / jenkins-gh-issues-poc-06-18

0 stars 0 forks source link

[JENKINS-14441] Could not initialize the host network interface #2425

Open timja opened 12 years ago

timja commented 12 years ago

When I run the command java -jar jenkins.war,Suggest the following error:
Could not intialize the host network interface on nullbecause of an error: IAP-kuangjx: IAP-kuangjx java.net.UnknownHostException: IAP-kuangjx: IAP-kuangjx at java.net.InetAddress.getLocalHost(InetAddress.java:1426) at javax.jmdns.impl.HostInfo.newHostInfo(HostInfo.java:75) at javax.jmdns.impl.JmDNSImpl.(JmDNSImpl.java:407) at javax.jmdns.JmDNS.create(JmDNS.java:60) at hudson.DNSMultiCast.(DNSMultiCast.java:27) at jenkins.model.Jenkins.(Jenkins.java:820) at hudson.model.Hudson.(Hudson.java:81) at hudson.model.Hudson.(Hudson.java:77) at hudson.WebAppMain$2.run(WebAppMain.java:217)


Originally reported by yuanxy, imported from: Could not initialize the host network interface
  • assignee: statler
  • status: Open
  • priority: Major
  • resolution: Unresolved
  • imported: 2022/01/10
timja commented 12 years ago

yuanxy:

Although the occurrence of the error, but jenkins can start normally;In the server through the "http://localhost:8080" form to access,but in the local area network can't access

timja commented 9 years ago

jglick:

Try: -Dhudson.DNSMultiCast.disabled=true

timja commented 9 years ago

jglick:

May also want: -Dhudson.udp=-1

timja commented 9 years ago

jglick:

IMO both UDPBroadcastThread and DNSMultiCast should be moved to a plugin where they can be disabled. A minority use case.

timja commented 6 years ago

settrend:

Same here when running Docker container jenkinsci/blueocean on a Windows 10x64 installation:


Windows PowerShell
Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.PS C:\Users\Axel> docker run -p 8081:8080 --platform=linux jenkinsci/blueocean
Running from: /usr/share/jenkins/jenkins.war
webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
Jul 03, 2018 10:50:53 AM org.eclipse.jetty.util.log.Log initialized
INFO: Logging initialized @12611ms to org.eclipse.jetty.util.log.JavaUtilLog
Jul 03, 2018 10:50:55 AM winstone.Logger logInternal
INFO: Beginning extraction from war file
Jul 03, 2018 10:53:58 AM org.eclipse.jetty.server.handler.ContextHandler setContextPath
WARNING: Empty contextPath
Jul 03, 2018 10:53:58 AM org.eclipse.jetty.server.Server doStart
INFO: jetty-9.4.z-SNAPSHOT, build timestamp: 2017-11-21T21:27:37Z, git hash: 82b8fb23f757335bb3329d540ce37a2a2615f0a8
Jul 03, 2018 10:54:16 AM org.eclipse.jetty.webapp.StandardDescriptorProcessor visitServlet
INFO: NO JSP Support for /, did not find org.eclipse.jetty.jsp.JettyJspServlet
Jul 03, 2018 10:54:16 AM org.eclipse.jetty.server.session.DefaultSessionIdManager doStart
INFO: DefaultSessionIdManager workerName=node0
Jul 03, 2018 10:54:16 AM org.eclipse.jetty.server.session.DefaultSessionIdManager doStart
INFO: No SessionScavenger set, using defaults
Jul 03, 2018 10:54:16 AM org.eclipse.jetty.server.session.HouseKeeper startScavenging
INFO: Scavenging every 600000ms
Jenkins home directory: /var/jenkins_home found at: EnvVars.masterEnvVars.get("JENKINS_HOME")
Jul 03, 2018 10:54:29 AM org.eclipse.jetty.server.handler.ContextHandler doStart
INFO: Started w.@4c36250e{/,[file:///var/jenkins_home/war/,AVAILABLE]}{/var/jenkins_home/war}
Jul 03, 2018 10:54:29 AM org.eclipse.jetty.server.AbstractConnector doStart
INFO: Started ServerConnector@2fd1731c{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
Jul 03, 2018 10:54:29 AM org.eclipse.jetty.server.Server doStart
INFO: Started @228447ms
Jul 03, 2018 10:54:29 AM winstone.Logger logInternal
INFO: Winstone Servlet Engine v4.0 running: controlPort=disabled
Jul 03, 2018 10:54:36 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Jul 03, 2018 10:59:55 AM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Jul 03, 2018 11:00:35 AM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
Jul 03, 2018 11:00:35 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Jul 03, 2018 11:00:49 AM jenkins.InitReactorRunner$1 onAttained
INFO: Augmented all extensions
Jul 03, 2018 11:00:50 AM jenkins.InitReactorRunner$1 onAttained
INFO: Loaded all jobs
Jul 03, 2018 11:00:50 AM hudson.model.AsyncPeriodicWork$1 run
INFO: Started Download metadata
Jul 03, 2018 11:00:50 AM jenkins.util.groovy.GroovyHookScript execute
INFO: Executing /var/jenkins_home/init.groovy.d/tcp-slave-agent-port.groovy
Jul 03, 2018 11:00:58 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@6d7db559: display name [Root WebApplicationContext]; startup date [Tue Jul 03 11:00:58 GMT 2018]; root of context hierarchy
Jul 03, 2018 11:00:58 AM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@6d7db559]: org.springframework.beans.factory.support.DefaultListableBeanFactory@772bee37
Jul 03, 2018 11:00:58 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@772bee37: defining beans [authenticationManager]; root of factory hierarchy
Jul 03, 2018 11:01:02 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@530a10ef: display name [Root WebApplicationContext]; startup date [Tue Jul 03 11:01:02 GMT 2018]; root of context hierarchy
Jul 03, 2018 11:01:02 AM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@530a10ef]: org.springframework.beans.factory.support.DefaultListableBeanFactory@3c497bb8
Jul 03, 2018 11:01:02 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3c497bb8: defining beans [filter,legacy]; root of factory hierarchy
Jul 03, 2018 11:01:07 AM jenkins.install.SetupWizard init

INFO:*************************************************************
*************************************************************
*************************************************************

Jenkins initial setup is required. An admin user has been created and a password generated.
Please use the following password to proceed to installation:******************************

}}{{This may also be found at: /var/jenkins_home/secrets/initialAdminPassword

}}{{************************************************************
*************************************************************
*************************************************************

--> setting agent port for jnlp
--> setting agent port for jnlp... done
Jul 03, 2018 11:01:07 AM hudson.model.UpdateSite updateData
INFO: Obtained the latest update center data file for UpdateSource default
Jul 03, 2018 11:01:11 AM hudson.model.DownloadService$Downloadable load
INFO: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller
Jul 03, 2018 11:01:11 AM hudson.model.AsyncPeriodicWork$1 run
INFO: Finished Download metadata. 21,753 ms
Jul 03, 2018 11:01:16 AM hudson.model.UpdateSite updateData
INFO: Obtained the latest update center data file for UpdateSource default
Jul 03, 2018 11:01:17 AM jenkins.InitReactorRunner$1 onAttained
INFO: Completed initialization
Jul 03, 2018 11:01:17 AM hudson.WebAppMain$3 run
INFO: Jenkins is fully up and running
Jul 03, 2018 11:01:18 AM javax.jmdns.impl.HostInfo newHostInfo
WARNING: Could not intialize the host network interface on nullbecause of an error: dd0321401bb4: dd0321401bb4: Name does not resolve
java.net.UnknownHostException: dd0321401bb4: dd0321401bb4: Name does not resolve
{{ at java.net.InetAddress.getLocalHost(InetAddress.java:1505)}}
{{ at javax.jmdns.impl.HostInfo.newHostInfo(HostInfo.java:75)}}
{{ at javax.jmdns.impl.JmDNSImpl.(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.util.concurrent.FutureTask.run(FutureTask.java:266)}}
{{ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)}}
{{ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)}}
{{ at java.lang.Thread.run(Thread.java:748)}}
Caused by: java.net.UnknownHostException: dd0321401bb4: Name does not resolve
{{ at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)}}
{{ at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)}}
{{ at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)}}
{{ at java.net.InetAddress.getLocalHost(InetAddress.java:1500)}}
{{ ... 10 more}}


I'm having Jenkins locally installed, thus I changed the Docker host port to 8081. Just want to test whether the Docker images flawlessly runs. Well, apparently it doesn't.

timja commented 2 years ago

[Originally related to: JENKINS-33596]