Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

200 connect() to unix:/tmp/uwsgi.sock failed

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?

like image 757
Abhishek Avatar asked Jun 13 '15 15:06

Abhishek


1 Answers

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.

like image 107
openrijal Avatar answered Oct 21 '22 04:10

openrijal