-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update docs about socket directory permissions #277
Comments
Well, permission denied means you have to fix the permission issue. So, check the permissions on the socket file and also on all directories above it. |
Thanks- The .sock file gets owned by the |
I'ld go via the group (preferably, if you can give it to the nginx group) or others permission (if group can't be done). |
Ok, the "fix" was to give chown bepasty:www-data /home/bepasty I don't know if this should be in the docs somewhere but it threw me for a loop. |
A hint would be good, can you make a PR with the docs update? Guess the |
Sure once I have known-good working steps I am happy to update the docs via a PR. Still working out some issues though! |
I tried to follow the install steps to the best of my ability, on a fresh Ubuntu 21.04 host. I ran into an issue out of the box, where nginx just returns 502 Bad gateway upon accessing the site.
In
/home/bepasty/logs/nginx-error.log
I see something like this:I can't figure this out despite lots and lots of googling.
The only thing that "works" for me is to change the user that nginx runs as, by editing
/etc/nginx/nginx.conf
and changingwww-data
tobepasty
:But, I imagine there are problems with this solution, and it doesn't scale when nginx needs to serve multiple sites.
Has anyone run into this and know how to properly fix? I'm a bit bewildered when it comes to gunicorn/flask.
The text was updated successfully, but these errors were encountered: