Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin not working on Unraid #19

Open
mukalaaa opened this issue May 20, 2020 · 10 comments
Open

plugin not working on Unraid #19

mukalaaa opened this issue May 20, 2020 · 10 comments

Comments

@mukalaaa
Copy link

Hello @ZeroQI

Can you please have a look at the log file and tell me why is it not working on Unraid. I tried it on windows and it worked but when I tried it on Unraid it did not.

I appreciate the help
com.plexapp.agents.lambda.log.1.zip

@ZeroQI
Copy link
Owner

ZeroQI commented May 20, 2020

The agent is OS agnostic, it is not OS specific normally...
I can see a crash:

2020-05-20 11:00:04,488 (7f7473fff700) :  INFO (__init__:311) - Libraries: 
2020-05-20 11:00:04,489 (7f7473fff700) :  INFO (__init__:314) - [*] id:  1, type:  movie, library: XXX                     , path: /media/adult_plex
2020-05-20 11:00:04,491 (7f7473fff700) :  CRITICAL (agentkit:1095) - Exception in the update function of agent named 'Lambda', called with guid 'com.plexapp.agents.phoenixadult://20327|5?lang=en' (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-ef515a800/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1093, in _update
    agent.update(obj, media, lang, **kwargs)
  File "/config/Plex Media Server/Plug-ins/Lambda.bundle/Contents/Code/__init__.py", line 703, in update
    def update (self, metadata, media, lang, force ):  Update(metadata, media, lang, force,  'movie')
  File "/config/Plex Media Server/Plug-ins/Lambda.bundle/Contents/Code/__init__.py", line 324, in Update
    subfolder_count     = len([file for file in os.listdir(series_root_folder) if os.path.isdir(os.path.join(series_root_folder, file))] or [])
OSError: [Errno 2] No such file or directory: '/media/adult_plex/naughtyamerica'

It says this folder doesn't exist and crash...
Not sure I can fix easily
What is the concerned complete filename ?

@mukalaaa
Copy link
Author

Ok I think it is working now after many reboots
but i noticed a very weird behavior
some it works on some clips very well, meaning it saves nfo file, poster and fan art
other files, it only saves poster and fan art without nfo files...i tried refreshing the metadata for those clips but the nfo file never get saved!!

Please have a look at the screen shot and the log file

to make it easier for you to go over the log file...search for "FirstAnalQuest 20 04 04 Kristina Lust" this is the one i was refreshing its metadata hoping that it will generate nfo file and will save it
com.plexapp.agents.lambda.log.zip
isuue

i think the log file says it did create nfo file but it was never saved !

@ZeroQI
Copy link
Owner

ZeroQI commented May 21, 2020

2020-05-21 22:31:49,360 (7f07117fa700) :  CRITICAL (storage:89) - Exception writing to /media/adult_plex/_Collections/First Anal Quest/collection.nfo (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-181d9145d/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/storage.py", line 81, in save
    f = open(tempfile, mode)
IOError: [Errno 2] No such file or directory: '/media/adult_plex/_Collections/First Anal Quest/._collection.nfo'

2020-05-21 22:31:49,363 (7f07117fa700) :  CRITICAL (agentkit:1095) - Exception in the update function of agent named 'Lambda', called with guid 'com.plexapp.agents.phoenixadult://http:__www.firstanalquest.com_videos_skinny-teen-girl-lottie-magne-tries-gaping-anal-fuck-583_|685|2020-03-22?lang=en' (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-181d9145d/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1093, in _update
    agent.update(obj, media, lang, **kwargs)
  File "/config/Plex Media Server/Plug-ins/Lambda.bundle/Contents/Code/__init__.py", line 703, in update
    def update (self, metadata, media, lang, force ):  Update(metadata, media, lang, force,  'movie')
  File "/config/Plex Media Server/Plug-ins/Lambda.bundle/Contents/Code/__init__.py", line 688, in Update
    else:                    Core.storage.save(NFOs[nfo]['path' ], nfo_string_xml);    Log.Info('[X] {:<12} path: "{}"'.format(nfo, NFOs[nfo]['path']))  #NFOs[nfo]['xml'].write(NFOs[nfo]['path' ])
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-181d9145d/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/storage.py", line 81, in save
    f = open(tempfile, mode)
IOError: [Errno 2] No such file or directory: '/media/adult_plex/_Collections/First Anal Quest/._collection.nfo'

Try to disable collections in the settings, the collection nfo crash the agent, maybe because the filename starts with a dot

@mukalaaa
Copy link
Author

none of my files start with a dot !!

I disabled collections as you suggested and i can happily report, it is working now !!
But, does that mean if I load the metadata up...those clips wont be part of the First Anal Quest collection ?!
or is that saved in the info file itself and disabling the collections wont change anything?

@ZeroQI
Copy link
Owner

ZeroQI commented May 21, 2020

This one does: '/media/adult_plex/_Collections/First Anal Quest/._collection.nfo'
Yes you are correct if will not create collections, but it is probably not doing that if it crashes anyway...

@mukalaaa
Copy link
Author

This one does: '/media/adult_plex/_Collections/First Anal Quest/._collection.nfo'
Yes you are correct if will not create collections, but it is probably not doing that if it crashes anyway...

I dont have this file and folder in my library, I even turned on show hidden files and still
I dont have this folder _Collections
I dont have this file ._collection.nfo

have a look at the attached picture... you can see the path for my library at the top and the folders also!!

issue

@ZeroQI
Copy link
Owner

ZeroQI commented May 21, 2020

It crashed while creating it so you don't have it... question is why does it give this (rights/file system corruption) error
IOError: [Errno 2] No such file or directory: '/media/adult_plex/_Collections/First Anal Quest/._collection.nfo'

@mukalaaa
Copy link
Author

I really dont know... I have the right permissions for all the library and you can tell because now it does save nfo files and posters, no problem!

collections are really important and i cannot figure out why it does that

Do you recommend that i create the folder myself and see if it works? or do you think thats a bad idea and lambda should handle this automatically?

@ZeroQI
Copy link
Owner

ZeroQI commented May 21, 2020

It should handle automatically, but if you create manually and it works then, that's very valuable information...

@ZeroQI
Copy link
Owner

ZeroQI commented Jan 9, 2021

Any update?

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

No branches or pull requests

2 participants