Skip to content
This repository has been archived by the owner on Aug 6, 2022. It is now read-only.

Not Scan: Permission denied..... PLEX MEDIA SCANNER CRASHED #151

Open
RedBull01 opened this issue Jun 19, 2020 · 1 comment
Open

Not Scan: Permission denied..... PLEX MEDIA SCANNER CRASHED #151

RedBull01 opened this issue Jun 19, 2020 · 1 comment
Labels

Comments

@RedBull01
Copy link

RedBull01 commented Jun 19, 2020

Describe the bug
Permission denied..... PLEX MEDIA SCANNER CRASHED

THX for your help.

To Reproduce

Expected behavior
Hi all. i have always the some problem from plex_autoscan.log:

2020-06-18 03:27:58,675 - INFO - AUTOSCAN [140660487177984]: Client '172.17.0.7' scan request for series: '/mnt/unionfs/V09/1-FR/2-TV Shows/4-Lite/5-Web/FBI (2018)/Season 02/FBI (2018) - S02E06.mkv', event: 'Download'
2020-06-18 03:27:58,680 - INFO - AUTOSCAN [140660487177984]: Using Section ID '1' for '/mnt/unionfs/V09/1-FR/2-TV Shows/4-Lite/5-Web/FBI (2018)/Season 02/FBI (2018) - S02E06.mkv'
2020-06-18 03:27:58,684 - INFO - AUTOSCAN [140660487177984]: Added '/mnt/unionfs/V09/1-FR/2-TV Shows/4-Lite/5-Web/FBI (2018)/Season 02/FBI (2018) - S02E06.mkv' to Plex Autoscan database.
2020-06-18 03:27:58,685 - INFO - AUTOSCAN [140660487177984]: Proceeding with scan...
2020-06-18 03:27:58,685 - INFO - PLEX [140660476352256]: Scan request from Sonarr for '/mnt/unionfs/V09/1-FR/2-TV Shows/4-Lite/5-Web/FBI (2018)/Season 02/FBI (2018) - S02E06.mkv'.
2020-06-18 03:27:58,686 - INFO - PLEX [140660476352256]: Sleeping for 180 seconds...
2020-06-18 03:30:58,945 - INFO - PLEX [140660476352256]: File '/mnt/unionfs/V09/1-FR/2-TV Shows/4-Lite/5-Web/FBI (2018)/Season 02/FBI (2018) - S02E06.mkv' exists on check 1 of 10.
2020-06-18 03:30:58,946 - INFO - PLEX [140660476352256]: Scan request is now being processed...
2020-06-18 03:30:59,014 - INFO - PLEX [140660476352256]: No 'Plex Media Scanner' processes were found.
2020-06-18 03:30:59,014 - INFO - PLEX [140660476352256]: Running Plex Media Scanner for: /mnt/unionfs/V09/1-FR/2-TV Shows/4-Lite/5-Web/FBI (2018)/Season 02
2020-06-18 03:30:59,275 - INFO - UTILS [140660476352256]: terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
2020-06-18 03:30:59,276 - INFO - UTILS [140660476352256]: what(): boost::filesystem::create_directories: Permission denied: "/config/Library/Logs"
2020-06-18 03:30:59,287 - INFO - UTILS [140660476352256]: ****** PLEX MEDIA SCANNER CRASHED, CRASH REPORT WRITTEN: /config/Library/Application Support/Plex Media Server/Crash Reports/1.19.4.2935-79e214ead/PLEX MEDIA SCANNER/2ca$
2020-06-18 03:30:59,292 - INFO - UTILS [140660476352256]: terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
2020-06-18 03:30:59,292 - INFO - UTILS [140660476352256]: what(): boost::filesystem::create_directories: Permission denied: "/config/Library/Logs"
2020-06-18 03:30:59,365 - INFO - UTILS [140660476352256]: ash: line 1: 10551 Aborted (core dumped) /usr/lib/plexmediaserver/Plex\ Media\ Scanner --scan --refresh --section 1 --directory '/mnt/unionfs/V09/1-FR/2-$
2020-06-18 03:30:59,384 - INFO - PLEX [140660476352256]: Finished scan!
2020-06-18 03:31:00,390 - INFO - PLEX [140660476352256]: There are 0 queued item(s) remaining.
2020-06-18 03:31:10,619 - INFO - UTILS [140660476352256]: terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
2020-06-18 03:31:10,620 - INFO - UTILS [140660476352256]: what(): boost::filesystem::create_directories: Permission denied: "/config/Library/Logs"
2020-06-18 03:31:10,632 - INFO - UTILS [140660476352256]: ****** PLEX MEDIA SCANNER CRASHED, CRASH REPORT WRITTEN: /config/Library/Application Support/Plex Media Server/Crash Reports/1.19.4.2935-79e214ead/PLEX MEDIA SCANNER/253$
2020-06-18 03:31:10,637 - INFO - UTILS [140660476352256]: terminate called after throwing an instance of 'boost::filesystem::filesystem_error'
2020-06-18 03:31:10,637 - INFO - UTILS [140660476352256]: what(): boost::filesystem::create_directories: Permission denied: "/config/Library/Logs"
2020-06-18 03:31:10,709 - INFO - UTILS [140660476352256]: ash: line 1: 10578 Aborted (core dumped) /usr/lib/plexmediaserver/Plex\ Media\ Scanner --analyze --item 312193
2020-06-18 03:31:10,728 - INFO - PLEX [140660476352256]: Finished basic analysis of 'metadata_item': 312193
2020-06-18 03:31:20,741 - INFO - PLEX [140660476352256]: No duplicate 'media_items' found with 'metadata_item_id': '10376'
2020-06-18 03:31:20,741 - INFO - PLEX [140660476352256]: Match validated for 'FBI' (com.plexapp.agents.thetvdb://350071?lang=en).
2020-06-18 03:39:58,561 - INFO - AUTOSCAN [140343739950912]:

Screenshots

Logs
Link to debug or trace log files.

You can enable debug mode by adding --loglevel=DEBUG to the server command (e.g. systemd).

If this is a Google Drive monitoring issue, enable SHOW_CACHE_LOGS for detailed logs.

System Information

  • Plex Autoscan Version: latest
  • Operating System: Ubuntu Server 18.04 LTS

Additional context
{
"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/Media/Movies/",
"My Drive/Media/TV/",
"My Drive/Media/4K/"
],
"MIME_TYPES": true,
"MIME_TYPES_LIST": [
"video"
]
},
"CLIENT_ID": "",
"CLIENT_SECRET": "",
"ENABLED": false,
"POLL_INTERVAL": 120,
"SHOW_CACHE_LOGS": true,
"TEAMDRIVE": false,
"TEAMDRIVES": []
},
"PLEX_ANALYZE_DIRECTORY": true,
"PLEX_ANALYZE_TYPE": "basic",
"PLEX_CHECK_BEFORE_SCAN": false,
"PLEX_DATABASE_PATH": "/opt/appdata/plex/database/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": true,
"PLEX_FIX_MISMATCHED_LANG": "en",
"PLEX_LD_LIBRARY_PATH": "/usr/lib/plexmediaserver/lib",
"PLEX_LOCAL_URL": "http://plex.domain.com::443",
"PLEX_SCANNER": "/usr/lib/plexmediaserver/Plex\ Media\ Scanner",
"PLEX_SUPPORT_DIR": "/var/lib/plexmediaserver/Library/Application\ Support",
"PLEX_TOKEN": "-------------",
"PLEX_USER": "plex",
"PLEX_WAIT_FOR_EXTERNAL_SCANNERS": true,
"PLEX_ANALYZE_TYPE": "basic",
"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": 60,
"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": "-------------------",
"SERVER_PATH_MAPPINGS": {
"/mnt/unionfs/": [
"/home/user/media/fused/"
]
},
"SERVER_PORT": 3467,
"SERVER_SCAN_DELAY": 180,
"SERVER_SCAN_FOLDER_ON_FILE_EXISTS_EXHAUSTION": false,
"SERVER_SCAN_PRIORITIES": {
"0": [
"/Movies/"
],
"1": [
"/TV/"
],
"2": [
"/Music/"
]
},
"SERVER_USE_SQLITE": true,
"USE_DOCKER": true,
"USE_SUDO": true
}

@RedBull01 RedBull01 added the Bug label Jun 19, 2020
@bad1dea
Copy link

bad1dea commented Nov 12, 2020

I'm not to sure this is a BUG,

Why are you using SUDO with Docker?- How is your Plex Docker compose/command line?

/config/Library/Logs < what is the permissions on this folder?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants