Newer PMS versions not adding content

A few weeks ago I noticed that new content wasn’t being added in any of my libraries. I’ve run Plex for many years without issue - previously on a Windows Server but for the last year on Unraid, using the official docker container.

With the flexibility in being able to switch container versions easily, I tried reverting to an older build, and that worked fine. Working through the versions from there I found that the last working version for me was 1.25.8.5663 - when I upgrade to 1.25.9.5721 or later the problem appears.

I’ve checked naming contentions, tried the Plex dance and optimized the database, so not sure what else to try.

Any ideas?

Check for a corrupt database. Depending on the level of corruption, Plex may recognize some or none of your new content. Pull the server log files, Settings → Troubleshooting, and look in the Plex Media Server.log file (and .1.log, etc). Look for SQLITE errors that mention database corruption, a malformed database, etc.

Example:
Aug 09, 2019 10:03:44.386 [0x700002c15000] Error — SQLITE3:(nil), 11, database corruption at line 79051 of [bf8c1b2b7a]

The Plex Movie and Plex TV Series agents/scanners are more strict than the legacy agents when it comes to naming & organization. Some structures that worked with the legacy agents no longer work with the new agents. This is especially true for TV shows. For example, sXXeYY will work, where formats such as 00x01 or [0x01] will cause problems. See the Your Media section of the Plex Docs for naming & organization guidelines.

So in the course of following up on your points I did find a likely root cause, though not yet a full fix. Just to confirm, I did run a database check and repair, to no obvious effect - I didn’t see any SQLITE errors in the logs either (though a lot of XML errors…).

However looking at the logs in more details, I did see some permission related errors.

Looking at the files, I’m seeing some discrepencies in file ownership and permissions - never noticed before and its not been an issue up to now, but presumably its related to that somehow. The slight complexity is that the Plex server is running as a container on Unraid, whereas the media is on a separate Synology NAS, being shared as an NFS share. I went in and used the “squash” option to map all client connections to admin, which I felt sure would resolve this, but it didn’t.

I then went into the Synology console and chown / chmod’d the specific show to 666 just to be sure. However when I did that a whole season disappeared, and no reference to it in the logs. I tried the Plex dance, as well as adding the TVDB ID to the show name, but no luck. Interestingly I saw a couple of movies with the same permission errors, and manually setting their permissions did cause them to show up.

So I’m confident its permission related, but I don’t yet have it fully nailed.

I see the docker container has a “first run” variable to set media permissions. Is there a way to run this after first run? Failing that I can script it easily enough, but a supported method is always preferable.

If you think there’a anything else I can try let me know, though in the meantime I’ll keep experimenting…

@FordGuy61

Just found this new error in relation to the show that won’t add back in:

ERROR - Got exception from request handler: sqlite3_statement_backend::loadRS: malformed MATCH expression: <show expression>

Not seen it previously, but explain why ficing permissions didn’t sort this one thing out?

how are your files structured/named?

Good that your database is not corrupt.

I run Plex on Ubuntu. I’ve never run it on truenas or in docker, so can’t help with that part.

I also have media on a Synology NAS, and getting permissions working took a bit.

Squashing all users to admin should be OK. Also set security to sys if you’re not using kerberos. It is right under the setting where you squash to admin in Syno NFS permissions.

You may want to try setting permissions to 755 after mounting the NFS shares. It is recommended in Linux Tips - Mounting NFS network shares for Plex use. I’m not sure how you do that when running Plex in a docker container.

FWIW, I took a slightly different route. I set the Synology to NFSv3 instead of NFSv4, then matched the user id & group between Ubuntu and Synology for plex:plex. I then make sure plex:plex on Synology has at least read-only permissions to the media files.

I’ve never seen that message before. I searched the forum and found one hit. That system had run out of space on the drive holding the database. However, there was also a SQLITE error message saying “out of space.”

Thanks for the follow-up. I’ll follow-up on the permissions points, but I just wanted to add that your point about the database made me realise I hadn’t re-checked for SQLITE errors after I spotted that request handler error. Having not had any previously it didn’t occur to me to check again.

Anyway had a look and I do indeed have some from around the same time. Not related to space that I can tell, but may offer some useful info. So here are all the messages from that point:

May 15, 2022 16:09:35.037 [0x146408efcb38] ERROR - SQLITE3:0x80000001, 1, statement aborts at 11: [select distinct metadata_items.id from metadata_items  join fts4_metadata_titles_icu on metadata_items.id=fts4_metadata_titles_icu.rowid  join metadata_item_accounts on metadata_item_a
May 15, 2022 16:09:35.037 [0x1464090e9b38] ERROR - SQLITE3:0x80000001, 1, statement aborts at 25: [select distinct metadata_items.id from metadata_items  join fts4_metadata_titles_icu on metadata_items.id=fts4_metadata_titles_icu.rowid  join metadata_item_accounts on metadata_item_a
May 15, 2022 16:09:35.042 [0x1464090e9b38] ERROR - Got exception from request handler: sqlite3_statement_backend::loadRS: malformed MATCH expression: [Lego* Masters* (N*]
May 15, 2022 16:09:35.042 [0x146408efcb38] ERROR - Got exception from request handler: sqlite3_statement_backend::loadRS: malformed MATCH expression: [Lego* Masters* (N*]

@nuuki1 you could also upload your plex server logs and see if we catch something you missed.

@dbirch I was about to upload the Server Logs, as those contain a whole bunch of XML errors that may be relevant, but here’s the whole lot.

I just tried moving a show out, scanning to remove it, then adding it back in. As predicted it didn’t show up, despite the permissions being fine (666 for files and 777 for folders).

Anyway I’ve not had a lot of experience checking logs but if you guys have any insights I’m happy to try anything…

Plex Media Server Logs_2022-05-15_20-33-53.zip (4.1 MB)
s

You have something weird going on with your server config. Did you manually define the public port on your docker? It almost looks like you have a webserver and plex sharing the same port.

Thanks for the feedback @dbirch. Are you saying that because of the XML errors being reported - you think that’s Plex responding to unexpected (non Plex) connections?

I’m not seeing anything crazy in the Docker run command, but here it is in full:

docker run -d --name='Plex-Media-Server' \
	--net='host' \
	-e TZ="Europe/London" \
	-e HOST_OS="Unraid" \
	-e 'PLEX_CLAIM'='SECRET' \
	-e 'PLEX_UID'='99' \
	-e 'PLEX_GID'='100' \
	-e 'VERSION'='latest' \
	-v '/tmp':'/transcode':'rw' \
	-v '/mnt/remotes/NAS_Videos/':'/data/video':'rw,slave' \ 
	-v '/mnt/remotes/NAS_Audio/':'/data/audio':'rw,slave' \
	-v '/mnt/remotes/NAS_Backups/Unraid/Plex':'/backups':'rw,slave' \
	-v '/mnt/user/appdata/Plex-Media-Server':'/config':'rw' \
	'plexinc/pms-docker:plexpass'

I’m using a community template in Unraid, though I’m clear on what everything’s doing, with the possible exeption of the VERSION variable. I could always remove that, though that doesn’t seem like a likely culprit for bigger issues.

I could do some network troubleshooting to investigate your broader point, if we’re confident that nothing that Plex clients are doing should be resulting in those types of errors.

I’m not sure that accounts for the content issues I was seeing, but I’m generally a fan of fixing problems I cn see, in case its having some knock on effects.

Doing some quick research it looks like those errors aren’t a problem. Each large block of XML errors ends with this one:

ERROR - SSDP: Error parsing device schema for http://0.0.0.0:80/upnp/BasicDevice.xml

They seem to relate to device discoverability - its a pain in terms of filling logs so I will try to resolve it, but it doesn’t sound like its a problem.

@dbirch - does that account for your comments, or were you seeing other things you thought were a problem?

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