PGMA-Modernized: Issues with RuntimeWarning and Agents not working

Today I’ve noticed a very weird issue with the agent. I’m using Plex inside a docker container and since the first installation today, I’ve started receiving these errors in the log of the container:

/config/Library/Application Support/Plex Media Server/Plug-ins/WayBig.bundle/Contents/Libraries/Shared/unidecode/__init__.py:64: RuntimeWarning: Argument <type 'str'> is not an unicode object. Passing an encoded string will likely have unexpected results.

and again

/config/Library/Application Support/Plex Media Server/Plug-ins/IAFD.bundle/Contents/Libraries/Shared/urllib3/connectionpool.py:986: InsecureRequestWarning: Unverified HTTPS request is being made to host 'www.iafd.com'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

I saw your installation guide is written to be done on windows but, I tried anyway on docker.

can’t really figure it our what’s it’s going on here.

In the agent log you can find these messages:

2021-04-22 11:22:19,132 (7feade7fc700) : INFO (sandbox:19) - WayBig - GENF :: Title Comparison [Failed] Site: "AJ Blackwood Fucks Asher (a.k.a. Ricky Donovan)" File: Full/Short Title - "AJ Blackwood Fucks Asher" / "AJ Blackwood Fucks Asher" 2021-04-22 11:22:19,132 (7feade7fc700) : ERROR (sandbox:19) - WayBig - SEARCH:: Error getting Site Title: Title Match Failure! 2021-04-22 11:22:19,133 (7feade7fc700) : INFO (sandbox:19) - WayBig - ------------------------------------------------------------------------

In more details:

2021-04-22 11:33:08,824 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: Site Title AJ Blackwood Fucks Asher (a.k.a. Ricky Donovan) 2021-04-22 11:33:08,825 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: Title Comparison [Failed] Site: "AJ Blackwood Fucks Asher (a.k.a. Ricky Donovan)" File: Full/Short Title - "AJ Blackwood Fucks Asher" / "AJ Blackwood Fucks Asher" 2021-04-22 11:33:08,825 (7f9447fff700) : ERROR (sandbox:19) - WayBig - SEARCH:: Error getting Site Title: Title Match Failure!

It’s clear that there is something going on with the agent, because the website respond correctly and the file name match exactly what the website want, so I don’t really know where to bang my head anymore.

Full Log from the Agent:

2021-04-22 11:33:08,791 (7f9447fff700) : INFO (sandbox:19) - WayBig - SEARCH:: Preferences: 2021-04-22 11:33:08,792 (7f9447fff700) : INFO (sandbox:19) - WayBig - SEARCH:: > Cast Legend Before Summary: False 2021-04-22 11:33:08,792 (7f9447fff700) : INFO (sandbox:19) - WayBig - SEARCH:: > Collection Gathering 2021-04-22 11:33:08,793 (7f9447fff700) : INFO (sandbox:19) - WayBig - SEARCH:: > Cast : False 2021-04-22 11:33:08,793 (7f9447fff700) : INFO (sandbox:19) - WayBig - SEARCH:: > Director(s) : False 2021-04-22 11:33:08,793 (7f9447fff700) : INFO (sandbox:19) - WayBig - SEARCH:: > Studio : True 2021-04-22 11:33:08,794 (7f9447fff700) : INFO (sandbox:19) - WayBig - SEARCH:: > Film Title : True 2021-04-22 11:33:08,794 (7f9447fff700) : INFO (sandbox:19) - WayBig - SEARCH:: > Genres : True 2021-04-22 11:33:08,795 (7f9447fff700) : INFO (sandbox:19) - WayBig - SEARCH:: > Delay : 10 2021-04-22 11:33:08,795 (7f9447fff700) : INFO (sandbox:19) - WayBig - SEARCH:: > Language Detection : False 2021-04-22 11:33:08,795 (7f9447fff700) : INFO (sandbox:19) - WayBig - SEARCH:: > Library:Site Language : en:en 2021-04-22 11:33:08,796 (7f9447fff700) : INFO (sandbox:19) - WayBig - SEARCH:: Media Title : Sean Cody Aj Blackwood Fucks Asher 2021-04-22 11:33:08,796 (7f9447fff700) : INFO (sandbox:19) - WayBig - SEARCH:: File Name : (Sean Cody) - AJ Blackwood Fucks Asher 2021-04-22 11:33:08,797 (7f9447fff700) : INFO (sandbox:19) - WayBig - SEARCH:: File Folder : /xxx-library/scenes 2021-04-22 11:33:08,797 (7f9447fff700) : INFO (sandbox:19) - WayBig - ------------------------------------------------------------------------------ 2021-04-22 11:33:08,804 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: Film Dictionary Variables: 2021-04-22 11:33:08,804 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: Collection : ['Sean Cody'] 2021-04-22 11:33:08,805 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: CompareIAFDStudio : 2021-04-22 11:33:08,805 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: CompareStudio : seancody 2021-04-22 11:33:08,805 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: CompareTitle : ['aaabccdefhjkkloorssuw'] 2021-04-22 11:33:08,806 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: Compilation : No 2021-04-22 11:33:08,806 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: FoundOnIAFD : No 2021-04-22 11:33:08,806 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: IAFDCompareTitle : ['aaabccdefhjkkloorssuw'] 2021-04-22 11:33:08,806 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: IAFDSearchTitle : AJ+Blackwood+Fucks+Asher 2021-04-22 11:33:08,807 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: IAFDShortTitle : AJ Blackwood Fucks Asher 2021-04-22 11:33:08,807 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: IAFDStudio : 2021-04-22 11:33:08,807 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: IAFDTitle : AJ Blackwood Fucks Asher 2021-04-22 11:33:08,807 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: SearchTitle : AJ Blackwood Fucks Asher 2021-04-22 11:33:08,808 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: Series : [] 2021-04-22 11:33:08,808 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: ShortTitle : AJ Blackwood Fucks Asher 2021-04-22 11:33:08,808 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: Studio : Sean Cody 2021-04-22 11:33:08,808 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: Title : AJ Blackwood Fucks Asher 2021-04-22 11:33:08,808 (7f9447fff700) : INFO (sandbox:19) - WayBig - ------------------------------------------------------------------------------ 2021-04-22 11:33:08,809 (7f9447fff700) : INFO (sandbox:19) - WayBig - AGNT :: Original Search Query : AJ Blackwood Fucks Asher 2021-04-22 11:33:08,809 (7f9447fff700) : INFO (sandbox:19) - WayBig - AGNT :: Search Query:: String has none of these (‘|’) 2021-04-22 11:33:08,810 (7f9447fff700) : INFO (sandbox:19) - WayBig - AGNT :: Search Query:: First word has none of these ('|"||“|”|‘|’) 2021-04-22 11:33:08,810 (7f9447fff700) : INFO (sandbox:19) - WayBig - AGNT :: Search Query:: First character has none of these ('|"||“|”|‘|’) 2021-04-22 11:33:08,810 (7f9447fff700) : INFO (sandbox:19) - WayBig - AGNT :: Search Query:: Split not attempted. String has none of these ('|"||“|”|‘|’) 2021-04-22 11:33:08,811 (7f9447fff700) : INFO (sandbox:19) - WayBig - AGNT :: Returned Search Query : aj+blackwood+fucks+asher 2021-04-22 11:33:08,811 (7f9447fff700) : INFO (sandbox:19) - WayBig - ------------------------------------------------------------------------------ 2021-04-22 11:33:08,811 (7f9447fff700) : INFO (sandbox:19) - WayBig - SEARCH:: Search Title: aj+blackwood+fucks+asher 2021-04-22 11:33:08,812 (7f9447fff700) : INFO (sandbox:19) - WayBig - SEARCH:: Search Title: aj+blackwood+fucks+asher 2021-04-22 11:33:08,812 (7f9447fff700) : INFO (sandbox:19) - WayBig - SEARCH:: Search Query: https://www.waybig.com/blog/index.php?s=aj+blackwood+fucks+asher 2021-04-22 11:33:08,813 (7f9447fff700) : DEBUG (networking:138) - Fetching ‘https://www.waybig.com/blog/index.php?s=aj+blackwood+fucks+asher’ from the HTTP cache 2021-04-22 11:33:08,823 (7f9447fff700) : INFO (sandbox:19) - WayBig - SEARCH:: No More Pages Found 2021-04-22 11:33:08,824 (7f9447fff700) : INFO (sandbox:19) - WayBig - SEARCH:: Result Page No: 1, Titles Found 1 2021-04-22 11:33:08,824 (7f9447fff700) : INFO (sandbox:19) - WayBig - ------------------------------------------------------------------------------ 2021-04-22 11:33:08,824 (7f9447fff700) : INFO (sandbox:19) - WayBig - SEARCH:: Site Entry: SeanCody: AJ Blackwood Fucks Asher (a.k.a. Ricky Donovan) 2021-04-22 11:33:08,824 (7f9447fff700) : INFO (sandbox:19) - WayBig - ------------------------------------------------------------------------------ 2021-04-22 11:33:08,824 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: Site Title AJ Blackwood Fucks Asher (a.k.a. Ricky Donovan) 2021-04-22 11:33:08,825 (7f9447fff700) : INFO (sandbox:19) - WayBig - GENF :: Title Comparison [Failed] Site: “AJ Blackwood Fucks Asher (a.k.a. Ricky Donovan)” File: Full/Short Title - “AJ Blackwood Fucks Asher” / “AJ Blackwood Fucks Asher” 2021-04-22 11:33:08,825 (7f9447fff700) : ERROR (sandbox:19) - WayBig - SEARCH:: Error getting Site Title: Title Match Failure! 2021-04-22 11:33:08,825 (7f9447fff700) : INFO (sandbox:19) - WayBig - ------------------------------------------------------------------------ 2021-04-22 11:33:08,826 (7f9447fff700) : DEBUG (runtime:88) - Sending packed state data (106 bytes) 2021-04-22 11:33:08,826 (7f9447fff700) : DEBUG (runtime:924) - Response: [200] str, 320 bytes 2021-04-22 11:33:08,829 (7f9447fff700) : DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.WayBig/messaging/function/X0FnZW50S2l0OkVyYXNlTWV0YWRhdGE_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMgpzNQpNb3ZpZXMxMAptZWRpYV90eXBlczQ4CmNvbS5wbGV4YXBwLmFnZW50cy5HYXlBZHVsdFNjZW5> 2021-04-22 11:33:08,830 (7f9447fff700) : DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.WayBig/messaging/function/X0FnZW50S2l0OkVyYXNlTWV0YWRhdGE_/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMgpzNQpNb3ZpZXMxMAptZWRpYV90eXBlczQ4CmNvbS5wbGV4YXBwLmFnZW50cy5HYXlBZHVsdFNjZW5> 2021-04-22 11:33:08,831 (7f9447fff700) : DEBUG (runtime:88) - Sending packed state data (106 bytes) 2021-04-22 11:33:08,831 (7f9447fff700) : DEBUG (runtime:924) - Response: [200] str, 16 bytes`

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 37 (10 by maintainers)

Commits related to this issue

Most upvoted comments

@crospa91 https://github.com/crospa91 - I am just about to send GEVI, Waybig and Fagalicious to Cody… They should be in the repository as soon as Cody tests them… I have been on call for the past 10 days and not had much time to work on them.

On Thu, 6 May 2021 at 23:12, Cody Berenson @.***> wrote:

@crospa91 https://github.com/crospa91 Hello. I’m sorry, my friend. I haven’t heard from Jason and am unaware of his timeline. Thanks for your patience.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/CodyBerenson/PGMA-Modernized/issues/93#issuecomment-833905921, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKI3AKKZOK6EFADK2FVDJMLTMMH5LANCNFSM43MHUUGA .

@crospa91 Hello. I’m sorry, my friend. I haven’t heard from Jason and am unaware of his timeline. Thanks for your patience.

Yes @CodyBerenson the issue with the runtime is gone

hold on - let me send it to you https://drive.google.com/file/d/1P81nPmqBZxWh0c7mBaC6Ty7WL9j61m9k/view?usp=sharing

here it is

On Wed, 28 Apr 2021 at 14:21, Mattia @.***> wrote:

for reference, I’m using the linuxserver.io Plex Image, and from their description python 2.7 is included inside the docker container.

If you have a way to share the modified version of the waybill agent it take me literally 3 second to test it out and give you a feedback if the workaround applied is working already!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/CodyBerenson/PGMA-Modernized/issues/93#issuecomment-828450329, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKI3AKNNLYCFY54ZW2TGTL3TLADVXANCNFSM43MHUUGA .

No problem at all!

Thanks!

On 28 Apr 2021, at 13:57, Cody Berenson @.***> wrote:

Hi @crospa91 https://github.com/crospa91 Super busy work schedule this morning, but will test it as soon as some time frees up.

Cheers

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/CodyBerenson/PGMA-Modernized/issues/93#issuecomment-828433170, or unsubscribe https://github.com/notifications/unsubscribe-auth/AILIJOLQBRUUNG6PWIN5QQLTLAA3RANCNFSM43MHUUGA.

Sure thing! If the issues are separate then no problem for me to test the fix for the issue with the agent.

I’ll drop you an email right now so you can tell me when you’re ready to let me test the new edited version of the agent!

@jph71 please consider working this “string characters to Unicode” separately from #89. The fix for #89 can be pushed to the repository and not get held up while while you then work directly with @crospa91

@crospa91 I’ll have no way of testing progress made against this issue so will you reach out directly to Jason at jp.hudson@gmail.com and the two of you can work offline? Once all is good, I’ll regression test the agents to check that nothing broke in the process.

This has to do with the issue that when you reconstitute a Json dump it converts string characters to Unicode. I have highlighted this before and it is going to be corrected soon - it happens in the scenes agents that sometimes have to parse the titles to get cast etc… I am working on Waybig tonight and will implement the fix in it, followed by the other scene agents and later the film agents.

Cheers

Jason

On Thu, 22 Apr 2021 at 12:43, Mattia @.***> wrote:

Hey Cody, I just based that because the guide clearly tell the user to click in the tray icon and select “Quit” from the Plex Media Server Icon, that of course not the case on Docker or linux, where no system tray icon is available.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/CodyBerenson/PGMA-Modernized/issues/93#issuecomment-824766639, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKI3AKN422HI3WWWPGDNU43TKADUTANCNFSM43MHUUGA .

Hi @mattia

Jason will respond and help troubleshoot the technical issues. However, I have a question. You specifically say: “I saw your installation guide is written to be done on windows but, I tried anyway on docker.” We thought we wrote the guide to be PMS platform agnostic (although we do speak to a file naming limitation in windows not allowing the use of a colon (😃…can you show me where the guide is written as you say? A fresh set of eyes may have discovered something that wasn’t intended.

Cheers.

On Thu, Apr 22, 2021 at 7:14 AM Mattia @.***> wrote:

Today I’ve noticed a very weird issue with the agent. I’m using Plex inside a docker container and since the first installation today, I’ve started receiving these errors in the log of the container:

/config/Library/Application Support/Plex Media Server/Plug-ins/WayBig.bundle/Contents/Libraries/Shared/unidecode/init.py:64: RuntimeWarning: Argument <type ‘str’> is not an unicode object. Passing an encoded string will likely have unexpected results.

and again

/config/Library/Application Support/Plex Media Server/Plug-ins/IAFD.bundle/Contents/Libraries/Shared/urllib3/connectionpool.py:986: InsecureRequestWarning: Unverified HTTPS request is being made to host ’ www.iafd.com’. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

I saw your installation guide is written to be done on windows but, I tried anyway on docker.

can’t really figure it our what’s it’s going on here.

the agent don’t write any logs at all either…

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/CodyBerenson/PGMA-Modernized/issues/93, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJUA4KINJKJ2R7MYLZNWIKDTKAAKXANCNFSM43MHUUGA .