Plugin updates fail after pointing to Jenkins update location

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Plugin updates fail after pointing to Jenkins update location

charpel

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

 

Reply | Threaded
Open this post in threaded view
|

Re: Plugin updates fail after pointing to Jenkins update location

kohsuke Kawaguchi (CB)

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?

On 02/03/2011 09:13 AM, Harpel, Craig wrote:

> 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 | CloudBees, Inc. | http://cloudbees.com/
Reply | Threaded
Open this post in threaded view
|

RE: Plugin updates fail after pointing to Jenkins update location

charpel
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.


-----Original Message-----
From: Kohsuke Kawaguchi [mailto:[hidden email]]
Sent: Thursday, February 03, 2011 2:14 PM
To: [hidden email]
Cc: Harpel, Craig
Subject: Re: Plugin updates fail after pointing to Jenkins update location


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?

On 02/03/2011 09:13 AM, Harpel, Craig wrote:

> 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 | CloudBees, Inc. | http://cloudbees.com/
Reply | Threaded
Open this post in threaded view
|

RE: Plugin updates fail after pointing to Jenkins update location

charpel
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

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Harpel, Craig
Sent: Thursday, February 03, 2011 2:18 PM
To: Kohsuke Kawaguchi; [hidden email]
Subject: RE: Plugin updates fail after pointing to Jenkins update location

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.


-----Original Message-----
From: Kohsuke Kawaguchi [mailto:[hidden email]]
Sent: Thursday, February 03, 2011 2:14 PM
To: [hidden email]
Cc: Harpel, Craig
Subject: Re: Plugin updates fail after pointing to Jenkins update location


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?

On 02/03/2011 09:13 AM, Harpel, Craig wrote:

> 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 | CloudBees, Inc. | http://cloudbees.com/