Closed saitoh183 closed 6 years ago
Google drive monitoring does not work with encrypted drives. That’s also mentioned under that section.
i know, what i did is mount it to a gdrive that isnt encrypted which has the same layout (it is my duplicate) gdrive.
Basically, why is it adding My Drive in front of my plex library paths?..Im assuming this is why it isnt scanning in content..
Paste your full sanitized config.
{
"DOCKER_NAME": "plex",
"GDRIVE": {
"CLIENT_ID": "<removed>",
"CLIENT_SECRET": "<removed>",
"ENABLED": true,
"IGNORE_PATHS": [],
"POLL_INTERVAL": 60,
"SCAN_EXTENSIONS": [
"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"
],
"TEAMDRIVE": false
},
"PLEX_ANALYZE_DIRECTORY": true,
"PLEX_ANALYZE_TYPE": "basic",
"PLEX_DATABASE_PATH": "/plexdata/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_LD_LIBRARY_PATH": "/usr/lib/plexmediaserver",
"PLEX_LOCAL_URL": "http://localhost:32400",
"PLEX_SCANNER": "/usr/lib/plexmediaserver/Plex\\ Media\\ Scanner",
"PLEX_SECTION_PATH_MAPPINGS": {
"8": [
"/media/gdrive_encrypted/Videos/TV/"
],
"7": [
"/media/gdrive_encrypted/Videos/Movies/"
],
"9": [
"/media/gdrive_encrypted/Videos/Anime/"
],
"4": [
"/media/gdrive_encrypted/Videos/FrenchTV/"
],
"2": [
"/media/gdrive_encrypted/Videos/French Movies/"
],
"3": [
"/media/gdrive_encrypted/Videos/UFC/"
],
"10": [
"/media/gdrive_encrypted/Videos/Kids-TV/"
]
},
"PLEX_SUPPORT_DIR": "/plexdata/Library/Application\\ Support",
"PLEX_TOKEN": "<removed>",
"PLEX_USER": "plex",
"PLEX_WAIT_FOR_EXTERNAL_SCANNERS": true,
"RCLONE_RC_CACHE_EXPIRE": {
"ENABLED": false,
"FILE_EXISTS_TO_REMOTE_MAPPINGS": {
"Media/": [
"/home/thompsons/plexdrive/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": {
"/home/thompsons/plexdrive": [
"/data"
]
},
"SERVER_IGNORE_LIST": [
"/.grab/",
".DS_Store",
"Thumbs.db"
],
"SERVER_IP": "0.0.0.0",
"SERVER_MAX_FILE_CHECKS": 10,
"SERVER_PASS": "<removed>",
"SERVER_PATH_MAPPINGS": {
"/media/gdrive_encrypted/Videos/Movies": [
"/Videos/Movies"
],
"/media/gdrive_encrypted/Videos/TV": [
"/Videos/TV"
],
"/media/gdrive_encrypted/Videos/Anime": [
"/Videos/Anime"
],
"/media/gdrive_encrypted/Videos/FrenchTV": [
"/Videos/FrenchTV"
],
"/media/gdrive_encrypted/Videos/French Movies": [
"/Videos/French Movies"
],
"/media/gdrive_encrypted/Videos/UFC": [
"/Videos/UFC"
],
"/media/gdrive_encrypted/Videos/Kids-TV": [
"/Videos/Kids-TV"
]
},
"SERVER_PORT": 3467,
"SERVER_SCAN_DELAY": 180,
"SERVER_SCAN_FOLDER_ON_FILE_EXISTS_EXHAUSTION": false,
"SERVER_SCAN_PRIORITIES": {
"0": [
"/media/gdrive_encrypted/Videos/TV"
],
"1": [
"/media/gdrive_encrypted/Videos/Movies"
],
"2": [
"/media/gdrive_encrypted/Videos/Anime"
],
"3": [
"/media/gdrive_encrypted/Videos/FrenchTV"
],
"4": [
"/media/gdrive_encrypted/Videos/Kids-TV"
],
"5": [
"/media/gdrive_encrypted/Videos/French Movies"
],
"6": [
"/media/gdrive_encrypted/Videos/UFC"
]
},
"SERVER_USE_SQLITE": true,
"USE_DOCKER": false,
"USE_SUDO": false
}
You need to tell the config to map Gdrive to a folder locally...
"SERVER_PATH_MAPPINGS": {
"/media/gdrive_encrypted/Videos/Movies": [
"/Videos/Movies",
"My Drive/media/gdrive_encrypted/Videos/Movies/"
],
"/media/gdrive_encrypted/Videos/TV": [
"/Videos/TV",
"My Drive/media/gdrive_encrypted/Videos/TV/"
],
"/media/gdrive_encrypted/Videos/Anime": [
"/Videos/Anime",
"My Drive/media/gdrive_encrypted/Videos/Anime/"
],
"/media/gdrive_encrypted/Videos/FrenchTV": [
"/Videos/FrenchTV",
"My Drive/media/gdrive_encrypted/Videos/FrenchTV"
],
"/media/gdrive_encrypted/Videos/French Movies": [
"/Videos/French Movies"
"My Drive/media/gdrive_encrypted/Videos/French Movies"
],
"/media/gdrive_encrypted/Videos/UFC": [
"/Videos/UFC"
"My Drive/media/gdrive_encrypted/Videos/UFC"
],
"/media/gdrive_encrypted/Videos/Kids-TV": [
"/Videos/Kids-TV",
"My Drive/media/gdrive_encrypted/Videos/Kids-TV"
]
},
Why is My Drive at the start of the path?
/Videos/Movies < Gdrive path /media/gdrive_encrypted/Videos/Movies < Local path My Drive/media/gdrive_encrypted/Videos/Movies/ < ?
Can you try it ?
Yeah I will, just trying to understand the configuration
I pushed out an update for that section of the readme file. That should clarify it.
Doesnt seem to be working..
_ _
_ __ | | _____ __ __ _ _ _| |_ ___ ___ ___ __ _ _ __
| '_ \| |/ _ \ \/ / / _` | | | | __/ _ \/ __|/ __/ _` | '_ \
| |_) | | __/> < | (_| | |_| | || (_) \__ \ (_| (_| | | | |
| .__/|_|\___/_/\_\ \__,_|\__,_|\__\___/|___/\___\__,_|_| |_|
|_|
#########################################################################
# Author: l3uddz #
# URL: https://github.com/l3uddz/plex_autoscan #
# -- #
# Part of the Cloudbox project: https://cloudbox.works #
#########################################################################
# GNU General Public License v3.0 #
#########################################################################
2018-11-12 08:59:45,340 - INFO - AUTOSCAN [139831880595200]: Starting queue processor in 10 seconds
2018-11-12 08:59:45,341 - INFO - AUTOSCAN [139831872202496]: Starting Google Drive changes monitor in 30 seconds...
2018-11-12 08:59:45,341 - INFO - AUTOSCAN [139831944521472]: Starting server: http://0.0.0.0:3467/fca395bade7b4e31bd0783882bcdf026
2018-11-12 08:59:55,349 - INFO - AUTOSCAN [139831880595200]: Queue processor started
2018-11-12 08:59:55,350 - INFO - AUTOSCAN [139831880595200]: Restored 0 scan requests from database
2018-11-12 09:00:15,357 - INFO - AUTOSCAN [139831872202496]: Google Drive access tokens were successfully loaded
2018-11-12 09:00:15,357 - INFO - AUTOSCAN [139831872202496]: Google Drive changes monitor started
2018-11-12 09:03:17,743 - INFO - AUTOSCAN [139831872202496]: There's 1 Google Drive change(s) to process
2018-11-12 09:34:36,285 - INFO - AUTOSCAN [139831872202496]: There's 1 Google Drive change(s) to process
2018-11-12 09:34:36,286 - INFO - GDRIVE [139831872202496]: Added '1obENZ-hFGORpktnJ7RyiAGIiIr_YKSgk' to cache: Outlander - S04E02 - Do No Harm.mp4
2018-11-12 09:34:36,808 - INFO - GDRIVE [139831872202496]: Added '1bAUWDFYAyH2MMtwWc9X995Shr2nxqKN9' to cache: Season 04
2018-11-12 09:34:37,320 - INFO - GDRIVE [139831872202496]: Added '0B4SBUK6Y_ZyeVVF4MlNqMHpVbGs' to cache: Outlander
2018-11-12 09:34:37,884 - INFO - GDRIVE [139831872202496]: Added '0B4SBUK6Y_ZyeTDVBZFVrWk1PYVk' to cache: TV
2018-11-12 09:34:38,406 - INFO - GDRIVE [139831872202496]: Added '0B4SBUK6Y_ZyeR2MtNlBVRmJYd00' to cache: Videos
2018-11-12 09:34:38,915 - INFO - GDRIVE [139831872202496]: Added '0AISBUK6Y_ZyeUk9PVA' to cache: My Drive
2018-11-12 09:34:38,961 - INFO - AUTOSCAN [139831872202496]: Proceeding with scan of 1 file(s) from Google Drive changes: [u'My Drive/Videos/TV/Outlander/Season 04/Outlander - S04E02 - Do No Harm.mp4']
2018-11-12 09:34:38,965 - INFO - AUTOSCAN [139831872202496]: Added 'My Drive/media/gdrive_encrypted/Videos/TV/Outlander/Season 04/Outlander - S04E02 - Do No Harm.mp4' to database, proceeding with scan
2018-11-12 09:34:38,965 - INFO - PLEX [139831787124480]: Scan request from Google Drive for 'My Drive/media/gdrive_encrypted/Videos/TV/Outlander/Season 04/Outlander - S04E02 - Do No Harm.mp4', sleeping for 180 seconds...
2018-11-12 09:36:40,438 - INFO - GDRIVE [139831872202496]: Renewed access token!
2018-11-12 09:37:39,066 - INFO - PLEX [139831787124480]: File 'My Drive/media/gdrive_encrypted/Videos/TV/Outlander/Season 04/Outlander - S04E02 - Do No Harm.mp4' did not exist on check 1 of 10, checking again in 60 seconds.
2018-11-12 09:38:39,124 - INFO - PLEX [139831787124480]: File 'My Drive/media/gdrive_encrypted/Videos/TV/Outlander/Season 04/Outlander - S04E02 - Do No Harm.mp4' did not exist on check 2 of 10, checking again in 60 seconds.
2018-11-12 09:38:42,314 - INFO - AUTOSCAN [139831872202496]: There's 1 Google Drive change(s) to process
2018-11-12 09:38:42,315 - INFO - GDRIVE [139831872202496]: Added '1F-L2xl4ZvD-mL-VPgt4EL7S5iVQGELMg' to cache: Point Break (1991) Bluray-1080p.mp4
2018-11-12 09:38:42,831 - INFO - GDRIVE [139831872202496]: Added '1ECyqhhlEEqL0NLp9ni6BCufY7K-g8YXf' to cache: Point Break (1991)
2018-11-12 09:38:43,379 - INFO - GDRIVE [139831872202496]: Added '0B4SBUK6Y_ZyeRTJqZTR3c3F2bEU' to cache: Movies
2018-11-12 09:38:43,407 - INFO - AUTOSCAN [139831872202496]: Ignored 1 file(s) from Google Drive changes for already being in Plex!
2018-11-12 09:39:39,184 - INFO - PLEX [139831787124480]: File 'My Drive/media/gdrive_encrypted/Videos/TV/Outlander/Season 04/Outlander - S04E02 - Do No Harm.mp4' did not exist on check 3 of 10, checking again in 60 seconds.
2018-11-12 09:39:44,023 - INFO - AUTOSCAN [139831872202496]: There's 1 Google Drive change(s) to process
2018-11-12 09:39:44,024 - INFO - GDRIVE [139831872202496]: Added '1KGJaB3vVAwM9T6-YDWwT2NNwJF_03shB' to cache: 90 Day Fiancé Before The 90 Days - S02E11 - Goodbye for Now.mp4
2018-11-12 09:39:44,691 - INFO - GDRIVE [139831872202496]: Added '1anQFlpXxN-JtFuQJ37pZCsifYoNt6apn' to cache: Season 02
2018-11-12 09:39:45,257 - INFO - GDRIVE [139831872202496]: Added '1StVmS1qpqhnXl0qdonAMQj5q-lcfMZX-' to cache: 90 Day Fiancé Before The 90 Days
2018-11-12 09:39:45,306 - INFO - AUTOSCAN [139831872202496]: Ignored 1 file(s) from Google Drive changes for already being in Plex!
2018-11-12 09:40:39,245 - INFO - PLEX [139831787124480]: File 'My Drive/media/gdrive_encrypted/Videos/TV/Outlander/Season 04/Outlander - S04E02 - Do No Harm.mp4' did not exist on check 4 of 10, checking again in 60 seconds.
2018-11-12 09:41:39,305 - INFO - PLEX [139831787124480]: File 'My Drive/media/gdrive_encrypted/Videos/TV/Outlander/Season 04/Outlander - S04E02 - Do No Harm.mp4' did not exist on check 5 of 10, checking again in 60 seconds.
2018-11-12 09:41:46,604 - INFO - AUTOSCAN [139831872202496]: There's 1 Google Drive change(s) to process
2018-11-12 09:41:46,659 - INFO - AUTOSCAN [139831872202496]: Proceeding with scan of 1 file(s) from Google Drive changes: [u'My Drive/Videos/TV/Outlander/Season 04/Outlander - S04E02 - Do No Harm.mp4']
2018-11-12 09:41:46,660 - INFO - AUTOSCAN [139831872202496]: Already processing 'My Drive/media/gdrive_encrypted/Videos/TV/Outlander/Season 04/Outlander - S04E02 - Do No Harm.mp4' from same folder, aborting adding an extra scan request to the queue
2018-11-12 09:42:39,366 - INFO - PLEX [139831787124480]: File 'My Drive/media/gdrive_encrypted/Videos/TV/Outlander/Season 04/Outlander - S04E02 - Do No Harm.mp4' did not exist on check 6 of 10, checking again in 60 seconds.
2018-11-12 09:43:39,422 - INFO - PLEX [139831787124480]: File 'My Drive/media/gdrive_encrypted/Videos/TV/Outlander/Season 04/Outlander - S04E02 - Do No Harm.mp4' did not exist on check 7 of 10, checking again in 60 seconds.
2018-11-12 09:44:39,424 - INFO - PLEX [139831787124480]: File 'My Drive/media/gdrive_encrypted/Videos/TV/Outlander/Season 04/Outlander - S04E02 - Do No Harm.mp4' did not exist on check 8 of 10, checking again in 60 seconds.
2018-11-12 09:45:39,484 - INFO - PLEX [139831787124480]: File 'My Drive/media/gdrive_encrypted/Videos/TV/Outlander/Season 04/Outlander - S04E02 - Do No Harm.mp4' did not exist on check 9 of 10, checking again in 60 seconds.
2018-11-12 09:46:39,544 - WARNING - PLEX [139831787124480]: File 'My Drive/media/gdrive_encrypted/Videos/TV/Outlander/Season 04/Outlander - S04E02 - Do No Harm.mp4' exhausted all available checks, aborting scan request.
2018-11-12 09:46:39,547 - INFO - PLEX [139831787124480]: Removed 'My Drive/media/gdrive_encrypted/Videos/TV/Outlander/Season 04/Outlander - S04E02 - Do No Harm.mp4' from database
Here is the process might help in fixing the issue.
Plex and Sonarr/Radarr are on different boxes.
On Sonarr/Radarr box, files are sent to library folder and are then uploaded to 2 Gdrives via rclone. First it is uploaded to an encrypted Gdrive (i know it is not support. It's the gdrive plex uses). Second upload is to a non-encrypted gdrive (monitored by plex_scan). Both have the same hierarchy for the path to the files.
On the plex box, the gdrive is mounted to /media/gdrive_encrypted/ and plexscan is running. Since there is a small delay before the mount shows the file that was uploaded, i made sure to upload to the encrypted drive first so that by the time the plex scan picks up changes, the file is visible in the /media/gdrive_encrypted/.
2018-11-12 09:37:39,066 - INFO - PLEX [139831787124480]: File 'My Drive/media/gdrive_encrypted/Videos/TV/Outlander/Season 04/Outlander - S04E02 - Do No Harm.mp4' did not exist on check 1 of 10, checking again in 60 seconds.
Here it using the server mappings to check to see if it's ic located in your /media/gdrive_encrypted/
or not.. and it's failing....
.. and while typing that i just realized you never did your SERVER_FILE_EXISTS_MAPPING section 😛
"SERVER_FILE_EXIST_PATH_MAPPINGS": {
"/media/gdrive_encrypted/Videos/": [
"/Videos/"
]
},
in case that alone does not work.....
Are you using Sonarr/Radarr and Plex as Docker containers?
If so, can you tell me the paths that Sonarr/Radarr uses for its rooth path and what library path your Plex is using?
Then i can fix your config up accordingly.
Not using sonarr/radarr?
If so:
"SERVER_PATH_MAPPINGS": {
"/media/gdrive_encrypted/Videos/Movies/": [
"My Drive/Videos/Movies/"
],
"/media/gdrive_encrypted/Videos/TV/": [
"My Drive/Videos/TV/"
],
"/media/gdrive_encrypted/Videos/Anime/": [
"My Drkve/Videos/Anime/"
],
"/media/gdrive_encrypted/Videos/FrenchTV/": [
"My Drive/Videos/FrenchTV/"
],
"/media/gdrive_encrypted/Videos/French Movies/": [
"My Drive/Videos/French Movies/"
],
"/media/gdrive_encrypted/Videos/UFC/": [
"My Drive/Videos/UFC/"
],
"/media/gdrive_encrypted/Videos/Kids-TV/": [
"My Drive/Videos/Kids-TV/"
]
},
As i said before the plex and sonarr are not on the same box. Plex is not running in docker. Sonarr/Radarr is not using unionFS to merge local and cloud drive. After Files are processed via one of the "arr's" a script runs which uploads the file to gdrive via rclone move.
I will try the above
also ending path with backslash like you did above causes error :)
I am aware that they are not on the same box, but if you look at the config explanations, it translates the sonarr paths to local paths on the host plex box as well.
I have trailing slashes, works ok for me.
And, I too, have sonarr/radarr setup on a separate box than my plex one.
I have trailing slashes, works ok for me.
in the first config you posted, it didnt...but i think it was because some paths had the backslash and some didnt
Yeah maybe mixed settings prob did it.
Server path mappings - FOR NATIVE ie NON Docker Setups.. regardless of where sonarr and plex are located (ie same box or different boxes).
Format:
"SERVER_PATH_MAPPINGS": {
"/path/on/local/plex/host": [ <--- Plex Library path
"/path/to/media/on/sonarr/host" <--- TV root path
]
},
I hope the above clears it up. It's why I was asking about your paths.
yeah it is what i thought, the portion that was puzzling me was the addition of My Drive to the path
I think i finally got what it was.. your gdrive was /Video... so it should have been "My Drive/Video".. If you are using gdrive in french mode, you wont notice that.
I suggest you come on to the Discord chat server and start fresh on your config. PM me there and tell me what you exact paths for Sonarr, Plex, and Gdrive are.. send me screenshots if you have to. Ill close this cause i think we are going to go in circles .
Discord link is on the Readme (at the top).
here is my config
Gdrive path is
/Videos/...
and it is mounted as/media/gdrive_encrypted/Videos
Logs: