PMS keeps crashing on Windows since last update August 31

Hi,

I’ve been using Plex on Windows 10 without any issue. I used to manually update the server. Yesterday Plex asked me for an update. I said Ok just do it yourself at night. Today my PMS is broken. It keeps crashing after 2 minutes. I tried to relaunch it, I reboot the server… Nothing works.

I also have a 60Gb database I don’t want to loose. A successful Plex database backup was also performed last night.

So what do you suggest ? Should I uninstall/reinstall Plex ? Should I downgrade ?

Thanks for your help.

2 Likes

I have the exact same issue. Really hoping there is a beta or Public release to fix this. It crashes every couple of minutes for no reason. This happened months ago but was fixed with an update.

1 Like

You might have a corrupt database.

Pull the server log files, Settings → Troubleshooting, and upload the zip file to this thread.

If you want to look at the log files yourself, unzip the file. Look in Plex Media Server.log and .1 to .5.log. Look for ERROR entries that mention SQLITE3 and database corruption, a malformed disk image, etc. Basically, any SQLITE3 error entry is bad.

If the db is corrupt, you’ve three choices:
a) repair
b) replace with a backup
c) delete & start over

To repair: https://support.plex.tv/articles/repair-a-corrupted-database/
To restore: https://support.plex.tv/articles/202485658-restore-a-database-backed-up-via-scheduled-tasks/
To delete: See the repair article for info.

1 Like

See if the preview version of the 64 bit server brings relief.

I hope this is referring to the size of the plex data folder and not the size of the main DB file. :exploding_head:

Hi FordGuy61,

Thank you so much for your help.

Ok, I did this morning a database check, there was no error.

  • I tried after to replace manually the database files (com.plexapp.plugins.library.blobs.db and com.plexapp.plugins.library.db) with older files (com.plexapp.plugins.library.blobs.db-2022-08-29 and com.plexapp.plugins.library.db-2022-08-29). That was not a good idea : when launching PMS, it crashes immediatly saying the database was not good. So, I replace the olders files by the originals. ← This to explain why (probably) there are so many warnings & errors in the logs (see joined files). Note the ERRORS indicating the E:/Jenkins folder. This folder has never exist.
[DatabaseFixups] Held transaction for too long (E:\jenkins\server\3582595338\Library\MetadataCollection.cpp:481): 0.359375 seconds

plex-repair

I didn’t tried the last step : Low-level database recovery. Should I ?

  • I also tried to uninstall/ reinstall PMS. Same problem.
  • I also installed an older version of PMS (1.25 but I’m not sure) : Plex was unable to open database et tried to rebuild it. Same problem.

I’m totally lost. Actually, PMS is still crashing.

Plex Media Server.log (5.0 KB)
Plex Media Server.1.log (7.9 KB)
Plex Media Server.2.log (10.0 KB)
Plex Media Server.3.log (3.8 KB)
Plex Media Server.4.log (15.8 KB)
Plex Media Server.5.log (22.8 KB)

Just before crashing, the PMS console :

Sep 01, 2022 18:03:45.192 [17064] WARN - Waited one whole second for a busy database.
Sep 01, 2022 18:03:45.213 [10032] WARN - Waited one whole second for a busy database.
Sep 01, 2022 18:03:47.606 [17064] WARN - Waited one whole second for a busy database.
Sep 01, 2022 18:03:47.631 [10032] WARN - Waited one whole second for a busy database.
Sep 01, 2022 18:03:50.060 [17064] WARN - Waited one whole second for a busy database.
Sep 01, 2022 18:03:50.082 [10032] WARN - Waited one whole second for a busy database.
Sep 01, 2022 18:03:52.496 [17064] WARN - Waited one whole second for a busy database.
Sep 01, 2022 18:03:52.529 [10032] WARN - Waited one whole second for a busy database.

EDIT :

  • I also tried the Low-level database recovery. Same problem.
  • And to restore the 2 days ago backup. Same problem.

Note that Plex is works great 2 minutes after crashing (I can launch music or movie)
I don’t know if the problem is Plex or the database.

Sorry, that was the Plex folder off course. Plex DB is 1.1G

Hi OttoKerner,

I’m using a fresh 1.28.2.6151-914ddd2b3 (Plex Pass Download is ON)
I tried 1.25. Same issue

@Piregwan

Unfortunately, debug level logging is disabled. The log files do not contain enough information.

Please enable debug level logging and restart Plex Media Server.
Do not enable verbose level logging. Verbose floods the log files with too much information.
Settings → Server_Name → General + Show Advanced


After the next crash:

  1. Restart Plex
  2. Wait two minutes.
  3. Pull log files.
  4. Attach the entire ZIP file to the thread.

Thanks.

Full logs below @FordGuy61
Thank you !

Logs.zip (16.2 MB)

My logs are attached as well. It is crashing every few minutes. I needed to install a program that re-opens plex after crashes.
Plex Media Server Logs_2022-09-01_12-50-35.zip (832.6 KB)

Looks like your running into a bug in Plex Media Server (which was supposedly fixed in 1.28.2.6106).
PMS crashes whenever it performs a “Clean Bundle.”
Go to Settings → Scheduled Tasks. If enabled, disable Remove old bundles every week.
And don’t clean bundles manually.

@Piregwan

Does PMS stop/abort on your system or just become non-responsive?

It looks like the Plex is busy with some database operations. I’m wondering if the system is just busy and not responding.

If it is just non-responsive, what do you see if you go to http://192.168.0.130:32400/web

If you get a 503 error it means the system is busy

PMS just get killed after 2 minutes. Only PlexScriptHost.exe is still running.

I tried to restore a database from 08-29-2022. Same issue.

Did you find something interesting in the logs ?

@AngeloBodetti

I was mistaken. It is not the Cleaning Bundles problem.

Please do the following:

  1. Disable the program that restarts Plex Media Server.
  2. Stop Plex Media Server. Make sure all the Plex processes are stopped. Force quit them in Task Manager if needed.
  3. Restart Plex Media Server.
  4. Let it sit for at least 5 minutes with no activity - no streaming, adding media, etc.
  5. Report back with what happens.

@Piregwan

Is there anything else running on the system that might be using a lot of system resources (memory, CPU, drive activity)?

Log entries below are from the end of Plex Media Server.log. The entries at the end of Plex Media Server.1.log are basically the same.

Plex is performing normal database stuff. The warnings are not a concern.

The interesting entry is error about “Couldn’t add a new thread…”

That’s why I asked if PMS had quit running or was just non-responsive.

I searched the forum for similar entries.

I could not find a 100% clear answer, but some of the posts discussed having other apps running that compete with Plex for system resources.

So yeah, not sure what is happening. Still digging.


Sep 01, 2022 19:42:36.692 [16168] DEBUG - [DatabaseFixups] Setting container serialization range to [0, 0] (total=-1)
Sep 01, 2022 19:42:36.767 [16168] DEBUG - [DatabaseFixups] PlayQueue: Converted 'server://59d3f72996dc7ebe44c78754dcf10320d6f7977a/com.plexapp.plugins.library/library/sections/3/all?type=2&sort=originallyAvailableAt%3Adesc&push=1&show.network=155430&or=1&show.studio=SyFy&pop=1' to 'library://x/directory/%2Flibrary%2Fsections%2F3%2Fall%3Ftype%3D2%26sort%3DoriginallyAvailableAt%253Adesc%26push%3D1%26show%2Enetwork%3D155430%26or%3D1%26show%2Estudio%3DSyFy%26pop%3D1'
Sep 01, 2022 19:42:36.767 [16168] DEBUG - [DatabaseFixups] Setting container serialization range to [0, 0] (total=-1)
Sep 01, 2022 19:42:36.779 [1984] WARN - Waited one whole second for a busy database.
Sep 01, 2022 19:42:36.779 [13768] WARN - Waited one whole second for a busy database.
Sep 01, 2022 19:42:39.170 [13888] ERROR - Thread: Couldn't add a new thread to the pool of size 6: boost::thread_resource_error: Resource temporarily unavailable
Sep 01, 2022 19:42:39.170 [13888] ERROR - Thread: Couldn't add a new thread to the pool of size 6: boost::thread_resource_error: Resource temporarily unavailable

Well, no. CPU is correct (40%), RAM is 15% (48GB), disk access are no more than 2MB/s
I tried to launch PMS without all the tiers applications. Same issue

Thanks for helping

I unchecked the bundle cleaning as you suggested, then rebooted my PC. It seems to be working

1 Like

Bundle scanning tanks my server every time it runs

Hi @ChuckPa
Can someone from Plex support team or devs help me ?
Thanks in advance

Can you provide new logs after the next crash? Your previous logs did not show much since you did not have the debug logging enabled earlier. Only your last log had debug info so I can’t see a pattern with just that 1 file.