Error reading source directory: 421 No-transfer-time exceeded. Closing control connection

What is the problem you are having with rclone?

List failed: dirExists stat failed: sftp: "Folder not found:

What is your rclone version (output from rclone version)

rclone v1.51.0

  • os/arch: linux/amd64
  • go version: go1.13.7

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

rclone ls --config=tmp.conf data-dir:

The rclone config contents with secrets removed.

[conf-s3]
type = s3
env_auth = true
region = region
location_constraint = region

[data-dir]
type = sftp
host = host_ip
user = user
pass = paswd
port = fixed_port_no

A log from the command with the -vv flag

2021/02/08 03:16:49 DEBUG : rclone: Version "v1.51.0" starting with parameters ["rclone" "ls" "-vv" "--config=tmp.conf" "data-dir:"]
2021/02/08 03:16:49 DEBUG : Using config file from "/tmp.conf"
2021/02/08 03:16:49 DEBUG : sftp://user@ftp.website.com:22/: New connection ip:port->ip2:port2 to "SSH-2.0-WS_FTP-SSH_7.6.3"
2021/02/08 03:16:51 ERROR : History: error listing: List failed: dirExists stat failed: sftp: "Folder not found: History" (SSH_FX_FAILURE)
2021/02/08 03:16:51 Failed to ls with 2 errors: last error was: List failed: dirExists stat failed: sftp: "Folder not found: History" (SSH_FX_FAILURE)

The following command works "lsd:
'''
rclone lsd -vv --config=tmp.conf data-dir:
'''

2021/02/08 03:18:09 DEBUG : rclone: Version "v1.51.0" starting with parameters ["rclone" "lsd" "-vv" "--config=tmp.conf" "data-dir:"]
2021/02/08 03:18:09 DEBUG : Using config file from "/tmp.conf"
2021/02/08 03:18:10 DEBUG : sftp://xx@ftp.yy.com:22/: New connection ip:port->ip2:port2 to "SSH-2.0-WS_FTP-SSH_7.6.3"
-1 2021-02-04 22:41:12 -1 History
2021/02/08 03:18:11 DEBUG : 12 go routines active
2021/02/08 03:18:11 DEBUG : rclone: Version "v1.51.0" finishing with parameters ["rclone" "lsd" "-vv" "--config=tmp.conf" "data-dir:"]

The copy command also fails with "stat failed: sftp: "Folder not found:"

In short ,
ls fails
lsd succeeds
copy fails

I looked at Sftp SSH_FX_FAILURE directory not found and tried with rclone v1.52.3 bit same behaviour.

Please suggest

rclone lsd -vv --config=tmp.conf data-dir:/History
rclone lsd -vv --config=tmp.conf data-dir:History
rclone lsd -vv --config=tmp.conf data-dir:./History

All of the above fail with

Failed to ls with 2 errors: last error was: List failed: dirExists stat failed: sftp: "Folder not found: History" (SSH_FX_FAILURE)

This was resolved after using the absolute path on the source i.e.

rclone lsl -vv --config=tmp.conf data-dir:/users/myuser/History

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