Unable to Map error for every request
slamanna212 opened this issue · comments
Describe the bug
Every request I try , i get the error Unable to Map 'FILE_PATH' to a Section ID. Example:
2022-03-18 01:20:27,557 - ERROR - UTILS [140571623933696]: Unable to map '/Media/Movies/Wanted' to a Section ID.
To Reproduce
Steps to reproduce the behavior:
- Follow Readme.MD
- Try to scan a directory
Expected behavior
The files get scanned
Screenshots
If applicable, add screenshots to help explain your problem.
Logs
Link to debug or trace log files.
# Part of the Cloudbox project: https://cloudbox.works #
#########################################################################
# GNU General Public License v3.0 #
#########################################################################
2022-03-18 01:19:53,969 - INFO - AUTOSCAN [140571623933696]: Starting queue processor in 10 seconds...
2022-03-18 01:19:53,970 - INFO - AUTOSCAN [140571657447232]: Starting server: http://0.0.0.0:3467/54c15bf9185c4caf94ea6d360040cc64
2022-03-18 01:20:03,973 - INFO - AUTOSCAN [140571623933696]: Queue processor started.
2022-03-18 01:20:03,974 - INFO - AUTOSCAN [140571623933696]: Restored 0 scan request(s) from Plex Autoscan database.
2022-03-18 01:20:21,026 - INFO - AUTOSCAN [140571623933696]: Client 'xx.xx.xx.xx' made a manual scan request for: '/mnt/Media/Movies/Wanted'
2022-03-18 01:20:21,036 - ERROR - UTILS [140571623933696]: Unable to map '/mnt/Media/Movies/Wanted' to a Section ID.
2022-03-18 01:20:27,553 - INFO - AUTOSCAN [140571623933696]: Client 'xx.xx.xx.xx' made a manual scan request for: '/Media/Movies/Wanted'
2022-03-18 01:20:27,557 - ERROR - UTILS [140571623933696]: Unable to map '/Media/Movies/Wanted' to a Section ID.
System Information
- Plex Autoscan Version: Master branch, downloaded today
- Operating System: Ubuntu Server 20.04.3 LTS
Additional context
- I am running the linuxserver.io Plex Container
- on the host, the media is stored in /mnt/Media/ , in allll containers like plex , radarr, sonarr, they see /media , this points to /mnt/Media
- The files are stored on Google drive and are mounted using a rclone mount with a VFS cache. The files are encrypted but plex or plex_autoscan never knows that. Only the crypt remote is mounted so all the apps see are the decrypted files.
- I added in the config section PLEX_SECTION_PATH_MAPPINGS , the config i generated did not have it and i thought it would help but it made no difference
- running the scan.py sections command i get
2022-03-18 00:40:15,288 - INFO - PLEX [139625995708224]: Using Plex Scanner
Plex Sections:
==============
1: Movies
5: TV Shows
My config: https://gist.github.com/slamanna212/13dc44fb8b889509ee21128cdebfd8e9
PLEX_SECTION_PATH_MAPPINGS do not exist anymore, I would suggest looking at the readme again.
@saltydk I mentioned it in the orginal issue. They were not there originally, I added them during my troubleshooting. They didnt help but i forgot to remove them from config before I posted it here. Even with PLEX_SECTION_PATH_MAPPINGS removed, the config still does not work
I have the same error. Just for 1 new 4k Lib.
Config:
{
"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": [
"/filme",
"/filme4k",
"/series",
"/music",
"/audiobooks"
],
"MIME_TYPES": true,
"MIME_TYPES_LIST": [
"video"
]
},
"CLIENT_ID": "",
"CLIENT_SECRET": "",
"DISABLE_DISK_FILE_SIZE_CHECK": false,
"ENABLED": false,
"POLL_INTERVAL": 120,
"SHOW_CACHE_LOGS": true,
"TEAMDRIVE": false,
"TEAMDRIVES": []
},
"PLEX_ANALYZE_DIRECTORY": false,
"PLEX_ANALYZE_TYPE": "basic",
"PLEX_CHECK_BEFORE_SCAN": false,
"PLEX_DATABASE_PATH": "/config/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db",
"PLEX_EMPTY_TRASH": true,
"PLEX_EMPTY_TRASH_CONTROL_FILES": [
"/mnt/unionfs/mounted.bin"
],
"PLEX_EMPTY_TRASH_MAX_FILES": 50,
"PLEX_EMPTY_TRASH_ZERO_DELETED": false,
"PLEX_FIX_MISMATCHED": true,
"PLEX_FIX_MISMATCHED_LANG": "de",
"PLEX_LD_LIBRARY_PATH": "/usr/lib/plexmediaserver/lib",
"PLEX_LOCAL_URL": "https://plex.robinmeese.duckdns.org",
"PLEX_SCANNER": "/usr/lib/plexmediaserver/Plex\\ Media\\ Scanner",
"PLEX_SUPPORT_DIR": "/config/Library/Application\\ Support",
"PLEX_TOKEN": "vjKgvm9Uz1vpu139bD-C",
"PLEX_USER": "Docker",
"PLEX_WAIT_FOR_EXTERNAL_SCANNERS": true,
"RCLONE": {
"BINARY": "/usr/bin/rclone",
"CONFIG": "",
"CRYPT_MAPPINGS": {},
"RC_CACHE_REFRESH": {
"ENABLED": false,
"FILE_EXISTS_TO_REMOTE_MAPPINGS": {
"Media/": [
"/mnt/rclone/Media/"
]
},
"RC_URL": "http://localhost:5572"
}
},
"RUN_COMMAND_AFTER_SCAN": "",
"RUN_COMMAND_BEFORE_SCAN": "",
"SERVER_ALLOW_MANUAL_SCAN": true,
"SERVER_FILE_CHECK_DELAY": 30,
"SERVER_FILE_EXIST_PATH_MAPPINGS": {
"/home/user/rclone/": [
"/data"
]
},
"SERVER_IGNORE_LIST": [
"/.grab/",
".DS_Store",
"Thumbs.db"
],
"SERVER_IP": "0.0.0.0",
"SERVER_MAX_FILE_CHECKS": 10,
"SERVER_PASS": "37fe1349b07c4f62962dfd160f1a4063",
"SERVER_PATH_MAPPINGS": {
"/audiobooks": [
"/data/#5_Audiobooks"
],
"/filme": [
"/data/#3_Filme"
],
"/filme4k": [
"/data/#3_Filme_4K"
],
"/mnt/unionfs/": [
"/home/user/media/fused/"
],
"/music": [
"/data/#7_Musik"
],
"/series": [
"/data/#4_Serien"
]
},
"SERVER_PORT": 3467,
"SERVER_SCAN_DELAY": 300,
"SERVER_SCAN_FOLDER_ON_FILE_EXISTS_EXHAUSTION": false,
"SERVER_SCAN_PRIORITIES": {
"0": [
"/filme"
],
"1": [
"/series"
],
"2": [
"/music"
],
"3": [
"/audiobooks"
],
"4": [
"/filme4k"
]
},
"SERVER_USE_SQLITE": true,
"USE_DOCKER": false,
"USE_SUDO": true
}
Sections:
5: Audiobooks
1: Filme
8: Filme 4K
7: Musik
2: TV-Serien
Error in Log:
2022-04-01 21:52:28,263 - ERROR - UTILS [140182020753152]: Unable to map '/filme_4K/Star Trek Beyond (2016)/Star Trek Beyond (2016)-Remux-2160p-HEVCHDR-AC35.1[DE+EN].mkv' to a Section ID.
your path mapping is wrong, it lists filme4k with a small k whereas your log entry has filme_4K.
I feel dumb af, I changed it. Thanks a lot !
No problem.