Why nginx .sock file failed everyday?
I run a Nginx on Ubuntu 18.04 with Python and Flask..I follow this 2 tutorial.
But everyday I check my application,the request always Server Internal Error 500. My application is new,just run for 3 days.But the server keep failed.This happen everyday.
After I run this command,it works again.
sudo systemctl restart myproject
But come on,I need to restart the server everyday??
Here is the result get when I check the
2019/03/13 14:47:47 [crit] 7277#7277: *1 connect() to unix:/var/www/html/myproject/myproject.sock failed (2: No such file or directory) while connecting to upstream, client: “someip”, server: , request: “GET /favicon.ico HTTP/1.1”, upstream: “uwsgi://unix:/var/www/html/myproject/myproject.sock:”, host: “someip”, referrer: “some_ip”
And at the same time the report when I login to putty is feel weird..
It said usage of 8.8% and Memory usage 41%,I mean my application just 1 file and serve for only 3 days with few user for this moment,is this a normal situation?
This situation happen already 3 days..Everyday I need to key in the command to restart the server.Can somebody let me know?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.