java.io.IOException: Cannot fetch remote index for repository "couch" [id=couch], error occurred.

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • The nexus UI allows you to enter invalid URL's in proxy repository configuration. The stack below is the result of entering "http://files.couchbase.com/maven2 /". {quote} 2014-07-11 08:17:51 WARN [pxpool-1-thread-2] admin org.sonatype.scheduling.DefaultScheduledTask - Exception in call method of scheduled task Creating initial index, repositoryId=couch java.io.IOException: Cannot fetch remote index for repository "couch" [id=couch], error occurred. at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1342) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.access$1100(DefaultIndexerManager.java:189) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager$IndexUpdateRunnable.run(DefaultIndexerManager.java:1058) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.sharedSingle(DefaultIndexerManager.java:2310) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:999) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:962) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:939) ~[na:na] at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:62) ~[na:na] at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:69) ~[na:na] at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:157) ~[nexus-core-2.7.2-03.jar:2.7.2-03] at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:419) ~[nexus-scheduler-2.7.2-03.jar:2.7.2-03] at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:45) [nexus-core-2.7.2-03.jar:2.7.2-03] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [shiro-core-1.2.2.jar:1.2.2] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [shiro-core-1.2.2.jar:1.2.2] at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_60] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_60] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [na:1.7.0_60] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_60] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_60] at java.lang.Thread.run(Thread.java:745) [na:1.7.0_60] Caused by: java.lang.IllegalArgumentException: Illegal character in path at index 33: http://files.couchbase.com/maven2 /.index/nexus-maven-repository-index.properties at java.net.URI.create(URI.java:859) ~[na:1.7.0_60] at org.apache.http.client.methods.HttpGet.<init>(HttpGet.java:69) ~[httpclient-4.2.6.jar:4.2.6] at org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.retrieveItem(HttpClientRemoteStorage.java:190) ~[nexus-core-2.7.2-03.jar:2.7.2-03] at org.sonatype.nexus.index.DefaultIndexerManager$11.retrieve(DefaultIndexerManager.java:1252) ~[na:na] at org.apache.maven.index.updater.DefaultIndexUpdater.downloadIndexProperties(DefaultIndexUpdater.java:465) ~[na:na] at org.apache.maven.index.updater.DefaultIndexUpdater.access$000(DefaultIndexUpdater.java:76) ~[na:na] at org.apache.maven.index.updater.DefaultIndexUpdater$IndexAdaptor.setProperties(DefaultIndexUpdater.java:595) ~[na:na] at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:822) ~[na:na] at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:159) ~[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1289) ~[na:na] ... 19 common frames omitted Caused by: java.net.URISyntaxException: Illegal character in path at index 33: http://files.couchbase.com/maven2 /.index/nexus-maven-repository-index.properties at java.net.URI$Parser.fail(URI.java:2829) ~[na:1.7.0_60] at java.net.URI$Parser.checkChars(URI.java:3002) ~[na:1.7.0_60] at java.net.URI$Parser.parseHierarchical(URI.java:3086) ~[na:1.7.0_60] at java.net.URI$Parser.parse(URI.java:3034) ~[na:1.7.0_60] at java.net.URI.<init>(URI.java:595) ~[na:1.7.0_60] at java.net.URI.create(URI.java:857) ~[na:1.7.0_60] ... 28 common frames omitted {quote}
    via by Rich Seddon,
  • GitHub comment 703#130549111
    via GitHub by cjellick
    ,
  • GitHub comment 205#174972004
    via GitHub by jnioche
    ,
  • Cannot search with spaces
    via GitHub by gossi
    ,
  • Camel Olingo2 parses the URI?
    via Stack Overflow by mariob
    ,
  • GitHub comment 6#35196140
    via GitHub by confile
    ,
    • java.io.IOException: Cannot fetch remote index for repository "couch" [id=couch], error occurred. at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1342)[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.access$1100(DefaultIndexerManager.java:189)[na:na] at org.sonatype.nexus.index.DefaultIndexerManager$IndexUpdateRunnable.run(DefaultIndexerManager.java:1058)[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.sharedSingle(DefaultIndexerManager.java:2310)[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:999)[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:962)[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:939)[na:na] at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexRepository(ReindexTaskHandlerLegacy.java:62)[na:na] at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:69)[na:na] at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:157)[nexus-core-2.7.2-03.jar:2.7.2-03] at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:419)[nexus-scheduler-2.7.2-03.jar:2.7.2-03] at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:45)[nexus-core-2.7.2-03.jar:2.7.2-03] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)[shiro-core-1.2.2.jar:1.2.2] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)[shiro-core-1.2.2.jar:1.2.2] at java.util.concurrent.FutureTask.run(FutureTask.java:262)[na:1.7.0_60] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[na:1.7.0_60] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[na:1.7.0_60] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_60] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)[na:1.7.0_60] at java.lang.Thread.run(Thread.java:745)[na:1.7.0_60] Caused by: java.lang.IllegalArgumentException: Illegal character in path at index 33: http://files.couchbase.com/maven2 /.index
    • exus-maven-repository-index.properties at java.net.URI.create(URI.java:859)[na:1.7.0_60] at org.apache.http.client.methods.HttpGet.<init>(HttpGet.java:69)[httpclient-4.2.6.jar:4.2.6] at org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.retrieveItem(HttpClientRemoteStorage.java:190)[nexus-core-2.7.2-03.jar:2.7.2-03] at org.sonatype.nexus.index.DefaultIndexerManager$11.retrieve(DefaultIndexerManager.java:1252)[na:na] at org.apache.maven.index.updater.DefaultIndexUpdater.downloadIndexProperties(DefaultIndexUpdater.java:465)[na:na] at org.apache.maven.index.updater.DefaultIndexUpdater.access$000(DefaultIndexUpdater.java:76)[na:na] at org.apache.maven.index.updater.DefaultIndexUpdater$IndexAdaptor.setProperties(DefaultIndexUpdater.java:595)[na:na] at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:822)[na:na] at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:159)[na:na] at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1289)[na:na] ... 19 more Caused by: java.net.URISyntaxException: Illegal character in path at index 33: http://files.couchbase.com/maven2 /.index
    • exus-maven-repository-index.properties at java.net.URI$Parser.fail(URI.java:2829)[na:1.7.0_60] at java.net.URI$Parser.checkChars(URI.java:3002)[na:1.7.0_60] at java.net.URI$Parser.parseHierarchical(URI.java:3086)[na:1.7.0_60] at java.net.URI$Parser.parse(URI.java:3034)[na:1.7.0_60] at java.net.URI.<init>(URI.java:595)[na:1.7.0_60] at java.net.URI.create(URI.java:857)[na:1.7.0_60] ... 28 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    richard77
    richard771 times, last one,
    sriharshakiran
    sriharshakiran1 times, last one,
    r1chjames
    r1chjames3 times, last one,
    51 more bugmates