Archiva

Unable to download from certain repositories, 403 Forbidden

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.2
  • Fix Version/s: 1.1.1
  • Component/s: None
  • Labels:
    None
  • Environment:
    Linux Ubuntu
  • Number of attachments :
    2

Description

I cant download from the central repository, repo1.maven.org. I cant find any documentation on what settings I can change that relate to this. this is what Archiva gives:

jvm 1 | Jun 25, 2008 9:25:53 AM org.mortbay.jetty.servlet.ServletHandler handle
jvm 1 | WARNING: /archiva/repository/internal/org/apache/felix/felix/1.0.0/felix-1.0.0.pom:
jvm 1 | org.apache.maven.archiva.policies.ProxyDownloadException: Failures occurred downloading from some remote repositories:
jvm 1 | central: Download failure on resource http://repo1.maven.org/maven2/org/apache/felix/felix/1.0.0/felix-1.0.0.pom:Error transferring file
jvm 1 | at org.apache.maven.archiva.proxy.DefaultRepositoryProxyConnectors.fetchFromProxies(DefaultRepositoryProxyConnectors.java:197)
jvm 1 | at org.apache.maven.archiva.web.repository.ProxiedDavServer.fetchContentFromProxies(ProxiedDavServer.java:355)
jvm 1 | at org.apache.maven.archiva.web.repository.ProxiedDavServer.process(ProxiedDavServer.java:188)
jvm 1 | at org.codehaus.plexus.webdav.servlet.multiplexed.MultiplexedWebDavServlet.service(MultiplexedWebDavServlet.java:119)
jvm 1 | at org.apache.maven.archiva.web.repository.RepositoryServlet.service(RepositoryServlet.java:155)
jvm 1 | at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
jvm 1 | at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:428)
jvm 1 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:830)
jvm 1 | at com.opensymphony.webwork.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:189)
jvm 1 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
jvm 1 | at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:39)
jvm 1 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
jvm 1 | at com.opensymphony.webwork.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:88)
jvm 1 | at org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter(WebApplicationHandler.java:821)
jvm 1 | at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:471)
jvm 1 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:568)
jvm 1 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)
jvm 1 | at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:633)
jvm 1 | at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)
jvm 1 | at org.mortbay.http.HttpServer.service(HttpServer.java:909)
jvm 1 | at org.mortbay.http.HttpConnection.service(HttpConnection.java:816)
jvm 1 | at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)
jvm 1 | at org.mortbay.http.HttpConnection.handle(HttpConnection.java:833)
jvm 1 | at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:244)
jvm 1 | at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:357)
jvm 1 | at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

If I add -U NoSuchBrowser/1.0 to wget, I can download from the site.

BUT, if I use the regular wget command: wget --debug http://repo1.maven.org/maven2/org/apache/felix/felix/1.0.0/felix-1.0.0.pom

this is what I get:

DEBUG output created by Wget 1.10 on linux-gnu.

-09:38:16- http://repo1.maven.org/maven2/org/apache/felix/felix/1.0.0/felix-1.0.0.pom
=> `felix-1.0.0.pom.1'
Resolving proxy.ext.ray.com... 199.46.245.226
Caching proxy.ext.ray.com => 199.46.245.226
Connecting to proxy.ext.ray.com|199.46.245.226|:80... connected.
Created socket 3.
Releasing 0x08090888 (new refcount 1).

--request begin--
GET http://repo1.maven.org/maven2/org/apache/felix/felix/1.0.0/felix-1.0.0.pom HTTP/1.0
User-Agent: Wget/1.10
Accept: /
Host: repo1.maven.org

--request end--
Proxy request sent, awaiting response...
--response begin--
HTTP/1.1 403 Forbidden
Content-Type: text/html; charset=iso-8859-1
Date: Wed, 25 Jun 2008 16:38:42 GMT
Proxy-Connection: close
Server: Apache/2.0.52 (Red Hat)
X-Cache: MISS from tus-proxy1

--response end--
403 Forbidden
Closed fd 3
09:38:41 ERROR 403: Forbidden.

  1. archiva.log
    26/Jun/08 5:10 PM
    43 kB
    Renee Rivas
  2. wrapper.20080626.log
    26/Jun/08 5:14 PM
    72 kB
    Renee Rivas

Activity

Hide
Brett Porter added a comment -

Please ignore the wget results. repo1 doesn't allow wgetting.

Do you have any more information in the Archiva logs about what caused the error transferring the file?

Show
Brett Porter added a comment - Please ignore the wget results. repo1 doesn't allow wgetting. Do you have any more information in the Archiva logs about what caused the error transferring the file?
Hide
Renee Rivas added a comment -

This is from my archiva.log, different plugin but same problem.

2008-06-26 10:51:48,516 [SocketListener0-1] WARN org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default - Transfer error from repository "central" for artifact org.apache.felix:maven-bundle-plugin:1.0.0::pom, continuing to next repository. Error message: Download failure on resource http://repo1.maven.org/maven2/org/apache/felix/maven-bundle-plugin/1.0.0/maven-bundle-plugin-1.0.0.pom:Error transferring file
2008-06-26 10:51:48,535 [SocketListener0-1] INFO org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default - Transfer not attempted on http://repo1.maven.org/maven2/org/apache/felix/maven-bundle-plugin/1.0.0/maven-bundle-plugin-1.0.0.pom : NO to fetch, check-failures detected previous failure on url: http://repo1.maven.org/maven2/org/apache/felix/maven-bundle-plugin/1.0.0/maven-bundle-plugin-1.0.0.pom

wget does fetch the download if you add the -U NoSuchBrowser/1.0. I thought it might be a similar problem that repo1 was somehow blocking Archiva based on a setting.

Show
Renee Rivas added a comment - This is from my archiva.log, different plugin but same problem. 2008-06-26 10:51:48,516 [SocketListener0-1] WARN org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default - Transfer error from repository "central" for artifact org.apache.felix:maven-bundle-plugin:1.0.0::pom, continuing to next repository. Error message: Download failure on resource http://repo1.maven.org/maven2/org/apache/felix/maven-bundle-plugin/1.0.0/maven-bundle-plugin-1.0.0.pom:Error transferring file 2008-06-26 10:51:48,535 [SocketListener0-1] INFO org.apache.maven.archiva.proxy.RepositoryProxyConnectors:default - Transfer not attempted on http://repo1.maven.org/maven2/org/apache/felix/maven-bundle-plugin/1.0.0/maven-bundle-plugin-1.0.0.pom : NO to fetch, check-failures detected previous failure on url: http://repo1.maven.org/maven2/org/apache/felix/maven-bundle-plugin/1.0.0/maven-bundle-plugin-1.0.0.pom wget does fetch the download if you add the -U NoSuchBrowser/1.0. I thought it might be a similar problem that repo1 was somehow blocking Archiva based on a setting.
Hide
Renee Rivas added a comment -

Adding Archiva.log with DEBUG level on.

Show
Renee Rivas added a comment - Adding Archiva.log with DEBUG level on.
Hide
Renee Rivas added a comment -

wrapper. note the only thing I noticed that was abnormal:

'INFO: Could not load plexus context properties from: '/WEB-INF/plexus.properties'

Show
Renee Rivas added a comment - wrapper. note the only thing I noticed that was abnormal: 'INFO: Could not load plexus context properties from: '/WEB-INF/plexus.properties'
Hide
Brett Porter added a comment -

we'll need to find a way to enable better debug logging, as something particular is going wrong in the download. I can certainly proxy central using Archiva.

Do you have any other HTTP proxy or network settings that might affect this?

Show
Brett Porter added a comment - we'll need to find a way to enable better debug logging, as something particular is going wrong in the download. I can certainly proxy central using Archiva. Do you have any other HTTP proxy or network settings that might affect this?
Hide
Renee Rivas added a comment -

I use the same proxy settings for maven and it is able to grab everything from the repo. I dont know of any reason why it would work for one and not the other. is there any other information I can give you or look for to try to troubleshoot this?

Show
Renee Rivas added a comment - I use the same proxy settings for maven and it is able to grab everything from the repo. I dont know of any reason why it would work for one and not the other. is there any other information I can give you or look for to try to troubleshoot this?
Hide
Brett Porter added a comment -

perhaps the proxy is not being used properly. Have you checked that the network proxy is configured on the archiva proxy connection?

Show
Brett Porter added a comment - perhaps the proxy is not being used properly. Have you checked that the network proxy is configured on the archiva proxy connection?
Hide
Renee Rivas added a comment - - edited

I had everything working, and now I just upgraded to 1.1.3.

Show
Renee Rivas added a comment - - edited I had everything working, and now I just upgraded to 1.1.3.
Hide
mark inaba added a comment -

better late than never? i'm guessing that the site doesn't want web crawlers...so if your intentions are pure and you just want to access specific files with a command line, you can use wget with "--user-agen=marksbrowser/.99" (or any agent name i suppose).i gave it a try on a stubborn file and it worked

Show
mark inaba added a comment - better late than never? i'm guessing that the site doesn't want web crawlers...so if your intentions are pure and you just want to access specific files with a command line, you can use wget with "--user-agen=marksbrowser/.99" (or any agent name i suppose).i gave it a try on a stubborn file and it worked
Hide
Renee Rivas added a comment -

thanks for the response I reinstalled everything and set up the proxy again, and it worked. Still not sure what the issue was originally. Thanks for the help!

Show
Renee Rivas added a comment - thanks for the response I reinstalled everything and set up the proxy again, and it worked. Still not sure what the issue was originally. Thanks for the help!

People

Vote (1)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: