You could always check the mirrors directly (at least when the first redirected 
request fails).

List and status here: http://mirrors.jenkins-ci.org/status.html

Call HttpURLConnection.getURL() after it throws to find out where it was 
redirected in case you care (e.g. for temporarily blacklisting a mirror).

On 19.05.2014, at 16:44, Jim Gumbley <[email protected]> wrote:

> Seeing identical issues, very disruptive when creating a new environment?
> 
> Surprised this is not causing more disruption? Are the mirrors using a CDN?
> 
> On Tuesday, 8 April 2014 10:49:21 UTC+1, Johannes Wienke wrote:
> Hi, 
> 
> we are automatic the bootstrapping of our jenkins installations 
> including plugins through a script that is executed from time to time. 
> Recently, the installation process fails frequently because either 
> jenkins itself or some plugins cannot be downloaded: 
> 
> jwienke@cinnabar:/tmp/installertests$ wget 
> http://mirrors.jenkins-ci.org/war-stable/latest/jenkins.war 
> --2014-04-08 11:44:22-- 
> http://mirrors.jenkins-ci.org/war-stable/latest/jenkins.war 
> Resolving mirrors.jenkins-ci.org (mirrors.jenkins-ci.org)... 199.193.196.24 
> Connecting to mirrors.jenkins-ci.org 
> (mirrors.jenkins-ci.org)|199.193.196.24|:80... connected. 
> HTTP request sent, awaiting response... 502 Bad Gateway 
> 2014-04-08 11:44:53 ERROR 502: Bad Gateway 
> 
> Or 
> 
> Caused by: java.io.IOException: Server returned HTTP response code: 503 
> for URL: http://updates.jenkins-ci.org/download/plugins/git/2.2.0/git.hpi 
>         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
> Method) 
>         at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>  
>         at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>  
>         at java.lang.reflect.Constructor.newInstance(Constructor.java:534) 
>         at 
> sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1458)
>  
>         at java.security.AccessController.doPrivileged(Native Method) 
>         at 
> sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1452)
>  
>         at 
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1106)
>  
>         at 
> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:764)
>  
>         ... 8 more 
> Caused by: java.io.IOException: Server returned HTTP response code: 503 
> for URL: http://updates.jenkins-ci.org/download/plugins/git/2.2.0/git.hpi 
>         at 
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1403)
>  
>         at 
> sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2214)
>  
>         at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:596) 
>         at java.net.URLConnection.getContentLength(URLConnection.java:491) 
>         at 
> hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:763)
>  
>         ... 8 more 
> 
> Can anyone explain what is going on here? This is really a major problem 
> for us as it became nearly impossible to succeed in generating a 
> complete installation where everything could be downloaded. 
> 
> Cheers, 
> Johannes 
> 
> -- 
> Johannes Wienke, Researcher at CoR-Lab / CITEC, Bielefeld University 
> Address: Inspiration 1, D-33619 Bielefeld, Germany (Room 1.307) 
> Phone: +49 521 106-67277 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to