rClone Mount + Plex Problems

Hey Guys/Gals,

So I’ve setup rClone with VFS, using Fuse and running Plex. However I’m having an unfortunate issue,

I get Input/Output Errors;
dreadstarx@us01-plex-1:~$ sudo find /media/Plex/Movies/ -type d -print | wc -l
find: ‘/media/Plex/Movies/’: Input/output error

dreadstarx@us01-plex-1:~$ sudo find /media/Plex/Movies/ -type f -print | wc -l
find: ‘/media/Plex/Movies/’: Input/output error

Here is my configuration. Any ideas that I could try to fix it? Also, Plex won’t read my /media/Plex/Movies or Anime folder. Plex team says the library is too big, but I know people running a larger library than I have.

Description=Mount and cache Google drive to /media/Plex
After=syslog.target local-fs.target network.target
ExecStartPre=/bin/mkdir -p ${MOUNTTO}
ExecStartPre=/bin/mkdir -p ${LOGS}
ExecStartPre=/bin/mkdir -p ${UPLOADS}
ExecStart=/usr/bin/rclone mount 
–log-file ${LOGS}/rclone.log 
–log-level INFO 
–umask 000 
–fuse-flag sync_read 
–tpslimit 10 
–tpslimit-burst 10 
–cache-dir ${UPLOADS} 
–config ${RCLONEHOME}/rclone.conf 
Gdrive: ${MOUNTTO}
ExecStop=/bin/fusermount -u -z ${MOUNTTO}
ExecStop=/bin/rmdir ${MOUNTTO}

Your mount definitely is not ‘mounted’.

The service is a bit confusing as you are running it as root, but your config is in your home directory.

You might want to try rebooting the machine as I’d guess you have a hung process or something.

What’s the output of the systemctl status for your startup service?

Made a few tweaks trying to get things to work better.
dreadstarx@us01-plex-1:~$ sudo systemctl status rclone | tee rclone_output.txt
● rclone.service - Mount and cache Google drive to /media/Plex
Loaded: loaded (/etc/systemd/system/rclone.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2019-03-05 12:48:50 UTC; 5min ago
Process: 1561 ExecStartPre=/bin/mkdir -p ${UPLOADS} (code=exited, status=0/SUCCESS)
Process: 1535 ExecStartPre=/bin/mkdir -p ${LOGS} (code=exited, status=0/SUCCESS)
Process: 1367 ExecStartPre=/bin/mkdir -p ${MOUNTTO} (code=exited, status=0/SUCCESS)
Main PID: 1562 (rclone)
Tasks: 21 (limit: 4915)
CGroup: /system.slice/rclone.service
└─1562 /usr/bin/rclone mount --rc --log-file /home/dreadstarx/logs/rclone.log --log-level INFO --umask 002 --allow-non-empty --allow-other --fuse-flag sync_read --tpslimit 10 --tpslimit-burst 10 --dir-cache-time=160h --buffer-size=256M --attr-timeout=1s --vfs-read-chunk-size=64M --vfs-read-chunk-size-limit=off --vfs-cache-max-age=5m --vfs-cache-mode=writes --cache-dir /home/dreadstarx/uploads --config /home/dreadstarx/.config/rclone/rclone.conf Gdrive: /media/Plex

Mar 05 12:48:49 us01-plex-1 systemd[1]: Starting Mount and cache Google drive to /media/Plex...
Mar 05 12:48:50 us01-plex-1 systemd[1]: Started Mount and cache Google drive to /media/Plex.

Are you using the cache backend as well? What’s your rclone.conf look like minus keys and passwords?

ps -ef | grep rclone

shows how many rclone processes?

You should only see 1:

felix@gemini:~$ ps -ef | grep rclone
felix      604     1  1 Mar03 ?        00:33:17 /usr/bin/rclone mount gcrypt: /GD --allow-other --dir-cache-time 96h --drive-chunk-size 32M --log-level INFO --log-file /var/log/rclone.log --timeout 1h --umask 002 --rc

No cache. I used it before and it wrecked my system resources, then again, I was using a single 8 core proc with low clock speed, and a 6TB platter drive. Things might be different with NVMes
dreadstarx@us01-plex-1:~$ ps -ef | grep rclone
root 1562 1 0 12:48 ? 00:00:02 /usr/bin/rclone mount --rc --log-file /home/dreadstarx/logs/rclone.log --log-level INFO --umask 002 --allow-non-empty --allow-other --fuse-flag sync_read --tpslimit 10 --tpslimit-burst 10 --dir-cache-time=160h --buffer-size=256M --attr-timeout=1s --vfs-read-chunk-size=64M --vfs-read-chunk-size-limit=off --vfs-cache-max-age=5m --vfs-cache-mode=writes --cache-dir /home/dreadstarx/uploads --config /home/dreadstarx/.config/rclone/rclone.conf Gdrive: /media/Plex
dreadst+ 3337 2888 0 13:04 pts/0 00:00:00 grep --color=auto rclone

dreadstarx@us01-plex-1:~/.config/rclone$ sudo cat rclone.conf
type = drive
scope = drive
token = {“access_token”:“redacted”,“token_type”:“Bearer”,“refresh_token”:“redacted”}

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