org.sonatype.nexus.proxy.RemoteAccessDeniedException: Forbidden

Sonatype JIRA | Diego Álvarez | 4 years ago
  1. 0

    I've recently installed Nexus 2.2 in my company. When I try to Update indexes of proxy repositories (Central, Apache Snapshots, Codehaus Snapshopts), the following errors appears in the wrapper.log file: jvm 1 | 2012-10-31 10:40:09 INFO [pool-1-thread-3] - org.sonatype.nexus.tasks.UpdateIndexTask - Scheduled task (UpdateIndexTask) started :: Updating repository index "Central" from path / and below. jvm 1 | 2012-10-31 10:40:10 INFO [pool-1-thread-3] - org.sonatype.nexus.index.DefaultIndexerManager - Trying to get remote index for repository "Central" [id=central] jvm 1 | 2012-10-31 10:40:10 WARN [pool-1-thread-3] - org.sonatype.nexus.index.DefaultIndexerManager - Cannot fetch remote index for repository "Central" [id=central] due to IO problem. jvm 1 | org.sonatype.nexus.proxy.RemoteAccessDeniedException: Forbidden jvm 1 | at org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.doExecuteRequest(HttpClientRemoteStorage.java:501) ~[nexus-proxy-2.2-01.jar:na] jvm 1 | at org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.executeRequest(HttpClientRemoteStorage.java:448) ~[nexus-proxy-2.2-01.jar:na] jvm 1 | at org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.retrieveItem(HttpClientRemoteStorage.java:171) ~[nexus-proxy-2.2-01.jar:na] .............. Also, when the Health Check Management for repository central is trying to run, the following error appears: jvm 1 | 2012-10-31 10:41:40 INFO [pool-1-thread-2] - com.sonatype.nexus.plugins.healthcheck.task.HealthCheckTask - Scheduled task (HealthCheckTask) started :: Health Check Management for Repository central jvm 1 | 2012-10-31 10:41:40 WARN [pool-1-thread-2] - com.sonatype.nexus.plugins.healthcheck.task.HealthCheckTask - Scheduled task (HealthCheckTask) failed :: Health Check Management for Repository central (started 2012-10-31T10:41:40+01:00, runtime 0:00:00.160) jvm 1 | java.io.IOException: Failed to determine health check interval for repository central, status code 403 Forbidden jvm 1 | at com.sonatype.nexus.plugins.healthcheck.task.HealthCheckTask.doDeltaCheck(HealthCheckTask.java:417) ~[na:na] jvm 1 | at com.sonatype.nexus.plugins.healthcheck.task.HealthCheckTask.doRunSafe(HealthCheckTask.java:178) ~[na:na] jvm 1 | at com.sonatype.nexus.plugins.healthcheck.task.HealthCheckTask.doRun(HealthCheckTask.java:133) ~[na:na] jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:158) ~[nexus-app-2.2-01.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(FutureTask.java:334) [na:1.7.0_09] jvm 1 | at java.util.concurrent.FutureTask.run(FutureTask.java:166) [na:1.7.0_09] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) [na:1.7.0_09] jvm 1 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) [na:1.7.0_09] jvm 1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.7.0_09] jvm 1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.7.0_09] jvm 1 | at java.lang.Thread.run(Thread.java:722) [na:1.7.0_09] I've configured the HTTP Proxy settings andthe "Download Remote Indexes" option is enabled. How can I solve this? We need to migrate the platform from an older version of Nexus. Thanks in advanced. Diego

    Sonatype JIRA | 4 years ago | Diego Álvarez
    org.sonatype.nexus.proxy.RemoteAccessDeniedException: Forbidden
  2. 0

    The following error occurs while performing the scheduled task, Update Repositories Index. Could you please explain why this is happening? Please let me know if you want anything else. Thank you. jvm 1 | 2014-04-17 10:09:32 WARN [pxpool-1-thread-11] admin org.sonatype.nexus.index.DefaultIndexerManager - Cannot fetch remote index for repository "Mule Codehaus Repository" [id=mule-codehaus-repo] due to IO problem. jvm 1 | org.sonatype.nexus.proxy.RemoteAccessDeniedException: Forbidden jvm 1 | at org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.doExecuteRequest(HttpClientRemoteStorage.java:516) ~[nexus-core-2.7.2-03.jar:2.7.2-03] jvm 1 | at org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.executeRequest(HttpClientRemoteStorage.java:466) ~[nexus-core-2.7.2-03.jar:2.7.2-03] jvm 1 | at org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.retrieveItem(HttpClientRemoteStorage.java:193) ~[nexus-core-2.7.2-03.jar:2.7.2-03] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager$11.retrieve(DefaultIndexerManager.java:1252) ~[nexus-indexer-lucene-plugin-2.7.2-03.jar:2.7.2-03] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.downloadIndexProperties(DefaultIndexUpdater.java:465) ~[indexer-core-5.1.2-bf3d48b.jar:5.1.2-bf3d48b] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.access$000(DefaultIndexUpdater.java:76) ~[indexer-core-5.1.2-bf3d48b.jar:5.1.2-bf3d48b] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater$IndexAdaptor.setProperties(DefaultIndexUpdater.java:595) ~[indexer-core-5.1.2-bf3d48b.jar:5.1.2-bf3d48b] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:822) ~[indexer-core-5.1.2-bf3d48b.jar:5.1.2-bf3d48b] jvm 1 | at org.apache.maven.index.updater.DefaultIndexUpdater.fetchAndUpdateIndex(DefaultIndexUpdater.java:159) ~[indexer-core-5.1.2-bf3d48b.jar:5.1.2-bf3d48b] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.updateRemoteIndex(DefaultIndexerManager.java:1289) [nexus-indexer-lucene-plugin-2.7.2-03.jar:2.7.2-03] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.access$1100(DefaultIndexerManager.java:189) [nexus-indexer-lucene-plugin-2.7.2-03.jar:2.7.2-03] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager$IndexUpdateRunnable.run(DefaultIndexerManager.java:1058) [nexus-indexer-lucene-plugin-2.7.2-03.jar:2.7.2-03] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.sharedSingle(DefaultIndexerManager.java:2310) [nexus-indexer-lucene-plugin-2.7.2-03.jar:2.7.2-03] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexRepository(DefaultIndexerManager.java:999) [nexus-indexer-lucene-plugin-2.7.2-03.jar:2.7.2-03] jvm 1 | at org.sonatype.nexus.index.DefaultIndexerManager.reindexAllRepositories(DefaultIndexerManager.java:909) [nexus-indexer-lucene-plugin-2.7.2-03.jar:2.7.2-03] jvm 1 | at org.sonatype.nexus.tasks.ReindexTaskHandlerLegacy.reindexAllRepositories(ReindexTaskHandlerLegacy.java:49) [nexus-indexer-lucene-plugin-2.7.2-03.jar:2.7.2-03] jvm 1 | at org.sonatype.nexus.tasks.AbstractIndexerTask.doRun(AbstractIndexerTask.java:72) [nexus-indexer-lucene-plugin-2.7.2-03.jar:2.7.2-03] jvm 1 | at org.sonatype.nexus.scheduling.AbstractNexusTask.call(AbstractNexusTask.java:157) [nexus-core-2.7.2-03.jar:2.7.2-03] jvm 1 | at org.sonatype.scheduling.DefaultScheduledTask.call(DefaultScheduledTask.java:419) [nexus-scheduler-2.7.2-03.jar:2.7.2-03] jvm 1 | at org.sonatype.nexus.threads.MDCAwareCallable.call(MDCAwareCallable.java:45) [nexus-core-2.7.2-03.jar:2.7.2-03] jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) [shiro-core-1.2.2.jar:1.2.2] jvm 1 | at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) [shiro-core-1.2.2.jar:1.2.2] jvm 1 | at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_

    Sonatype JIRA | 3 years ago | Dinesh Srinivasan
    org.sonatype.nexus.proxy.RemoteAccessDeniedException: Forbidden
  3. 0

    When the remote connection to a proxy repository fails with HTTP 403 this is logged at DEBUG level. This makes end user diagnosis of the problem extremely difficult, resulting in an unnecessary support ticket. This should be logged at WARN without a stack trace, and at DEBUG with a stack trace. {noformat} 2016-05-17 19:34:33,878-0400 DEBUG [qtp518828885-100] creig.smith@xposc.com remote.storage.outbound - [RubyGems.org] GET https://rubygems.org/latest_specs.4.8.gz -> null; 84.49 ms 2016-05-17 19:34:33,881-0400 DEBUG [qtp518828885-100] creig.smith@xposc.com org.sonatype.nexus.plugins.ruby.proxy.DefaultProxyRubyRepository - Failed URL: https://rubygems.org/ org.sonatype.nexus.proxy.RemoteAccessDeniedException: Forbidden at org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.doExecuteRequest(HttpClientRemoteStorage.java:582) ~[nexus-core-2.12.0-01.jar:2.12.0-01] at org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.executeRequest(HttpClientRemoteStorage.java:521) ~[nexus-core-2.12.0-01.jar:2.12.0-01] at org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.retrieveItem(HttpClientRemoteStorage.java:216) ~[nexus-core-2.12.0-01.jar:2.12.0-01] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_60] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_60] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_60] at java.lang.reflect.Method.invoke(Method.java:497) ~[na:1.8.0_60] {noformat}

    Sonatype JIRA | 7 months ago | Rich Seddon
    org.sonatype.nexus.proxy.RemoteAccessDeniedException: Forbidden
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Create a Maven 2 proxy for http://coova-dev.s3.amazonaws.com/mvn This will show up as unavailable in the UI, and every time someone refreshes the repositories list the following exception will show up in the log: {code} 2010-03-01 17:15:33 WARN [ool-3-thread-20] - o.s.n.p.r.Repository:maven2 - RemoteStorage of repository bb throws RemoteAccessException. Please set up authorization information for repository ID='bb'. Setting ProxyMode of this repository to BlockedAuto. MANUAL INTERVENTION NEEDED. org.sonatype.nexus.proxy.RemoteAccessDeniedException: Forbidden at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.executeMethod(CommonsHttpClientRemoteStorage.java:386) at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.checkRemoteAvailability(CommonsHttpClientRemoteStorage.java:522) at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.isReachable(CommonsHttpClientRemoteStorage.java:113) at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.isRemoteStorageReachable(AbstractProxyRepository.java:344) at org.sonatype.nexus.proxy.repository.AbstractProxyRepository$RemoteStatusUpdateCallable.call(AbstractProxyRepository.java:1137) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:637) {code} However, the proxy works fine, you can still pull artifacts through it. We should figure out how to detect if a remote S3 repository is up.

    Sonatype JIRA | 7 years ago | Rich Seddon
    org.sonatype.nexus.proxy.RemoteAccessDeniedException: Forbidden
  6. 0

    Create a Maven 2 proxy for http://coova-dev.s3.amazonaws.com/mvn This will show up as unavailable in the UI, and every time someone refreshes the repositories list the following exception will show up in the log: {code} 2010-03-01 17:15:33 WARN [ool-3-thread-20] - o.s.n.p.r.Repository:maven2 - RemoteStorage of repository bb throws RemoteAccessException. Please set up authorization information for repository ID='bb'. Setting ProxyMode of this repository to BlockedAuto. MANUAL INTERVENTION NEEDED. org.sonatype.nexus.proxy.RemoteAccessDeniedException: Forbidden at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.executeMethod(CommonsHttpClientRemoteStorage.java:386) at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.checkRemoteAvailability(CommonsHttpClientRemoteStorage.java:522) at org.sonatype.nexus.proxy.storage.remote.commonshttpclient.CommonsHttpClientRemoteStorage.isReachable(CommonsHttpClientRemoteStorage.java:113) at org.sonatype.nexus.proxy.repository.AbstractProxyRepository.isRemoteStorageReachable(AbstractProxyRepository.java:344) at org.sonatype.nexus.proxy.repository.AbstractProxyRepository$RemoteStatusUpdateCallable.call(AbstractProxyRepository.java:1137) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:637) {code} However, the proxy works fine, you can still pull artifacts through it. We should figure out how to detect if a remote S3 repository is up.

    Sonatype JIRA | 7 years ago | Rich Seddon
    org.sonatype.nexus.proxy.RemoteAccessDeniedException: Forbidden

    Root Cause Analysis

    1. org.sonatype.nexus.proxy.RemoteAccessDeniedException

      Forbidden

      at org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.doExecuteRequest()
    2. ${project.groupId}:${project.artifactId}
      HttpClientRemoteStorage.retrieveItem
      1. org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.doExecuteRequest(HttpClientRemoteStorage.java:501)[nexus-proxy-2.2-01.jar:na]
      2. org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.executeRequest(HttpClientRemoteStorage.java:448)[nexus-proxy-2.2-01.jar:na]
      3. org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage.retrieveItem(HttpClientRemoteStorage.java:171)[nexus-proxy-2.2-01.jar:na]
      3 frames