rclone: SFTP Upload does not work with synology diskstation

What is your rclone version (eg output from rclone -V) 1.36

Which OS you are using and how many bits (eg Windows 7, 64 bit) Ubuntu 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) mineyannik@s4:~/backup$ /usr/sbin/rclone copy minecraft.zip remote:SemperCraft/Backup/S4/1 -vv

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

2017/06/11 11:09:11 DEBUG : rclone: Version "v1.36" starting with parameters ["/usr/sbin/rclone" "copy" "minecraft.zip" "remote:SemperCraft/Backup/S4/1" "-vv"]
2017/06/11 11:09:12 INFO  : sftp://sempercraft@**:22/SemperCraft/Backup/S4/1: Modify window is 1s
2017/06/11 11:09:12 ERROR : Attempt 1/3 failed with 1 errors and: mkdir dirExists failed: dirExists stat failed: EOF
2017/06/11 11:09:12 ERROR : Attempt 2/3 failed with 1 errors and: mkdir dirExists failed: dirExists stat failed: failed to send packet header: EOF
2017/06/11 11:09:12 ERROR : Attempt 3/3 failed with 1 errors and: mkdir dirExists failed: dirExists stat failed: failed to send packet header: EOF
2017/06/11 11:09:12 Failed to copy: mkdir dirExists failed: dirExists stat failed: failed to send packet header: EOF

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 23 (15 by maintainers)

Commits related to this issue

Most upvoted comments

Hi, I am not a user of rclone, but I had the same problem with a Synology NAS sftp and duplicacy, an open source backup tool. I have found out that duplicacy works just fine if absolute path is provided (with double slash between the hostname and the directory, like sftp://user@server:port//directory).

@ncw No problem! There’s a lot of information everywhere and it was actually my fault as I was using an encrypted remote and I focused on the encrypt documentation, I didn’t think about the SFTP one 😦 I guess working late in the evening is not good for clear thinking hahah. Thanks for the effort and the awesome tool 😃

The parameter is this

  --sftp-path-override string   Override path used by SSH connection.

It got renamed in the backend config unification - sorry I missed that out the changelog. However you can now store it in the config file too (config with the advanced options) which you should find useful as path_override.

I was having this problem with the current regular release and stumbled upon this thread. It wouldn’t happen every time, but after a dozen or so successful transfers, one would trigger this error and cause all the other running threads to stop transferring.

Extremely simple fix: Just put a / at the beginning of the path. Not the entire root path, just a slash at the beginning.

sftp:Plex/TV Shows becomes sftp:/Plex/TV Shows and all is well.