What did you do to install this setup ? having the socket inside /var/www is not something is usually done. However, that error is nginx telling you that a socket you told him to listen to isn't there, so to fix the error I'd create the logs folder again and restart whatever process (supposedly uwsgi) creates that file. The second step would be to review carefully the configuration ^_^
On Saturday, May 31, 2014 2:30:22 PM UTC+2, lesssugar wrote: > > I'm using web2py's nginx + uwsgi + centos configuration and I accidentally > removed web2py/logs folder on my server. Now I get "502 bad gateway" > whenever I try to open my page. > > nginx error log: > > 2014/05/31 13:16:50 [crit] 762#0: *1052 connect() to > unix:///var/www/web2py/logs/web2py.socket failed (2: No such file or > directory) while connecting to upstream, client: xxx.xx.xxx.xxx, server: > xxx.com, request: "GET / HTTP/1.1", upstream: > "uwsgi://unix:///var/www/web2py/logs/web2py.socket:", host: "www.xxx.com" > > How can I restore web2py.socket file and get my website to work again? Any > help appreciated. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

