Rclone not mounting through SSH

What is the problem you are having with rclone?

Not able to mount using SSH, mounting using WebGUI is fine. It looks like it's running but the directories are empty.

What is your rclone version (output from rclone version)

rclone v1.55.1

Which OS you are using and how many bits (eg Windows 7, 64 bit)

DietPi (Based on Raspbian 32 bit)

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

Google Drive

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

sudo rclone mount Media-Crypt:/GDrive /GDrive2 --allow-other --allow-root --dir-cache-time 96h --drive-chunk-size 32M --umask 002 -vv

The rclone config contents with secrets removed.

[Media]
type = drive
client_id = 
client_secret = 
scope = drive
token = 
team_drive = 
root_folder_id = 

[Media-Crypt]
type = crypt
remote = Media:
filename_encryption = standard
directory_name_encryption = false
password = 
password2 = 


A log from the command with the -vv flag

2021/05/24 18:45:00 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2021/05/24 18:45:00 DEBUG : rclone: Version "v1.55.1" starting with parameters ["rclone" "mount" "Media-Crypt:/GDrive" "/GDrive2" "--allow-other" "--allow-root" "--dir-cache-time" "96h" "--drive-chunk-size" "32M" "--umask" "002" "-vv"]
2021/05/24 18:45:00 DEBUG : Creating backend with remote "Media-Crypt:/GDrive"
2021/05/24 18:45:00 DEBUG : Creating backend with remote "Media:/sm7b8cd60gvnkvrpv5dtmgll8g"
2021/05/24 18:45:00 DEBUG : Media: detected overridden config - adding "{GPG6Y}" suffix to name
2021/05/24 18:45:02 DEBUG : fs cache: renaming cache item "Media:/sm7b8cd60gvnkvrpv5dtmgll8g" to be canonical "Media{GPG6Y}:sm7b8cd60gvnkvrpv5dtmgll8g"
2021/05/24 18:45:02 DEBUG : Creating backend with remote "Media:/GDrive"
2021/05/24 18:45:02 DEBUG : Media: detected overridden config - adding "{GPG6Y}" suffix to name
2021/05/24 18:45:03 DEBUG : fs cache: renaming cache item "Media:/GDrive" to be canonical "Media{GPG6Y}:GDrive"
2021/05/24 18:45:03 DEBUG : Encrypted drive 'Media-Crypt:/GDrive': Mounting on "/GDrive2"
2021/05/24 18:45:03 ERROR : Ignoring --allow-root. Support has been removed upstream - see https://github.com/bazil/fuse/issues/144 for more info
2021/05/24 18:45:03 DEBUG : : Root:
2021/05/24 18:45:03 DEBUG : : >Root: node=/, err=<nil>
2021/05/24 18:46:03 DEBUG : Google drive root 'GDrive': Checking for changes on remote
2021/05/24 18:46:19 DEBUG : /: Attr:
2021/05/24 18:46:19 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2021/05/24 18:46:19 DEBUG : /: ReadDirAll:
2021/05/24 18:46:20 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2021/05/24 18:46:20 DEBUG : /: Attr:
2021/05/24 18:46:20 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2021/05/24 18:46:20 DEBUG : /: ReadDirAll:
2021/05/24 18:46:20 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2021/05/24 18:46:30 DEBUG : /: Attr:
2021/05/24 18:46:30 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2021/05/24 18:46:30 DEBUG : /: ReadDirAll:
2021/05/24 18:46:30 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2021/05/24 18:47:03 DEBUG : Google drive root 'GDrive': Checking for changes on remote
2021/05/24 18:48:03 DEBUG : Google drive root 'GDrive': Checking for changes on remote
2021/05/24 18:48:30 DEBUG : /: Attr:
2021/05/24 18:48:30 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2021/05/24 18:48:30 DEBUG : /: ReadDirAll:
2021/05/24 18:48:30 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2021/05/24 18:49:03 DEBUG : Google drive root 'GDrive': Checking for changes on remote
2021/05/24 18:50:03 DEBUG : Google drive root 'GDrive': Checking for changes on remote
2021/05/24 18:50:31 DEBUG : /: Attr:
2021/05/24 18:50:31 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2021/05/24 18:50:31 DEBUG : /: ReadDirAll:
2021/05/24 18:50:31 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2021/05/24 18:51:03 DEBUG : Google drive root 'GDrive': Checking for changes on remote
2021/05/24 18:52:03 DEBUG : Google drive root 'GDrive': Checking for changes on remote
2021/05/24 18:52:31 DEBUG : /: Attr:
2021/05/24 18:52:31 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2021/05/24 18:52:31 DEBUG : /: ReadDirAll:
2021/05/24 18:52:31 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2021/05/24 18:53:03 DEBUG : Google drive root 'GDrive': Checking for changes on remote
2021/05/24 18:54:03 DEBUG : Google drive root 'GDrive': Checking for changes on remote
2021/05/24 18:54:34 DEBUG : /: Attr:
2021/05/24 18:54:34 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2021/05/24 18:54:34 DEBUG : /: ReadDirAll:
2021/05/24 18:54:34 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2021/05/24 18:55:03 DEBUG : Google drive root 'GDrive': Checking for changes on remote
2021/05/24 18:56:03 DEBUG : Google drive root 'GDrive': Checking for changes on remote
2021/05/24 18:56:34 DEBUG : /: Attr:
2021/05/24 18:56:34 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxrwxr-x, err=<nil>
2021/05/24 18:56:34 DEBUG : /: ReadDirAll:
2021/05/24 18:56:34 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2021/05/24 18:57:03 DEBUG : Google drive root 'GDrive': Checking for changes on remote

This is usually a permissions problem...

Are you running rclone as a normal user (not root)?

I see you've got --allow-other - thats good.

Oh, nope. I'm running rclone as root. Are there any other flags I'm missing?

hi,

so you can see the directories and sub-directories but not the files inside?

you can remove --allow-root, as per the log file.
Ignoring --allow-root. Support has been removed upstream - see https://github.com/bazil/fuse/issues/144 for more info

normally, i never rclone mount as root user but as a quick test.
over ssh, i can sudo rclone mount --allow-other and non-root users can see the directories and the files.
and the emby media server can play the mounted files.

Oh, nope. The directory to which the drive is to be mounted is empty (Drive's not getting mounted :frowning: ). Perms are set right too, rclone works perfectly with the Browser GUI but mounting through SSH seems to be unresponsive with no exact errors.

rclone can see two folders
ReadDirAll: item=2, err=<nil>

can you post
rclone lsd Media-Crypt: -vv

2021/05/25 01:34:16 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2021/05/25 01:34:16 DEBUG : rclone: Version "v1.55.1" starting with parameters ["rclone" "lsd" "Media-Crypt:" "-vv"]
2021/05/25 01:34:16 DEBUG : Creating backend with remote "Media-Crypt:"
2021/05/25 01:34:17 DEBUG : Creating backend with remote "Media:" -1 2021-05-19 03:51:52 -1 Movies
2021/05/25 01:34:19 DEBUG : 4 go routines active

if you run the mount on the command line, not as root, can you see the folders/files?

nope, still can't, Verified permissons and they all seem ok tho :confused:

is this the first attempt at rclone mount on this device?

pehaps test by removing --umask 002

i think the most simplest mount is to use a mount point inside the home dir and running rclone mount as the user.

This is the first time through SSH, running commands to get a GUI interrface works and I am able to mount and configure the drive through that but not able to mount it through this SSH session.
I have tried removing --unmask 002 and have mounted it as a normal user.

Here's the log while mounting inside the home dir:

2021/05/25 12:05:47 DEBUG : Using config file from "/root/.config/rclone/rclone.conf"
2021/05/25 12:05:47 DEBUG : rclone: Version "v1.55.1" starting with parameters ["rclone" "mount" "Media-Crypt:/home/GDrive3" "/home/GDrive4" "--allow-other" "--dir-cache-time" "96h" "--drive-chunk-size" "32M" "-vv"]
2021/05/25 12:05:47 DEBUG : Creating backend with remote "Media-Crypt:/home/GDrive3"
2021/05/25 12:05:47 DEBUG : Creating backend with remote "Media:/home/b7tnob8f51fp2jlqdibko2bdfk"
2021/05/25 12:05:47 DEBUG : Media: detected overridden config - adding "{GPG6Y}" suffix to name
2021/05/25 12:05:51 DEBUG : fs cache: renaming cache item "Media:/home/b7tnob8f51fp2jlqdibko2bdfk" to be canonical "Media{GPG6Y}:home/b7tnob8f51fp2jlqdibko2bdfk"
2021/05/25 12:05:51 DEBUG : Creating backend with remote "Media:/home/GDrive3"
2021/05/25 12:05:51 DEBUG : Media: detected overridden config - adding "{GPG6Y}" suffix to name
2021/05/25 12:05:52 DEBUG : fs cache: renaming cache item "Media:/home/GDrive3" to be canonical Media{GPG6Y}:home/GDrive3"
2021/05/25 12:05:53 DEBUG : Encrypted drive 'Media-Crypt:/home/GDrive3': Mounting on "/home/GDrive4"
2021/05/25 12:05:53 DEBUG : : Root:
2021/05/25 12:05:53 DEBUG : : >Root: node=/, err=<nil>
2021/05/25 12:06:06 DEBUG : /: Attr:
2021/05/25 12:06:06 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/05/25 12:06:06 DEBUG : /: ReadDirAll:
2021/05/25 12:06:14 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2021/05/25 12:06:14 DEBUG : /: Attr:
2021/05/25 12:06:14 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/05/25 12:06:20 DEBUG : /: Attr:
2021/05/25 12:06:20 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/05/25 12:06:22 DEBUG : /: Attr:
2021/05/25 12:06:22 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/05/25 12:06:22 DEBUG : /: ReadDirAll:
2021/05/25 12:06:22 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2021/05/25 12:06:22 DEBUG : /: Attr:
2021/05/25 12:06:22 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/05/25 12:06:23 DEBUG : /: Attr:
2021/05/25 12:06:23 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/05/25 12:06:23 DEBUG : /: ReadDirAll:
2021/05/25 12:06:23 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2021/05/25 12:06:23 DEBUG : /: Attr:
2021/05/25 12:06:23 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/05/25 12:06:23 DEBUG : /: Attr:
2021/05/25 12:06:23 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>
2021/05/25 12:06:23 DEBUG : /: ReadDirAll:
2021/05/25 12:06:23 DEBUG : /: >ReadDirAll: item=2, err=<nil>
2021/05/25 12:06:23 DEBUG : /: Attr:
2021/05/25 12:06:23 DEBUG : /: >Attr: attr=valid=1s ino=0 size=0 mode=drwxr-xr-x, err=<nil>

I have checked the directories and none of my drive folders are mounted but log says it's mounted, all permissions are granted as well.

Has your /etc/fuse.conf got something like this in it?

$ cat /etc/fuse.conf
[snip]
# Allow non-root users to specify the allow_other or allow_root mount options.
user_allow_other

Mounting as a non-root user with that should be the best way.

ok, just uncommented user_allow_other and ran the mount command, getting the same log output, just can't figure out why is it not mounting.

Is there any way to input custom mount commands in the Browser GUI? (apart from the options provided)

does this mean that rclone found two directories?

did you run that command as root or what?

The only user on my device is root....

perhaps this can help.
to mount to /mnt/ or spark another idea

welp, that didn't work either. I'm at a loss now, mounting through the GUI does not allow me to use the flags efficiently.

It does yes. So clearly the mount is working, but something is preventing other users to see inside the mount.

How exactly are you checking the directories are empty? Can you ls the directories as the user you are running rclone as over ssh?

FTP, mounts from the GUI show up on it.
ls on both the directories come up empty.