davibe / gitlist-docker

A ready to use docker image with preinstalled gitlist.
21 stars 24 forks source link

Nginx 502 #1

Open pandeiro opened 10 years ago

pandeiro commented 10 years ago

I wanted to try out this image to test gitlist without installing all of its deps, but I get a 502 Bad Gateway response from localhost:8888 no matter what I do.

I tried working with my gitolite repositories directory (bare repos), I tried changing the permissions to more liberal settings as described here, I tried chowning all of the bare repos to my user, I even tried working with regular (non-bare) repos -- all mounted to /repos. Nothing worked for me; Nginx gives a 502 no matter what.

JohanVikman commented 10 years ago

I solved this problem through following this howto:

http://wildlyinaccurate.com/solving-502-bad-gateway-with-nginx-php-fpm

davibe commented 10 years ago

@JohanVikman Do you have a patch for the Dockerfile or more specific instructions?

davibe commented 10 years ago

I just tried rebuilding and re-running the image and it works fine. The thing specified at that url is already done in the docker image. Maybe the docker trusted build is not up to date. I am going to request a rebuild.

viphe commented 9 years ago

I just tried building the Docker image from scratch and I observed the same 502 Bad Gateway error. While poking around, I found out the same thing about /etc/php5/fpm/pool.d/www.conf referencing a Unix socket rather than the TCP port 9000 expected by Nginx.