Forums

Is PythonAnywhere having SSH Tunnel issues?

I have 3 web apps that I've barely altered and have been running for months. I SSH into them from a few different places (MySQL Workbench, locally, and from scripts on my hosted Streamlit app. All of a sudden, I can't connect over SSH from any of these sources to any of my apps. Haven't changed the way I connect to them.. so is this account related? Or PythonAnywhere related?

My Streamlit code uses the pymysql and sshtunnel modules for connecting. MySQL Workbench uses TCP/IP over SSH.

Example errors below

sshtunnel.BaseSSHTunnelForwarderError: Could not establish session to SSH gateway

2023-11-20 03:00:15,718| ERROR   | Could not establish connection from local ('127.0.0.1', 44645) to remote ('ContinuumXR.mysql.pythonanywhere-services.com', 3306) side of the tunnel: open new channel ssh error: Timeout opening channel.

Then further down...

pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query')
2023-11-20 03:15:54,556| ERROR   | Socket exception: Connection reset by peer (104)
2023-11-20 03:15:54,556| ERROR   | Socket exception: Connection reset by peer (104)
2023-11-20 03:17:29,238| ERROR   | Could not establish connection from local ('127.0.0.1', 38369) to remote ('ContinuumXR.mysql.pythonanywhere-services.com', 3306) side of the tunnel: open new channel ssh error: Timeout opening channel.

I think we might have been going through a ddos at the time you posted though it looks like it recovered quite quickly