hopsoft / docker-graphite-statsd

Docker image for Graphite & Statsd
MIT License
867 stars 310 forks source link

nginx configuration broken #79

Open AngeleToR opened 7 years ago

AngeleToR commented 7 years ago

Hi hopsoft,

I was installing your docker under FreeNAS Corral and it didn't work. Seemed permission stuff at the begining, as the nginx config dir was always empty no matter my efforts and tests, but following the leads I arrived to your page and I believe to have found the mistake in the Dockerfile.

After cloning the statsd git repo you're not changing the WORKDIR like with the other tools you're cloning, and that's why I believe that all the config gets screwed after that point.

Just my guess, if you could please look into it I'll be glad.

Regards, Angel

P.S: I imagine that only new installs suffer from this problem, as far as I've understood. Could have happened in the last build 5 days ago???

AngeleToR commented 7 years ago

Errrrrrr... on a second though, I think that my guess of where the bug is hiding may be wrong... I'm not an expert yet in docker and I let myself go with the excitement of the finding. Forget my guess, and focus on the fact that nginx configuration doesn't end in the folders it should.

Regards, Angel

hopsoft commented 7 years ago

Will you run with docker run ... hopsoft/graphite-statsd:v0.9.15-phusion0.9.18 & let me know if the problem manifests on that tag also?

wrsuarez commented 6 years ago

+1 here. After deploying the container throws endless errors about not finding the nginx.conf file:

7/23/2018 2:26:30 PM7/23/2018 2:26 nginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:31 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:32 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:33 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:34 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:35 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:36 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:37 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:38 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:39 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:40 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:41 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:42 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:43 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:44 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:45 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:46 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:47 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:48 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:50 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:51 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:52 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:53 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:54 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:55 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:56 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory) 7/23/2018 2:26:57 PMnginx: [emerg] open() "/etc/nginx/nginx.conf" failed (2: No such file or directory)

I tried with the tag mentioned above @hopsoft and that didn't change anything

I'll try to pull the Dockerfile and add the working directory line mentioned above

wrsuarez commented 6 years ago

@hopsoft without making changes I built the container from the docker file in Master and that seems to be working. I wonder if the published one in the registry is just missing something?

hopsoft commented 6 years ago

Perhaps so. I'll look at forcing a new build on Docker hub.