STOP and READ USE THIS TEMPLATE NO EXCEPTIONS - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.
What is the problem you are having with rclone?
Failed to resolve path using RealPath: connection lost. Not able to resolve relative path of the server
Run the command 'rclone version' and share the full output of the command.
rclone v1.59.2
os/version: debian 10.13 (64 bit)
os/kernel: 4.19.0-17-amd64 (x86_64)
os/type: linux
os/arch: amd64
go/version: go1.18.6
go/linking: static
go/tags: none
Which cloud storage system are you using? (eg Google Drive)
sftp server
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone lsf :sftp:<server location> --sftp-use-insecure-cipher --sftp-host=<host_name> --sftp-user=<user_name> --sftp-key-file=<private_key_location> -vv
A log from the command with the -vv
flag
2023/08/17 06:50:34 DEBUG : Creating backend with remote ":sftp:<file_path>"
2023/08/17 06:50:34 DEBUG : :sftp: detected overridden config - adding "{CXmCy}" suffix to name
2023/08/17 06:50:34 DEBUG : Using config file from "/home/adityap/.config/rclone/rclone.conf"
2023/08/17 06:50:35 DEBUG : sftp://<user_name>@<host>/<file_path>: New connection to "SSH-2.0-9.99 sshlib"
2023/08/17 06:50:35 DEBUG : sftp://<user_name>@<host>/<file_path>: Running shell type detection remote command: echo ${ShellId}%ComSpec%
2023/08/17 06:50:35 DEBUG : sftp://<user_name>@<host>/<file_path>: Remote command failed: ssh: command echo ${ShellId}%ComSpec% failed (stdout=[]) (stderr=[])
2023/08/17 06:50:35 DEBUG : sftp://<user_name>@<host>/<file_path>: Shell type "unix" detected (set option shell_type to override)
2023/08/17 06:50:35 DEBUG : Saving config "shell_type" in section ":sftp" of the config file
2023/08/17 06:50:35 NOTICE: Can't save config "shell_type" for on the fly backend ":sftp"
2023/08/17 06:50:36 DEBUG : sftp://<user_name>@<host>/<file_path>: Failed to resolve path using RealPath: connection lost
2023/08/17 06:50:36 DEBUG : sftp://<user_name>@<host>/<file_path>: Failed to to read current directory - using relative paths: connection lost
2023/08/17 06:50:36 DEBUG : sftp://<user_name>@<host>/<file_path>: Connection failed, closing: connection lost
2023/08/17 06:50:36 Failed to create file system for ":sftp:<file_path>": stat failed: connection lost
Aditya_Parikh:
rclone v1.59.2
Update your rclone to the latest version first - it is now v1.63.1
after upgrading to version 1.63.1 getting following error:
DEBUG : rclone: Version "v1.63.1" starting with parameters
DEBUG : Creating backend with remote ":sftp:<folder_path>"
DEBUG : Using config file from "/home/adityap/.config/rclone/rclone.conf"
DEBUG : :sftp: detected overridden config - adding "{CXmCy}" suffix to name
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: New connection
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Running shell type detection remote command: echo ${ShellId}%ComSpec%
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Remote command failed: ssh: command echo ${ShellId}%ComSpec% failed (stdout=[]) (stderr=[])
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Shell type "unix" detected (set option shell_type to override)
DEBUG : Saving config "shell_type" in section ":sftp" of the config file
NOTICE: Can't save config "shell_type" for on the fly backend ":sftp"
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Using root directory "<folder_path>"
DEBUG : fs cache: renaming cache item ":sftp:<folder_path>" to be canonical ":sftp{CXmCy}:<folder_path>"
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Checking default md5 hash commands
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Running remote command: md5sum
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Hash command skipped: failed to run "md5sum": : ssh: command md5sum failed
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Running remote command: md5 -r
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Hash command skipped: failed to run "md5 -r": : ssh: command md5 -r failed
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Running remote command: rclone md5sum
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Hash command skipped: failed to run "rclone md5sum": : ssh: command rclone md5sum failed
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Checking default sha1 hash commands
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Running remote command: sha1sum
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Hash command skipped: failed to run "sha1sum": : ssh: command sha1sum failed
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Running remote command: sha1 -r
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Hash command skipped: failed to run "sha1 -r": : ssh: command sha1 -r failed
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Running remote command: rclone sha1sum
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Hash command skipped: failed to run "rclone sha1sum": : ssh: command rclone sha1sum failed
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Setting hash command for md5 to "none" (set sha1sum_command to override)
DEBUG : Saving config "md5sum_command" in section ":sftp" of the config file
NOTICE: Can't save config "md5sum_command" for on the fly backend ":sftp"
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Setting hash command for sha1 to "none" (set md5sum_command to override)
DEBUG : Saving config "sha1sum_command" in section ":sftp" of the config file
NOTICE: Can't save config "sha1sum_command" for on the fly backend ":sftp"
DEBUG : sftp://<user_name>@<host_name>/<folder_path>: Connection failed, closing: connection lost
ERROR : : error listing: error listing "": connection lost
DEBUG : 4 go routines active
Failed to lsf with 2 errors: last error was: error in ListJSON: error listing "": connection lost
Is this sftp server working? Can you connect to it using e.g. FileZilla?
yes sftp connection works fine and I'm able to login to the server
I assume --sftp-user=<host_name>
is just typo and you use user_name
?
I am not sure how to go from here.
There is not much more debug we can get.
Connection fails - it would indicate something is wrong but no clue provided what it can be..
yes it was a typo. updated!
ncw
(Nick Craig-Wood)
August 17, 2023, 9:24am
8
It would be worth taking a look at the server logs at this point if it is possible.
It might be something to do with that
system
(system)
Closed
September 16, 2023, 9:25am
9
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.