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 /var/log/nginx/error.log.1
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: “some_ip”, server: , request: “GET /favicon.ico HTTP/1.1”, upstream: “uwsgi://unix:/var/www/html/myproject/myproject.sock:”, host: “some_ip”, referrer: “some_ip”
And at the same time the report when I login to putty is feel weird…
Here is the log when I login to Putty
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?
Cause I dont want to end up get this ->> ** Networking Disabled** and this situation happened last time which make me need to set up the whole thing again.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Greetings!
It sounds like the service is stopping. Try this to see if you get any clear error output:
journalctl -u myproject.service
Jarland
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.