Plex on Synology Stopped Adding Images

Server Version#: 1.18.2.2058
Player Version#: Irrelevant

I have been ripping my blurays, and the last couple of days when adding the movies it doesn’t attach an image automatically. This is what is showing in the logs:

Nov 25, 2019 18:57:30.416 [0x7f54c7447700] DEBUG - Item 314703 (Resident Evil: Afterlife) Scanning metadata graphic elements in XML file ""/Info.xml Nov 25, 2019 18:57:30.419 [0x7f54c4567700] DEBUG - HTTP requesting GET http://127.0.0.1:37114/system/agents/media/get?guid=com%2Eplexapp%2Eagents%2Eimdb%3A%2F%2Ftt1220634%3Flang%3Den&mediaType=1&url=metadata%3A%2F%2Fposters%2Fcom%2Eplexapp%2Eagents%2Eimdb_2fa7906e1c449ff465b48ca1dd268c856e4b0be5 Nov 25, 2019 18:57:30.431 [0x7f54c4567700] DEBUG - HTTP 500 response from GET http://127.0.0.1:37114/system/agents/media/get?guid=com%2Eplexapp%2Eagents%2Eimdb%3A%2F%2Ftt1220634%3Flang%3Den&mediaType=1&url=metadata%3A%2F%2Fposters%2Fcom%2Eplexapp%2Eagents%2Eimdb_2fa7906e1c449ff465b48ca1dd268c856e4b0be5 Nov 25, 2019 18:57:30.432 [0x7f54c7447700] ERROR - Error bringing media local (metadata://posters/com.plexapp.agents.imdb_2fa7906e1c449ff465b48ca1dd268c856e4b0be5)

The rest of the metadata adds fine, and the movie is properly matched, but for some reason the image doesn’t attach.

I am also able to open it up in edit, select an image and apply it just fine as well. Just not automatically.

So weird.

I also followed this, and the database did not return errors: https://support.plex.tv/articles/201100678-repair-a-corrupt-database/?_ga=2.34796705.1893613440.1574669927-1890288077.1574242376

Rebuilding db made no difference either.

Here are my logsPlex Media Server.log (7.3 MB)

As you can see, not downloading metadata. I tried a full metadata refresh just to be sure, but no dice.

May I have the FULL zip file (which includes the agent logs) so I may see what’s happening in those agents?

Plex Media Server Logs_2019-11-27_07-19-08.zip (1.3 MB)

Thank you !

Working with the team now and trying to figure it out now.

1 Like

My db got all corrupted for some reason (when I added a bunch of movies in close succession), and I had to revert the database back a day. Here are more logs to either help or hinder.

Plex Media Server Logs_2019-11-28_20-53-20.zip (3.3 MB)

Same issue since upgrading to 1.18.2.2058 on a Synology, “Error bringing media local” on every metadata refresh

1 Like

came here looking for a solution to this issue. I am having the same issue.

1 Like

Not an excuse by any measure:

  1. Loading a lot of anything all at once (more than 1000 at a whack) will make ANY synology struggle and nearly roll over on its back.

  2. Adding tons (5000+) of images or music will outright kill it (non-responsive) for days on end.
    a. Images get processed one by one
    b. Music files get fingerprinted to find the album match.

Recommendation:

  1. whatever section currently being added – Stop and delete it
  2. If possible, partition the addition of new media in chunks. There is no limit on the number of folders or sub folders which may be added to a library section.

Observations on a DS1815 (Atom C2538 CPU):

  1. 700 movies, all perfectly named & structured takes about 12 hours due to the chapter images. This can be shortened considerably if chapter index image thumbnails are not desired.

  2. 3000 songs, all perfectly named and structured, takes about the 6 hours.

When I said I added a few movies at once. I was talking 3 or 4, not hundreds or thousands.

The NAS was fine, but the Plex database got corrupted somehow.

No problem, I was only sharing observed practical limitations of performance on something as small as a Synology DS1815+.

Database corruption indicates something else is happening.

PMS has a normal signalled ‘shutdown request’. It only takes a second or two to shut down. If, however, the database is extremely busy, or the host CPU very loaded, it may not shut down cleanly before the host terminates it . Synology waits 5 seconds from signalled shutdown until forcing it down. If this is happening then we have the root cause.

I’m running a 1019+, and as far as I’m aware the Synology didn’t shut down during that time.
I also haven’t seen the CPU under full load, and received no performance alarms.

I have however suspected that if you manually click “scan library files” more than once, this has coincided with database corruption in the past.

My Plex database is about 3 or 4 years old, and was transferred from a PC. I ran SQL statements on the DB to update the media paths, as to avoid rescanning and it all transferred over very smoothly.

The NAS isn’t used for anything other than storing my media and acting as a Plex Server.

Have you made any pragma adjustments to the database?
I’ve seen cases where some have tried, with the best of intentions, which resulted in database loss. It happens because there are collation methods in Plex’s version of the SQLite database which aren’t in the public utility. It causes corruption of some of the tables and leads to subsequent failure.

If you’re having issues with it becoming damaged by simply hitting scan a few times, there is already something wrong because PMS only locks as it updates individual records. A simple scan won’t cause it.

Other than following these: https://support.plex.tv/articles/201100678-repair-a-corrupt-database/

And performing basic UPDATE statements, no.

I don’t have experience with pragma statements, so definitely have not attempted any.

I have rebuilt the database following the above link’s directions, but have had it corrupt a handful of times since moving.

As part of your travels/troubles, at any time have you done a complete .dump of the database and had it recreate fresh?

Yes. I did that before my post on the 26th.

Unless you mean I just let it create a brand new database? then no.

I don’t want to lose my custom metadata etc.

The ‘bringing media local’ issue is independent of the DB.
That is a problem with the metadata agents.

I appreciate not wanting to lose any curated metadata. That’s why I asked about the .dump and re-insertion.

Do you have any logs which show PMS declaring the database image is malformed?
This would be the definitive ‘corrupt database’ entry

I have done the dump and recreated from the dump a couple of times, now.

That had failed on some corruptions, and was forced to go back to a previous version of the database.

I’ll have a look at my backups and see if any of them have a corruption. But they were along the lines of database is Malformed.