PMS Locks All Network Shares-Blocking All Further Access Until Exiting or Restarting PLEX

Plex Media Server Logs_2023-09-30_13-13-43.zip (4.9 MB)

Server Version#: 1.32.7.7571
Player Version#: 4.108.0
PMS Restart: 11:54 MDT
Logs Pulled: 13:43 MDT

@ChuckPa

I’ve found PMS ‘hung’ every day since upgrading to the last 2-3 builds, including the latest build. This is a dedicated server that only has PMS running on it. Nothing in my platform configuration (Hardware/Software) has changed, except for upgrading PMS and DSM Updates. PMS is locking the 3 mapped/dedicated shares on the server that are stored on my remote NAS (Synology 1520+, on the same subnet 192.168.0.0). Yesterday I used File Explorer to attempt accessing the 3 shares while PMS was hung. All 3 threw a ‘Cannot access location because it is open in another app’. As soon as I ‘exited’ PMS, I could access all 3 shares without issue, so it’s definitely PMS that’s the culprit. I forgot to test the same today. The PMS server’s account that is logged-in has full Administrator’s permissions, and the NAS shares have full read-write access for that user and group. I have ‘Push Notifications’ turned on, but have never received ANY notifications from PMS. This has caused me to miss recordings many evenings. I have 2x Hauppauge dual tuners enabling 4x concurrent recording streams. I’m uploading logs.

Platform Info & Errors from ‘Analysis Log’:
Sep 30, 2023 03:42:46.144 [12784] INFO - Windows version: 10.0 (Build 19045), language en-US
Sep 30, 2023 03:42:46.145 [12784] INFO - 8 3458 MHz processor(s): Architecture=0, Level=15, Revision=1538 Processor Identifier=Intel64 Family 15 Model 6 Stepping 2, GenuineIntel
Sep 30, 2023 03:42:46.147 [12784] DEBUG - “C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe” --analyze --log-file-suffix " Analysis" --item 56205
Sep 30, 2023 03:42:46.148 [11160] WARN - [FFMPEG] - Error loading external lib: The system cannot open the file.
Sep 30, 2023 03:42:46.204 [11160] WARN - [FFMPEG] - Error loading external lib: The system cannot open the file.
Sep 30, 2023 03:42:46.208 [11160] WARN - [FFMPEG] - Error loading external lib: The system cannot open the file.
Sep 30, 2023 03:42:46.280 [11160] WARN - [FFMPEG] - Error loading external lib: The system cannot open the file.
Sep 30, 2023 03:42:46.283 [11160] WARN - [FFMPEG] - Error loading external lib: The system cannot open the file.
Sep 30, 2023 03:42:46.418 [11160] DEBUG - Opening 20 database sessions to library (com.plexapp.plugins.library), SQLite 3.39.4, threadsafe=1
Sep 30, 2023 03:42:46.420 [11160] ERROR - Couldn’t delete the file “P:\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.db”: The process cannot access the file because it is being used by another process
Sep 30, 2023 03:42:46.420 [11160] ERROR - Couldn’t delete the file “P:\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.db-shm”: The process cannot access the file because it is being used by another process
Sep 30, 2023 03:42:46.420 [11160] ERROR - Couldn’t delete the file “P:\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.db-wal”: The process cannot access the file because it is being used by another process
Sep 30, 2023 03:42:46.420 [11160] DEBUG - Installing Library Database from [“C:\Program Files (x86)\Plex\Plex Media Server\Resources\com.plexapp.plugins.library.db”] to [“P:\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.db”]
Sep 30, 2023 03:42:46.422 [11160] ERROR - Couldn’t copy file “C:\Program Files (x86)\Plex\Plex Media Server\Resources\com.plexapp.plugins.library.db” to “P:\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.db”: The file exists
Sep 30, 2023 03:42:46.514 [11160] ERROR - SQLITE3:0x20cc61d6, 14, os_win.c:48837: (3) winOpen(P:\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.db) - The system cannot find the path specified.
Sep 30, 2023 03:42:46.514 [11160] ERROR - SQLITE3:0x20cc61d6, 14, cannot open file at line 48838 of [a29f994989]
Sep 30, 2023 03:42:46.522 [11160] ERROR - Database exception: Cannot establish connection to the database. unable to open database file

This is a Windows problem.

From the looks of the log, the core installation is all messed up (badly) or permissions in Windows (which are normally very lax) are blocking basic access to the DB file.

Sep 30, 2023 11:54:48.133 [9564] INFO - Plex Media Server v1.32.7.7571-13cdc68dc - Microsoft PC x64 - build: windows-x86 windows - GMT -06:00
Sep 30, 2023 11:54:48.133 [9564] INFO - Windows version: 10.0 (Build 19045), language en-US
Sep 30, 2023 11:54:48.134 [9564] INFO - 8 3458 MHz processor(s): Architecture=0, Level=15, Revision=1538 Processor Identifier=Intel64 Family 15 Model 6 Stepping 2, GenuineIntel
Sep 30, 2023 11:54:48.135 [9564] INFO - Compiler is - MSVC 1929
Sep 30, 2023 11:54:48.135 [9564] DEBUG - "C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Server.exe" 
Sep 30, 2023 11:54:48.205 [13648] DEBUG - Plex for Windows Store application is not installed
Sep 30, 2023 11:54:48.208 [13648] DEBUG - BPQ: [Idle] -> [Starting]
Sep 30, 2023 11:54:48.231 [13648] DEBUG - FeatureManager: Using cach

Moving this thread to Windows. Not a Synology problem and , unfortunately, my only solution would be to start over on Windows.

NOTE: If drive “P” is on a network share – this will NEVER work. Network file locking will always fail and corrupt the DB. PMS expects to own its files – not be subject to the whims/permissions of a network shared folder.

What indicates the install is ‘All messed up?’ My server has been running with this configuration for 2-3 years, with ‘issues’ only popping up when PLEX releases a glitchy beta. When I Exit PLEX and re-start it, It runs fine, up through early to mid morning after 12 midnight, then hangs. I put the ‘appdata’ directory on the NAS soon after my initial install, because it’s HUGE, and I have a small ssd drive for the OS and apps. I changed the registry key to point to the P: share after moving all of the data from the SSD drive to the NAS. What’s nice about this configuration is that if my server/SDD crashes and I have to start from scratch, I only have to import the registry key and the from-scratch install knows exactly where to put all the data, and I won’t lose configured recordings, etc. The problem I’m facing now is they need to release a new beta or full release. I’ve tried, but I can’t roll-back to an earlier version. I’d be afraid to corrupt files doing that.

I concur. Even if you managed to use it that way for a while, it is not recommended and strictly unsupported.
Which means no developer efforts will be spent to try and solve this. It is technically not feasible.

The Plex data folder has to be located in a locally attached or internal drive.

You can try and use iSCSI, if your NAS can provide that. But even that is officially not supported.

What was the last official build that was released? How can I download that version & if rolling-back, will my files be kept intact?

@NetScanr Is P:\ a network drive?

Yes. It’s a shared drive from my NAS.

@NetScanr Then it doesnt matter what version you are using things will break, its just a matter of how quickly. See the notes above.