[Solved] 502 Bad Gateway

A post was merged into an existing topic: Error 502 after upgrading to CentOS 7.8

hi Cosmin, I got the same error. Could you elaborate a little bit on how to fix the problem? Thanks

Hi justk, As I remember, there was a permission problem. You have to make sure the user for the process has access to the files.

Solution in my case after install on localhost:
(1) error 502 + (2) …/opt/indico/web/uwsgi.sock failed (13: Permission denied)… from file /opt/indico/log/nginx/error.log + (3) ubuntu+nginx+https://docs.getindico.io/en/stable/installation/production/debian/nginx/

Under these conditions user “www-data” have been added to group “nginx” and completed restart.

~# ps aux | grep nginx

www-data 865 0.0 0.0 66960 9328 ? S 11:43 0:00 nginx: worker process

~# more /etc/group | grep nginx
nginx:x:1001:indico,www-data

~# ls -l /opt/indico | grep web
drwxr-x— 2 indico nginx 4096 фев 20 11:43 web

Thank you!