ZeroQI / Hama.bundle

Plex HTTP Anidb Metadata Agent (HAMA)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Agent not showing under Shows

oobedoob opened this issue · comments

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

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

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?

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?

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

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?

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

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?

@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

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

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.

commented

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.

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.

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

@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...

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

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.

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

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

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?

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

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

I also had the same issue and this fixed it!

Which of the 3 files fixed it?