Error with rclone mount sftp

What is the problem you are having with rclone?

Trying to mount remote sftp folder but can't.

Run the command 'rclone version' and share the full output of the command.

rclone v1.66.0

  • os/version: debian 11.9 (64 bit)
  • os/kernel: 6.1.0-0.deb11.13-amd64 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.22.1
  • go/linking: static
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Using sftp service.

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

rclone mount SeedBox:/home26/noamyoyo/test/ test/

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[SeedBox]
type = sftp
host = XXX
key_file = /home/noamyoyo/.ssh/id_rsa
shell_type = unix
md5sum_command = md5sum
sha1sum_command = sha1sum

[Test]
type = ftp
host = XXX
pass = XXX

A log from the command that you were trying to run with the -vv flag

rclone mount SeedBox:/home26/noamyoyo/test/ test/ -vvv
2024/03/10 14:55:21 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "mount" "SeedBox:/home26/noamyoyo/test/" "test/" "-vvv"]
2024/03/10 14:55:21 DEBUG : Creating backend with remote "SeedBox:/home26/noamyoyo/test/"
2024/03/10 14:55:21 DEBUG : Using config file from "/home/noamyoyo/.config/rclone/rclone.conf"
2024/03/10 14:55:22 DEBUG : sftp://noamyoyo@flow.seedhost.eu:22//home26/noamyoyo/test/: New connection 192.168.2.160:51868->37.48.95.6:22 to "SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.5"
2024/03/10 14:55:22 DEBUG : sftp://noamyoyo@flow.seedhost.eu:22//home26/noamyoyo/test/: Shell type "unix" from config
2024/03/10 14:55:22 DEBUG : sftp://noamyoyo@flow.seedhost.eu:22//home26/noamyoyo/test/: Using root directory "/home26/noamyoyo/test/"
2024/03/10 14:55:22 INFO  : sftp://noamyoyo@flow.seedhost.eu:22//home26/noamyoyo/test/: poll-interval is not supported by this remote
2024/03/10 14:55:22 DEBUG : sftp://noamyoyo@flow.seedhost.eu:22//home26/noamyoyo/test/: Mounting on "test/"
2024/03/10 14:55:22 DEBUG : : Root:
2024/03/10 14:55:22 DEBUG : : >Root: node=/, err=<nil>

tried rclone copy and ls and works fine:
 rclone ls SeedBox:/home26/noamyoyo/test
   108625 Shooter (2007) Bluray-1080p.en.srt
8534583042 Shooter (2007) Bluray-1080p.mkv
   105430 Shooter (2007) Bluray-1080p.ro.srt
   970004 backdrop.jpg
  1033228 folder.jpg
    38864 logo.png
   108625 Shooter (2007)/Shooter (2007) Bluray-1080p.en.srt
900726784 Shooter (2007)/Shooter (2007) Bluray-1080p.mkv
   105430 Shooter (2007)/Shooter (2007) Bluray-1080p.ro.srt
   970004 Shooter (2007)/backdrop.jpg
  1033228 Shooter (2007)/folder.jpg
    38864 Shooter (2007)/logo.png

rclone copy SeedBox:/home26/noamyoyo/test/folder.jpg -P test/
Transferred:     1009.012 KiB / 1009.012 KiB, 100%, 0 B/s, ETA -
Transferred:            1 / 1, 100%
Elapsed time:         1.9s

ls test/
folder.jpg

Only mount doesn't work, tried with ftp as well, same result, stuck at:
 >Root: node=/, err=<nil>

I looks like all is working. Not sure what you expect?

Simply start using it.

I was just showing of an example of rclone ls or rclone copy
Rclone mount just gets stuck like i said, and it doesn't mount
@kapitainsky

welcome to the forum,

the debug looks good, no errors.
if you want to access the remote as local storage, then rclone mount has to continue to run.

can you describe in detail, the exact problem you are experiencing?

what is the output of ls test ?

as a test, might try mounting a local directory, something like
rclone mount /path/to/local/dir test -vv

FYI. I have just tried myself on my Debian machine

$ rclone mount sftp: test/ -vv
<7>DEBUG : rclone: Version "v1.65.2" starting with parameters ["rclone" "mount" "sftp:" "test/" "-vv"]
<7>DEBUG : rclone: systemd logging support activated
<7>DEBUG : Creating backend with remote "sftp:"
<7>DEBUG : Using config file from "/home/kptsky/.config/rclone/rclone.conf"
<7>DEBUG : sftp://pi@192.168.144.8:22/: New connection 172.17.17.182:60664->192.168.144.8:22 to "SSH-2.0-OpenSSH_9.2p1 Raspbian-2+deb12u2"
<7>DEBUG : sftp://pi@192.168.144.8:22/: Shell type "unix" from config
<7>DEBUG : sftp://pi@192.168.144.8:22/: Relative path resolved to "/home/pi"
<7>DEBUG : sftp://pi@192.168.144.8:22/: Using root directory "/home/pi"
<6>INFO  : sftp://pi@192.168.144.8:22/: poll-interval is not supported by this remote
<7>DEBUG : sftp://pi@192.168.144.8:22/: Mounting on "test/"
<7>DEBUG : : Root: 
<7>DEBUG : : >Root: node=/, err=<nil>

All works perfectly and this is exactly what you can expect from -vv logfile after start. It will fill in with more info when you start using your mount.

But you show that it mounts without any errors.... Sorry you have to be more precise what you mean by "it does not work"

tried local mount, i get the following:
rclone mount another-test-test/ Tests/test/ -vvv
2024/03/10 18:57:13 DEBUG : rclone: Version "v1.66.0" starting with parameters ["rclone" "mount" "another-test-test/" "Tests/test/" "-vvv"]
2024/03/10 18:57:13 DEBUG : Creating backend with remote "another-test-test/"
2024/03/10 18:57:13 NOTICE: Config file "/home/noamyoyo/.config/rclone/rclone.conf" not found - using defaults
2024/03/10 18:57:13 DEBUG : fs cache: renaming cache item "another-test-test/" to be canonical "/home/noamyoyo/another-test-test"
2024/03/10 18:57:13 INFO : Local file system at /home/noamyoyo/another-test-test: poll-interval is not supported by this remote
2024/03/10 18:57:13 DEBUG : Local file system at /home/noamyoyo/another-test-test: Mounting on "Tests/test/"
2024/03/10 18:57:13 DEBUG : : Root:
2024/03/10 18:57:13 DEBUG : : >Root: node=/, err=
2024/03/10 18:57:14 DEBUG : /: Attr:
2024/03/10 18:57:14 DEBUG : /: Attr:
2024/03/10 18:57:14 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2024/03/10 18:57:14 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2024/03/10 18:57:14 DEBUG : : Statfs:
2024/03/10 18:57:14 DEBUG : : >Statfs: stat={Blocks:32634639 Bfree:12718450 Bavail:12718450 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2024/03/10 18:57:14 DEBUG : : Statfs:
2024/03/10 18:57:14 DEBUG : : >Statfs: stat={Blocks:32634639 Bfree:12718450 Bavail:12718450 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2024/03/10 18:57:15 DEBUG : /: Attr:
2024/03/10 18:57:15 DEBUG : /: Attr:
2024/03/10 18:57:15 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2024/03/10 18:57:15 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2024/03/10 18:57:15 DEBUG : : Statfs:
2024/03/10 18:57:15 DEBUG : : >Statfs: stat={Blocks:32634639 Bfree:12718450 Bavail:12718450 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2024/03/10 18:57:15 DEBUG : : Statfs:
2024/03/10 18:57:15 DEBUG : : >Statfs: stat={Blocks:32634639 Bfree:12718450 Bavail:12718450 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2024/03/10 18:57:16 DEBUG : /: Attr:
2024/03/10 18:57:16 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2024/03/10 18:57:16 DEBUG : /: Attr:
2024/03/10 18:57:16 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=
2024/03/10 18:57:16 DEBUG : : Statfs:
2024/03/10 18:57:16 DEBUG : : Statfs:
2024/03/10 18:57:16 DEBUG : : >Statfs: stat={Blocks:32634639 Bfree:12718450 Bavail:12718450 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
2024/03/10 18:57:16 DEBUG : : >Statfs: stat={Blocks:32634639 Bfree:12718450 Bavail:12718450 Files:1000000000 Ffree:1000000000 Bsize:4096 Namelen:255 Frsize:4096}, err=
^C2024/03/10 18:57:16 INFO : Signal received: interrupt
2024/03/10 18:57:16 ERROR : Tests/test/: Unmounted rclone mount
and same issue with the sftp one @kapitainsky

What the same issue? Your rclone mount another-test-test log looks perfectly fine. It is working until you unmount it.

Unless you explain what the issue is it is impossible to guess and help.

Can you show some example what does not work? Not description but some command and output.

Wait, i might have made a mistake guys, i didn't realize that rclone mount needed to be run as a daemon..
Mb, sry for wasting your times, all works as expected when adding --daemon :slight_smile:

1 Like

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