Forums

Unable to establish session to ssh gateway / ssh connection timeout (mySQL)

I have a paid pythonanywhere hacker account. I managed to setup my database with my django project as well as MySQL workbench. Everything was working fine up till the night of 28th Jan 2023. Today, when I tried to runserver from my project, I was hit with different errors: OperationalError 2013, unable to establish session to ssh gateway / ssh connection timeout / Lost connection to server at 'handshake: reading initial communication packet', system error: 0"). MySQL workbench also had the connection timeout error and was not able to establish a connection.

I did not change any passwords or settings since I first set up my project and everything had been working fine up till yesterday. I have tried countless solutions from Google, Stackoverflow as well as PythonAnywhere forums and have yet to solve my issue.

Is it possible that pythonanywhere's mysql server is down or something...?

Please advise. :(

Are you able to just ssh to you PythonAnywhere account?

when I first did it (upon this issue), yes I managed to connect. but later when i tried again, nope I couldn't anymore.

What was the error when you tried to ssh directly?

ok just tried again, im able to ssh to my pythonanywhere acc now. my project is also able to runserver and mysql workbench is able to connect again. Seems like everything is back to normal now... I didn't change anything though, was anything done on your side? I've been trying to fix this issue since 12pm (GMT+8) of 29th Jan.

Glad to hear it's working now. By looking at our logs I don't see any traces of failed SSH connections for your account. Let us know if that happens again.

Hmmm... weird, cos I kept encountering errors like ssh timeout, or unable to establish session to ssh gateway etc. But nevertheless, things are working already, so thanks anyway!