# Plex Media Server stopping randomly

**URL:** <https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526>\
**Category:** Plex Media Server\
**Tags:** server-qnap\
**Created:** [July 17, 2023, 1:00am UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526 "2023-07-17T01:00:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![NAN0XXX](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@NAN0XXX](https://forums.plex.tv/u/NAN0XXX)\
**Post date:** [July 17, 2023, 1:00am UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526/1 "2023-07-17T01:00:04Z")

</div>

Server Version#: QuTS Hero h.5.0.1.2376  
Player Version#: 1.32.4.7195 installed from APP Center  
Hi, my PMS is crashing randomly like app is running on app center but Plex is down.  
Sometimes I have to go on SSH to kill PMS because even if I stop PMS app on APP Center it doesn’t kill it (I use theses commands : “ps -ef | grep -I plex” & “sudo kill -9 PID” then restart from APP Center.  
I don’t know where to check the logs of that because on Plex Media Server.log I don’t really see any problem except the cut of the logs when PMS crashed…

I use some apps on docker like Sonarr V4, Overseerr, qBittorrent (2 instances of it), Radarr, Wizarr, Prowlarr, Jackett, xTeve and Deluge.  
last things I’ve changed is the second instance of qBittorrent I’ve added and using the Sonarr V4 version and now got some crash on PMS but I don’t think it’s coming from here like they do not interact directly and they’re not using the same ports.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [July 17, 2023, 1:25am UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526/2 "2023-07-17T01:25:40Z")

</div>

Do the following:

1. Make certain [DEBUG logging](https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/#toc-1) is enabled (the default)

2. Make certain VERBOSE logging is disabled (also the default)  
– Settings - Server - General - Show Advanced

3. Next time it stops / fails – Restart it

4. Wait about 3 minutes for it to come back up and stabilize

5. Settings - Server - Troubleshooting (lower left corner) - Download Logs

6. it will give you a ZIP file

7. Attach that ZIP file here and we’ll look at it.

---

<div class="post-metadata">

**Author:** ![Snow\_technical](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/snow_technical/32/234925_2.png) [@Snow\_technical](https://forums.plex.tv/u/Snow_technical)\
**Post date:** [July 17, 2023, 6:24am UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526/3 "2023-07-17T06:24:51Z")

</div>

Yes me too lately since the last update it crashes for no reason, the server is running but is not accessible. Same for the problem of ASS/SSA subtitles, since the last update impossible to read them without a conversion, even with the settings on “Inlay subtitles: only image formats”. The last crash was yesterday afternoon.

[Plex Media Server Logs\_2023-07-17\_08-29-24.zip](https://forums.plex.tv/uploads/short-url/w0AhdoxEQl1i9FvEPP9cvBKU2ZQ.zip) (3.8 MB)

Update: I realize that it is when I use the shield tv or my oppo phone that it no longer works.

---

<div class="post-metadata">

**Author:** ![NAN0XXX](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@NAN0XXX](https://forums.plex.tv/u/NAN0XXX)\
**Post date:** [July 17, 2023, 1:09pm UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526/4 "2023-07-17T13:09:22Z")

</div>

Here are the previous logs downloaded from last crash  
[Plex Media Server Logs\_2023-07-17\_02-48-16.zip](https://forums.plex.tv/uploads/short-url/cKPQNi1UbiGXF7F2oKvEN1D4FNn.zip) (4.7 MB)

Updated to latest version of Plex, same problem.  
I had another problem with database (idk if this problem was here before), I corrected the problem with it using this link : [https://support.plex.tv/articles/repair-a-corrupted-database/](https://support.plex.tv/articles/repair-a-corrupted-database/)

The problem still here.

---

<div class="post-metadata">

**Author:** ![NAN0XXX](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@NAN0XXX](https://forums.plex.tv/u/NAN0XXX)\
**Post date:** [July 26, 2023, 7:54pm UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526/5 "2023-07-26T19:54:46Z")

</div>

Any news here ?

---

<div class="post-metadata">

**Author:** ![NAN0XXX](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@NAN0XXX](https://forums.plex.tv/u/NAN0XXX)\
**Post date:** [August 10, 2023, 1:11am UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526/6 "2023-08-10T01:11:13Z")

</div>

When database is optimizing server isn’t available but the problem is it will not up automatically, I need to restart it manually (let him do his job for 2 hours and still not up without a manual restart).  
So I think there is an issue with DB that makes my server crash, any more help about this ?

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 10, 2023, 1:41am UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526/7 "2023-08-10T01:41:59Z")

</div>

I profoundly apologize. I did not receive notice until this last post.

Have you used my tool (PlexDBRepair) to see if it can do anything ?

> **[GitHub - ChuckPa/PlexDBRepair: Database repair utility for Plex Media Server...](https://github.com/ChuckPa/PlexDBRepair)**
>
> Database repair utility for Plex Media Server databases - GitHub - ChuckPa/PlexDBRepair: Database repair utility for Plex Media Server databases

Worst case scenario would be –

1. The DB is indeed damaged somewhere deep where it’s not detected.
2. We move the DB to someplace safe (temporarily) like /share/Public
3. We setup a new server instance
4. We import the watch history from the old server database (sitting in /share/Public)
5. After confirming everything recreated – delete the old server data

---

<div class="post-metadata">

**Author:** ![NAN0XXX](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@NAN0XXX](https://forums.plex.tv/u/NAN0XXX)\
**Post date:** [August 19, 2023, 5:06pm UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526/8 "2023-08-19T17:06:23Z")

</div>

Do the people invited on my actuel server will be moved too or I’ll need to invite them again ?

- I already tried to repair the DB using official Plex doc but without success apparently, will try that.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 19, 2023, 5:24pm UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526/9 "2023-08-19T17:24:40Z")

</div>

How it all works:

1. Preferences.xml contains “ID” settings (MachineID, ProcessedMachineID, etc etc)

2. This is what gives the server it’s unique identity but also how Plex.tv tracks it.

3. If you  
– COPY (make a backup of) Preferences.xml  
– SAVE the existing DB somewhere  
– CREATE a new server (with goofy non-colliding temp name)  
– ADD the media again  
– STOP PMS  
– IMPORT the watch history  
– COPY the saved Preferences.xml ON TOP OF the new Preferences.xml  
( Confirm permissions are 100% correct)  
– START PMS

4. They’ll never know anything happened except for it being down for a while.

See how it works?

---

<div class="post-metadata">

**Author:** ![NAN0XXX](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@NAN0XXX](https://forums.plex.tv/u/NAN0XXX)\
**Post date:** [August 22, 2023, 4:10am UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526/10 "2023-08-22T04:10:34Z")

</div>

Ok I used your tool on my server, I’ll tell you if problem still here (very usefull tool and more practical that Plex Official tutorial lol).  
For info :  
Your tool doesn’t have detected anything wrong on my Server but Blob export/check/import was very long (vaccuum too).  
I’ve used the automatic option + vaccum.

Thanks for the help !

---

<div class="post-metadata">

**Author:** ![NAN0XXX](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@NAN0XXX](https://forums.plex.tv/u/NAN0XXX)\
**Post date:** [August 23, 2023, 3:29am UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526/11 "2023-08-23T03:29:05Z")

</div>

I now have a problem on the server, he do not update any metadata and don’t want to search or associate content to the right name :

 ![image](https://global.discourse-cdn.com/plex/original/4X/e/3/7/e3725ac53f5a66d900703310f1b22229cde2efa4.png)

Same problem for all contents, here it’s a movie but there are plenty other movies that were previously associated and now not.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 23, 2023, 4:21pm UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526/12 "2023-08-23T16:21:29Z")

</div>

Can you please make certain [DEBUG logging](https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/#toc-1) is enabled,  
Add new media (something simple which PMS will try to get metadata for)  
Scan Files

Wait for it all to finish

Download the logs ZIP file

Attach it here for me please.

---

<div class="post-metadata">

**Author:** ![NAN0XXX](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@NAN0XXX](https://forums.plex.tv/u/NAN0XXX)\
**Post date:** [August 24, 2023, 3:53pm UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526/13 "2023-08-24T15:53:25Z")

</div>

Now getting worse here can’t even play something on Plex DB locked even after reboot of my NAS and relaunching the app properly and forcing (ps -ef | grep -i plex & sudo kill -9 PID).

 ![image](https://global.discourse-cdn.com/plex/original/4X/f/1/6/f1633407ddb08f325d1b1e2a4bb829f82658b687.jpeg)  
[Plex Media Server Logs\_2023-08-24\_17-48-59.zip](https://forums.plex.tv/uploads/short-url/zVKMlNijb3J14ADiU0fulpAfoWC.zip) (3.9 MB)

For the Metadata update, I changed my DNS from ISP to Cloudflare and now seems to work properly.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 24, 2023, 6:23pm UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526/14 "2023-08-24T18:23:21Z")

</div>

@NAN0XXX

If you’re on Comcast, they are making a lot of changes.

They changed a lot of things for me. Started last week and still not done.

I have a lot of interruptions until I bypassed their DNS, etc

---

<div class="post-metadata">

**Author:** ![NAN0XXX](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@NAN0XXX](https://forums.plex.tv/u/NAN0XXX)\
**Post date:** [August 24, 2023, 9:56pm UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526/15 "2023-08-24T21:56:55Z")

</div>

Ok not working again for no reasons even with DNS changed or not.  
I’m in France so not using Comcast, I use the ISP named “Free” :  
[Plex Media Server Logs\_2023-08-24\_23-54-50.zip](https://forums.plex.tv/uploads/short-url/xw1cSGlbgbWvvc38qfp2IUWR4SQ.zip) (4.4 MB)

Stil got the DB Lock at launch of PMS for like 20 minuts and sometimes randomly and when metadata is off, DB Lock too, same message on console.

 ![Capture d’écran 2023-08-24 à 23.59.27](https://global.discourse-cdn.com/plex/original/4X/5/0/8/508060528df88833aeb18402b869fd717f089341.jpeg)

---

<div class="post-metadata">

**Author:** ![NAN0XXX](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@NAN0XXX](https://forums.plex.tv/u/NAN0XXX)\
**Post date:** [August 24, 2023, 10:11pm UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526/16 "2023-08-24T22:11:50Z")

</div>

There is definitely a problem with DB is it possible to repair or re-create one without loosing people invited to my server ?  
Or idk because my PMS is like really really instable and not even usable.

---

<div class="post-metadata">

**Author:** ![NAN0XXX](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@NAN0XXX](https://forums.plex.tv/u/NAN0XXX)\
**Post date:** [August 25, 2023, 2:32pm UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526/17 "2023-08-25T14:32:52Z")

</div>

Now even after multiple reboot can’t match metadata

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 25, 2023, 3:13pm UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526/18 "2023-08-25T15:13:51Z")

</div>

> [@NAN0XXX](#):
>
> There is definitely a problem with DB is it possible to repair or re-create one without loosing people invited to my server ?  
> Or idk because my PMS is like really really instable and not even usable.

Do you have a PlexData shared folder defined?  
If so, this is easily done through FileStation

---

<div class="post-metadata">

**Author:** ![NAN0XXX](https://avatars.discourse-cdn.com/v4/letter/n/b782af/32.png) [@NAN0XXX](https://forums.plex.tv/u/NAN0XXX)\
**Post date:** [August 25, 2023, 3:18pm UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526/19 "2023-08-25T15:18:43Z")

</div>

I juts installed the Plex Media Server throught the App Center of QNAP so I didn’t defined the PlexData but maybe I can find it on PMS folders just like I’ve done with DB saving ?

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [August 25, 2023, 3:46pm UTC](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526/20 "2023-08-25T15:46:30Z")

</div>

I have to go to my cardio rehab / PT session.

I’ll be back in about 2 1/2 hours.

When I get back, I’ll write up the instructions for you.

[Next page](https://forums.plex.tv/t/plex-media-server-stopping-randomly/847526.md?page=2)
