I am configuring nginx with uwsgi on EC2, I have check logs in file
/var/log/nginx/error.log
.
I am getting this error:
200 connect() to unix:/tmp/uwsgi.sock failed (2: No such file or directory) while connecting to upstream
My uwsgi.sock location is /var/www/myapp/
How can I change the file location from uwsgi://unix:/tmp/uwsgi.sock
to uwsgi://unix:/var/www/myapp/
in configuartion?
This might be a problem with classical namespaced Temp, please see this: http://fedoraproject.org/wiki/Features/ServicesPrivateTmp
but you mentioned that you have set your sock location to your app directory, have you done it in your nginx configuration for that virtual host? you will definitely need to restart your web server for that changes to take affect.
Please refer this question and its answer, which might be useful in this case. Got 'No such file or directory' error while configuring nginx and uwsgi
Please refer to the section where in nginx.conf file, uwsgi_pass is mentioned. if you have not made changes like that, please do so and restart the webserver. I think that must solve the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With