
|
Cannot fetch remote index
Hi,
I have just installed nexus for the first time, and I need your help :)
When I try to download remote indexes for Maven Central from the UI, nothing happens. The following is the exception details from the log file wrapper.log:
INFO | jvm 1 | 2009/10/20 20:00:02 | 2009-10-20 20:00:02 INFO - o.s.n.p.r.Repository:maven2 - Clearing NFC cache in repository ID='central' from path='/.index ' INFO | jvm 1 | 2009/10/20 20:00:11 | 2009-10-20 20:00:11 WARN - o.s.n.i.IndexerMana~:default - Cannot fetch remote index:
INFO | jvm 1 | 2009/10/20 20:00:11 | org.sonatype.nexus.proxy.StorageException: Tranport error while executing GET method INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.executeMethod(CommonsHttpC
lientRemoteStorage.java:512) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.retrieveItem(CommonsHttpCl ientRemoteStorage.java:133)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager$1.retrieve(DefaultIndexerManager.java:699) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:178)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:103) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:731)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.updateIndexForRemoteRepository(DefaultIndexerManager.java:603) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:570)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryGroupIndex(DefaultIndexerManager.java:549) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.DefaultNexus.downloadRepositoryGroupIndex(DefaultNexus.java:1352)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.tasks.DownloadIndexesTask.doRun(DownloadIndexesTask.java:45) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.FutureTask.run(FutureTask.java:138) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98
) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.lang.Thread.run(Thread.java:619)
INFO | jvm 1 | 2009/10/20 20:00:11 | Caused by: java.net.SocketException: Connection reset INFO | jvm 1 | 2009/10/20 20:00:11 | at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.net.SocketOutputStream.write(SocketOutputStream.java:136) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:828)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.flushRequestOutputStream(Mul tiThreadedHttpConnectionManager.java:1565) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2116)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.executeMethod(CommonsHttpC
lientRemoteStorage.java:483) INFO | jvm 1 | 2009/10/20 20:00:11 | ... 19 more
I'm not sure whether it is because of the internet connection that I have is not stable, or maybe there is anything I can do, like manually downloading the remote indexes and put it somewhere in the server. I really appreciate your help and advice. Thanks in advance.
Regards, Antonius
|

|
Re: Cannot fetch remote index
Not sure if it could be of any help, but the Nexus index for central is hosted at S3. Possibly there is some connection issues from you to S3? If you go to http://repo1.maven.org/maven2/.index/
you'll get redirected to the S3 service. /Anders On Wed, Oct 21, 2009 at 06:27, Antonius Ng <antonius@...> wrote:
Hi,
I have just installed nexus for the first time, and I need your help :)
When I try to download remote indexes for Maven Central from the UI, nothing happens. The following is the exception details from the log file wrapper.log:
INFO | jvm 1 | 2009/10/20 20:00:02 | 2009-10-20 20:00:02 INFO - o.s.n.p.r.Repository:maven2 - Clearing NFC cache in repository ID='central' from path='/.index ' INFO | jvm 1 | 2009/10/20 20:00:11 | 2009-10-20 20:00:11 WARN - o.s.n.i.IndexerMana~:default - Cannot fetch remote index:
INFO | jvm 1 | 2009/10/20 20:00:11 | org.sonatype.nexus.proxy.StorageException: Tranport error while executing GET method INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.executeMethod(CommonsHttpC
lientRemoteStorage.java:512) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.retrieveItem(CommonsHttpCl ientRemoteStorage.java:133)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager$1.retrieve(DefaultIndexerManager.java:699) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:178)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:103) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:731)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.updateIndexForRemoteRepository(DefaultIndexerManager.java:603) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:570)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryGroupIndex(DefaultIndexerManager.java:549) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.DefaultNexus.downloadRepositoryGroupIndex(DefaultNexus.java:1352)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.tasks.DownloadIndexesTask.doRun(DownloadIndexesTask.java:45) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.FutureTask.run(FutureTask.java:138) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98
) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.lang.Thread.run(Thread.java:619)
INFO | jvm 1 | 2009/10/20 20:00:11 | Caused by: java.net.SocketException: Connection reset INFO | jvm 1 | 2009/10/20 20:00:11 | at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.net.SocketOutputStream.write(SocketOutputStream.java:136) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:828)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.flushRequestOutputStream(Mul tiThreadedHttpConnectionManager.java:1565) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2116)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.executeMethod(CommonsHttpC
lientRemoteStorage.java:483) INFO | jvm 1 | 2009/10/20 20:00:11 | ... 19 more
I'm not sure whether it is because of the internet connection that I have is not stable, or maybe there is anything I can do, like manually downloading the remote indexes and put it somewhere in the server. I really appreciate your help and advice. Thanks in advance.
Regards, Antonius
|

|
Re: Cannot fetch remote index
Hi Anders, Thanks for the reply. I tried going to http://repo1.maven.org/maven2/.index/I was redirected to http://repo2.maven.org.s3.amazonaws.com/.index/
and I got the following response: <?xml version="1.0" encoding="UTF-8"?> <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>B382EBEDD982AD88</RequestId><HostId>ofxfcaBL9i9Us1JJM4P4uzN1RNKBtBcO7v/z7b0VHwPPSgHPOXl4HBHjk13oywSF</HostId></Error>
Am I supposed to get this error? Antonius On Wed, Oct 21, 2009 at 1:45 PM, Anders Hammar <anders@...> wrote:
Not sure if it could be of any help, but the Nexus index for central is hosted at S3. Possibly there is some connection issues from you to S3? If you go to
http://repo1.maven.org/maven2/.index/
you'll get redirected to the S3 service.
/AndersOn Wed, Oct 21, 2009 at 06:27, Antonius Ng <antonius@...> wrote:
Hi,
I have just installed nexus for the first time, and I need your help :)
When I try to download remote indexes for Maven Central from the UI, nothing happens. The following is the exception details from the log file wrapper.log:
INFO | jvm 1 | 2009/10/20 20:00:02 | 2009-10-20 20:00:02 INFO - o.s.n.p.r.Repository:maven2 - Clearing NFC cache in repository ID='central' from path='/.index ' INFO | jvm 1 | 2009/10/20 20:00:11 | 2009-10-20 20:00:11 WARN - o.s.n.i.IndexerMana~:default - Cannot fetch remote index:
INFO | jvm 1 | 2009/10/20 20:00:11 | org.sonatype.nexus.proxy.StorageException: Tranport error while executing GET method INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.executeMethod(CommonsHttpC
lientRemoteStorage.java:512) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.retrieveItem(CommonsHttpCl ientRemoteStorage.java:133)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager$1.retrieve(DefaultIndexerManager.java:699) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:178)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:103) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:731)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.updateIndexForRemoteRepository(DefaultIndexerManager.java:603) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:570)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryGroupIndex(DefaultIndexerManager.java:549) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.DefaultNexus.downloadRepositoryGroupIndex(DefaultNexus.java:1352)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.tasks.DownloadIndexesTask.doRun(DownloadIndexesTask.java:45) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.FutureTask.run(FutureTask.java:138) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98
) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.lang.Thread.run(Thread.java:619)
INFO | jvm 1 | 2009/10/20 20:00:11 | Caused by: java.net.SocketException: Connection reset INFO | jvm 1 | 2009/10/20 20:00:11 | at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.net.SocketOutputStream.write(SocketOutputStream.java:136) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:828)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.flushRequestOutputStream(Mul tiThreadedHttpConnectionManager.java:1565) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2116)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.executeMethod(CommonsHttpC
lientRemoteStorage.java:483) INFO | jvm 1 | 2009/10/20 20:00:11 | ... 19 more
I'm not sure whether it is because of the internet connection that I have is not stable, or maybe there is anything I can do, like manually downloading the remote indexes and put it somewhere in the server. I really appreciate your help and advice. Thanks in advance.
Regards, Antonius
|

|
Re: Cannot fetch remote index
I think so. I tried downloading the index from my Nexus instance and it works. I think that browsing that url through a web browser is blocked. What you could try is to update the index from M2Eclipse. However, most likely it will be a different Nexus indexer version. Also, I think that the newest M2Eclipse (not sure if it's 0.9.8 or 0.9.9-dev) is using incremental downloads. But, it should at least be some kind of test of your connection to S3 through a different tool.
/Anders On Wed, Oct 21, 2009 at 09:56, Antonius Ng <antonius@...> wrote:
Hi Anders,
Thanks for the reply.
I tried going to http://repo1.maven.org/maven2/.index/ I was redirected to http://repo2.maven.org.s3.amazonaws.com/.index/
and I got the following response:
<?xml version="1.0" encoding="UTF-8"?> <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>B382EBEDD982AD88</RequestId><HostId>ofxfcaBL9i9Us1JJM4P4uzN1RNKBtBcO7v/z7b0VHwPPSgHPOXl4HBHjk13oywSF</HostId></Error>
Am I supposed to get this error?
Antonius
On Wed, Oct 21, 2009 at 1:45 PM, Anders Hammar <anders@...> wrote:
Not sure if it could be of any help, but the Nexus index for central is hosted at S3. Possibly there is some connection issues from you to S3? If you go to
http://repo1.maven.org/maven2/.index/
you'll get redirected to the S3 service.
/AndersOn Wed, Oct 21, 2009 at 06:27, Antonius Ng <antonius@...> wrote:
Hi,
I have just installed nexus for the first time, and I need your help :)
When I try to download remote indexes for Maven Central from the UI, nothing happens. The following is the exception details from the log file wrapper.log:
INFO | jvm 1 | 2009/10/20 20:00:02 | 2009-10-20 20:00:02 INFO - o.s.n.p.r.Repository:maven2 - Clearing NFC cache in repository ID='central' from path='/.index ' INFO | jvm 1 | 2009/10/20 20:00:11 | 2009-10-20 20:00:11 WARN - o.s.n.i.IndexerMana~:default - Cannot fetch remote index:
INFO | jvm 1 | 2009/10/20 20:00:11 | org.sonatype.nexus.proxy.StorageException: Tranport error while executing GET method INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.executeMethod(CommonsHttpC
lientRemoteStorage.java:512) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.retrieveItem(CommonsHttpCl ientRemoteStorage.java:133)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager$1.retrieve(DefaultIndexerManager.java:699) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:178)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:103) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:731)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.updateIndexForRemoteRepository(DefaultIndexerManager.java:603) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:570)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryGroupIndex(DefaultIndexerManager.java:549) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.DefaultNexus.downloadRepositoryGroupIndex(DefaultNexus.java:1352)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.tasks.DownloadIndexesTask.doRun(DownloadIndexesTask.java:45) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.FutureTask.run(FutureTask.java:138) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98
) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.lang.Thread.run(Thread.java:619)
INFO | jvm 1 | 2009/10/20 20:00:11 | Caused by: java.net.SocketException: Connection reset INFO | jvm 1 | 2009/10/20 20:00:11 | at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.net.SocketOutputStream.write(SocketOutputStream.java:136) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:828)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.flushRequestOutputStream(Mul tiThreadedHttpConnectionManager.java:1565) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2116)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.executeMethod(CommonsHttpC
lientRemoteStorage.java:483) INFO | jvm 1 | 2009/10/20 20:00:11 | ... 19 more
I'm not sure whether it is because of the internet connection that I have is not stable, or maybe there is anything I can do, like manually downloading the remote indexes and put it somewhere in the server. I really appreciate your help and advice. Thanks in advance.
Regards, Antonius
|

|
Re: Cannot fetch remote index
I tried using M2Eclipse a few days ago and it took me several hours to completely downloading all the indexes from central. That's why I thought perhaps it is a good idea to have a repository manager like nexus, so that all the developers in my office can connect to the nexus installed in our office instead.
Antonius On Wed, Oct 21, 2009 at 3:00 PM, Anders Hammar <anders@...> wrote:
I think so. I tried downloading the index from my Nexus instance and it works. I think that browsing that url through a web browser is blocked.
What you could try is to update the index from M2Eclipse. However, most likely it will be a different Nexus indexer version. Also, I think that the newest M2Eclipse (not sure if it's 0.9.8 or 0.9.9-dev) is using incremental downloads. But, it should at least be some kind of test of your connection to S3 through a different tool.
/AndersOn Wed, Oct 21, 2009 at 09:56, Antonius Ng <antonius@...> wrote:
Hi Anders,
Thanks for the reply.
I tried going to http://repo1.maven.org/maven2/.index/ I was redirected to http://repo2.maven.org.s3.amazonaws.com/.index/
and I got the following response:
<?xml version="1.0" encoding="UTF-8"?> <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>B382EBEDD982AD88</RequestId><HostId>ofxfcaBL9i9Us1JJM4P4uzN1RNKBtBcO7v/z7b0VHwPPSgHPOXl4HBHjk13oywSF</HostId></Error>
Am I supposed to get this error?
Antonius
On Wed, Oct 21, 2009 at 1:45 PM, Anders Hammar <anders@...> wrote:
Not sure if it could be of any help, but the Nexus index for central is hosted at S3. Possibly there is some connection issues from you to S3? If you go to
http://repo1.maven.org/maven2/.index/
you'll get redirected to the S3 service.
/AndersOn Wed, Oct 21, 2009 at 06:27, Antonius Ng <antonius@...> wrote:
Hi,
I have just installed nexus for the first time, and I need your help :)
When I try to download remote indexes for Maven Central from the UI, nothing happens. The following is the exception details from the log file wrapper.log:
INFO | jvm 1 | 2009/10/20 20:00:02 | 2009-10-20 20:00:02 INFO - o.s.n.p.r.Repository:maven2 - Clearing NFC cache in repository ID='central' from path='/.index ' INFO | jvm 1 | 2009/10/20 20:00:11 | 2009-10-20 20:00:11 WARN - o.s.n.i.IndexerMana~:default - Cannot fetch remote index:
INFO | jvm 1 | 2009/10/20 20:00:11 | org.sonatype.nexus.proxy.StorageException: Tranport error while executing GET method INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.executeMethod(CommonsHttpC
lientRemoteStorage.java:512) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.retrieveItem(CommonsHttpCl ientRemoteStorage.java:133)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager$1.retrieve(DefaultIndexerManager.java:699) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:178)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:103) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:731)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.updateIndexForRemoteRepository(DefaultIndexerManager.java:603) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:570)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryGroupIndex(DefaultIndexerManager.java:549) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.DefaultNexus.downloadRepositoryGroupIndex(DefaultNexus.java:1352)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.tasks.DownloadIndexesTask.doRun(DownloadIndexesTask.java:45) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.FutureTask.run(FutureTask.java:138) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98
) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.lang.Thread.run(Thread.java:619)
INFO | jvm 1 | 2009/10/20 20:00:11 | Caused by: java.net.SocketException: Connection reset INFO | jvm 1 | 2009/10/20 20:00:11 | at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.net.SocketOutputStream.write(SocketOutputStream.java:136) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:828)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.flushRequestOutputStream(Mul tiThreadedHttpConnectionManager.java:1565) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2116)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.executeMethod(CommonsHttpC
lientRemoteStorage.java:483) INFO | jvm 1 | 2009/10/20 20:00:11 | ... 19 more
I'm not sure whether it is because of the internet connection that I have is not stable, or maybe there is anything I can do, like manually downloading the remote indexes and put it somewhere in the server. I really appreciate your help and advice. Thanks in advance.
Regards, Antonius
|

|
Re: Cannot fetch remote index
Yes, that's the way to do it. /A On Wed, Oct 21, 2009 at 13:04, Antonius Ng <antonius@...> wrote:
I tried using M2Eclipse a few days ago and it took me several hours to completely downloading all the indexes from central.
That's why I thought perhaps it is a good idea to have a repository manager like nexus, so that all the developers in my office can connect to the nexus installed in our office instead.
AntoniusOn Wed, Oct 21, 2009 at 3:00 PM, Anders Hammar <anders@...> wrote:
I think so. I tried downloading the index from my Nexus instance and it works. I think that browsing that url through a web browser is blocked.
What you could try is to update the index from M2Eclipse. However, most likely it will be a different Nexus indexer version. Also, I think that the newest M2Eclipse (not sure if it's 0.9.8 or 0.9.9-dev) is using incremental downloads. But, it should at least be some kind of test of your connection to S3 through a different tool.
/AndersOn Wed, Oct 21, 2009 at 09:56, Antonius Ng <antonius@...> wrote:
Hi Anders,
Thanks for the reply.
I tried going to http://repo1.maven.org/maven2/.index/ I was redirected to http://repo2.maven.org.s3.amazonaws.com/.index/
and I got the following response:
<?xml version="1.0" encoding="UTF-8"?> <Error><Code>AccessDenied</Code><Message>Access Denied</Message><RequestId>B382EBEDD982AD88</RequestId><HostId>ofxfcaBL9i9Us1JJM4P4uzN1RNKBtBcO7v/z7b0VHwPPSgHPOXl4HBHjk13oywSF</HostId></Error>
Am I supposed to get this error?
Antonius
On Wed, Oct 21, 2009 at 1:45 PM, Anders Hammar <anders@...> wrote:
Not sure if it could be of any help, but the Nexus index for central is hosted at S3. Possibly there is some connection issues from you to S3? If you go to
http://repo1.maven.org/maven2/.index/
you'll get redirected to the S3 service.
/AndersOn Wed, Oct 21, 2009 at 06:27, Antonius Ng <antonius@...> wrote:
Hi,
I have just installed nexus for the first time, and I need your help :)
When I try to download remote indexes for Maven Central from the UI, nothing happens. The following is the exception details from the log file wrapper.log:
INFO | jvm 1 | 2009/10/20 20:00:02 | 2009-10-20 20:00:02 INFO - o.s.n.p.r.Repository:maven2 - Clearing NFC cache in repository ID='central' from path='/.index ' INFO | jvm 1 | 2009/10/20 20:00:11 | 2009-10-20 20:00:11 WARN - o.s.n.i.IndexerMana~:default - Cannot fetch remote index:
INFO | jvm 1 | 2009/10/20 20:00:11 | org.sonatype.nexus.proxy.StorageException: Tranport error while executing GET method INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.executeMethod(CommonsHttpC
lientRemoteStorage.java:512) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.retrieveItem(CommonsHttpCl ientRemoteStorage.java:133)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager$1.retrieve(DefaultIndexerManager.java:699) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:178)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:103) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:731)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.updateIndexForRemoteRepository(DefaultIndexerManager.java:603) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:570)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryGroupIndex(DefaultIndexerManager.java:549) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.DefaultNexus.downloadRepositoryGroupIndex(DefaultNexus.java:1352)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.tasks.DownloadIndexesTask.doRun(DownloadIndexesTask.java:45) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:139)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:342) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.FutureTask.run(FutureTask.java:138) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98
) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.lang.Thread.run(Thread.java:619)
INFO | jvm 1 | 2009/10/20 20:00:11 | Caused by: java.net.SocketException: Connection reset INFO | jvm 1 | 2009/10/20 20:00:11 | at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:96)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.net.SocketOutputStream.write(SocketOutputStream.java:136) INFO | jvm 1 | 2009/10/20 20:00:11 | at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
INFO | jvm 1 | 2009/10/20 20:00:11 | at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:828)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.flushRequestOutputStream(Mul tiThreadedHttpConnectionManager.java:1565) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2116)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
INFO | jvm 1 | 2009/10/20 20:00:11 | at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) INFO | jvm 1 | 2009/10/20 20:00:11 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.executeMethod(CommonsHttpC
lientRemoteStorage.java:483) INFO | jvm 1 | 2009/10/20 20:00:11 | ... 19 more
I'm not sure whether it is because of the internet connection that I have is not stable, or maybe there is anything I can do, like manually downloading the remote indexes and put it somewhere in the server. I really appreciate your help and advice. Thanks in advance.
Regards, Antonius
|