Agents not saving when moving or enabling/disabling

Server Version#: Version 1.19.1.2645
Player Version#: Version 1.8.0.1159-67c4a549

Hello Plex Community,

Long time no post, I’m having an issue with the server settings for “Agents”, I need to move themoviedb agent to the top because I’m having metadata in the local media wiping over the imdb data and it’s really annoying - I can’t change the order of my Agents because Plex is not saving the change. I deployed a fresh PMS on the same server that Plex is currently running, used the same client (my personal computer) to make the Agent changes, and Plex saved them right away so I can confirm the problem is with my “Plex Media Server” folder which I am not too surprised about, I have old deprecated agents that likely aren’t even supported by Plex and I wish I knew how to remove (like Kinkdotcom).

My server has been running smoothly despite the “Plex Media Server” being transferred several times over many years, I’ve been using the same library for over 7 years now which leads me to believe it’s gotten pretty messy, I used to mess around with the 3rd party agents and plugins back when those were a thing and I’ve tried to remove all of it but I still see traces, I would love to rebuild my entire folder using my backed up database but all my custom media imagery would be lost AFAIK and then it has to rebuild everything including the scrub for movies/tv shows, I can’t imagine how long that would take with my library size.

Anyway, sorry for the rant, to hone in more on my problem - I can’t seem to save my agents or enable/disable them, nothing saves, looking at the logs - I’m not experienced enough in cURL to determine if it’s failing or why, I’ve manually tried to PUT using curl x64 for Windows:
curl -v -X PUT -d 'http://localhost:32400/system/agents/com.plexapp.agents.themoviedb/config/1?order=com.plexapp.agents.localmedia%2Ccom.plexapp.agents.themoviedb" http://127.0.0.1:59910

I really have no idea if I’m doing this correctly though, it says OK but still doesn’t change, I’d love to manually do this if someone could help me but I understand this is more high level and not expected.

I’ve attached a snippit of the live Console as I capture toggling the agents between first and second and enabling/disabling, I hope someone can debug this and put me on the right path.

Thanks for your time.console.log (47.7 KB)

First of all: use the hosted web app https://app.plex.tv
Disable all web browser add-ins. Some of them can interfere quite heavily with regular operation of the web app.


Check your Plex database for damage

  1. activate debug logging (not ‘verbose’!)
  2. quit Plex Server
  3. wait 1 minute
  4. start Plex Server
  5. wait 5 minutes
  6. fetch log files and attach them here

Or inspect them yourself. Take a look at the Plex Media Server.log file and seek for messages about database corrupt or malformed.
If you find these, you may have to repair your database.
https://support.plex.tv/articles/201100678-repair-a-corrupt-database/


Delete the .bundle folders of those old agents from your plex plugins folder https://support.plex.tv/articles/201106098-how-do-i-find-the-plug-ins-folder/

Note that this will only remove the agents themselves. If you still have media which where “matched” using these old agents, you might have to perform either ‘Fix Match’ or the full Plex Dance to change their match.


Have you ever started Plex server “As Administrator” user?
This could have messed up the access permissions of some files and folders within your Plex data folder
Shut down plex server and try to reset them all, so that the regular Windows user account, under which plex server is running has full access permissions again.
Doing this with Windows’ own tools can be frustrating and/confusing, so here is a 3rd-party tool to streamline it: Resetting NTFS files permission in Windows – Graphical Utility – lallous' lab


As a last resort, you could try to reset all agent settings to their defaults, using this procedure: [HowTo] Reset metadata agent preferences to defaults and whack caches


If all of this was triggered by the missing or foreign-language movie posters – be advised that TheMovieDB recently deleted a whole lot of posters (for some unkown reason).

2 Likes

Wow! Thanks so much Otto, can’t thank you enough for this speedy response and an excellent guide to everyone of my questions, I will go over everything today and debug the issue, I may have additional questions but will report back after I’ve given everything you provided a proper read-through and hopefully debug the issues.

Many, many thanks!!

Thanks again Otto! No database corruption, repair didn’t help but found the problem was with the agent, I didn’t want to remove all my agent data and was able to write over them with fresh agents using your [HowTo] Reset metadata agent preferences to defaults and whack caches

Everything is chugging along normally again, thanks so much for the help!!

1 Like

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