Gitlab 6.0 With Apache mod_proxy to Unicorn

464 views
Skip to first unread message

Kyle Fazzari

unread,
Aug 31, 2013, 1:50:03 PM8/31/13
to gitl...@googlegroups.com
Hey everyone.

I'm trying to get Gitlab 6.0 working with Apache proxying traffic to Unicorn. I've setup Gitlab according to the README, and all the take tests pass. However, whenever I try to visit the site that uses the proxy, after a little bit I get:

502 Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /users/sign_in.

Reason: Error reading from remote server

Here is my Apache vhost config:

<VirtualHost _default_:80>
        ProxyPass /uploads !
        ProxyPass /error !

        ProxyPass / http://127.0.0.1:8080/
        ProxyPassReverse / http://127.0.0.1:8080/
        ProxyPreserveHost On

        CustomLog /var/log/apache2/gitlab/access.log combined
        ErrorLog /var/log/apache2/gitlab/error.log
        LogLevel debug

        # Modify path to your needs (needed for downloading attachments)
        DocumentRoot /home/git/gitlab/public

        <Location />
                Order allow,deny
                Allow from all
        </Location>
</VirtualHost>

I set the log level to debug and see this in the Apache error log. Does this mean anything to anyone? Note that this is a little ARM server, and things go a little slow. I wonder if this problem is related, and what I can do to fix it.

[Sat Aug 31 13:43:17 2013] [debug] proxy_util.c(1818): proxy: grabbed scoreboard slot 0 in child 3754 for worker http://127.0.0.1:8080/
[Sat Aug 31 13:43:17 2013] [debug] proxy_util.c(1914): proxy: initialized worker 0 in child 3754 for (127.0.0.1) min=0 max=25 smax=25
[Sat Aug 31 13:43:17 2013] [debug] proxy_util.c(1818): proxy: grabbed scoreboard slot 0 in child 3755 for worker http://127.0.0.1:8080/
[Sat Aug 31 13:43:17 2013] [debug] proxy_util.c(1837): proxy: worker http://127.0.0.1:8080/ already initialized
[Sat Aug 31 13:43:17 2013] [debug] proxy_util.c(1914): proxy: initialized worker 0 in child 3755 for (127.0.0.1) min=0 max=25 smax=25
[Sat Aug 31 13:43:21 2013] [debug] mod_proxy_http.c(56): proxy: HTTP: canonicalising URL //127.0.0.1:8080/
[Sat Aug 31 13:43:21 2013] [debug] proxy_util.c(1506): [client 10.0.2.2] proxy: http: found worker http://127.0.0.1:8080/ for http://127.0.0.1:8080/
[Sat Aug 31 13:43:21 2013] [debug] mod_proxy.c(998): Running scheme http handler (attempt 0)
[Sat Aug 31 13:43:21 2013] [debug] mod_proxy_http.c(1966): proxy: HTTP: serving URL http://127.0.0.1:8080/
[Sat Aug 31 13:43:21 2013] [debug] proxy_util.c(2011): proxy: HTTP: has acquired connection for (127.0.0.1)
[Sat Aug 31 13:43:21 2013] [debug] proxy_util.c(2067): proxy: connecting http://127.0.0.1:8080/ to 127.0.0.1:8080
[Sat Aug 31 13:43:21 2013] [debug] proxy_util.c(2193): proxy: connected / to 127.0.0.1:8080
[Sat Aug 31 13:43:21 2013] [debug] proxy_util.c(2444): proxy: HTTP: fam 2 socket created to connect to 127.0.0.1
[Sat Aug 31 13:43:21 2013] [debug] proxy_util.c(2576): proxy: HTTP: connection complete to 127.0.0.1:8080 (127.0.0.1)
[Sat Aug 31 13:43:31 2013] [debug] mod_proxy_http.c(1736): proxy: start body send
[Sat Aug 31 13:43:31 2013] [debug] mod_proxy_http.c(1840): proxy: end body send
[Sat Aug 31 13:43:31 2013] [debug] proxy_util.c(2029): proxy: HTTP: has released connection for (127.0.0.1)
[Sat Aug 31 13:43:31 2013] [debug] mod_deflate.c(615): [client 10.0.2.2] Zlib: Compressed 96 to 92 : URL /
[Sat Aug 31 13:43:31 2013] [debug] mod_proxy_http.c(56): proxy: HTTP: canonicalising URL //127.0.0.1:8080/users/sign_in
[Sat Aug 31 13:43:31 2013] [debug] proxy_util.c(1506): [client 10.0.2.2] proxy: http: found worker http://127.0.0.1:8080/ for http://127.0.0.1:8080/users/sign_in
[Sat Aug 31 13:43:31 2013] [debug] mod_proxy.c(998): Running scheme http handler (attempt 0)
[Sat Aug 31 13:43:31 2013] [debug] mod_proxy_http.c(1966): proxy: HTTP: serving URL http://127.0.0.1:8080/users/sign_in
[Sat Aug 31 13:43:31 2013] [debug] proxy_util.c(2011): proxy: HTTP: has acquired connection for (127.0.0.1)
[Sat Aug 31 13:43:31 2013] [debug] proxy_util.c(2067): proxy: connecting http://127.0.0.1:8080/users/sign_in to 127.0.0.1:8080
[Sat Aug 31 13:43:31 2013] [debug] proxy_util.c(2193): proxy: connected /users/sign_in to 127.0.0.1:8080
[Sat Aug 31 13:43:31 2013] [debug] proxy_util.c(2444): proxy: HTTP: fam 2 socket created to connect to 127.0.0.1
[Sat Aug 31 13:43:31 2013] [debug] proxy_util.c(2576): proxy: HTTP: connection complete to 127.0.0.1:8080 (127.0.0.1)
[Sat Aug 31 13:44:03 2013] [error] [client 10.0.2.2] (20014)Internal error: proxy: error reading status line from remote server 127.0.0.1:8080
[Sat Aug 31 13:44:03 2013] [debug] mod_proxy_http.c(1458): [client 10.0.2.2] proxy: NOT Closing connection to client although reading from backend server 127.0.0.1:8080 failed.
[Sat Aug 31 13:44:03 2013] [error] [client 10.0.2.2] proxy: Error reading from remote server returned by /users/sign_in
[Sat Aug 31 13:44:03 2013] [debug] proxy_util.c(2029): proxy: HTTP: has released connection for (127.0.0.1)
[Sat Aug 31 13:44:03 2013] [debug] mod_deflate.c(615): [client 10.0.2.2] Zlib: Compressed 480 to 321 : URL /users/sign_in
Reply all
Reply to author
Forward
0 new messages