[Flask] intermittent Internal Server Error on running flask site

Adil Hasan paradox2005 at gmail.com
Wed Nov 13 16:11:41 EST 2019


Hello,
I wonder. If you know rougly when it happens perhaps there's some info
in the access log to indicate what the request was at that time? It
could be that there's some request coming in that perhaps your code is
not able to handle and causes the 500 error?
hth
adil

On Wed, Nov 13, 2019 at 09:02:28PM +0000, flaskee via Flask wrote:
> Any tips on this one folks?
> (I am stuck)
> 
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> On Tuesday, November 12, 2019 10:14 AM, flaskee wrote:
> 
> > Hello all:
> >
> > I'm just looking for pointers on where to check, in order to track this down.
> >
> > The problem:
> >
> > I have a production flask site,
> > on Apache /2.4.38; Debian 10.1, using a virtualized Python3.5/HTML5 site.
> >
> > It works well! except that every few days it crashes with an Internal Server Error - 500.
> >
> > When "crashed", the site itself is still loaded in Apache2,
> > as
> > nmap -A <my ip>
> > nmap -sP <my ip>
> > nmap -A <mydomain>
> > nmap -sP <mydomain>
> > all report the host is loaded;
> > and other static sites running on the same apache server still serve up just fine.
> >
> > It does not *appear* to be a coding error,
> > as when it is running,
> > I have negotiated to each and every page in the site,
> > without causing a crash.
> >
> > Still, randomly, the site fails.
> >
> > I have been through:
> > * the web sites' error.log
> > * the web sites' acess.log
> > * /var/log/apache2/error.log
> > * /var/log/apache2/error.log.1
> > * /var/log/syslog
> > and I'm not finding the cause.
> >
> > A
> > sudo systemctl stop apache2.service
> > sudo systemctl start apache2.service
> > gets the site running again.
> >
> > Any tips on where else to check?
> >
> > Thank you!
> >
> > The Error
> > Internal Server Error
> > The server encountered an internal error or misconfiguration and was unable to complete your request.
> >
> > Please contact the server administrator at webmaster at mydomain.org to inform them of the time this error occurred, and the actions you performed just before this error.
> >
> > More information about this error may be available in the server error log.
> >
> > Sent with [ProtonMail](https://protonmail.com) Secure Email.

> _______________________________________________
> Flask mailing list
> Flask at python.org
> https://mail.python.org/mailman/listinfo/flask



More information about the Flask mailing list