What is the problem you are having with rclone?
I'm setting up a NAS using my raspberry pi and open media vault. I'm trying to copy and sync some data from my mac book using SFTP. Connecting to remote and copying data is working, but hash comparison isn't. When using rclone check or rclone md5sum for example, it gives out an error.
I read here in the doc that SFTP supports both md5 and sha1.
I can use md5sum "locally" when i'm ssh-ed into my raspberry pi, as well as the equivalent command md5 on my mac.
i have a mac book pro 2019, running big sur, and a raspberry pi 4 with open media vault 5
What is your rclone version (output from rclone version
)
I'm using rclone v1.56.2
Which cloud storage system are you using? (eg Google Drive)
I'm using my raspberry pi on my local network with open media vault and connecting through SFTP.
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone md5sum "spi:/Wired/archive/00 admin/portraits" -vv
The rclone config contents with secrets removed.
these are my remotes, i am using the spi remote to connect to the server since sftp should support hashing.
[pi]
type = ftp
host = 192.168.1.102
user = linn
port = 21
pass = //////
concurrency = 1
[spi]
type = sftp
host = 192.168.1.102
user = linn
port = 222
pass = //////
md5sum_command = md5sum
sha1sum_command = none
A log from the command with the -vv
flag
2021/10/12 15:02:47 DEBUG : rclone: Version "v1.56.2" starting with parameters ["rclone" "md5sum" "spi:/Wired/archive/00 admin/portraits" "-vv"]
2021/10/12 15:02:47 DEBUG : Creating backend with remote "spi:/Wired/archive/00 admin/portraits"
2021/10/12 15:02:47 DEBUG : Using config file from "/Users/linn/.config/rclone/rclone.conf"
2021/10/12 15:02:47 DEBUG : sftp://linn@192.168.1.102:222//Wired/archive/00 admin/portraits: New connection 192.168.1.101:54024->192.168.1.102:222 to "SSH-2.0-OpenSSH_7.9p1 Raspbian-10+deb10u2+rpt1"
2021/10/12 15:02:47 DEBUG : sftp cmd = /Wired/archive/00\ admin/portraits/._IMG_2748.png
2021/10/12 15:02:47 DEBUG : ._IMG_2748.png: Failed to calculate md5 hash: Process exited with status 1 ()
._IMG_2748.png
2021/10/12 15:02:47 DEBUG : sftp cmd = /Wired/archive/00\ admin/portraits/._IMG_9904.JPG
2021/10/12 15:02:47 DEBUG : ._IMG_9904.JPG: Failed to calculate md5 hash: Process exited with status 1 ()
._IMG_9904.JPG
2021/10/12 15:02:47 DEBUG : sftp cmd = /Wired/archive/00\ admin/portraits/._self.png
2021/10/12 15:02:47 DEBUG : ._self.png: Failed to calculate md5 hash: Process exited with status 1 ()
._self.png
2021/10/12 15:02:47 DEBUG : sftp cmd = /Wired/archive/00\ admin/portraits/41.jpeg
2021/10/12 15:02:47 DEBUG : 41.jpeg: Failed to calculate md5 hash: Process exited with status 1 ()
41.jpeg
2021/10/12 15:02:47 DEBUG : sftp://linn@192.168.1.102:222//Wired/archive/00 admin/portraits: New connection 192.168.1.101:54025->192.168.1.102:222 to "SSH-2.0-OpenSSH_7.9p1 Raspbian-10+deb10u2+rpt1"
2021/10/12 15:02:47 DEBUG : sftp cmd = /Wired/archive/00\ admin/portraits/IMG_2748.png
2021/10/12 15:02:47 DEBUG : IMG_2748.png: Failed to calculate md5 hash: Process exited with status 1 ()
IMG_2748.png
2021/10/12 15:02:47 DEBUG : sftp cmd = /Wired/archive/00\ admin/portraits/IMG_9904.JPG
2021/10/12 15:02:47 DEBUG : IMG_9904.JPG: Failed to calculate md5 hash: Process exited with status 1 ()
IMG_9904.JPG
2021/10/12 15:02:47 DEBUG : sftp cmd = /Wired/archive/00\ admin/portraits/self.png
2021/10/12 15:02:47 DEBUG : self.png: Failed to calculate md5 hash: Process exited with status 1 ()
self.png
2021/10/12 15:02:47 DEBUG : sftp://linn@192.168.1.102:222//Wired/archive/00 admin/portraits: New connection 192.168.1.101:54026->192.168.1.102:222 to "SSH-2.0-OpenSSH_7.9p1 Raspbian-10+deb10u2+rpt1"
2021/10/12 15:02:47 DEBUG : sftp cmd = /Wired/archive/00\ admin/portraits/.DS_Store
2021/10/12 15:02:47 DEBUG : .DS_Store: Failed to calculate md5 hash: Process exited with status 1 ()
.DS_Store
2021/10/12 15:02:47 DEBUG : sftp://linn@192.168.1.102:222//Wired/archive/00 admin/portraits: New connection 192.168.1.101:54027->192.168.1.102:222 to "SSH-2.0-OpenSSH_7.9p1 Raspbian-10+deb10u2+rpt1"
2021/10/12 15:02:47 DEBUG : sftp cmd = /Wired/archive/00\ admin/portraits/._41.jpeg
2021/10/12 15:02:47 DEBUG : ._41.jpeg: Failed to calculate md5 hash: Process exited with status 1 ()
._41.jpeg
2021/10/12 15:02:48 DEBUG : sftp cmd = /Wired/archive/00\ admin/portraits/._.DS_Store
2021/10/12 15:02:48 DEBUG : ._.DS_Store: Failed to calculate md5 hash: Process exited with status 1 ()
._.DS_Store
2021/10/12 15:02:48 DEBUG : 40 go routines active
Thank you for your time!