Closed remygrandin closed 3 years ago
It seems the rights to write in this folder are lacking: '/data/user/0/com.plexapp.mediaserver.smb/Plex Media Server/Logs/Plex Media Scanner (custom ASS).log'... You do not have a standard plex platform, so I do not know if you can edit rights OR give me a path with write rights to solve the issue...
Is there an option to not output log at all or to output them into the main scanner log directly ?
What is weider is that this folder pointed by the stacktrace don't correspond to one I can easily see.
In the plex server android app it allow me to chose between 2 storage location. This give me for exemple for the logs either :
(I've tried bothe with no luck, exact sasme error)
I've looked but my file browser don't show me a /data on the FS root and I don't see a folder Resources in the com.plexapp.mediaserver.smb I have in the data directory
I suspect /data/user/0/com.plexapp.mediaserver.smb/ to be either a fake path to the plex apk files which would be read only or to be some kind of layered FS with both the apk file and any saved extra file, in wich case it would definitly be a permission issue.
I will try to fins an android tv compatible terminal app to see if I can chmod the log folder.
the folder seen in the error message looks off but cannot tell if a real folder or not... I cannot change much, apart giving it a known folder with the correct rights if that solves ('/storage/emulated/0/Plex Media Server/Logs' ?)
https://github.com/ZeroQI/Absolute-Series-Scanner/blob/master/Scanners/Series/Absolute%20Series%20Scanner.py line 165 replace with the below (do a backup beforehands) PLEX_ROOT = '/storage/emulated/0/Plex Media Server/Logs'
if that works i can code a workaround... Otherwise, giving write rights to the folder works normally...
Ok, so weird thing here, I don't know why put the plex server was not willing to use the updated script I made with your suggested modification. Even weirder, it was telling me the scanner was stil thenre even if I removed the file completly (with a full shield reboot between each try)...
In the end I resetted the whole plex and added the "patched" version diretly and low and behold, it works !
Now I have to try to update it with PLEX_ROOT = '/storage/emulated/0/Plex Media Server'
(without the log at the end, because it created a log folder in the log folder ..p :p, not a major probleme for sure but I would rather try to fix it now than later)
I still have to find why this andoird version has a plugin cache of some sort and how to force it to refresh.
Anyway this fix is the right thing to do on this plateform.
https://github.com/ZeroQI/Absolute-Series-Scanner/blob/master/Scanners/Series/Absolute%20Series%20Scanner.py lines 165-169
PLEX_ROOT = os.path.abspath(os.path.join(os.path.dirname(inspect.getfile(inspect.currentframe())), "..", ".."))
if not os.path.isdir(PLEX_ROOT):
path_location = { 'Windows': '%LOCALAPPDATA%\\Plex Media Server',
'MacOSX': '$HOME/Library/Application Support/Plex Media Server',
'Linux': '$PLEX_HOME/Library/Application Support/Plex Media Server',
'Android': '/storage/emulated/0/Plex Media Server' }
This is the patch i should have advised to run, but based on your feedback on the previous one, it solves the issue Added to master the fix
Platform
Operating system and version: Shield Andoid TV, Android TV Ver 8.2.1 Plex version: 4.43.4
Expected Behavior
I expect the plugin to scan my media folder.
Current Behavior
The scan return no media The scanner seem to crash according to the log (Plex Media Scanner.log) :
Steps to Reproduce
Additional information
It's my first plex install on my shield TV