SFTP pacer ratelimit handshake failure

What is the problem you are having with rclone?

All commands seem to fail on sftp. I tried to connect to the same locally with WinSCP and that seems to work without issues

Run the command 'rclone version' and share the full output of the command.

$ rclone version
rclone v1.65.1
- os/version: debian 12.6 (64 bit)
- os/kernel: 6.1.0-13-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.5
- go/linking: static
- go/tags: none

Which cloud storage system are you using? (eg Google Drive)

SFTP

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone ls "mysftpremote:/stuff/stuff2/stuff3" -vvv --transfers 1 --checkers 1
rclone copy "mysftpremote:/stuff/stuff2/stuff3/file.txt" "/home/me/folder/" -P -vv --transfers 1 --checkers 1

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

moe@pogbox:~$ rclone config redacted
[mysftpremote]
type = sftp
host = XXX
user = XXX
port = 2022
pass = XXX

A log from the command that you were trying to run with the -vv flag

$ rclone ls "mysftpremote:/stuff/stuff2/stuff3" -vvv --transfers 1 --checkers 1
2024/09/16 19:19:56 DEBUG : rclone: Version "v1.65.1" starting with parameters ["rclone" "ls" "mysftpremote:/stuff/stuff2/stuff3" "-vvv" "--transfers" "1" "--checkers" "1"]
2024/09/16 19:19:56 DEBUG : Creating backend with remote "mysftpremote:/stuff/stuff2/stuff3"
2024/09/16 19:19:56 DEBUG : Using config file from "/home/me/.config/rclone/rclone.conf"
2024/09/16 19:19:56 DEBUG : pacer: low level retry 1/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/09/16 19:19:56 DEBUG : pacer: Rate limited, increasing sleep to 200ms
2024/09/16 19:19:57 DEBUG : pacer: low level retry 2/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/09/16 19:19:57 DEBUG : pacer: Rate limited, increasing sleep to 400ms
2024/09/16 19:19:57 DEBUG : pacer: low level retry 3/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/09/16 19:19:57 DEBUG : pacer: Rate limited, increasing sleep to 800ms
2024/09/16 19:19:57 DEBUG : pacer: low level retry 4/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/09/16 19:19:57 DEBUG : pacer: Rate limited, increasing sleep to 1.6s
2024/09/16 19:19:58 DEBUG : pacer: low level retry 5/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/09/16 19:19:58 DEBUG : pacer: Rate limited, increasing sleep to 2s
2024/09/16 19:20:00 DEBUG : pacer: low level retry 6/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/09/16 19:20:02 DEBUG : pacer: low level retry 7/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/09/16 19:20:04 DEBUG : pacer: low level retry 8/10 (error couldn't connect SSH: ssh: handshake failed: read tcp xx.xxx.xxx.xxx:57928->yyy.yyy.yy.yyy:2022: read: connection reset by peer)
2024/09/16 19:20:06 DEBUG : pacer: low level retry 9/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/09/16 19:20:08 DEBUG : pacer: low level retry 10/10 (error couldn't connect SSH: ssh: handshake failed: read tcp xx.xxx.xxx.xxx:57940->yyy.yyy.yy.yyy:2022: read: connection reset by peer)
2024/09/16 19:20:08 Failed to create file system for "mysftpremote:/stuff/stuff2/stuff3": NewFs: couldn't connect SSH: ssh: handshake failed: read tcp xx.xxx.xxx.xxx:57940->yyy.yyy.yy.yyy:2022: read: connection reset by peer

welcome to the forum,

should uninstall that old version and then
https://rclone.org/install/#script-installation

and to keep the logs small, use --retries=1

can you post the log?

what are the sftp server details?
are you running rclone serve sftp on windows?
can you post a log from the sftp server?

$ /home/me/rclone-v1.68.0-linux-amd64/rclone version
rclone v1.68.0
- os/version: debian 12.6 (64 bit)
- os/kernel: 6.1.0-13-amd64 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.23.1
- go/linking: static
- go/tags: none
$ /home/me/rclone-v1.68.0-linux-amd64/rclone ls "mysftpremote:/stuff/stuff2/stuff3" -vvv --transfers 1 --checkers 1 --retries 1
2024/09/16 21:51:25 DEBUG : rclone: Version "v1.68.0" starting with parameters ["/home/me/rclone-v1.68.0-linux-amd64/rclone" "ls" "mysftpremote:/stuff/stuff2/stuff3" "-vvv" "--transfers" "1" "--checkers" "1" "--retries" "1"]
2024/09/16 21:51:25 DEBUG : Creating backend with remote "mysftpremote:/stuff/stuff2/stuff3"
2024/09/16 21:51:25 DEBUG : Using config file from "/home/me/.config/rclone/rclone.conf"
2024/09/16 21:51:25 DEBUG : pacer: low level retry 1/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/09/16 21:51:25 DEBUG : pacer: Rate limited, increasing sleep to 200ms
2024/09/16 21:51:25 DEBUG : pacer: low level retry 2/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/09/16 21:51:25 DEBUG : pacer: Rate limited, increasing sleep to 400ms
2024/09/16 21:51:25 DEBUG : pacer: low level retry 3/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/09/16 21:51:25 DEBUG : pacer: Rate limited, increasing sleep to 800ms
2024/09/16 21:51:26 DEBUG : pacer: low level retry 4/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/09/16 21:51:26 DEBUG : pacer: Rate limited, increasing sleep to 1.6s
2024/09/16 21:51:27 DEBUG : pacer: low level retry 5/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/09/16 21:51:27 DEBUG : pacer: Rate limited, increasing sleep to 2s
2024/09/16 21:51:28 DEBUG : pacer: low level retry 6/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/09/16 21:51:30 DEBUG : pacer: low level retry 7/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/09/16 21:51:32 DEBUG : pacer: low level retry 8/10 (error couldn't connect SSH: ssh: handshake failed: read tcp 95.216.115.209:42826->108.206.72.172:2022: read: connection reset by peer)
2024/09/16 21:51:34 DEBUG : pacer: low level retry 9/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/09/16 21:51:36 DEBUG : pacer: low level retry 10/10 (error couldn't connect SSH: ssh: handshake failed: EOF)
2024/09/16 21:51:36 CRITICAL: Failed to create file system for "mysftpremote:/stuff/stuff2/stuff3": NewFs: couldn't connect SSH: ssh: handshake failed: EOF
$

winscp logs: https://privatebin.net/?e030582169388782#BW45em45GVn8KXoP6mk1UV4JnHftehqbb8DxsnDSCb7G

Unfortunately I do not have shell access to the server

winscp login is using a key or password, or what?

password in both cases

ok, see that now in User name: downloaders (Password: Yes, Key file: No, Passphrase: No)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.