Deploy = 502 Bad Gateway

1,007 views
Skip to first unread message

Claudio Weiler

unread,
Nov 3, 2016, 2:15:25 PM11/3/16
to Nexus Users
I'm getting an error with the message: "Error code 502, Bad Gateway" when I try to deploy my project to Nexus OSS 3.0.2

This is an intermittent error:
- pom artifacts always are published;
- jar artifacts mostly fails, rarely they are published with success.

My Nexus install are behind apache with following setup:
<VirtualHost *:443>
    ServerName nexus.intra.net
    ProxyPreserveHost On
    ProxyRequests Off

    ProxyPass / http://127.0.0.1:8082/
    ProxyPassReverse / http://127.0.0.1:8082/
    RequestHeader set X-Forwarded-Proto "https"
   
    SSLEngine on
    [server
certificate infos]

    # Following configs are here from many suggestions found on web
    ProxyTimeout 300
    SSLProxyEngine on
    SSLProxyVerify none
    SSLProxyCheckPeerCN off
    SSLProxyCheckPeerName off
    SSLProxyProtocol all -SSLv2
</VirtualHost>

Nexus log says nothing, but Apache log says this on each fail request:
[Thu Nov 03 15:38:30.294869 2016] [proxy:error] [pid 11040] (32)Broken pipe: [client 10.6.41.65:64035] AH01084: pass request body failed to 127.0.0.1:8082 (127.0.0.1)
[Thu Nov 03 15:38:30.294924 2016] [proxy_http:error] [pid 11040] [client 10.6.41.65:64035] AH01097: pass request body failed to 127.0.0.1:8082 (127.0.0.1) from 10.6.41.65 ()

Base on this messages its a problem with reverse proxy config, but I dig a lot on the web, and all suggestions found I run a test without success (suggestions on code snippet above).


Any clues????


Thanks!!!

Claudio Weiler

unread,
Nov 4, 2016, 10:31:47 AM11/4/16
to Nexus Users
Ok,basically my searchs points to a problem with SSL, so I do a testing setup with plain http but the problem persists with same apache error messages. Acknowledge: this is not a SSL problem.

Upgraded to 3.1.0 but problem persists and now we have no more "remember me"!!!

More infos: apache access log says this on success and fail sequencial attempts:
10.6.41.65 - - [04/Nov/2016:12:13:02 -0200] "PUT /repository/maven-snapshots/br/jus/trepr/lib/utils/2.0.0-SNAPSHOT/utils-2.0.0-20161104.141301-6-sources.jar HTTP/1.1" 201 - "-" "Apache-Maven/3.3.9 (Java 1.8.0_92; Windows 7 6.1)"
10.6.41.65 - - [04/Nov/2016:12:13:02 -0200] "PUT /repository/maven-snapshots/br/jus/trepr/lib/utils/2.0.0-SNAPSHOT/utils-2.0.0-20161104.141301-6-sources.jar.sha1 HTTP/1.1" 201 - "-" "Apache-Maven/3.3.9 (Java 1.8.0_92; Windows 7 6.1)"
10.6.41.65 - - [04/Nov/2016:12:13:02 -0200] "PUT /repository/maven-snapshots/br/jus/trepr/lib/utils/2.0.0-SNAPSHOT/utils-2.0.0-20161104.141301-6-sources.jar.md5 HTTP/1.1" 201 - "-" "Apache-Maven/3.3.9 (Java 1.8.0_92; Windows 7 6.1)"
10.6.41.65 - - [04/Nov/2016:12:13:02 -0200] "PUT /repository/maven-snapshots/br/jus/trepr/lib/utils/2.0.0-SNAPSHOT/maven-metadata.xml HTTP/1.1" 201 - "-" "Apache-Maven/3.3.9 (Java 1.8.0_92; Windows 7 6.1)"
10.6.41.65 - - [04/Nov/2016:12:13:02 -0200] "PUT /repository/maven-snapshots/br/jus/trepr/lib/utils/2.0.0-SNAPSHOT/maven-metadata.xml.sha1 HTTP/1.1" 201 - "-" "Apache-Maven/3.3.9 (Java 1.8.0_92; Windows 7 6.1)"
10.6.41.65 - - [04/Nov/2016:12:13:02 -0200] "PUT /repository/maven-snapshots/br/jus/trepr/lib/utils/2.0.0-SNAPSHOT/maven-metadata.xml.md5 HTTP/1.1" 201 - "-" "Apache-Maven/3.3.9 (Java 1.8.0_92; Windows 7 6.1)"
10.6.41.65 - - [04/Nov/2016:12:13:02 -0200] "PUT /repository/maven-snapshots/br/jus/trepr/lib/utils/2.0.0-SNAPSHOT/utils-2.0.0-20161104.141301-6-javadoc.jar HTTP/1.1" 201 - "-" "Apache-Maven/3.3.9 (Java 1.8.0_92; Windows 7 6.1)"
10.6.41.65 - - [04/Nov/2016:12:13:02 -0200] "PUT /repository/maven-snapshots/br/jus/trepr/lib/utils/2.0.0-SNAPSHOT/utils-2.0.0-20161104.141301-6-javadoc.jar.sha1 HTTP/1.1" 201 - "-" "Apache-Maven/3.3.9 (Java 1.8.0_92; Windows 7 6.1)"
10.6.41.65 - - [04/Nov/2016:12:13:02 -0200] "PUT /repository/maven-snapshots/br/jus/trepr/lib/utils/2.0.0-SNAPSHOT/utils-2.0.0-20161104.141301-6-javadoc.jar.md5 HTTP/1.1" 201 - "-" "Apache-Maven/3.3.9 (Java 1.8.0_92; Windows 7 6.1)"
10.6.41.65 - - [04/Nov/2016:12:13:02 -0200] "PUT /repository/maven-snapshots/br/jus/trepr/lib/utils/2.0.0-SNAPSHOT/maven-metadata.xml HTTP/1.1" 201 - "-" "Apache-Maven/3.3.9 (Java 1.8.0_92; Windows 7 6.1)"
10.6.41.65 - - [04/Nov/2016:12:13:02 -0200] "PUT /repository/maven-snapshots/br/jus/trepr/lib/utils/2.0.0-SNAPSHOT/maven-metadata.xml.sha1 HTTP/1.1" 201 - "-" "Apache-Maven/3.3.9 (Java 1.8.0_92; Windows 7 6.1)"
10.6.41.65 - - [04/Nov/2016:12:13:03 -0200] "PUT /repository/maven-snapshots/br/jus/trepr/lib/utils/2.0.0-SNAPSHOT/maven-metadata.xml.md5 HTTP/1.1" 201 - "-" "Apache-Maven/3.3.9 (Java 1.8.0_92; Windows 7 6.1)"
10.6.41.65 - - [04/Nov/2016:12:13:18 -0200] "GET /repository/maven-snapshots/br/jus/trepr/lib/desktop-lib/1.0.0-SNAPSHOT/maven-metadata.xml HTTP/1.1" 200 604 "-" "Apache-Maven/3.3.9 (Java 1.8.0_92; Windows 7 6.1)"
10.6.41.65 - - [04/Nov/2016:12:13:18 -0200] "GET /repository/maven-snapshots/br/jus/trepr/lib/desktop-lib/1.0.0-SNAPSHOT/maven-metadata.xml.sha1 HTTP/1.1" 200 40 "-" "Apache-Maven/3.3.9 (Java 1.8.0_92; Windows 7 6.1)"
10.6.41.65 - - [04/Nov/2016:12:13:18 -0200] "PUT /repository/maven-snapshots/br/jus/trepr/lib/desktop-lib/1.0.0-SNAPSHOT/desktop-lib-1.0.0-20161104.141318-4.jar HTTP/1.1" 502 232 "-" "Apache-Maven/3.3.9 (Java 1.8.0_92; Windows 7 6.1)"
10.6.41.65 - - [04/Nov/2016:12:13:18 -0200] "PUT /repository/maven-snapshots/br/jus/trepr/lib/desktop-lib/1.0.0-SNAPSHOT/desktop-lib-1.0.0-20161104.141318-4.pom HTTP/1.1" 401 - "-" "Apache-Maven/3.3.9 (Java 1.8.0_92; Windows 7 6.1)"
10.6.41.65 - - [04/Nov/2016:12:13:18 -0200] "PUT /repository/maven-snapshots/br/jus/trepr/lib/desktop-lib/1.0.0-SNAPSHOT/desktop-lib-1.0.0-20161104.141318-4.pom HTTP/1.1" 201 - "-" "Apache-Maven/3.3.9 (Java 1.8.0_92; Windows 7 6.1)"
10.6.41.65 - - [04/Nov/2016:12:13:18 -0200] "PUT /repository/maven-snapshots/br/jus/trepr/lib/desktop-lib/1.0.0-SNAPSHOT/desktop-lib-1.0.0-20161104.141318-4.pom.sha1 HTTP/1.1" 201 - "-" "Apache-Maven/3.3.9 (Java 1.8.0_92; Windows 7 6.1)"
10.6.41.65 - - [04/Nov/2016:12:13:18 -0200] "PUT /repository/maven-snapshots/br/jus/trepr/lib/desktop-lib/1.0.0-SNAPSHOT/desktop-lib-1.0.0-20161104.141318-4.pom.md5 HTTP/1.1" 201 - "-" "Apache-Maven/3.3.9 (Java 1.8.0_92; Windows 7 6.1)"

Kelly Robinson

unread,
Nov 4, 2016, 12:20:01 PM11/4/16
to Nexus Users
Hi Claudio,

Could you please log an issue on http://issues.sonatype.org/ and include a support.zip file along with logs from the time this happened?

As for the 'remember me', it was removed due to security concerns based on a number of recently exposed vulnerabilities. Sorry if this impacted you.

Claudio Weiler

unread,
Nov 4, 2016, 12:57:28 PM11/4/16
to Nexus Users
Hi Kelly,


About 'remember me' I missed info on release log, or failed to find it. For me this is a 'like it' feature not a 'have to', moving on... ;)


Thanks!!
Reply all
Reply to author
Forward
0 new messages