I followed the info from this post to get node-gdrive-fuse stable:
Though he recommends putting the cache in memory, I elected to keep it on disk. I use it as a read only share, so caching really doesn't help me any except for the folder cache.
Here is my unionfs-fuse mount config:
#/usr/bin/unionfs -o allow_other,nonempty,cow,statfs_omit_ro,auto_cache,use_ino /media/media/local=RW:/media/media/gfuse/Media=RO:/media/media/acd=RO /media/media/sorted
I use rclone copy via a cronjob to push changes to google nightly. My local storage is big enough where I can keep the latest locally for a few days. Right now, I just go in once a week and delete things to free up space on my local. Unionfs takes over and it then gets played via node-gdrive-fuse. I'm sure I could create a script that would move files at a certain percentage of disk full. I might to that later.
You will notice I have a 2nd RO mount in unionfs for ACD. I use this a a failover incase node goes down. I haven't had to use it yet really, things seem pretty stable right now.
Another thing I managed to do was to hook into Sonarr and Radarr using custom scripts that manually will force Plex to scan refresh only the show(s) or movies that have been added. This way, I can disable scanning in the GUI completely. I wonder by using this, it would help with the rclone gdrive mount. I'll have to test that eventually. If someone wants to test this to see if you stop getting banned, that would be awesome. Below is my very "beta" python script for this....you get the idea.
#!/usr/bin/env python
import os
import sys
import logging
import subprocess
logging.basicConfig(filename='/var/lib/plexmediaserver/Src/plex-scripts/sonar.log',
filemode='a',
format='%(asctime)s,%(msecs)d %(name)s %(levelname)s %(message)s',
datefmt='%H:%M:%S',
level=logging.DEBUG)
logging.info("Sonarr extra script post processing started.")
directory = os.environ.get('sonarr_series_path')
logging.info("Directory: %s" % directory)
os.environ['LD_LIBRARY_PATH'] = '/usr/lib/plexmediaserver'
subprocess.call(
['/usr/lib/plexmediaserver/Plex Media Scanner',
'--scan',
'--refresh',
'--section', '3',
'--directory', directory])
For this to work, Sonarr and Radarr need to have permissions to the Plex scanner executable. I have both Sonarr and Radarr running as the Plex user so this works out great. So once a show or movie is downloaded, it fires a scan on just the directory and nothing else. And the best part, its happens immediately. I tried using "run partial scan" in the GUI settings, but half the time it wouldn't work. Seems like it was hit always hit and miss. This way works very well.
Hope this helps.
