- 0
Flask web server won't respond
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
- 0 replies
- 2 views
-
Amazon EC2 C5a Instances with 2nd Gen AMD EPYC Processors now generally available
By Ather Fawaz,
- aws
- amazon web services
- (and 7 more)
- 0 replies
- 235 views
-
The Complete 2020 Cloud Certification Training Bundle is down 98% to just $29.99
By News Staff,
- cloud computing
- neowin deals
- (and 12 more)
- 0 replies
- 586 views
-
Save 94% off this Amazon Web Services Certification Training Mega Bundle
By News Staff,
- neowin deals
- sponsored
- (and 11 more)
- 0 replies
- 373 views
-
You can still Pay What You Want for this Python Master Class training Bundle
By News Staff,
- python
- python power coder
- (and 11 more)
- 0 replies
- 398 views
-
Question
this account is abandoned
I am running a Flask web app on an Ubuntu machine in an Amazon EC2 instance and I have been noticing that when I try to access the site, it just hangs and doesn't load the index.html file. The app in question has a web form and submits a URL to the server for processing (only validates if URL is between 10 and 30 characters).
This problem occurs after the server has been running for some time, but there is no consistency. It could be a few hours, to days.
I have some log entries which indicate some suspicious activity but I am not really sure how to mitigate it. I believe someone is sending garbage requests which is overloading Flask. Log entries are below, IP addresses have been masked.
Log #1
A temporary solution I have been using is to kill the Python process and reload the webserver but that is only temporary. (nohup python run.py &)
Link to comment
https://www.neowin.net/forum/topic/1277060-flask-web-server-wont-respond/Share on other sites
0 answers to this question
Recommended Posts