Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-66799

Jenkins instance appears to be offline, Unknown host exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • _unsorted
    • None
    • CentOS 8, Kubernetes, Jenkins

      Hi,

      I am running Jenkins from a Kubernetes running on CentOS 8.

      The instance appears to be offline. After I enter the admin password the screen attached to this ticket is coming up.

      When I check the logs, this is what I found all over the file:

       

      2021-10-04 22:54:55.451+0000 [id=1796] INFO hudson.util.Retrier#start: The attempt #1 to do the action check updates server failed with an allowed exception:2021-10-04 22:54:55.451+0000 [id=1796] INFO hudson.util.Retrier#start: The attempt #1 to do the action check updates server failed with an allowed exception:java.net.UnknownHostException: updates.jenkins.io at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:220) at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.base/java.net.Socket.connect(Socket.java:609) at java.base/sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:299) at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:177) at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:474) at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:569) at java.base/sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:266) at java.base/sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:373) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:203) at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1187) at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1081) at java.base/sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:189) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1592) at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520) at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:250) at hudson.model.DownloadService.loadJSON(DownloadService.java:115) at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:220) at hudson.model.UpdateSite.updateDirectlyNow(UpdateSite.java:215) at hudson.PluginManager.checkUpdatesServer(PluginManager.java:1878) at hudson.util.Retrier.start(Retrier.java:63) at hudson.PluginManager.doCheckUpdatesServer(PluginManager.java:1849) at jenkins.DailyCheck.execute(DailyCheck.java:93) at hudson.model.AsyncPeriodicWork.lambda$doRun$0(AsyncPeriodicWork.java:101) at java.base/java.lang.Thread.run(Thread.java:829)2021-10-04 22:54:55.454+0000 [id=1796] INFO hudson.util.Retrier#start: Calling the listener of the allowed exception 'updates.jenkins.io' at the attempt #1 to do the action check updates server2021-10-04 22:54:55.455+0000 [id=1796] INFO hudson.util.Retrier#start: Attempted the action check updates server for 1 time(s) with no success2021-10-04 22:54:55.455+0000 [id=1796] SEVERE hudson.PluginManager#doCheckUpdatesServer: Error checking update sites for 1 attempt(s). Last exception was: UnknownHostException: updates.jenkins.io2021-10-04 22:54:55.456+0000 [id=1796] INFO hudson.model.AsyncPeriodicWork#lambda$doRun$0: Finished Download metadata. 20,053 ms
      

      I thought this is an issue with the pod network, and its accessibility to internet, but when I try to ping the server mentioned in the exception above, the ping fails. If I try to ping any other valid servers like google.com or anything it works fine from everywhere.

       

      Can you please help me what am I doing wrong with this? 

            Unassigned Unassigned
            kdavid Krisztian David
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: