Rclone mount sets --uid --gid but not RCD

Hello,

What is the problem you are having with rclone?

When I mount direcly (rclone mount), --uid and --gid are correctly set.
When I try the same via RCD, they aren't.

What is your rclone version (output from rclone version)

rclone v1.56.0-beta.5505.f593558dc

  • os/version: DSM 6.2.3-25426
  • os/kernel: 4.4.59+ (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.16.4
  • go/linking: static
  • go/tags: none

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

Linux DiskStation 4.4.59+ #25426 SMP PREEMPT Tue May 12 04:54:55 CST 2020 x86_64 GNU/Linux synology_apollolake_918+

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

Google Drive for Team + Local

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

Command which is working

rclone mount mergeddata: /volume1/mergeddata/ --cache-dir=/volume1/cache/mergeddata --read-only=false --uid=1026 --gid=100 --umask=2 --vfs-cache-mode=full --allow-other=true --dir-cache-time=672h --vfs-cache-max-age=675h --vfs-read-chunk-size=64M --vfs-read-chunk-size-limit=1G --buffer-size=32M &

Result:

sh-4.3# ls -l /volume1/mergeddata/
total 0
drwxrwxr-x 1 Reynald users 0 May 15 11:07 _clouddata
drwxrwxr-x 1 Reynald users 0 May 15 20:04 downloads
drwxrwxr-x 1 Reynald users 0 May 15 18:36 @eaDir
drwxrwxr-x 1 Reynald users 0 May 15 11:08 _localdata

Command which is NOT working:

rclone rcd --rc-web-gui --rc-addr :5572 --rc-web-gui-no-open-browser --rc-user user --rc-pass pass --uid=1026 --gid=100 &
sleep 5
rclone rc mount/mount --rc-user=user--rc-pass=pass --json '{ "fs":"mergeddata:", "mountPoint":"/volume1/mergeddata/", "cache-dir":"/volume1/cache/mergeddata",  "read-only": false, "uid": 1026, "gid": 100, "umask": 2, "vfs-cache-mode":"full", "AllowOther": true, "dir-cache-time":"672h", "vfs-cache-max-age":"675h", "vfs-read-chunk-size":"64M", "vfs-read-chunk-size-limit":"1G", "buffer-size":"32M"}'

Result:

sh-4.3# ls -l /volume1/mergeddata/
total 0
drwxrwxr-x 1 root root 0 May 15 11:07 _clouddata
drwxrwxr-x 1 root root 0 May 15 20:04 downloads
drwxrwxr-x 1 root root 0 May 15 18:36 @eaDir
drwxrwxr-x 1 root root 0 May 15 11:08 _localdata

The rclone config contents with secrets removed.

[GTD]
type = drive
scope = drive
token = {"access_token":"___"}
team_drive = 0AM4JYc_qw-LoUk9PVA
root_folder_id =

[local]
type = local

[mergeddata]
type = union
upstreams = GTD:/data local:/volume2/localdata

A log from the command with the -vv flag

{}
2021/05/15 20:39:33 DEBUG : 4 go routines active

I'm not sure where to find RCD logs :innocent: :blush:

Is this a bug?
Do I misuse RCD?

Thank you all for your help and guidance,
Reynald

What user is the rcd running as?

For the rcd, you'd want to add -vv on that and share the full log.

You need to pass the uid/gid in as part of the vfsOpt as descript here

https://rclone.org/rc/#mount-mount

        "vfsOpt": {
                "GID": 1000,
                "UID": 1000
        }

Use rclone rc --loopback options/get to see the vfsMount options in the vfs section.

1 Like

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