Errors in all agents when opening URL 'http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes'

Server Version#: 1.39.1.2763-300bb607

All my agent plugins are getting an error when trying to access the resouceHashes.

from com.plexapp.agents.imdb.log:
2022-01-23 16:38:27,429 (7eff6f8cf848) : DEBUG (networking:143) - Requesting ‘http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes
2022-01-23 16:38:27,436 (7eff6f8cf848) : ERROR (networking:196) - Error opening URL ‘http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes
2022-01-23 16:38:27,438 (7eff6f8cf848) : CRITICAL (runtime:1299) - Exception getting hosted resource hashes (most recent call last):
File “/usr/lib/plexmediaserver/Resources/Plug-ins-f11334058/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 “/usr/lib/plexmediaserver/Resources/Plug-ins-f11334058/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py”, line 242, in content
return self.str()
File “/usr/lib/plexmediaserver/Resources/Plug-ins-f11334058/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py”, line 220, in str
self.load()
File “/usr/lib/plexmediaserver/Resources/Plug-ins-f11334058/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py”, line 158, in load
f = self._opener.open(req, timeout=self._timeout)
File “/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py”, line 435, in open
response = meth(req, response)
File “/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py”, line 548, in http_response
‘http’, request, response, code, msg, hdrs)
File “/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py”, line 473, in error
return self._call_chain(*args)
File “/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py”, line 407, in _call_chain
result = func(*args)
File “/usr/lib/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

From com.plexapp.agents.localmedia.log:
2022-01-23 18:07:11,324 (7fd6b1d80848) : DEBUG (networking:143) - Requesting ‘http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes
2022-01-23 18:07:11,330 (7fd6b1d80848) : ERROR (networking:196) - Error opening URL ‘http://127.0.0.1:32400/:/plugins/com.plexapp.system/resourceHashes
2022-01-23 18:07:11,331 (7fd6b1d80848) : CRITICAL (runtime:1299) - Exception getting hosted resource hashes (most recent call last):
File “/usr/lib/plexmediaserver/Resources/Plug-ins-f11334058/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 “/usr/lib/plexmediaserver/Resources/Plug-ins-f11334058/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py”, line 242, in content
return self.str()
File “/usr/lib/plexmediaserver/Resources/Plug-ins-f11334058/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py”, line 220, in str
self.load()
File “/usr/lib/plexmediaserver/Resources/Plug-ins-f11334058/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py”, line 158, in load
f = self._opener.open(req, timeout=self._timeout)
File “/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py”, line 435, in open
response = meth(req, response)
File “/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py”, line 548, in http_response
‘http’, request, response, code, msg, hdrs)
File “/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py”, line 473, in error
return self._call_chain(*args)
File “/usr/lib/plexmediaserver/Resources/Python/python27.zip/urllib2.py”, line 407, in _call_chain
result = func(*args)
File “/usr/lib/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

Did a recent update break the plugin infrastructure?

What problem are you actually having though?

Well, #1, exceptions create inefficiency and should be fixed. Clearly something is wrong.

And after every error, it appears that it was expecting to be able to talk to a daemon and it’s having to load the services in a thread. Every. Time.

tv.plex.agents.series.log-2022-01-23 20:01:44,605 (7f8704825b38) : DEBUG (services:265) - Plug-in is not daemonized - loading services from system
tv.plex.agents.series.log-2022-01-23 20:01:44,605 (7f8707cf0848) : DEBUG (runtime:1117) - Created a thread named ‘load_all_services’

If we’re just not going to have a daemon and this is OK, then at least send back something that will cleanly let the plugin know. Making it 404 and hitting an exception is ugly.

But I guess most important - This isn’t a problem? You’re expecting this?

I would like to know if it’s breaking something critical so that any tasks can get prioritised accordingly.

Thanks for bringing it to our attention, I will file an issue.

Great, Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.