Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I got the same error yesterday. I didn't finish to find the solution yet but I have a idea why we have this errror.</p> <p>After hours of digging in the maven-archetype-plugin, I didn't notice something strange...</p> <p>So i decide to run the same command again with a tcpflow running to capture the sended request. Here is the result :</p> <pre><code>192.168.000.010.59775-185.031.016.185.00080: GET /maven2/archetype-catalog.xml HTTP/1.1 Cache-control: no-cache Cache-store: no-store Pragma: no-cache Expires: 0 Accept-Encoding: gzip Host: repo1.maven.org Connection: Keep-Alive 185.031.016.185.00080-192.168.000.010.59775: HTTP/1.1 403 Denied Access Server: Varnish Retry-After: 0 Content-Type: text/html; charset=utf-8 Content-Length: 401 Accept-Ranges: bytes Date: Fri, 30 Aug 2013 01:53:29 GMT Via: 1.1 varnish Age: 0 Connection: close X-Served-By: cache-am70-AMS X-Cache: MISS X-Cache-Hits: 0 </code></pre> <p>So, a Guru Meditation error. I like Varnish !! After that, I notice using netcat that, if you add a User-Agent (anything) in the request, everything works fine !!</p> <pre><code>[07:49][patouche@patouche-desktop:~ :) ] $ nc repo1.maven.org 80 GET /maven2/archetype-catalog.xml HTTP/1.1 Cache-control: no-cache Cache-store: no-store Pragma: no-cache Expires: 0 Accept-Encoding: gzip Host: repo1.maven.org Connection: Keep-Alive User-Agent: I have a dream... HTTP/1.1 200 OK Server: nginx/1.2.1 Content-Type: text/xml Last-Modified: Tue, 27 Aug 2013 11:06:25 GMT Via: 1.1 varnish Content-Length: 1663366 Accept-Ranges: bytes Date: Fri, 30 Aug 2013 05:50:09 GMT Via: 1.1 varnish Age: 81998 Connection: keep-alive X-Served-By: cache-c32-CHI, cache-l22-LON X-Cache: HIT, HIT X-Cache-Hits: 5, 1 </code></pre> <p>So, if you add a User-Agent in the request, everything will work. I thinks with the settings.xml but I don't know how for now.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload