java.net.UnknownHostException: updates.jenkins-ci.org at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:175) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384) at java.net.Socket.connect(Socket.java:546) at java.net.Socket.connect(Socket.java:495) at sun.net.NetworkClient.doConnect(NetworkClient.java:178) at sun.net.www.http.HttpClient.openServer(HttpClient.java:409) at sun.net.www.http.HttpClient.openServer(HttpClient.java:530) at sun.net.www.http.HttpClient.<init>(HttpClient.java:240) at sun.net.www.http.HttpClient.New(HttpClient.java:321) at sun.net.www.http.HttpClient.New(HttpClient.java:338) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:935) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:876) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:801) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139) at hudson.model.UpdateCenter$UpdateCenterConfiguration.testConnection(UpdateCenter.java:736) at hudson.model.UpdateCenter$UpdateCenterConfiguration.checkUpdateCenter(UpdateCenter.java:585) at hudson.model.UpdateCenter$ConnectionCheckJob.run(UpdateCenter.java:883) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679)
There is no Proxy set up and no proxy is necessary on this
machine to access the Internet.
I have reinstalled Jenkins, I have reinstalled Java but the error
remains.
If I try to ping updates.jenkins-ci.org from the server everything
works fine.
If I try to download files from updates.jenkins-ci.org using wget
or firefox everything works fine as well.
Could someone please give me a hint, what might be the source of
the error. Also I appreciate a hint what else I should check. Or
how I should proceed to figure out what is going wrong.
thank you very much
Check your systems (ubuntu) configured host name resolver. (DNS is configured and working correctly /etc/resolve.conf IIRC. Run “getent hosts updates.jenkins-ci.org” from a terminal and see if that works – if not I would ask on the Ubuntu forums)
It is more likely your host is incorrectly setup than Jenkins is incorrect.
/James
From: Pierre Retoille <pierre....@hotmail.fr>
To: jenkins...@googlegroups.com
Sent: Tuesday, December 20, 2011 3:00 AM
Subject: Re: Need help with java.net.UnknownHostException
Check your systems (ubuntu) configured host name resolver. (DNS is configured and working correctly /etc/resolve.conf IIRC. Run “getent hosts updates.jenkins-ci.org” from a terminal and see if that works – if not I would ask on the Ubuntu forums)