Forums

SFTP connection times out PLS HELP

So I had difficulties yesterday but today all my connections timeout, do we know if the site is facing any technical difficulties? It has been working for 3 years and now suddenly timeout.

Apart from some spikes in activity, we haven't noticed anything particular today concerning the SSH server. How long it takes before you get the timeout message?

after 20 seconds, this is what FilleZilla outputs:


Status: Connecting to ssh.pythonanywhere.com...

Status: Using username "alternistom".

Status: Connected to ssh.pythonanywhere.com

Error: Connection timed out after 20 seconds of inactivity

Error: Could not connect to server

Status: Waiting to retry...

Status: Connecting to ssh.pythonanywhere.com...

Response: fzSftp started, protocol_version=11

Command: open "alternistom@ssh.pythonanywhere.com" 22

Status: Using username "alternistom".

Command: Pass: *****

Status: Connected to ssh.pythonanywhere.com

Error: Connection timed out after 20 seconds of inactivity

Error: Could not connect to server


I have a Power Automate function that picks up new files from the SFTP that are downloaded by scheduled task. The files download fine, but the server is throwing 504 error since yesterday. It is not a rare occurence either for 130 files I have now ~4K errors with the 504 error.


This method has been working fine since 2020 March, so it is not something new, but never had this issue.

We haven't changed anything on our side recently -- did possibly anything changed on your side (like upgrade of FileZilla, different behaviour of your scheduled task etc?) You could test the behaviour on the command line with rsync as described here and see if you're getting timeouts as well.

So this started happening again, same happens with WinSCP, Filezilla, Total Commander even, they connect, but it times out, will try rsync now.

Yeah, so rsync fails too :(

<<<<<<:>~ PythonAnywhere SSH. Help @ https://help.pythonanywhere.com/pages/SSHAccess

alternistom@ssh.pythonanywhere.com's password:

exec request failed on channel 0

rsync: connection unexpectedly closed (0 bytes received so far) [sender]

rsync error: unexplained error (code 255) at io.c(235) [sender=3.1.3]

Anything changed on your side?

No, another thing I tried is I registering another account on pythonanywhere, that connects just fine, weird.

I'm seeing lots of successful SSH logins for alternistom now.

FYI, as of today I have upgraded the systemimage from earlygrey to haggis and this problem has disappeared.

That's really weird. Which system image were you on before? And which version of SFTP were you using? I'm wondering if perhaps you (or some automated update system) upgraded your SSL libraries to ones that weren't compatible with the old system image back in last April. But then you would expect a much more meaningful error message.

As said above I was on earlgrey, not sure on the SFTP version though :/

Looks like we won't be able to find out more.