Plex Movie / Series agent always returning "No matches found."

Server Version#: 1.40.5.8854
Player Version#: N/A

Hi everyone,

Facing a very weird issue which started on the 21st. Prior to this I had zero issues with movies matching automatically. My directory structure is:

{Movie CleanTitle} ({Release Year}) {imdb-{ImdbId}}

Tried downgrading and switching to the :plexpass Docker image but nothing seems to help.

I’ve tried several restarts but nothing seems to work out. The server is running on a dedicated Linux server on a cloud provider with a VPN in front of Plex. I haven’t had any issues with this setup for the last 2 years, they only started on the 21st.

Even shows / movies that were previously matched correctly turn up “No matches found.” now. It returns that instantly, without taking a while to search.

Is there a curl call I could maybe try from the Plex container to verify if the requests are going through?

I’ve noticed this stack trace in all my plug-in logs:

2024-08-23 05:57:21,525 (7f3b1a55e808) :  CRITICAL (runtime:1299) - Exception getting hosted resource hashes (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-1bd569c5f/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-1bd569c5f/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 243, in content
    return self.__str__()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-1bd569c5f/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 221, in __str__
    self.load()
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-1bd569c5f/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/components/networking.py", line 159, 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

Please let me know if the whole server logs would help!

Always, its quite rare for a log except to contain the needed data.

Here you go:

From what I can see, nearly every agent log has the resourceHash exception

You are having network/dns issues WARN - [HttpClient/HCl#1] HTTP error requesting GET https://plex.tv/api/codecs/dca_decoder?build=linux-x86_64-standard&deviceId=6e5a4634-e661-49cc-b64f-243ad429bf92&oldestPreviousVersion=1%2E40%2E2%2E8395-c67dce28e&version=f89d5b0-6badbfebc74a8242a0378054 (6, Couldn't resolve host name) (Could not resolve host: plex.tv)

That’s incredibly weird, I ran curl on the same URL inside the Plex container and it worked just fine:

root@plex-6689968d9c-d5jwm:/# curl -i 'https://plex.tv/api/codecs/dca_decoder?build=linux-x86_64-standard&deviceId=6e5a4634-e661-49cc-b64f-243ad429bf92&oldestPreviousVersion=1%2E40%2E2%2E8395-c67dce28e&version=f89d5b0-6badbfebc74a8242a0378054'
HTTP/2 200 
cache-control: no-cache
content-type: application/xml; charset=utf-8
date: Sat, 24 Aug 2024 03:31:32 GMT
etag: W/"67193928f7e25759783f54a621c451be"
referrer-policy: origin-when-cross-origin
strict-transport-security: max-age=31536000; includeSubDomains; preload
vary: Origin
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-request-id: 3b645975-cde1-4072-ad94-a3f93cc85519
x-runtime: 0.026391
x-xss-protection: 1; mode=block

<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer friendlyName="myPlex" identifier="com.plexapp.plugins.myplex" title="Codec Downloads" codec="dca_decoder" version="f89d5b0-6badbfebc74a8242a0378054" size="1">
  <Codec url="https://downloads.plex.tv/codecs/f89d5b0-6badbfebc74a8242a0378054/linux-x86_64-standard/libdca_decoder.so" fileSha="bf0f12697f2a2478efb94a9fd38eb09429eefe93" fileSha256="035f9b9198d9af35ae79fb1f8bf2951a0214cc652c77b8f6322e98b2d3f6943a" fileName="libdca_decoder.so" build="linux-x86_64-standard"/>
</MediaContainer>

You also had verbose logging on, You can stop plex, clear the log folder, start plex, re-create the issue and post a new copy of the logs.

Got it, here’s the new logs:

I dont know docker, but its definitely a network issue:
Aug 24, 2024 03:37:29.364 [140572180278072] DEBUG - [Req#10/HCl#e] HTTP requesting GET http://127.0.0.1:39563/:/plugins/com.plexapp.system/resourceHashes

Aug 24, 2024 03:37:29.459 [140572233374520] DEBUG - [HttpClient/HCl#e] HTTP/1.1 (0.1s) 404 response from GET http://127.0.0.1:39563/:/plugins/com.plexapp.system/resourceHashes

If I start tailing the logs, as soon as I click on Fix Match and then search I see these lines:

Aug 24, 2024 03:52:40.532 [140572083301176] DEBUG - Request: [10.42.0.130:43014 (Subnet)] GET /library/metadata/7473/matches?manual=1&title=Inside%20Out%202&agent=tv.plex.agents.movie&year=2024&language=en-US (14 live) #25dc GZIP Signed-in Token (obviyus) (MacBook-Pro.local)
Aug 24, 2024 03:52:40.541 [140572083301176] DEBUG - [Req#25dc] It took 0.000000 ms to retrieve 108 items.
Aug 24, 2024 03:52:40.544 [140572252826424] DEBUG - Completed: [10.42.0.130:43014] 200 GET /library/metadata/7473/matches?manual=1&title=Inside%20Out%202&agent=tv.plex.agents.movie&year=2024&language=en-US (14 live) #25dc GZIP 12ms 595 bytes (pipelined: 1)

It seems to execute the request correctly but there is nothing in the response. This is the case for every single piece of media in my library, even the ones that were previously automatically identified correctly.

Hmm, if I try to recreate that request:

root@plex-698dc65d4f-7zztd:~# curl -i http://127.0.0.1:39563/:/plugins/com.plexapp.system/resourceHashes
HTTP/1.1 404 Not Found
Content-Length: 0

It’s definitely hitting whatever is running on :39563 but always responding with a 404

404 = NOT FOUND. There’s nothing there at that hash.

Ah right, of course. Just thought maybe it was the issue because of the related stack trace in all the agent logs

Can you run PMS on the host natively ?

I could try. I’m hosting the server on Hetzner, do you think that could be the problem? I’ve been using a VPN within Docker so it hasn’t caused any issues so far.

ALL STOP!

Now it’s clear what’s happening.

Hetzner is blocked due to abuse.

All requests from Hetzner servers will return 404 or other “failure” reply.

Ah understood. I’ll find a different provider in that case. Thank you for your help @ChuckPa and @dbirch

1 Like

If I may also recommend.

With your new provider – Use the native package.

Wrapping PMS in docker on Linux is just a layer of complication you do not need on a dedicated host

1 Like

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