2013-03-29 3 views
5

Ho ottenuto il file .zip di Windows Native dal sito di Jenkins e ho installato Jenkins sulla mia macchina (Win 7) come Windows servizio.Jenkins - Impossibile scaricare gli aggiornamenti/plug-in - Il proxy è già impostato - In grado di raggiungere .hpi tramite http fine in IE

La bella dashboard è attiva e ora voglio scaricare alcuni plug-in/anche aggiornare la versione (la prima) perché ho ricevuto il .zip qualche settimana fa.

Quando ho provato ad aggiornare/scaricare i plugin (sotto Gestisci Jenkins), ricevo i seguenti messaggi di errore, qualsiasi idea di cosa potrei mancare.

Nella scheda AVANZAMENTO del plug-in, ho fornito il server proxy e la porta. Un altro punto che ho notato è che quando sto scaricando un plugin (e fallisce) mostrando il link al file .hpi del plugin, se uso "http: //../../.hpi" in Internet Explorer, si apre bene (dicendomi di aprire/salvare ecc.) quindi, in un certo senso, sono in grado di raggiungere direttamente il file .hpi. Posso scaricare il file .hpi manualmente e metterlo sotto l'installazione Jenkins/.. rispettiva cartella /../../ e riavviare il servizio Jenkins ogni volta che installo un nuovo/sostituire un .hpi esistente, ma che non voglio fare quella.

installazione di plugin/Aggiornamenti

Preparation 

    Checking internet connectivity 
    Checking update center connectivity 
    java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at hudson.model.UpdateCenter$UpdateCenterConfiguration.testConnection(UpdateCenter.java:860) at hudson.model.UpdateCenter$UpdateCenterConfiguration.checkUpdateCenter(UpdateCenter.java:709) at hudson.model.UpdateCenter$ConnectionCheckJob.run(UpdateCenter.java:1030) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 

jenkins.war 
Failure - 

hudson.util.IOException2: Failed to download from http://updates.jenkins-ci.org/download/war/1.508/jenkins.war 
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:782) 
    at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1123) 
    at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1101) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 
    at java.util.concurrent.FutureTask.run(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
    at java.lang.Thread.run(Unknown Source) 
Caused by: java.net.ConnectException: Connection refused: connect 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) 
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) 
    at java.lang.reflect.Constructor.newInstance(Unknown Source) 
    at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source) 
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) 
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:752) 
    ... 8 more 
Caused by: java.net.ConnectException: Connection refused: connect 
    at java.net.PlainSocketImpl.socketConnect(Native Method) 
    at java.net.PlainSocketImpl.doConnect(Unknown Source) 
    at java.net.PlainSocketImpl.connectToAddress(Unknown Source) 
    at java.net.PlainSocketImpl.connect(Unknown Source) 
    at java.net.SocksSocketImpl.connect(Unknown Source) 
    at java.net.Socket.connect(Unknown Source) 
    at java.net.Socket.connect(Unknown Source) 
    at sun.net.NetworkClient.doConnect(Unknown Source) 
    at sun.net.www.http.HttpClient.openServer(Unknown Source) 
    at sun.net.www.http.HttpClient.openServer(Unknown Source) 
    at sun.net.www.http.HttpClient.<init>(Unknown Source) 
    at sun.net.www.http.HttpClient.New(Unknown Source) 
    at sun.net.www.http.HttpClient.New(Unknown Source) 
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source) 
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) 
    at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) 
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) 
    at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source) 
    at java.net.URLConnection.getHeaderFieldInt(Unknown Source) 
    at java.net.URLConnection.getContentLength(Unknown Source) 
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:751) 
    ... 8 more 

Preparation 

    Checking internet connectivity 
    Checking update center connectivity 
    java.io.IOException: Server returned HTTP response code: 403 for URL: http://updates.jenkins-ci.org/update-center.json?uctest at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) at hudson.model.UpdateCenter$UpdateCenterConfiguration.testConnection(UpdateCenter.java:860) at hudson.model.UpdateCenter$UpdateCenterConfiguration.checkUpdateCenter(UpdateCenter.java:709) at hudson.model.UpdateCenter$ConnectionCheckJob.run(UpdateCenter.java:1030) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) 

Timestamper 
Failure - 

hudson.util.IOException2: Failed to download from http://updates.jenkins-ci.org/download/plugins/timestamper/1.5.3/timestamper.hpi 
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:782) 
    at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1123) 
    at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1285) 
    at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1101) 
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) 
    at java.util.concurrent.FutureTask.run(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) 
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
    at java.lang.Thread.run(Unknown Source) 
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://updates.jenkins-ci.org/download/plugins/timestamper/1.5.3/timestamper.hpi 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) 
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) 
    at java.lang.reflect.Constructor.newInstance(Unknown Source) 
    at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source) 
    at java.security.AccessController.doPrivileged(Native Method) 
    at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source) 
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) 
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:752) 
    ... 9 more 
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://updates.jenkins-ci.org/download/plugins/timestamper/1.5.3/timestamper.hpi 
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source) 
    at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source) 
    at java.net.URLConnection.getHeaderFieldInt(Unknown Source) 
    at java.net.URLConnection.getContentLength(Unknown Source) 
    at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:751) 
    ... 9 more 

risposta

12

Dato che il nostro server centro di aggiornamento non fa alcuna autenticazione e quindi non ritorna 403, molto probabilmente l'errore 403 viene restituito dal proxy HTTP. Se fossi in te, controllerei il nome utente del proxy e la password.

Probabilmente dovremmo aggiungere un pulsante di verifica connettività nella pagina di configurazione in cui inserisci i dettagli del proxy. Se saresti così gentile da archiviare questo come un biglietto in https://issues.jenkins-ci.org/, sarei felice di arrivare a quello.

+1

Sì, avere questo pulsante sarebbe fantastico :) – unludo

+0

Grazie Kohsuke. Ho aggiunto questo secondo la tua richiesta. Biglietto: https://issues.jenkins-ci.org/browse/JENKINS-20191 –

+0

Ho lo stesso errore - tuttavia, Jenkins non mi consente di salvare la configurazione del mio proxy. Non ho un server proxy e il "test" ha sempre successo. Inoltre, utilizza il mio nome utente e la password (utente connesso) senza consentirmi di eliminarlo. – Ani

0

Grazie Kohsuke. Problema: stavo usando il nome host del proxy con http://proxyservername.com.

Quando ho inserito "proxyservername.com", ha funzionato. Aprirò un ticket per ottenere il pulsante di connessione Proxy "Test". Sarebbe stato bello se (?) Mostrasse un esempio, ma il mio male.