Forums

My web app is not responding. Error code: 504-loadbalancer

When I load my web app, it takes forever, then it finally says Error code: 504-loadbalancer . I tried reloading, it loads for an unnormal long time, and it still doesn't work. Nothing new is added to the logs. The last thing it says is

2019-11-15 04:16:38 Fri Nov 15 04:16:38 2019 - *** /etc/uwsgi/ychat.pythonanywhere.com.ini has been touched... grace them all !!! *** 2019-11-15 04:16:38 ...gracefully killing workers... 2019-11-15 04:16:38 Gracefully killing worker 1 (pid: 2)...

Is there an error in my code or is this a problem with pythonanywhere?

I fixed it by deleting my web app. Then I created a new one and changed the directory to the old app.

Ok. You get that error when your web app is not able to start for some reason. When you re-created it, I guess you fixed whatever the problem was.