Plex is unable to view files on drive mounts, ls reports files

What is the problem you are having with rclone?

(Dockerized Plex) is unable to read/see files within mount.

What is your rclone version (output from rclone version)

rclone v1.51.0
- os/arch: linux/amd64
- go version: go1.13.7

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

Ubuntu 20.04

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)

/usr/bin/rclone mount gmedia: /mnt/rclone/gmedia \
--allow-other \
--buffer-size 256M \
--daemon \
--dir-cache-time 1000h \
--log-level INFO \
--log-file /var/log/rclone.log \
--poll-interval 15s \
--timeout 1h \
--umask 002 \
--rc \
--rc-addr 127.0.0.1:5572
/usr/bin/rclone mount gdrivemusic-crypt: /mnt/rclone/gmusic \
--allow-other \
--buffer-size 256M \
--dir-cache-time 1000h \
--log-level INFO \
--log-file /var/log/rclone.log \
--poll-interval 15s \
--timeout 1h \
--umask 002 \
--rc \
--rc-addr 127.0.0.1:5573

Running ls -al on either of the two directories does output the contents. (Dockerized) Plex, running with the same id:

In Container:

root@apollo:/# ls -al /data/rclone/gmedia/
total 8
drwxr-xr-x 2 plex plex 4096 May 10 13:46 .
drwxr-xr-x 6 root root 4096 May 10 14:08 ..
root@apollo:/# id plex
uid=1000(plex) gid=1000(plex) groups=1000(plex),100(users)

Outside Container:

root@apollo:~# id plex
id: ‘plex’: no such user
root@apollo:~# ls -al /mnt/rclone/gmedia/
total 0
drwxrwxr-x 1 andrew andrew 0 Mar 30  2019  Movies
drwxrwxr-x 1 andrew andrew 0 Jan  5 14:05 'Movies - Swedish'
drwxrwxr-x 1 andrew andrew 0 Jan  5 08:00 'Music Videos'
drwxrwxr-x 1 andrew andrew 0 Mar 30  2019 'TV Shows'
drwxrwxr-x 1 andrew andrew 0 Jan  5 08:12 'TV Shows - Swedish'
drwxrwxr-x 1 andrew andrew 0 Jan  5 08:00  eBooks
drwxrwxr-x 1 andrew andrew 0 Jan  5 08:00  eLearning
root@apollo:~# id andrew
uid=1000(andrew) gid=1000(andrew) groups=1000(andrew)
$ cat /etc/fuse.conf
# /etc/fuse.conf - Configuration file for Filesystem in Userspace (FUSE)

# Set the maximum number of FUSE mounts allowed to non-root users.
# The default is 1000.
#mount_max = 1000

# Allow non-root users to specify the allow_other or allow_root mount options.
user_allow_other
andrew@apollo:~$ sudo docker exec -it --user plex plex bash
plex@apollo:/$ ls -al /data/rclone/gmedia/
total 8
drwxr-xr-x 2 plex plex 4096 May 10 13:46 .
drwxr-xr-x 6 root root 4096 May 10 14:08 ..
plex@apollo:/$
#### A log from the command with the `-vv` flag (eg output from `rclone -vv copy /tmp remote:tmp`)
There are no relevant messages in the log.

Nevermind, I am an idiot. Always look closely at the top level directory permissions. :slight_smile:

total 8
drwxr-xr-x 6 root   root   4096 May 10 21:08 .
drwxr-xr-x 5 root   root   4096 May 10 20:16 ..

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