mplewis / coaxist

Single Docker container for running Plex with a Debrid service.
MIT License
12 stars 0 forks source link

Rclone fails to mount /media #31

Open trulow opened 10 months ago

trulow commented 10 months ago

What part of the Quick Start guide are you stuck on?

Please review the Quick Start guide before opening an issue.

What do you see in the logs?

Please review the logs from your Docker container before opening an issue. Paste any relevant log messages here:

Starting rclone.
+ rclone --config /config/rclone/rclone.conf --allow-other --buffer-size=0 --cutoff-mode=cautious --dir-cache-time 10s --multi-thread-streams=0 --network-mode --read-only --vfs-cache-mode minimal mount provider:/ /media
2023/12/07 10:59:34 mount helper error: fusermount3: mount failed: Permission denied
2023/12/07 10:59:34 Fatal error: failed to mount FUSE fs: fusermount: exit status 1
Stopping rclone.
Unmounting /media.
umount: /media: not mounted.

What problem are you encountering?

rclone is failing to mount /media

Additional context

This is my docker run command

docker run -d \
  --name=coaxist \
  --net=nginxpm_net \
  -e PUID=1001 \
  -e PGID=1001 \
  --device=/dev/fuse:/dev/fuse \
  --cap-add SYS_ADMIN \
  --mount type=bind,source="./config,target=/config" \
  --mount type=bind,source="./transcode,target=/transcode" \
  -p 32400:32400 \
  --restart always \
  mplewis/coaxist:latest

I've also enabled "user_allow_other" within the hosts /etc/fuse.conf

trulow commented 10 months ago

I was able to fix it by changing the following lines from

  --device=/dev/fuse:/dev/fuse \
  --cap-add SYS_ADMIN \

to

  --volume /etc/fuse.conf:/etc/fuse.conf:ro \
  --device=/dev/fuse:/dev/fuse --cap-add SYS_ADMIN --security-opt apparmor:unconfined \

Does anyone know of the better way to make it work?

mplewis commented 10 months ago

Thanks for posting this report. I'll try this on an Ubuntu VM and see if I can reproduce the issue you see, and update the docs accordingly.