PLex Server not responding after upgrade

Server Version#: v.1.41.4.9463-630c9f557
Player Version#: All
<If providing server logs please do NOT turn on verbose logging, only debug logging should be enabled>
NOTE: I am a beginner and need step by step help.
I have had Plex running on my Qnap TS-453Be for at least six years. Upgrading the plex server software manually from time to time with no issues.
I did an upgrade yesterday to the new version (above) and now Plex does not load my files on any of my players (note Plex players load but only show general content, not my NAS)
I have run http://my NAS IP:32400/web and it says:
<response code="503" title="Maintenance" status="Plex Media Server is currently running startup maintenance tasks."/>
It has now been down for almost 18 hours. I have never had this problem before.
I see on the web people talking about deleting folders, or running database repair utilities but I do not understand how to do that. I only see the folder on the NAS drive that I created for my use, not any of the system files.
I am running Windows 10 on my computer to look at the files.
How do I solve this problem?
Thanks in advance
Steve


Mod Edit: Formatting. @FordGuy61

Were you upgrading from a recent version or was that NAS installation out-of-date?
There’s been a few changes over the last year that involved significant changes to the database – as such, a cumulated upgrade will take some time… depending on the size of your library, even 18 hours are not completely outside of what to expect.

If the post-upgrade server maintenance will not progress / finish, you could take a look at your server logs to see if there’s any critical errors (e.g. a badly corrupted database that’s blocking things) → Plex Media Server.log. The linked support article also lists how you can get to these logs while PMS isn’t accessible.

Tom:
Thanks for the quick response.
I was upgrading from 1.32.6, so I assume I had missed a few upgrades.
As I mentioned I am a beginner as far as doing things on the Qnap NAS device are concerned. Although I am very familiar with Windows computers, I am at a total loss with the Qnap. I can only see the folders that I created (for libraries etc. on the Qnap.
The article says that the log files are in the Plex Media Server data directory but I don’t see any directory with that name. I don’t see any of the PLex system files (or any other system files related to the Qnap device.).
There is a link that says that the Qnap data directory can be accessed by connecting to the Console via SSH. I don’t know what SSH is!
…steve

That’s approx. 1.5 years of updates and will certainly require some time.

Before chasing the logs, maybe give it some more time to finish.

OK thanks. I will check back again tomorrow
Steve

Remember that if you keep stopping this migration process, you could bork your database.

You can check for database activity with:
watch -n .1 "ls -lt --full-time /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases"

Replace the /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Plug-in\ Support/Databases with wherever your database is stored.

Thanks for the comment:
I am now 41 hours into this.
Unfortunately I don’t understand how to input those commands.
I did some googling and found out that I need putty to run SSH
I did that and it came back with a menu, but no info on how to see the directory structure.
I get a Console Management - Main Menu with several numbered options…
I can Quit the menu but then I get a [~] # prompt and no idea where to go from here.

In youre suggestion, you say to replace database location but how do I find out where it is?
…steve

OK now almost 48 hours of down time.

More Googling and searching here.

Found out how to get location of databases - (https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/)

So sent your command watch -n 1 “ls -lt --full-time /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server” (NOTE -n 1 not -n .1 which fails).

I get a ls: cannot access Server: No such file or directory
error so I am still in the dark.

/Library is a directory, So the program name is wrong??

I don’t know how to list the files in the directory

…steve

@SGHalliday

from the command line:

ls -la /share/*/.qpkg/Ple*/Li*/Ple*

It works like this because there is only one possible resolution for the wildcards

[~] # ls -la /share/*/.qpkg/Ple*/Li*/Ple*
total 30878172
drwxrwxrwx 13 admin           administrators        4096 2025-03-03 01:39 ./
drwxrwxrwx  4 admin           administrators        4096 2025-02-28 01:35 ../
drwxrwxrwx  6 admin           administrators        4096 2025-03-03 16:28 Cache/
drwxrwxrwx  3 admin           administrators        4096 2024-08-29 00:26 Codecs/
drwxrwxrwx  8 admin           administrators        4096 2025-02-28 01:39 Crash Reports/
drwxrwxrwx  2 admin           administrators        4096 2023-04-13 02:25 Diagnostics/
drwxrwxrwx  2 admin           administrators        4096 2023-04-13 02:25 Drivers/
-rw-------  1 admin           administrators           42 2025-02-28 01:39 .LocalAdminToken
drwxrwxrwx  3 admin           administrators        4096 2025-03-03 05:04 Logs/
-rwxrwxrwx  1 admin           administrators     1445838 2024-07-24 01:36 Logs.zip*
drwxrwxrwx  3 admin           administrators        4096 2023-04-13 02:38 Media/
drwxrwxrwx  4 admin           administrators        4096 2023-04-19 03:49 Metadata/
-rwxr-xr-x  1 admin           administrators         309 2024-03-08 18:01 pids*
-rw-r--r--  1 admin           administrators            5 2025-02-28 01:39 plexmediaserver.pid
-rwxrwxrwx  1 admin           administrators 31617684320 2024-07-25 14:56 PlexMetadataBackup.zip*
drwxrwxrwx  2 admin           administrators        4096 2023-04-13 02:25 Plug-ins/
drwxrwxrwx  7 admin           administrators        4096 2023-04-13 02:27 Plug-in Support/
-rw-------  1 admin           administrators          749 2025-03-03 01:39 Preferences.xml
-rw-------  1 admin           administrators         733 2023-06-09 16:09 Preferences.xml-save
-rw-------  1 admin           administrators       12330 2024-06-27 03:35 .Setup.html
-rw-------  1 admin           administrators        12330 2025-02-28 01:39 Setup Plex.html
-rw-------  1 admin           administrators          84 2024-06-27 03:35 .SetupURL
drwxrwxrwx  2 admin           administrators        4096 2023-04-13 02:25 Updates/
[~] #

To diagnose deeper:

cd /share/*/.qpkg/Ple*/Li*/Ple*/Plu*/Datab*

Now ls -la and share what you get.

Something like this is normal:

[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-in Support/Databases] # ls -la
total 4174556
drwxrwxrwx 3 admin           administrators      4096 2025-03-01 02:06 ./
drwxrwxrwx 7 admin           administrators      4096 2023-04-13 02:27 ../
-rw-rw-r-- 1 admin           administrators   1101824 2025-02-27 20:15 com.plexapp.plugins.library.blobs.db
-rw-r--r-- 1 admin           administrators   1101824 2025-02-11 02:03 com.plexapp.plugins.library.blobs.db-2025-02-11
-rw-r--r-- 1 admin           administrators   1101824 2025-02-14 02:03 com.plexapp.plugins.library.blobs.db-2025-02-14
-rw-r--r-- 1 admin           administrators   1101824 2025-02-17 02:03 com.plexapp.plugins.library.blobs.db-2025-02-17
-rw-r--r-- 1 admin           administrators    1101824 2025-03-01 02:06 com.plexapp.plugins.library.blobs.db-2025-03-01
-rw-rw-r-- 1 admin           administrators     32768 2025-02-28 01:39 com.plexapp.plugins.library.blobs.db-shm
-rw-rw-r-- 1 admin           administrators         0 2025-02-28 01:39 com.plexapp.plugins.library.blobs.db-wal
-rw-rw-r-- 1 admin           administrators 835420160 2025-03-03 15:53 com.plexapp.plugins.library.db
-rw-r--r-- 1 admin           administrators 863543296 2025-02-11 02:03 com.plexapp.plugins.library.db-2025-02-11
-rw-r--r-- 1 admin           administrators 856358912 2025-02-14 02:03 com.plexapp.plugins.library.db-2025-02-14
-rw-r--r-- 1 admin           administrators 867909632 2025-02-17 02:03 com.plexapp.plugins.library.db-2025-02-17
-rw-r--r-- 1 admin           administrators  834281472 2025-03-01 02:06 com.plexapp.plugins.library.db-2025-03-01
-rw-rw-r-- 1 admin           administrators     32768 2025-03-03 16:55 com.plexapp.plugins.library.db-shm
-rw-rw-r-- 1 admin           administrators  11614312 2025-03-03 16:55 com.plexapp.plugins.library.db-wal
-rw-r--r-- 1 admin           administrators      3318 2025-01-03 17:53 DBRepair.log
drwxr-xr-x 2 admin           administrators      4096 2024-11-17 14:29 dbtmp/
[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-in Support/Databases] #
total 8009768
drwxr-xr-x 2 admin administrators       4096 2025-03-01 18:41 ./
drwxr-xr-x 7 admin administrators       4096 2019-07-29 08:21 ../
-rw-r--r-- 1 admin administrators     270336 2025-03-01 18:28 com.plexapp.dlna.d                                                                                          b
-rw-r--r-- 1 admin administrators      32768 2025-03-01 18:28 com.plexapp.dlna.d                                                                                          b-shm
-rw-r--r-- 1 admin administrators     564472 2025-03-01 18:28 com.plexapp.dlna.d                                                                                          b-wal
-rw-r--r-- 1 admin administrators 1138139136 2025-03-01 20:03 com.plexapp.plugin                                                                                          s.library.blobs.db
-rw-r--r-- 1 admin administrators 1133526016 2025-02-20 00:02 com.plexapp.plugin                                                                                          s.library.blobs.db-2025-02-20
-rw-r--r-- 1 admin administrators 1149124608 2025-02-23 00:02 com.plexapp.plugin                                                                                          s.library.blobs.db-2025-02-23
-rw-r--r-- 1 admin administrators 1149700096 2025-02-26 00:02 com.plexapp.plugin                                                                                          s.library.blobs.db-2025-02-26
-rw-r--r-- 1 admin administrators 1137231872 2025-03-01 00:02 com.plexapp.plugin                                                                                          s.library.blobs.db-2025-03-01
-rw-r--r-- 1 admin administrators    8912896 2025-03-01 20:03 com.plexapp.plugin                                                                                          s.library.blobs.db-shm
-rw-r--r-- 1 admin administrators 1164814304 2025-03-01 20:03 com.plexapp.plugin                                                                                          s.library.blobs.db-wal
-rw-rw-r-- 1 admin administrators     329728 2025-03-01 18:41 com.plexapp.plugin                                                                                          s.library.db
-rw-r--r-- 1 admin administrators          0 2020-10-08 02:05 com.plexapp.plugin                                                                                          s.library.db-2020-10-08-tmp
-rw-r--r-- 1 admin administrators  329591808 2025-02-20 00:01 com.plexapp.plugin                                                                                          s.library.db-2025-02-20
-rw-r--r-- 1 admin administrators  328983552 2025-02-23 00:01 com.plexapp.plugin                                                                                          s.library.db-2025-02-23
-rw-r--r-- 1 admin administrators  330713088 2025-02-26 00:01 com.plexapp.plugin                                                                                          s.library.db-2025-02-26
-rw-r--r-- 1 admin administrators  328764416 2025-03-01 00:01 com.plexapp.plugin                                                                                          s.library.db-2025-03-01
-rw-rw-r-- 1 admin administrators      32768 2025-03-01 18:43 com.plexapp.plugin                                                                                          s.library.db-shm
-rw-rw-r-- 1 admin administrators    1202088 2025-03-01 18:43 com.plexapp.plugin                                                                                          s.library.db-wal
[/share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-in Support/Databases] #

Hope this helps!
…steve

Moderator edit for readability

which machine is this on ? (model ?)

Do you have a lot of audio or photos ?

[quote=“SGHalliday, post:10, topic:907771”]

[/quote]I have a TS-453Be with a TR-004 attached.

Yes, I have many files, video, pictures, audio on the two devices. A properties check says there are over 9000 files on the TS-453 (18TB of 21TB total) and over 170,000 files on the TR-004 (4TB of 20TB total)

…steve

Wow. that’s a lot of files (200,000+) for a little ApolloLake to upgrade at one time.

I am concerned since the date-time stamp has not changed in 2 days.

Are you certain PMS is still running?

start resource monitor, look at the different activity indicators

You’re looking for both PMS consuming CPU (a fair amount)
–AND–
fairly steady, elevated, disk I/O as it upgrades the DB.

I guess that the new version has a major database structure change?

I have no idea if PMS is running. How do I tell?

What is the resource monitor? As I mentioned earlier, I am fairly familiar with PCs but am not a programmer and have no idea about the operating system of the QNAP devices.

I found out I needed Putty when someone said to use SSH (I still don’t really know what that is).

I can hear the disks on the TS-453 being accessed. I don’t see any access on the TR004.

I am happy to follow detailed instructions in the hope I can get my server running and get back to my stuff.

Thanks for your help.

…steve
PS: I will be logging off soon and will be back on tomorrow.

Upper left corner (the master start menu)

This will show you how busy the disks are.

If you’re hearing access, that’s a good sign. You might just have that much work to do with so many files.

I once had a Synology NAS require 2+ weeks to convert from DSM 6 → DSM 7
(this was well before the database change)

OK got the resource center up. Not seeing much activity at all. Under Plex Media server it says sleeping as it does with almost everything else. CPU usage is 0% against almost everything.
Is there something in particular you want to see?

There is a popup notification that appears talking about indexing multimedia but it goes away very quickly and I cannot find the notice in the Notice Board.
How do I tell if PMS is running?
…steve

The popup refers to the Multimedia console. The popup says it is indexing, but the app says it is complete, though it is only 99% complete on generating thumbnails.
As the NAS device is only used as a file storage place and a plex server, do I need the Multimedia Console running?
…steve

OK, things seem to have picked up. Attached are three screen shots for you
..steve



It’s still crunching along, as I suspected.

On the Storage page, in the upper right, change IOPS to Throughput.
It will be a more useful report.

As it currently shows, 524 iops is pushing the HDD to their limit
(It’s I/O bound)

Just let it keep running and you’ll get there.

OK, here is the throughput graph.
How do we know this PMS causing this and not something else. Can we check PMS is running and not locked up?
..steve