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

Agent not showing under Shows #519

Open
oobedoob opened this issue Jun 8, 2022 · 23 comments
Open

Agent not showing under Shows #519

oobedoob opened this issue Jun 8, 2022 · 23 comments

Comments

@oobedoob
Copy link

oobedoob commented Jun 8, 2022

I've followed the "Installing Hama and ASS on Ubuntu" instructions (currently running Ubuntu 20.04). Read the readme and all the other info, but I cannot get the agent to show up under Shows, but shows up under Movies. There's now logs showing for ASS and the latest Plex Media Scanner logs are from April 5 (over 2 months old). Not sure if I missed a step or if there's something else I need to do to get the agent to show up.

image
image

@ZeroQI ZeroQI transferred this issue from ZeroQI/Absolute-Series-Scanner Jun 8, 2022
@animamachinae
Copy link

Just here to bump this. I'm having the same issue on Synology 7. Attached is a zip of my log files running it on a brand new database.

Logs.zip

@ZeroQI
Copy link
Owner

ZeroQI commented Aug 10, 2022

Movies
Movies and series agent use the exact same files...
May be linked to agent data folders rights but cannot see any difference between the two.

Can you install another series agent to see if it works?

@Banthaf0dder
Copy link

I am having the same issue. I do have several other third party series agents installed.

image

image

I'm running Windows. What logs might you need?

@Ishuli
Copy link

Ishuli commented Aug 28, 2022

Having the same issue. HamaMovies appears fine, series/show agent missing entirely.

@GregorHse
Copy link

Got the same issue. HAMA Movies shows up, but HAMA Series/Hama TV does not. The hama.bundle folder and its subfolders/fiels are owned my plexmediaserver.
Was somebody able to fix it in their install so far?

@ZeroQI
Copy link
Owner

ZeroQI commented Nov 2, 2022

From the Readme troubleshooting section:
[...]/Plex Media Server/Logs/PMS Plugin Logs/com.plexapp.system.log (show why the agent cannot launch)

@ispaure
Copy link

ispaure commented Dec 28, 2022

I have the same issue here, first time using Hama. I tried to revert to older versions of the bundle (thinking maybe the last one is broken), but I have the same issue on older commits. Issue on Windows and macOS over here, seems widespread. Could be PLEX changed something on their end, perhaps?

@ZeroQI
Copy link
Owner

ZeroQI commented Dec 29, 2022

@animamachinae logs not conclusive, show Plex error BEFORE hama part which bring no errors....

Logs\PMS Plugin Logs\com.plexapp.system.log

2022-08-10 01:06:51,950 (7f9301b13b38) :  ERROR (networking:196) - Error opening URL 'http://resources-cdn.plexapp.com/hashes.json'
2022-08-10 01:06:51,953 (7f9301b13b38) :  CRITICAL (runtime:1299) - Exception getting hosted resource hashes (most recent call last):
  File "/volume2/@appstore/PlexMediaServer/Resources/Plug-ins-97678ded3/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 1291, in get_resource_hashes
    json = self._core.networking.http_request("http://resources-cdn.plexapp.com/hashes.json", timeout=5).content
  File "/volume2/@appstore/PlexMediaServer/Resources/Plug-ins-97678ded3/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 242, in content
    return self.__str__()
  File "/volume2/@appstore/PlexMediaServer/Resources/Plug-ins-97678ded3/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 220, in __str__
    self.load()
  File "/volume2/@appstore/PlexMediaServer/Resources/Plug-ins-97678ded3/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 158, in load
    f = self._opener.open(req, timeout=self._timeout)
  File "/volume2/@appstore/PlexMediaServer/Resources/Python/python27.zip/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/volume2/@appstore/PlexMediaServer/Resources/Python/python27.zip/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/volume2/@appstore/PlexMediaServer/Resources/Python/python27.zip/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/volume2/@appstore/PlexMediaServer/Resources/Python/python27.zip/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/volume2/@appstore/PlexMediaServer/Resources/Python/python27.zip/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 403: Forbidden

Logs\PMS Plugin Logs\com.plexapp.system.1 logs

2022-08-10 01:06:51,966 (7f95113f3808) :  CRITICAL (runtime:1299) - Exception getting hosted resource hashes (most recent call last):
  File "/volume2/@appstore/PlexMediaServer/Resources/Plug-ins-97678ded3/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 1293, in get_resource_hashes
    json = self._core.networking.http_request("http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes", timeout=10).content
  File "/volume2/@appstore/PlexMediaServer/Resources/Plug-ins-97678ded3/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 242, in content
    return self.__str__()
  File "/volume2/@appstore/PlexMediaServer/Resources/Plug-ins-97678ded3/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 220, in __str__
    self.load()
  File "/volume2/@appstore/PlexMediaServer/Resources/Plug-ins-97678ded3/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 158, in load
    f = self._opener.open(req, timeout=self._timeout)
  File "/volume2/@appstore/PlexMediaServer/Resources/Python/python27.zip/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/volume2/@appstore/PlexMediaServer/Resources/Python/python27.zip/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/volume2/@appstore/PlexMediaServer/Resources/Python/python27.zip/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/volume2/@appstore/PlexMediaServer/Resources/Python/python27.zip/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/volume2/@appstore/PlexMediaServer/Resources/Python/python27.zip/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found

Logs\PMS Plugin Logs\com.plexapp.agents.hama.log

2022-08-10 01:07:12,947 (7f13281b7808) :  DEBUG (networking:143) - Requesting 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2022-08-10 01:07:12,957 (7f13281b7808) :  ERROR (networking:196) - Error opening URL 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'
2022-08-10 01:07:12,960 (7f13281b7808) :  CRITICAL (runtime:1299) - Exception getting hosted resource hashes (most recent call last):
  File "/volume2/@appstore/PlexMediaServer/Resources/Plug-ins-97678ded3/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/runtime.py", line 1293, in get_resource_hashes
    json = self._core.networking.http_request("http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes", timeout=10).content
  File "/volume2/@appstore/PlexMediaServer/Resources/Plug-ins-97678ded3/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 242, in content
    return self.__str__()
  File "/volume2/@appstore/PlexMediaServer/Resources/Plug-ins-97678ded3/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 220, in __str__
    self.load()
  File "/volume2/@appstore/PlexMediaServer/Resources/Plug-ins-97678ded3/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 158, in load
    f = self._opener.open(req, timeout=self._timeout)
  File "/volume2/@appstore/PlexMediaServer/Resources/Python/python27.zip/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/volume2/@appstore/PlexMediaServer/Resources/Python/python27.zip/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/volume2/@appstore/PlexMediaServer/Resources/Python/python27.zip/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/volume2/@appstore/PlexMediaServer/Resources/Python/python27.zip/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/volume2/@appstore/PlexMediaServer/Resources/Python/python27.zip/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found

Logs continue afterwards, look good and functional to me...
I did code movies and series agent the same

Could it be due to some libraries import? if the agent crashed, i wouldn't get logs afterwards....
Seem like a Plex issue to me but cannot prove it...
I can look at others logs:

  • Logs\PMS Plugin Logs\com.plexapp.agents.hama.log
  • Logs\PMS Plugin Logs\com.plexapp.system.log

@ZeroQI
Copy link
Owner

ZeroQI commented Jan 16, 2023

Can you update plex, hama, reset agent settings, then configure again and recreate issue and attach logs please?

@laurilarjo
Copy link

laurilarjo commented Jan 21, 2023

I can confirm this happens on current master.
Actually for me it didn't load the agents on Shows or Movies.

But then I download the zip from last August and tried installing the bundle again, this time it worked (git hash: b2a0ac4b57c83d6b6f6c174e08e1cc6d605d2a2a)

My plex is running on Raspberry PI and docker, using linuxserver/plex.

@aletson
Copy link

aletson commented Feb 1, 2023

I was also unable to get the HAMA plugin to load at all - couldn't even find any related logs. @laurilarjo's suggestion of going back to b2a0ac4 worked.

@ZeroQI
Copy link
Owner

ZeroQI commented Feb 1, 2023

Very important confirmation/information.

Here are the files that changed:

If somebody can confirm the file that in the new version that cause it to break by replacing the filefrom the august versions one by one, i can isolate with history the updates involved and suggest a fix, and after test import to the master.

@cycostv
Copy link

cycostv commented Mar 14, 2023

Put only the AniList.py from the august version in and restarted plex and the problem was fixed.

@ZeroQI
Copy link
Owner

ZeroQI commented Mar 14, 2023

@beeequeue it seems the last few updates break the agent sadly but not for everybody. To solve we need to know one plex version and os impacted preferably on windows and reproduce to know once the issue stops appearing by going back and forth with the modifications...

@beeequeue
Copy link
Contributor

Not sure what I can do. From my API analytics it seems like my changes are live and working as intended

@maru-sama
Copy link

I can confirm that just replacing AniList.py with the version from August fixes the issue for me. I am using the official plex docker image.

@ZeroQI
Copy link
Owner

ZeroQI commented Apr 5, 2023

Would it be possible to narrow down which of the AniList.py change caused the issue to narrow down the code? With that I can review the code to maybe identify the culprit, but not everybody is impacted seemingly so this would greatly help

@beeequeue
Copy link
Contributor

It's working for me in my instance running the official docker image as well, so I can't debug it 😕

@maru-sama
Copy link

I did a quick test and replaced the the py file again, with the latest version and the agent still shows up in the shows. Is it possible that this problem only happens if you have a setup from scratch?

@beeequeue
Copy link
Contributor

Maybe something with a null Dict? I don't know much about python really

@FloydianSound
Copy link

Very important confirmation/information.

Here are the files that changed:

If somebody can confirm the file that in the new version that cause it to break by replacing the filefrom the august versions one by one, i can isolate with history the updates involved and suggest a fix, and after test import to the master.


Replacing those 3 files from the previoud commit as suggested above did the trick for me.

fresh install (2024-01-04) of PMS 1.32.8.7639 + ASS + Hama on Synology DSM7

image

my previous fresh install was in December 2022 on windows, using PlexService and Tautulli, and was fully functional at the time.
image

hope this helps

@enscott89
Copy link

I also had the same issue and this fixed it!

@ZeroQI
Copy link
Owner

ZeroQI commented Apr 14, 2024

Which of the 3 files fixed it?

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