Forums

Error code: 502-backend

I am trying to setup mezzanine, now i am getting this error code when i am trying to look at the webapp.

Something went wrong :-(

This website is hosted by PythonAnywhere, an online hosting environment. Something went wrong while trying to load it; please try again later.

If this is your PythonAnywhere-hosted site, and you just reloaded it, then the problem might simply be that it hasn't loaded up yet. Try refreshing this page and see if this message disappears.

If you keep getting this message, you should check your site's server and error logs for any messages — you can view them from the Web tab inside PythonAnywhere.

If there's nothing in the logs, and you're sure your site is OK, then it might be a problem on our side. Drop us a line at support@pythonanywhere.com, in the forums, or using the "Send feedback" link on the site, quoting the error code below.

Error code: 502-backend

Any ideas why this is happening? I didn't get any specific errors, also i did everything like the times before when everything worked succesfully.

Hi there,

we had a glitch on one of the web servers yesterday, but things are working again today. Will you let me know if everything looks OK again?

i have the same problem, started around 20 min ago xd

Investigating...

@al161931 I've taken a look at the server but it seems like you're the only user experiencing problems. Have you changed anything recently? We sometimes see this error when people try and start their own web server, and bind to a port instead of just using the wsgi protocol (eg with app.run() in flask).

Could your app be doing something similar?

ah - looks like your webapp is back, actually. My browser was just caching the 502 page. We'll try and find the root cause. Let us know if everything looks OK your end?