Rclone and AT&T Router Not Playing Nice

What is the problem you are having with rclone?

I don't actually think this is a problem with Rclone, just hoping someone here has experienced the same and has an idea how to fix it.

Connecting to a remote box via SFTP. Remote router port forwards 11111 to 22.

Generally everything works as expected, the problem comes when I try and cancel a transfer in the middle of an operation. From that point on I get connection errors until whatever is holding things up clears itself out and I can connect again. I haven't done an accurate timing of the release, but it seems to be anywhere from 10 minutes to an hour. I think this is a router setting, but I haven't been able to figure out which one. Router is an AT&T BGW320-500

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

rclone v1.68.2

  • os/version: debian 11.11 (64 bit)
  • os/kernel: 6.0.0-0.deb11.6-amd64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.23.3
  • go/linking: static
  • go/tags: none

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

No could services, remote access to server via SFTP

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

rclone sync sftp:/srv/mergerfs/media /srv/mergerfs/bsnap_pool/MEDIA/ --transfers=1 --size-only  --progress --exclude ".snapshots**"

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

[sftp]
type = sftp
host = XXX
user = XXX
key_file = /home/media.pem
key_file_pass = XXX
shell_type = unix
md5sum_command = md5sum
sha1sum_command = sha1sum
port = 11111


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

2024/11/20 07:13:05 DEBUG : rclone: Version "v1.61.1" starting with parameters ["rclone" "sync" "sftp:/srv/mergerfs/media" "/srv/mergerfs/bsnap_pool/MEDIA/" "--transfers=3" "--size-only" "--progress" "--exclude" ".snapshots**" "-vv"]
2024/11/20 07:13:05 DEBUG : Creating backend with remote "sftp:/srv/mergerfs/media"
2024/11/20 07:13:05 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2024/11/20 07:13:05 DEBUG : pacer: low level retry 1/10 (error couldn't connect SSH: dial tcp **.**.**.58:11111: connect: connection refused)
2024/11/20 07:13:05 DEBUG : pacer: Rate limited, increasing sleep to 200ms
2024/11/20 07:13:05 DEBUG : pacer: low level retry 2/10 (error couldn't connect SSH: dial tcp **.**.**.58:11111: connect: connection refused)
2024/11/20 07:13:05 DEBUG : pacer: Rate limited, increasing sleep to 400ms
2024/11/20 07:13:05 DEBUG : pacer: low level retry 3/10 (error couldn't connect SSH: dial tcp **.**.**.58:11111: connect: connection refused)
2024/11/20 07:13:05 DEBUG : pacer: Rate limited, increasing sleep to 800ms
2024/11/20 07:13:05 DEBUG : pacer: low level retry 4/10 (error couldn't connect SSH: dial tcp **.**.**.58:11111: connect: connection refused)
2024/11/20 07:13:05 DEBUG : pacer: Rate limited, increasing sleep to 1.6s
2024/11/20 07:13:06 DEBUG : pacer: low level retry 5/10 (error couldn't connect SSH: dial tcp **.**.**.58:11111: connect: connection refused)
2024/11/20 07:13:06 DEBUG : pacer: Rate limited, increasing sleep to 2s
2024/11/20 07:13:08 DEBUG : pacer: low level retry 6/10 (error couldn't connect SSH: dial tcp **.**.**.58:11111: connect: connection refused)
2024/11/20 07:13:10 DEBUG : pacer: low level retry 7/10 (error couldn't connect SSH: dial tcp **.**.**.58:11111: connect: connection refused)
2024/11/20 07:13:12 DEBUG : pacer: low level retry 8/10 (error couldn't connect SSH: dial tcp **.**.**.58:11111: connect: connection refused)
2024/11/20 07:13:14 DEBUG : pacer: low level retry 9/10 (error couldn't connect SSH: dial tcp **.**.**.58:11111: connect: connection refused)
2024/11/20 07:13:16 DEBUG : pacer: low level retry 10/10 (error couldn't connect SSH: dial tcp **.**.**.58:11111: connect: connection refused)
2024/11/20 07:13:16 Failed to create file system for "sftp:/srv/mergerfs/media": NewFs: couldn't connect SSH: dial tcp **.**.**.58:11111: connect: connection refused

hi,
that is an old version of rclone, should test using the latest.