Newly added files do not appear in libraries anymore

Server Version#: 1.41.3.9314
Player Version#: 1.105.2.269-12a32491
Lifetime license

My Problem:
Newly added files do not appear in my libraries anymore - songs as well as movies.
What I already tried:
Starting the scanning process manually did not solve the problem.
Restarting the server did not solve the problem.

Opening the “Recently Added” playlist delivers an “unexpected error”.

Any suggestions how to deal with that? Thanks in advance!

Please show how you have the files named and organized. Include the folder added to the library.

For example these ones: 5 songs in the library but 30 Songs in the folder…

You’re not following the recommended Naming Structure. Plex is very picky about file and folder structure.

Can you post a copy of your server logs? Before we throw the naming schema under the bus (I suspect it is an issue that needs fixed, but not the root cause for your issue), there may be an underlying database corruption issue.

Yeah - that may not be the recommended naming structure but I worked well for several years. Up to now…

I attached the logs - thank you for helping me!

You do have database damage.

an 06, 2025 07:19:08.908 [139803362937656] DEBUG - [Req#24b7f] Item 12867 (BRAVO - The Hits 2011) Scanning metadata graphic elements in XML file ""/Info.xml
Jan 06, 2025 07:19:08.914 [139803362937656] DEBUG - [Req#24b7f] Loading information from media bundle for part ID 12321 from "/var/packages/PlexMediaServer/shares/PlexMediaServer/AppData/Plex Media Server/Media/localhost/0/5ff73e3d95f08bcfb8c41425c54829845d86818.bundle/Contents"
Jan 06, 2025 07:19:08.914 [139803362937656] ERROR - [Req#24b7f] SQLITE3:0x80000001, 11, database corruption at line 84326 of [a29f994989]
Jan 06, 2025 07:19:08.914 [139803362937656] ERROR - [Req#24b7f] SQLITE3:0x80000001, 11, statement aborts at 11: [SELECT idx, start_block, leaves_end_block, end_block, root FROM 'main'.'fts4_metadata_titles_icu_segdir' WHERE level = ? ORDER BY idx ASC] database disk image is malformed

Depending on how long the damage has existed, you might be able to repair it.

Repair options are two methods:

  1. Replace the current main database with a backup (which still might have this internal data damage)

  2. Run my DB repair tool, in IGNORE mode, and have it attempt the work
    (‘Auto’ will do the best it can). If not, you can use REPLACE to start trying backups.

DBRepair.sh is run from the Syno SSH command line as root.

Look at the README.md file. Take your time going through it.
I show a lot of examples how to use it.

The tool has been updated a bit since the README was last updated.

Thanks for your help! I ran your tool, it reported the DB is O.K. now.

Sadly PMS now shuts down automatically several seconds after starting it. Any suggestions for that?

Please pull a new set of log files.

Using Synology File Station, navigate to the Plex Data Folder (/PlexMediaServer/…). Right click on the Logs directory and choose Compress to Logs.zip. Download the zip file and attach it to the thread.

Here they are:

HMMMMM,

There is a permissions problem in the PlexMediaServer directory.

Jan 06, 2025 19:39:11.222 [140097319508624] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.39.4, threadsafe=1
Jan 06, 2025 19:39:11.222 [140097319508624] ERROR - SQLITE3:0x80000001, 14, cannot open file at line 41714 of [a29f994989]
Jan 06, 2025 19:39:11.222 [140097319508624] ERROR - SQLITE3:0x80000001, 14, os_unix.c:41714: (13) open(/volume1/PlexMediaServer/AppData/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db) - Permission denied
Jan 06, 2025 19:39:11.222 [140097319508624] ERROR - Promise destroyed without handling exception: Promise fell out of scope without resolving or rejecting

Did you run this as root (sudo bash) ???

Now to fix the file permissions so the DB will open.

Thanks - PMS is running again!

…and the missing songs are in Plex now.

Thank you all for helping me!!

1 Like

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