Question

I followed the tutorial for Deploying a flask application with Nginx and Uswgi

Posted November 18, 2020 109 views
NginxFlask

I was following this tutorial (https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uwsgi-and-nginx-on-ubuntu-20-04#conclusion) and I did all the steps. But now I get the error that my website took too long to respond. This happened 3 or 4 times and I redid my application but it still shows this.

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.

×
1 answer

Hi @yah,

Does this error show itself every time you load your website or not?

I know it might sound stupid but are you sure it’s not your internet connection? I’ve had issues like that.

Other solutions or ways to check what’s going on would be your Nginx’s errorlogs. If Nginx has a problem loading the website it will show it in it’s errorlog. Can you see anything in there? If yes, please post it and we can go further debugging what’s the problem.

Regards,
KFSys

  • Hi @KFSys,

    It’s every time.
    Thanks for answering. I did the following command systemctl status uwsgi and got the following error: Unit uwsgi.service could not be found. What should I do now? It is not an error with Nginx but an error with uwsgi.

    Sincerely,
    Yah

Submit an Answer