Plugin updates fail after pointing to Jenkins update location

1,175 views
Skip to first unread message

Harpel, Craig

unread,
Feb 3, 2011, 12:13:06 PM2/3/11
to jenkins...@googlegroups.com

I changed my Hudson 1.384 update center to point to http://updates.jenkins-ci.org/update-center.json.  When I try to update plugins, it fails with the following trace (example is for the backup plugin):

 

java.io.IOException: Server returned HTTP response code: 403 for URL: http://updates.jenkins-ci.org/download/plugins/backup/1.6/backup.hpi

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

        at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1296)

        at java.security.AccessController.doPrivileged(Native Method)

        at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1290)

        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:944)

        at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:539)

        at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:805)

        at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:913)

        at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:788)

        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)

        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

        at java.util.concurrent.FutureTask.run(FutureTask.java:138)

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)

        at java.lang.Thread.run(Thread.java:619)

Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://updates.jenkins-ci.org/download/plugins/backup/1.6/backup.hpi

        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1241)

        at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2052)

        at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:579)

        at java.net.URLConnection.getContentLength(URLConnection.java:474)

        at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:538)

        ... 9 more

 

Kohsuke Kawaguchi

unread,
Feb 3, 2011, 2:13:49 PM2/3/11
to jenkins...@googlegroups.com, Harpel, Craig

Do you still see it now? What if you hit that URL from your browser?

I just did wget to this URL and it works for me. Any chance it's caused
by your firewall?


--
Kohsuke Kawaguchi | CloudBees, Inc. | http://cloudbees.com/

Harpel, Craig

unread,
Feb 3, 2011, 2:17:41 PM2/3/11
to Kohsuke Kawaguchi, jenkins...@googlegroups.com
Yes, there's a very good chance that the problem is the firewall or proxy. Let me check that out before you take this one seriously. Thanks.

Harpel, Craig

unread,
Feb 3, 2011, 2:28:28 PM2/3/11
to jenkins...@googlegroups.com, Kohsuke Kawaguchi
It doesn't work for me from a fresh Jenkins install either. It seems they've added a challenge step in the web proxy ("are you sure you want to go to this site?") if the URL isn't yet recognized by the proxy. If I go to that URL directly in firefox, I get the challenge, and I can download it. URLs are added automatically within 5 days, so hopefully this won't be a problem soon.

Sorry for the false alarm.
Craig

Reply all
Reply to author
Forward
0 new messages