Recommended Dropbox (Formally Google Drive) and Plex Mount Settings

Noob Question:

So I'm understanding how to get Sonarr/Radarr to download, and have it deposit the downloaded file into the folder of your choosing.
What I'm not understanding is how you prevent Sonarr/Radarr from grabbing that movie/show from that folder and doing the post processing, but still get Sonarr/Radarr to recognize that it has been downloaded and now resides where it expects it to be (I would understand the encrypted Gsuite drive to be the final resting place)

My current workflow is pretty standard: I use Radarr/Sonarr/NZB to track and grab content, download, and then Radarr/Sonarr grab it and put it where it belongs on my local NAS

What I'd like to happen is that when the content is grabbed, and ready (I intend to automate a bit of post processing myself to enforce/ensure compatibility and direct play), to then have it uploaded to Gsuite and have it recognized in the Radarr/Sonarr database as downloaded.

Am I asking this question in the wrong forum?

I have just adjusted my settings to match yours.

I only have two questions left:

  1. I have set my --cache-dir to --cache-dir /share/CACHEDEV1_DATA/rclone/cache \ but when I look into the cache folder it is completely empty. From what I understood it is the local disk used for caching. Shouldn't the cached data appear there?

  2. I am using --rc-addr :5572 \ but when trying to acces the url http://NAS-IP:5572 I get an ERR_CONNECTION_REFUSED message. Any idea what might have gone wrong?

If you have a question on my settings, I can help here. If you have a question on something else, it's best to start a new post and use the help and support template.

I personally use no post processing as my ATV's direct play pretty much everything.

Assuming you using the same settings I am, it would appear there.

Share the full command and debug log.

I am really sorry, I checked again and noticed that it was still mounting it with an old mount command.

Just updated it and now the cache data appears in that folder.

Regarding the rc-addr :5572 it now does not give an connection refused error anymore but when accessing it it only shows: Not Found

You'd need to share the full command you are running and a debug log.

1 Like

@Animosity022 Are you using Plex Autoscan by chance? If so, would you mind sharing your conifg? I'm using your scripts (thank you for sharing) on an all-in-one box and a modified version on a local Plex server. I'm hoping to use PAS to automatically pick up changes on the local server, but I'm getting some errors that many suggest are related to path issues.

Snippet of the error:
...Could not locate record in 'media_parts' where 'file'...

I do use it a bit now as I like some of the empty trash features that I've been testing more than anything else.

I use a custom plex path so my config is a little different.

What's your config file look like?

Here's the config I'm using:

{
  "DOCKER_NAME": "plex",
  "GOOGLE": {
    "ALLOWED": {
      "FILE_EXTENSIONS": true,
      "FILE_EXTENSIONS_LIST": [
        "webm",
        "mkv",
        "flv",
        "vob",
        "ogv",
        "ogg",
        "drc",
        "gif",
        "gifv",
        "mng",
        "avi",
        "mov",
        "qt",
        "wmv",
        "yuv",
        "rm",
        "rmvb",
        "asf",
        "amv",
        "mp4",
        "m4p",
        "m4v",
        "mpg",
        "mp2",
        "mpeg",
        "mpe",
        "mpv",
        "m2v",
        "m4v",
        "svi",
        "3gp",
        "3g2",
        "mxf",
        "roq",
        "nsv",
        "f4v",
        "f4p",
        "f4a",
        "f4b",
        "mp3",
        "flac",
        "ts"
      ],
      "FILE_PATHS": [
	"My Drive/gdrive/crypt/media/movies/",
	"My Drive/gdrive/crypt/media/tv/"
      ],
      "MIME_TYPES": false,
      "MIME_TYPES_LIST": [
        "video"
      ]
    },
    "CLIENT_ID": "{{client-id}}",
    "CLIENT_SECRET": "{{client-secret}}",
    "ENABLED": true,
    "POLL_INTERVAL": 120,
    "SHOW_CACHE_LOGS": true,
    "TEAMDRIVE": false,
    "TEAMDRIVES": []
  },
  "PLEX_ANALYZE_DIRECTORY": true,
  "PLEX_ANALYZE_TYPE": "basic",
  "PLEX_CHECK_BEFORE_SCAN": true,
  "PLEX_DATABASE_PATH": "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db",
  "PLEX_EMPTY_TRASH": false,
  "PLEX_EMPTY_TRASH_CONTROL_FILES": [
    "/mnt/unionfs/mounted.bin"
  ],
  "PLEX_EMPTY_TRASH_MAX_FILES": 100,
  "PLEX_EMPTY_TRASH_ZERO_DELETED": false,
  "PLEX_FIX_MISMATCHED": false,
  "PLEX_FIX_MISMATCHED_LANG": "en",
  "PLEX_LD_LIBRARY_PATH": "/usr/lib/plexmediaserver/lib",
  "PLEX_LOCAL_URL": "http://localhost:32400",
  "PLEX_SCANNER": "/usr/lib/plexmediaserver/Plex\\ Media\\ Scanner",
  "PLEX_SUPPORT_DIR": "/var/lib/plexmediaserver/Library/Application\\ Support",
  "PLEX_TOKEN": "{{plex-token}}",
  "PLEX_USER": "plex",
  "PLEX_WAIT_FOR_EXTERNAL_SCANNERS": true,
  "RCLONE": {
    "BINARY": "/usr/bin/rclone",
    "CONFIG": "/opt/rclone/rclone.conf",
    "CRYPT_MAPPINGS": {
	    "My Drive/gdrive/crypt/": [
	       "gcrypt:"
	    ]
    },
    "RC_CACHE_REFRESH": {
      "ENABLED": true,
      "FILE_EXISTS_TO_REMOTE_MAPPINGS": {
        "media/": [
          "/gd/media/"
        ]
      },
      "RC_URL": "http://localhost:5572"
    }
  },
  "RUN_COMMAND_AFTER_SCAN": "",
  "RUN_COMMAND_BEFORE_SCAN": "",
  "SERVER_ALLOW_MANUAL_SCAN": true,
  "SERVER_FILE_CHECK_DELAY": 60,
  "SERVER_FILE_EXIST_PATH_MAPPINGS": {
	  "/gd/media/": [
		  "/gd/media/"
	  ]
  },
  "SERVER_IGNORE_LIST": [
    "/.grab/",
    ".DS_Store",
    "Thumbs.db"
  ],
  "SERVER_IP": "0.0.0.0",
  "SERVER_MAX_FILE_CHECKS": 10,
  "SERVER_PASS": "{{server-pass}}",
  "SERVER_PATH_MAPPINGS": {
	  "/gd/media/movies/": [
		  "/gd/media/movies/",
		  "My Drive/gdrive/crypt/media/movies/"
	  ],
	  "/gd/media/tv/": [
		  "/gd/media/tv/",
		  "My Drive/gdrive/crypt/media/tv/"
	  ]
  },
  "SERVER_PORT": 3467,
  "SERVER_SCAN_DELAY": 60,
  "SERVER_SCAN_FOLDER_ON_FILE_EXISTS_EXHAUSTION": false,
  "SERVER_SCAN_PRIORITIES": {
    "0": [
      "/Movies/"
    ],
    "1": [
      "/TV Shows/"
    ]
  },
  "SERVER_USE_SQLITE": true,
  "USE_DOCKER": false,
  "USE_SUDO": false
}

Plex runs as the user plex. PAS runs as the user jcconnell and it has permission to use the Plex Scanner without sudo. Google Drive is mounted with owner:group jcconnell:media.

The path mappings look like (Remote | Local):

  • "My Drive/gdrive/gcrypt/media/movies" | /gd/media/movies
  • "My Drive/gdrive/gcrypt/media/tv" | /gd/media/tv

EDIT: I should add, I'm not using mergerfs on the local Plex server. Just the rclone mount, Plex and Plex Autoscan.

Check out this:

Thank you. I've seen that issue but I wasn't able to apply their findings to fix my issue. I did verify that the Plex paths are correct in the config.

There are a couple others in the issues section there that mention an error similar to mine but I haven't been able to find a solution. In my case, I'm only using the Google Drive monitoring feature.

Hey @Animosity022, would you suggest putting vfs cache in an SSD? I see you used 500gb but I don't know if it is in a regular drive or SSD. Thank you in advance.

I use a 1TB SSD for mine, but not sure it matters much. I'd use whatever you can afford as the cache is going to be fast enough for serving media almost all the time unless you are some crazy load of people.

1 Like

I'm still not able to get Plex Autoscan sorted out. It seems there are a few other users who have had this issue, but not a lot of solutions.

Pages 4 & 5 here also discuss it a bit, though I've tried adjusting paths and another solution seems related to Docker:
https://plexguide.com/threads/plex-automatic-scanning.1943/page-4

The only thing I do is I move my plex dir and use this override in systemd.

felix@gemini:/etc/systemd/system/plexmediaserver.service.d$ cat override.conf
[Service]
Environment="PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR=/cache"
User=felix
Group=felix

and the only thing I've changed in the config.json for autoscan.

  "PLEX_LD_LIBRARY_PATH": "/usr/lib/plexmediaserver/lib",
  "PLEX_LOCAL_URL": "http://localhost:32400",
  "PLEX_SCANNER": "/usr/lib/plexmediaserver/Plex\\ Media\\ Scanner",
  "PLEX_SUPPORT_DIR": "/cache",

Is the support dir line.

Hi,
I have one question tio " Recomended Gdrive and Plex Mount"
I have set up Plex and rclone and mount it with:

rclone mount --allow-non-empty --allow-other gdrive:/ mnt/gdrive &

This will work for Plex fine.
But on the same Server I have Jdownloder running. Jdownloder also use the rclone Mount.
This dos not work so good. Jdownloder makes 2 files insted of one.

Is there a special Mount Setting for Jdownloder?
Thanks for your reply.

Those are not settings.

No idea as I've never heard of it.

If you have a question regarding my settings or my setup, please post here.

If you have separate question, open a new post.

Hello, I have installed Jellyfin, rclone, Google Drive using Swizzin.

Issue is that, According to Jellyfin's team, it doesn't have permission and that is why, it is not able to access certain files in the mounted google drive to fetch meta-data and images.

What I should do?

Start a new post rather than hijacking my thread and use the Help and Support template :slight_smile:

I know you’re still testing OP but I was wondering at this stage if you’re leaning towards moving full time to the full VFS mode?