java.net.SocketTimeoutException: Read timed out

manifoldcf-user | Karl Wright | 4 years ago
  1. 0

    After I installed Nexus and enabled remote index download for repository "Central" following exception occurred (Excerpt from the log-file): jvm 1 | 2012-08-18 20:05:11 ERROR [pool-1-thread-1] - org.apache.maven.index.updater.DefaultIndexUpdater - Fallback to *.zip also failed: org.sonatype.nexus.proxy.RemoteStorageException: Transport error while executing GET method [repositoryId="central", requestPath="/.index/nexus-maven-repository-index.zip", remoteUrl="http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.zip"] jvm 1 | 2012-08-18 20:05:11 WARN [pool-1-thread-1] - org.sonatype.nexus.index.DefaultIndexerManager - Cannot fetch remote index for repository "Central" [id=central] jvm 1 | java.net.SocketTimeoutException: Read timed out jvm 1 | at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_06] jvm 1 | at java.net.SocketInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.net.SocketInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.read1(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at org.apache.commons.httpclient.ContentLengthInputStream.read(Unknown Source) ~[commons-httpclient-3.1.SONATYPE.jar:3.1] jvm 1 | at java.io.FilterInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at org.apache.commons.httpclient.AutoCloseInputStream.read(Unknown Source) ~[commons-httpclient-3.1.SONATYPE.jar:3.1] jvm 1 | at org.sonatype.nexus.util.WrappingInputStream.read(WrappingInputStream.java:59) ~[nexus-utils-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.HttpClientInputStream.read(HttpClientInputStream.java:95) ~[nexus-proxy-2.1.1.jar:na] jvm 1 | at java.io.BufferedInputStream.read1(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.fill(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.read1(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.util.zip.InflaterInputStream.fill(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.util.zip.InflaterInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.util.zip.GZIPInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.DataInputStream.readFully(Unknown Source) ~[na:1.7.0_06] jvm 1 | at org.apache.maven.index.updater.IndexDataReader.readUTF(IndexDataReader.java:193)~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.IndexDataReader.readField(IndexDataReader.java:162) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.IndexDataReader.readDocument(IndexDataReader.java:137) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.IndexDataReader.readIndex(IndexDataReader.java:90) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.unpackIndexData(DefaultIndexUpdater.java:509) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:197) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:76) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:642) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:862) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:157) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1139) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:1016) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:890) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:838) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:812) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:54) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:69) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:158)[nexus-app-2.1.1.jar:na] jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:459)[plexus-task-scheduler-1.6.0.jar:na] jvm 1 | at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [na:1.7.0_06] jvm 1 | at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.7.0_06] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) [na:1.7.0_06] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(UnknownSource) [na:1.7.0_06] jvm 1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_06] jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_06] jvm 1 | at java.lang.Thread.run(Unknown Source) [na:1.7.0_06] The problem appears to be caused by Java 7 (the issue does not occur with Java 6) and its default use of IPv6. I solved the problem by adding the following line in the wrapper.conf properties file (directory $NEXUS_HOME/bin/jsw/conf): wrapper.java.additional.1=-Djava.net.preferIPv4Stack=true I can hardly imagine that this issue can be solved in the Nexus code but an entry in some Release Notes, FAQs or a hint in the log-file about activating IPv4 when a SocketTimeoutException: Read timed out happens during index download in a Java 7 environment might be helpful and spare others a few hours investigating this issue again :-)

    Sonatype JIRA | 4 years ago | Erik
    java.net.SocketTimeoutException: Read timed out
  2. 0

    After I installed Nexus and enabled remote index download for repository "Central" following exception occurred (Excerpt from the log-file): jvm 1 | 2012-08-18 20:05:11 ERROR [pool-1-thread-1] - org.apache.maven.index.updater.DefaultIndexUpdater - Fallback to *.zip also failed: org.sonatype.nexus.proxy.RemoteStorageException: Transport error while executing GET method [repositoryId="central", requestPath="/.index/nexus-maven-repository-index.zip", remoteUrl="http://repo1.maven.org/maven2/.index/nexus-maven-repository-index.zip"] jvm 1 | 2012-08-18 20:05:11 WARN [pool-1-thread-1] - org.sonatype.nexus.index.DefaultIndexerManager - Cannot fetch remote index for repository "Central" [id=central] jvm 1 | java.net.SocketTimeoutException: Read timed out jvm 1 | at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.7.0_06] jvm 1 | at java.net.SocketInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.net.SocketInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.read1(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at org.apache.commons.httpclient.ContentLengthInputStream.read(Unknown Source) ~[commons-httpclient-3.1.SONATYPE.jar:3.1] jvm 1 | at java.io.FilterInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at org.apache.commons.httpclient.AutoCloseInputStream.read(Unknown Source) ~[commons-httpclient-3.1.SONATYPE.jar:3.1] jvm 1 | at org.sonatype.nexus.util.WrappingInputStream.read(WrappingInputStream.java:59) ~[nexus-utils-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.HttpClientInputStream.read(HttpClientInputStream.java:95) ~[nexus-proxy-2.1.1.jar:na] jvm 1 | at java.io.BufferedInputStream.read1(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.fill(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.read1(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.BufferedInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.util.zip.InflaterInputStream.fill(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.util.zip.InflaterInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.util.zip.GZIPInputStream.read(Unknown Source) ~[na:1.7.0_06] jvm 1 | at java.io.DataInputStream.readFully(Unknown Source) ~[na:1.7.0_06] jvm 1 | at org.apache.maven.index.updater.IndexDataReader.readUTF(IndexDataReader.java:193)~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.IndexDataReader.readField(IndexDataReader.java:162) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.IndexDataReader.readDocument(IndexDataReader.java:137) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.IndexDataReader.readIndex(IndexDataReader.java:90) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.unpackIndexData(DefaultIndexUpdater.java:509) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.loadIndexDirectory(DefaultIndexUpdater.java:197) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.access$300(DefaultIndexUpdater.java:76) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater$LuceneIndexAdaptor.setIndexFile(DefaultIndexUpdater.java:642) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:862) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:157) ~[indexer-core-4.1.3-SONATYPE.jar:4.1.3-SONATYPE] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1139) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.downloadRepositoryIndex(DefaultIndexerManager.java:1016) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:890) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:838) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:812) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:54) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:69) [nexus-indexer-lucene-plugin-2.1.1.jar:na] jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:158)[nexus-app-2.1.1.jar:na] jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:459)[plexus-task-scheduler-1.6.0.jar:na] jvm 1 | at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) [na:1.7.0_06] jvm 1 | at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.7.0_06] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) [na:1.7.0_06] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(UnknownSource) [na:1.7.0_06] jvm 1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_06] jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_06] jvm 1 | at java.lang.Thread.run(Unknown Source) [na:1.7.0_06] The problem appears to be caused by Java 7 (the issue does not occur with Java 6) and its default use of IPv6. I solved the problem by adding the following line in the wrapper.conf properties file (directory $NEXUS_HOME/bin/jsw/conf): wrapper.java.additional.1=-Djava.net.preferIPv4Stack=true I can hardly imagine that this issue can be solved in the Nexus code but an entry in some Release Notes, FAQs or a hint in the log-file about activating IPv4 when a SocketTimeoutException: Read timed out happens during index download in a Java 7 environment might be helpful and spare others a few hours investigating this issue again :-)

    Sonatype JIRA | 4 years ago | Erik
    java.net.SocketTimeoutException: Read timed out
  3. 0

    Re: Read timed out on ManifoldCF 0.6

    manifoldcf-user | 4 years ago | Karl Wright
    java.net.SocketTimeoutException: Read timed out
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to change value of 'Read timeout' of Eclipse's Update Manager?

    Stack Overflow | 7 years ago | Alex Siman
    java.net.SocketTimeoutException: Read timed out
  6. 0

    hadoop build from source error on hadoop-mapreduce-client-jobclient

    Stack Overflow | 2 years ago | Joffrey
    org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact org.hsqldb:hsqldb:jar:2.0.0 from/to central (http://repo.maven.apache.org/maven2): GET request of: org/hsqldb/hsqldb/2.0.0/hsqldb-2.0.0.jar from central failed

  1. kid 1 times, last 4 months ago
  2. danleyb2Interintel 1 times, last 5 months ago
  3. tfr 7 times, last 5 months ago
20 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.SocketTimeoutException

    Read timed out

    at java.net.SocketInputStream.socketRead0()
  2. Java RT
    BufferedInputStream.read
    1. java.net.SocketInputStream.socketRead0(Native Method)
    2. java.net.SocketInputStream.read(Unknown Source)
    3. java.net.SocketInputStream.read(Unknown Source)
    4. java.io.BufferedInputStream.read1(Unknown Source)
    5. java.io.BufferedInputStream.read(Unknown Source)
    5 frames
  3. HttpClient
    ContentLengthInputStream.read
    1. org.apache.commons.httpclient.ContentLengthInputStream.read(Unknown Source)
    1 frame
  4. Java RT
    FilterInputStream.read
    1. java.io.FilterInputStream.read(Unknown Source)
    1 frame
  5. HttpClient
    AutoCloseInputStream.read
    1. org.apache.commons.httpclient.AutoCloseInputStream.read(Unknown Source)
    1 frame