Agents not working

I’m running 1.1.2.2680 on a FreeNAS box and recently any new files I add, movies or TV, don’t load any information. When I try to manually match the files no matter what DB I use to search against the results always show one line and it is empty. When I click on that line it renames the file to “Untitled”. This is happening for both TV and Movies. Language is English and all files are named properly and put in the correct folders. The agents were working up until a few days ago. I’ve tried moving the files out, updating/optimizing/emptying bundles/etc.

Here is an excerpt from the log file. It looks like there is a bug/issue with the agents themselves

Aug 29, 2016 22:26:59.688 [0x810356000] DEBUG - Matching 'Stranger Things' (ID 26124) with agent com.plexapp.agents.thetvdb Aug 29, 2016 22:26:59.688 [0x810353c00] ERROR - Error response for update: (). Aug 29, 2016 22:26:59.689 [0x810354000] DEBUG - Refreshing metadata for 'Suits' (agent: com.plexapp.agents.thetvdb) Aug 29, 2016 22:26:59.689 [0x810354000] DEBUG - Refreshing GUID: 'com.plexapp.agents.thetvdb://247808?lang=en' Aug 29, 2016 22:26:59.689 [0x810354000] DEBUG - HTTP requesting GET http://127.0.0.1:32400/system/agents/update?mediaType=2&force=1&guid=com%2Eplexapp%2Eagents%2Ethetvdb%3A%2F%2F247808%3Flang%3Den&id=278 Aug 29, 2016 22:26:59.689 [0x810352c00] DEBUG - HTTP 401 response from GET http://127.0.0.1:32400/system/agents/update?mediaType=2&force=1&guid=com%2Eplexapp%2Eagents%2Ethetvdb%3A%2F%2F276564%3Flang%3Den&id=7750 Aug 29, 2016 22:26:59.689 [0x810352c00] ERROR - Error response for update: (). Aug 29, 2016 22:26:59.690 [0x810354000] DEBUG - HTTP 401 response from GET http://127.0.0.1:32400/system/agents/update?mediaType=2&force=1&guid=com%2Eplexapp%2Eagents%2Ethetvdb%3A%2F%2F247808%3Flang%3Den&id=278 Aug 29, 2016 22:26:59.690 [0x810354000] ERROR - Error response for update: (). Aug 29, 2016 22:26:59.690 [0x8103f5000] DEBUG - HTTP 200 response from GET http://127.0.0.1:32400/:/metadata/notify/changeItemState?librarySectionID=1&metadataItemID=15792&metadataType=2&state=3&metadataState=queued Aug 29, 2016 22:26:59.690 [0x8103f5000] DEBUG - HTTP requesting GET http://127.0.0.1:32400/:/metadata/notify/changeItemState?librarySectionID=1&metadataItemID=25824&metadataType=2&state=3&metadataState=queued Aug 29, 2016 22:26:59.691 [0x810356000] DEBUG - Most recent grandchild was episode 8 Aug 29, 2016 22:26:59.691 [0x810356000] DEBUG - Issuing search query: http://127.0.0.1:32400/system/agents/search?mediaType=2&id=26124&identifier=com.plexapp.agents.thetvdb&duration=-1&episodic=1&filename=%252Fmedia%252Ftvshows%252FStranger%2520Things%252FSeason%25201%252FStranger%252EThings%252ES01E08%252EChapter%252EEight%252EThe%252EUpside%252EDown%252E1080p%252EWEBRip%252Ex265%252EHEVC%252E6CH-MRN%252Emkv&lang=en&openSubtitlesHash=c2fe8fcdd177ac29&plexHash=5d70157b748097cb53a92d8980f1c1b2f8fe878c&episode=8&episodic=1&season=1&show=Stranger%20Things Aug 29, 2016 22:26:59.691 [0x810356000] DEBUG - HTTP requesting GET http://127.0.0.1:32400/system/agents/search?mediaType=2&id=26124&identifier=com.plexapp.agents.thetvdb&duration=-1&episodic=1&filename=%252Fmedia%252Ftvshows%252FStranger%2520Things%252FSeason%25201%252FStranger%252EThings%252ES01E08%252EChapter%252EEight%252EThe%252EUpside%252EDown%252E1080p%252EWEBRip%252Ex265%252EHEVC%252E6CH-MRN%252Emkv&lang=en&openSubtitlesHash=c2fe8fcdd177ac29&plexHash=5d70157b748097cb53a92d8980f1c1b2f8fe878c&episode=8&episodic=1&season=1&show=Stranger%20Things Aug 29, 2016 22:26:59.692 [0x810356000] DEBUG - HTTP 401 response from GET http://127.0.0.1:32400/system/agents/search?mediaType=2&id=26124&identifier=com.plexapp.agents.thetvdb&duration=-1&episodic=1&filename=%252Fmedia%252Ftvshows%252FStranger%2520Things%252FSeason%25201%252FStranger%252EThings%252ES01E08%252EChapter%252EEight%252EThe%252EUpside%252EDown%252E1080p%252EWEBRip%252Ex265%252EHEVC%252E6CH-MRN%252Emkv&lang=en&openSubtitlesHash=c2fe8fcdd177ac29&plexHash=5d70157b748097cb53a92d8980f1c1b2f8fe878c&episode=8&episodic=1&season=1&show=Stranger%20Things Aug 29, 2016 22:26:59.692 [0x810356000] DEBUG - -1: () Aug 29, 2016 22:26:59.693 [0x810356000] DEBUG - -1: () Aug 29, 2016 22:26:59.693 [0x810356000] DEBUG - * Score: -1 () Aug 29, 2016 22:26:59.693 [0x810356000] DEBUG - Refreshing metadata for 'Stranger Things' (agent: com.plexapp.agents.thetvdb) Aug 29, 2016 22:26:59.693 [0x810356000] DEBUG - Refreshing GUID: 'local://26124'

Same here: https://forums.plex.tv/discussion/comment/1242621#Comment_1242621

Please verify that information is still in the log files and then zip up the entire Logs directory and attach here. I will ask someone who knows more (deeper level) than I to come look at logs.

SOmething is seriously FUBARED with the metadata and poster downloading from The Movie Database. The TVDB seems to be working fine. This has been going on for a couple of weeks now. And is just getting worse with each PlexPass update.

THe latest plexpass, no meta data is being grabbed now. No descriptions, everything is showing up as 2016. half the time the agent doesn’t find the movie either.

@ChuckPa said:
Please verify that information is still in the log files and then zip up the entire Logs directory and attach here. I will ask someone who knows more (deeper level) than I to come look at logs.

PM’d you the logs

@Tyaz said:
Same here: https://forums.plex.tv/discussion/comment/1242621#Comment_1242621

Glad I’m not the only one!

@Tyaz said:
Same here: https://forums.plex.tv/discussion/comment/1242621#Comment_1242621

I was able to solve it by adding the private IP of my plex server to the ‘List of IP addresses and networks that are allowed without auth’ under Settings - Server - Network - ‘Show Advanced’

1 Like

I’m seeing this as well. Is this a FreeBSD/FreeNAS specific bug? I’m the port maintainer, maybe there’s something on my end that’s screwed up in the port/package? The IP address whitelist trick there works but it shouldn’t be necessary…

The FreeNAS issue could be because of lack of loopback address in the configuration -
An old forum post showing what was done to configure loopback (127.0.0.1) is here

The Plex Media Server.log after a restart would show if there is loopback address detected by Plex Media Server

@feld said:
I’m seeing this as well. Is this a FreeBSD/FreeNAS specific bug? I’m the port maintainer, maybe there’s something on my end that’s screwed up in the port/package? The IP address whitelist trick there works but it shouldn’t be necessary…

I think this is related to the the jails in particular. sa2000 is correct when mentioning it is a loopback address issue. My jail does not have 127.0.0.1 listed under lo0.

Adding the IP under the ‘List of IP addresses and networks that are allowed without auth’ was the easy and simple fix for me.

@kishflix said:

@feld said:
I’m seeing this as well. Is this a FreeBSD/FreeNAS specific bug? I’m the port maintainer, maybe there’s something on my end that’s screwed up in the port/package? The IP address whitelist trick there works but it shouldn’t be necessary…

I think this is related to the the jails in particular. sa2000 is correct when mentioning it is a loopback address issue. My jail does not have 127.0.0.1 listed under lo0. I tried to add an alias and restart the jail but that did not work.

Adding the IP under the ‘List of IP addresses and networks that are allowed without auth’ was the easy and simple fix for me.

Jails by design do not have a loopback address. If you try to access loopback it’s actually mapped to the primary IP of the jail.

how did @hansmuff achieve it here

This is not an area I know much about but missing loopback and getting one configured somehow has been raised many times in past 2 years or so and there are probably other forum posts relating to that

@sa2000 said:
how did @hansmuff achieve it here

This is not an area I know much about but missing loopback and getting one configured somehow has been raised many times in past 2 years or so and there are probably other forum posts relating to that

He created a VIMAGE jail which is an experimental type of jail that has its own dedicated network stack. You can think of it like a VM, but it doesn’t have any performance penalties. VIMAGE has a lot of issues that are being worked on right now. It should be quite stable/reliable in FreeBSD 11.0. I hope to see it no longer considered experimental soon.

@sa2000 said:
how did @hansmuff achieve it here

This is not an area I know much about but missing loopback and getting one configured somehow has been raised many times in past 2 years or so and there are probably other forum posts relating to that

I just deleted the whitelisted Plex IP and tried manually adding 127.0.0.1 via aliases again and this time it worked!

For those on FreeNAS, go into Jail configuration and just add “127.0.0.1” under IPV4 aliases and stop the plugin, reboot the jail, and start the plugin back up again.

Looks like I spoke too soon, I got the loopback address working within the Jail but the metadata still shows up empty. Regardless, this is a jails/networking/freeBSD setup issue and not related to Plex so I’m going to head over to the FreeNAS forums to do some reading. Thanks for all the help and info guys!

Thanks for your help - hope this will fix it and users don’t need to add any IP addresses to be whitelisted

did you restart the server?

@sa2000 said:
did you restart the server?

Did not restart the server, only the jail and plugin. I won’t be able to restart the physical FreeNAS box until the weekend at the earliest.

I’ve been having this issue for weeks and THIS suggestion worked!

Thank you kishflix!