What is the problem you are having with rclone?
When running rclone check with an stfp remote, large files can fail to check. It appears to be the same problem previously reported here (I can't reply on that thread so I opened this one):
Two problems crop up: 1. The hash fails to be computed on the remote. 2. rclone still claims the files are matching at the very end even though the hashing failed.
Reading through the referenced thread above, @ncw had concluded with this being fixed as of the 1.57.0 release, so it seems the problem persists in some form as I am trying that release and the latest beta. It's also worth noting that the troubleshooting in that thread pointed to connections being prematurely closed as the issue, while I see my log reporting it's refusing to close the connections as there are sessions still active, so it would seem the problem lies elsewhere. I have also verified that by direct command on the sftp server, I can run md5sum on the file successfully.
What is your rclone version (output from rclone version
)
I have tried with rclone 1.57.0 and rclone v1.58.0-beta.5885.4c93378f0.
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Microsoft Windows 11 Home 2009 (64 bit)
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 check --one-way -vv --checkers 1 --log-file onebyone.txt "D:/Staging2/folderwithreallybigfile/thereallybigfile" "sftpserver:/folderwithreallybigfile"
The rclone config contents with secrets removed.
[mysftpserver]
Enter configuration password:
password:
type = sftp
host = mysftpserver
user = mysftpuser
pass = *** ENCRYPTED ***
key_file_pass = *** ENCRYPTED ***
use_insecure_cipher = true
md5sum_command = md5sum
sha1sum_command = sha1sum
A log from the command with the -vv
flag
2021/11/14 07:19:15 DEBUG : rclone: Version "v1.58.0-beta.5885.4c93378f0" starting with parameters ["rclone" "check" "--one-way" "-vv" "--checkers" "1" "--log-file" "onebyone.txt" "D:/Staging2/Staging2/folderwithreallybigfile/thereallybigfile" "sftpserver:/folderwithreallybigfile"]
2021/11/14 07:19:15 DEBUG : Creating backend with remote "D:/Staging2/Staging2/folderwithreallybigfile/thereallybigfile"
2021/11/14 07:19:20 DEBUG : Using config file from "C:\\Users\\myuser\\.rclone.conf"
2021/11/14 07:19:20 DEBUG : fs cache: adding new entry for parent of "D:/Staging2/Staging2/folderwithreallybigfile/thereallybigfile", "//?/D:/Staging2/Staging2/folderwithreallybigfile"
2021/11/14 07:19:20 DEBUG : Creating backend with remote "mysftpserver:/folderwithreallybigfile"
2021/11/14 07:19:20 DEBUG : sftp://mysftpuser@mysftpserver:22//folderwithreallybigfile: New connection mysftpserver:51494->mysftpserver:22 to "SSH-2.0-OpenSSH_8.4p1 Debian-5"
2021/11/14 07:19:20 INFO : Using md5 for hash comparisons
2021/11/14 07:19:20 DEBUG : sftp://mysftpuser@mysftpserver:22//folderwithreallybigfile: Waiting for checks to finish
2021/11/14 07:19:20 DEBUG : somefile: Excluded
2021/11/14 07:20:20 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 0 / 1, 0%
Elapsed time: 1m4.8s
Checking:
* thereallybigfile: checking
2021/11/14 07:20:20 DEBUG : sftp://mysftpuser@mysftpserver:22//folderwithreallybigfile: Not closing 1 unused connections as 1 sessions active
2021/11/14 07:21:20 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 0 / 1, 0%
Elapsed time: 2m4.7s
Checking:
* thereallybigfile: checking
2021/11/14 07:21:20 DEBUG : sftp://mysftpuser@mysftpserver:22//folderwithreallybigfile: Not closing 1 unused connections as 1 sessions active
2021/11/14 07:22:20 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 0 / 1, 0%
Elapsed time: 3m4.7s
Checking:
* thereallybigfile: checking
2021/11/14 07:22:20 DEBUG : sftp://mysftpuser@mysftpserver:22//folderwithreallybigfile: Not closing 1 unused connections as 1 sessions active
2021/11/14 07:23:20 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 0 / 1, 0%
Elapsed time: 4m4.7s
Checking:
* thereallybigfile: checking
2021/11/14 07:23:20 DEBUG : sftp://mysftpuser@mysftpserver:22//folderwithreallybigfile: Not closing 1 unused connections as 1 sessions active
2021/11/14 07:24:20 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 0 / 1, 0%
Elapsed time: 5m4.7s
Checking:
* thereallybigfile: checking
2021/11/14 07:24:20 DEBUG : sftp cmd = /folderwithreallybigfile/thereallybigfile
2021/11/14 07:24:20 DEBUG : thereallybigfile: Failed to calculate md5 hash: wait: remote command exited without exit status or exit signal ()
2021/11/14 07:24:20 DEBUG : sftp://mysftpuser@mysftpserver:22//folderwithreallybigfile: closing 1 unused connections
2021/11/14 07:25:20 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 0 / 1, 0%
Elapsed time: 6m4.7s
Checking:
* thereallybigfile: checking
2021/11/14 07:26:20 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 0 / 1, 0%
Elapsed time: 7m4.7s
Checking:
* thereallybigfile: checking
2021/11/14 07:27:20 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 0 / 1, 0%
Elapsed time: 8m4.7s
Checking:
* thereallybigfile: checking
2021/11/14 07:28:20 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 0 / 1, 0%
Elapsed time: 9m4.7s
Checking:
* thereallybigfile: checking
2021/11/14 07:28:21 DEBUG : thereallybigfile: OK - could not check hash
2021/11/14 07:28:21 NOTICE: sftp://mysftpuser@mysftpserver:22//folderwithreallybigfile: 0 differences found
2021/11/14 07:28:21 NOTICE: sftp://mysftpuser@mysftpserver:22//folderwithreallybigfile: 1 hashes could not be checked
2021/11/14 07:28:21 NOTICE: sftp://mysftpuser@mysftpserver:22//folderwithreallybigfile: 1 matching files
2021/11/14 07:28:21 INFO :
Transferred: 0 B / 0 B, -, 0 B/s, ETA -
Checks: 1 / 1, 100%
Elapsed time: 9m5.6s
2021/11/14 07:28:21 DEBUG : 3 go routines active