Permission errors with the docker image

What is the problem you are having with rclone?

I am having lots of permission errors using the docker image via docker-compose. For example, all the mapped local paths (AKA volumes) if not already present on the host, they are created belonging to root instead of the specified user. Because of this it then makes any rclone command fail, for example downloading the web to the cache directory. I manually created the nested paths, and now the WEB UI works, but it is unable to mount any external. It fails (again) because permissions. I checked and all the folders belong to the user 1000:1000,so I don't know why it is failing because permissions. Also, I don't know why certain things are still belong to root when created by rclone, despite I am specifying the user to use.

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

rclone v1.57.0

  • os/version: alpine 3.14.2 (64 bit)
  • os/kernel: 5.4.0-100-generic (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.17.2
  • go/linking: static
  • go/tags: none

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)

  external-data:
    image: rclone/rclone
    user: 1000:1000
    cap_add:
    - SYS_ADMIN
    - SETPCAP
    - MKNOD
    devices:
      - /dev/fuse:/dev/fuse
    command: rcd --rc-web-gui --rc-addr :5572 --rc-user danielo --rc-pass 'pene' --rc-web-gui-no-open-browser
    ports:
      - 5572:5572
    security_opt:
      - seccomp:unconfined
    environment:
      - PHP_TZ=${TZ}
      - PUID=1000
      - PGID=1000
    volumes:
        - ./rclone:/config/rclone
        - ./rclone/data:/data
        - ./rclone/cache:/home/danielo/.cache/rclone/webgui
        - /etc/passwd:/etc/passwd:ro
        - /etc/group:/etc/group:ro
        - /etc/fuse.conf:/etc/fuse.conf:ro 

The rclone config contents with secrets removed.

[Drive]
type = drive
client_id = xxxxxx-xxxxxx.apps.googleusercontent.com
client_secret = GOCSPX-xxxxxxx
token = {"access_token":"ya29.xxxxxx-xxxxxxxx","token_type":"Bearer","refresh_token":"1//xxxxxxx-xxxx","expiry":"2022-03-09T21:26:40.744643418Z"}
team_drive = 

A log from the command with the -vv flag

2022/03/10 08:25:30 DEBUG : rclone: Version "v1.57.0" starting with parameters ["rclone" "rcd" "-vv" "--rc-web-gui" "--rc-addr" ":5572" "--rc-user" "danielo" "--rc-pass" "xxxxx" "--rc-web-gui-no-open-browser"]
2022/03/10 08:25:30 DEBUG : Current tag: v2.0.5, Release tag: v2.0.5
2022/03/10 08:25:30 NOTICE: Web GUI exists. Update skipped.
2022/03/10 08:25:30 NOTICE: Serving Web GUI
2022/03/10 08:25:30 INFO  : Using --user danielo --pass XXXX as authenticated user
2022/03/10 08:25:30 NOTICE: Serving remote control on http://[::]:5572/
2022/03/10 08:25:30 DEBUG : login_token "xxxxxx"
2022/03/10 08:25:30 NOTICE: Web GUI is not automatically opening browser. Navigate to http://danielo:xxx@[::]:5572/?login_token=xxxxx to use.
external-data_1  | 2022/03/10 09:30:51 DEBUG : rc: "core/stats": with parameters map[]
external-data_1  | 2022/03/10 09:30:51 DEBUG : rc: "core/stats": reply map[bytes:0 checks:0 deletedDirs:0 deletes:0 elapsedTime:39.308661992 errors:0 eta:<nil> fatalError:false renames:0 retryError:false speed:0 totalBytes:0 totalChecks:0 totalTransfers:0 transferTime:0 transfers:0]: <nil>
external-data_1  | 2022/03/10 09:30:54 DEBUG : rc: "mount/mount": with parameters map[fs:Drive: mountOpt:map[] mountPoint:/data/consume mountType: vfsOpt:map[]]
external-data_1  | 2022/03/10 09:30:54 DEBUG : Google drive root '': Re-using VFS from active cache
external-data_1  | 2022/03/10 09:30:54 DEBUG : Google drive root '': Mounting on "/data/consume"
external-data_1  | 2022/03/10 09:30:54 mount helper error: fusermount: mount failed: Permission denied
external-data_1  | 2022/03/10 09:30:54 DEBUG : rc: "mount/listmounts": with parameters map[]
external-data_1  | 2022/03/10 09:30:54 mount FAILED: fusermount: exit status 1
external-data_1  | 2022/03/10 09:30:54 DEBUG : rc: "mount/listmounts": reply map[mountPoints:[]]: <nil>
external-data_1  | 2022/03/10 09:30:54 ERROR : rc: "mount/mount": error: fusermount: exit status 1
external-data_1  | 2022/03/10 09:30:56 DEBUG : rc: "core/stats": with parameters map[]
external-data_1  | 2022/03/10 09:30:56 DEBUG : rc: "core/stats": reply map[bytes:0 checks:0 deletedDirs:0 deletes:0 elapsedTime:44.308138304 errors:0 eta:<nil> fatalError:false renames:0 retryError:false speed:0 totalBytes:0 totalChecks:0 totalTransfers:0 transferTime:0 transfers:0]: <nil>

Error without -vv

fusermount: mount failed: Permission denied

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