Forums

504 Loadbalancer error on site that was working fine with no codebase changes

I have one api site that manages payments etc for all of my other webapps that make requests to it to complete different things or retrieve pieces of data etc. For some reason since about 5pm last night nothing will load and nothing shows up on the error logs but I didnt change any of the code and I have been going through it and can find nothing that would cause this. Please help as I have clients whose webapps I manage whose apps are down rn due to this. Thankyou!

I think it may have to do with the sql database for my api server, I think it is locked up bc routes that do not need to query the database are still responding, its only ones that have to do something with the database.

Im starting to think it is a process on the api webapp that did not restart and I may need someone to look at it and see if that is the case and end that process so that I can restart the webapp

Can you still access your database using the MySQL console? Try running SHOW FULL PROCESSLIST; to check for locked processes. Can you see anything in your logs? You can find the links to your log files on the "Web" page.

I ran show full processlist and didnt see anything alarming, however the biggest thing I am notificing is that my server and error logs for the api webapp arent printing anything and I have print statements or log stattements everywhere in my code, however its worth noting the access log is still working, and this is the only webapp where the logging is not currently working.

Which of your sites is showing this problem? I can see several in your account. Thinking about it, perhaps it would be better (for your privacy) if you email us at support@pythonanywhere.com with the full details, so that there's no mapping from your username to a domain name in public on these forums.