Forums

remote ('pentagruel.pythonanywhere-services.com', 3306) side of the tunnel: open new channel ssh error: ChannelException(2, 'Connect failed')

I'm facing an issue with the mysql connector i set up for my production environnement. It was running until yesterday and i now get this error when i try to reach the mysql database from my home with a ssh tunnel (which is still working). I can still access mysql from the website.i can also connect to mysql via ssl with Dbeaver.

2024-11-14 21:53:38,386| ERROR | Secsh channel 0 open FAILED: Name or service not known: Connect failed 2024-11-14 21:53:38,387| ERROR | Could not establish connection from local ('127.0.0.1', 50921) to remote ('pentagruel.pythonanywhere-services.com', 3306) side of the tunnel: open new channel ssh error: ChannelException(2, 'Connect failed')

I found a forum topic where the OP has nearly the same error (1, 'Administratively prohibited '). https://www.pythonanywhere.com/forums/topic/33829/

Thank for your help.

I see that you contacted us about this over email too, so we'll respond that way. If there's something generally-applicable that comes out of the conversation, perhaps either you or we can post about it here :-)

a fresh virtualenv with reinstallation of all the packages solved this. Thanks Giles and his support from PythonAnywhere.

Glad we could help!