Timeout exception when trying to download any remote index in Archiva 2.2.0 -
archiva 2.2.0. , running on vm (centos 6.6). vm can access internet behind proxy.
for example, get repo1.maven.org
works well:
... <body> <div id="top"></div> <div id="container"> <p>browsing directory has been disabled.</p> <p><a href="http://search.maven.org/#browse">view</a> directory's contents on <a href="http://search.maven.org/#browse">http://search.maven.org</a> instead.</p> <p>find out more <a href="http://central.sonatype.org">the central repository</a>.</p> <div id="footer-spacer"></div> </div> <div id="footer"> <a href="http://central.sonatype.org">about central</a> | <a href="/terms.html">terms of service</a> </div> </body> ...
two remote repositories configured, both same proxy.
but unfortunately, same connection timeout exception. see below exception 1 of configured remote repository (central).
from archiva.log:
2015-06-01 10:24:55,286 [taskscheduler#indexdownloadremote-1] info org.apache.archiva.scheduler.indexing.downloadremoteindextask$downloadlistener [] - error of transfer file nexus-maven-repository-index.properties: connect repo1.maven.org:80 timed out org.apache.maven.wagon.transferfailedexception: connect repo1.maven.org:80 timed out @ org.apache.maven.wagon.providers.http.abstracthttpclientwagon.fillinputdata(abstracthttpclientwagon.java:892) ~[wagon-http-2.5.jar:2.5] @ org.apache.maven.wagon.streamwagon.getinputstream(streamwagon.java:116) [wagon-provider-api-2.5.jar:2.5] @ org.apache.maven.wagon.streamwagon.getifnewer(streamwagon.java:88) [wagon-provider-api-2.5.jar:2.5] @ org.apache.maven.wagon.streamwagon.get(streamwagon.java:61) [wagon-provider-api-2.5.jar:2.5] @ org.apache.archiva.scheduler.indexing.downloadremoteindextask$wagonresourcefetcher.retrieve(downloadremoteindextask.java:351) [archiva-scheduler-indexing-2.2.0.jar:?] @ org.apache.maven.index.updater.defaultindexupdater.downloadindexproperties(defaultindexupdater.java:459) [indexer-core-5.1.1.jar:5.1.1] @ org.apache.maven.index.updater.defaultindexupdater.access$000(defaultindexupdater.java:76) [indexer-core-5.1.1.jar:5.1.1] @ org.apache.maven.index.updater.defaultindexupdater$indexadaptor.setproperties(defaultindexupdater.java:589) [indexer-core-5.1.1.jar:5.1.1] @ org.apache.maven.index.updater.defaultindexupdater.fetchandupdateindex(defaultindexupdater.java:814) [indexer-core-5.1.1.jar:5.1.1] @ org.apache.maven.index.updater.defaultindexupdater.fetchandupdateindex(defaultindexupdater.java:136) [indexer-core-5.1.1.jar:5.1.1] @ org.apache.archiva.scheduler.indexing.downloadremoteindextask.run(downloadremoteindextask.java:186) [archiva-scheduler-indexing-2.2.0.jar:?] @ org.springframework.scheduling.support.delegatingerrorhandlingrunnable.run(delegatingerrorhandlingrunnable.java:54) [spring-context-4.1.4.release.jar:4.1.4.release] @ java.util.concurrent.executors$runnableadapter.call(executors.java:471) [?:1.7.0_65] @ java.util.concurrent.futuretask.run(futuretask.java:262) [?:1.7.0_65] @ java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.access$201(scheduledthreadpoolexecutor.java:178) [?:1.7.0_65] @ java.util.concurrent.scheduledthreadpoolexecutor$scheduledfuturetask.run(scheduledthreadpoolexecutor.java:292) [?:1.7.0_65] @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) [?:1.7.0_65] @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) [?:1.7.0_65] @ java.lang.thread.run(thread.java:745) [?:1.7.0_65] caused by: org.apache.http.conn.connecttimeoutexception: connect repo1.maven.org:80 timed out @ org.apache.http.conn.scheme.plainsocketfactory.connectsocket(plainsocketfactory.java:119) ~[httpclient-4.3.6.jar:4.3.6] @ org.apache.http.impl.conn.defaultclientconnectionoperator.openconnection(defaultclientconnectionoperator.java:177) ~[httpclient-4.3.6.jar:4.3.6] @ org.apache.http.impl.conn.managedclientconnectionimpl.open(managedclientconnectionimpl.java:304) ~[httpclient-4.3.6.jar:4.3.6] @ org.apache.http.impl.client.defaultrequestdirector.tryconnect(defaultrequestdirector.java:611) ~[httpclient-4.3.6.jar:4.3.6] @ org.apache.http.impl.client.defaultrequestdirector.execute(defaultrequestdirector.java:446) ~[httpclient-4.3.6.jar:4.3.6]
from request-*.log:
ip - - [01/juin/2015:08:47:55 +0000] "get /restservices/archivaservices/remoterepositoriesservice/checkremoteconnectivity/central?_=1433145022958 http/1.1" 200 5 "http://$$$$$$$$$$/" "mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, gecko) chrome/42.0.2311.90 safari/537.36" ip - - [01/juin/2015:08:46:54 +0000] "get /restservices/archivaservices/remoterepositoriesservice/checkremoteconnectivity/repo.jenkins-ci.org?_=1433145022952 http/1.1" 200 5 "http://$$$$$$$$$$/" "mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, gecko) chrome/42.0.2311.90 safari/537.36"
am missing something? thanks!
you need configure https://repo.maven.apache.org/maven2 , setup https proxy.
because if http://repo.maven.apache.org/maven2 there redirection https protocol.
that should work.
hth olivier
Comments
Post a Comment