# Plex Crashing every night

**URL:** <https://forums.plex.tv/t/plex-crashing-every-night/794417>\
**Category:** Plex Media Server\
**Tags:** server-unraid\
**Created:** [May 26, 2022, 10:23pm UTC](https://forums.plex.tv/t/plex-crashing-every-night/794417 "2022-05-26T22:23:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin-Rahme](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@Justin-Rahme](https://forums.plex.tv/u/Justin-Rahme)\
**Post date:** [May 26, 2022, 10:23pm UTC](https://forums.plex.tv/t/plex-crashing-every-night/794417/1 "2022-05-26T22:23:39Z")

</div>

Server Version#: 1.26.2.5797

For the last few weeks pms has been becoming unresponsive overnight and i would need to restart the docker container, i have tried moving scheduled jobs to during the day to see if that was the culprit as well as turning off tautulli and moving backup jobs from overnight.

I have also tried downgrading pms to a version from a couple months ago.

So far i have had no luck

System logs are below

Any help would be appreciated!

[com.plexapp.system.log](https://forums.plex.tv/uploads/short-url/jqZwhbLFtsAAlafZDDOdzTRlmD.log) (172.9 KB)  
[com.plexapp.system1.log](https://forums.plex.tv/uploads/short-url/dMW9jsySnrhB5HmJlCRCNcRx8AM.log) (39.1 KB)  
[com.plexapp.system2.log](https://forums.plex.tv/uploads/short-url/8xchMuaHns39rvrxo7fev5gk6VE.log) (182.5 KB)  
[com.plexapp.system3.log](https://forums.plex.tv/uploads/short-url/pLSn0gXVcJmt9x703pj38D7J16b.log) (32.0 KB)  
[com.plexapp.system4.log](https://forums.plex.tv/uploads/short-url/woiNIu0fgja8ghntihU4d8t0X5c.log) (36.2 KB)  
[Plex Media Server Logs\_2022-05-27\_08-03-26.zip](https://forums.plex.tv/uploads/short-url/7YeEHPzwgwbIe8jucsVlxfbKAEQ.zip) (6.3 MB)  
[Plex Media Server Logs\_2022-05-25\_07-48-49.zip](https://forums.plex.tv/uploads/short-url/aPsXwq8oUxeLHSXGpb7mXM6weUt.zip) (6.0 MB)

Thanks!

---

<div class="post-metadata">

**Author:** ![qw3r7yju4n](https://avatars.discourse-cdn.com/v4/letter/q/f17d59/32.png) [@qw3r7yju4n](https://forums.plex.tv/u/qw3r7yju4n)\
**Post date:** [May 27, 2022, 12:49am UTC](https://forums.plex.tv/t/plex-crashing-every-night/794417/2 "2022-05-27T00:49:11Z")

</div>

I just had an issue that has very similar symptoms. Running UNRAID you should forgo using the filesystem and directly mount your appdata. Does your docker container logs spit a database error? If so, this is your ticket.

Just mount the appdata directly from your cache mountpoint. instead of /mnt/user/appdata - use /mnt/cache/appdata

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Justin-Rahme](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@Justin-Rahme](https://forums.plex.tv/u/Justin-Rahme)\
**Post date:** [May 27, 2022, 1:44am UTC](https://forums.plex.tv/t/plex-crashing-every-night/794417/3 "2022-05-27T01:44:33Z")

</div>

I found this on a few forums and changed appdata to be cache unfortunately no luck

Docker Container also has no errors, it used to show Sqlite3: Sleeping for 200ms to retry busy DB but after changing jobs around this does not come up anymore, it just stops working overnight

---

<div class="post-metadata">

**Author:** ![FordGuy61](https://avatars.discourse-cdn.com/v4/letter/f/22d042/32.png) [@FordGuy61](https://forums.plex.tv/u/FordGuy61)\
**Post date:** [May 27, 2022, 3:23am UTC](https://forums.plex.tv/t/plex-crashing-every-night/794417/4 "2022-05-27T03:23:11Z")

</div>

> [@Justin-Rahme](#):
>
> changed appdata to be cache

Check the location of the [Plex Data Folder](https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/) for your system.

There is a [Plex Data Folder](https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/) in the same directory structure as your TV shows, `/tv/Tv/PlexData` (see snippet from `Plex Media Server.log` below).

When Plex Media Server scans a [Plex Data Folder](https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/) bad things happen, such as system instability.

If this is the actual [Plex Data Folder](https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/) for your server, move it to the correct location for unraid/docker installations.

If it is not the actual [Plex Data Folder](https://support.plex.tv/articles/202915258-where-is-the-plex-media-server-data-directory-located/) for your server, then delete it (or at least move it out of your TV show libraries).

FYI, the log files also reference `/config/Library/Application Support/Plex Media Server`, so `/tv/TV/PlexData` appears to be a duplicate, backup, etc., but double check your system before taking any action.

After you correct the situation, play a movie and tv show episode to make sure Plex still sees your media correctly.

Then clean the `/tv/Tv/PlexData` information from the Plex database:

1. From the [Plex Web home page](https://app.plex.tv/desktop/#!/), select `MORE >` at the bottom of your list of libraries.
2. Move your mouse over the three vertical dots to the right of your server name.
3. Scan your libraries.
4. Empty Trash
5. Clean Bundles.
6. Optimize the database.

```auto
May 27, 2022 08:00:21.312 [0x1498a1fdfb38] DEBUG - [Notify] Now watching "/tv/Tv/PlexData"
May 27, 2022 08:00:21.312 [0x1498a1fdfb38] DEBUG - [Notify] Now watching "/tv/Tv/PlexData/Plex Media Server"
May 27, 2022 08:00:21.313 [0x1498a1fdfb38] DEBUG - [Notify] Now watching "/tv/Tv/PlexData/Plex Media Server/Cache"
May 27, 2022 08:00:21.313 [0x1498a1fdfb38] DEBUG - [Notify] Now watching "/tv/Tv/PlexData/Plex Media Server/Cache/OCSP"
May 27, 2022 08:00:21.314 [0x1498a1fdfb38] DEBUG - [Notify] Now watching "/tv/Tv/PlexData/Plex Media Server/Cache/PhotoTranscoder"
May 27, 2022 08:00:21.314 [0x1498a1fdfb38] DEBUG - [Notify] Now watching "/tv/Tv/PlexData/Plex Media Server/Cache/PhotoTranscoder/03"
May 27, 2022 08:00:21.315 [0x1498a1fdfb38] DEBUG - [Notify] Now watching "/tv/Tv/PlexData/Plex Media Server/Cache/PhotoTranscoder/1f"

```

  

[![](https://global.discourse-cdn.com/plex/optimized/3X/2/6/26964feb848fa684bd390fd9e306fda8b4777091_2_690x356.png) ](https://global.discourse-cdn.com/plex/optimized/3X/2/6/26964feb848fa684bd390fd9e306fda8b4777091_2_690x356.png)

---

<div class="post-metadata">

**Author:** ![Justin-Rahme](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@Justin-Rahme](https://forums.plex.tv/u/Justin-Rahme)\
**Post date:** [May 27, 2022, 4:03am UTC](https://forums.plex.tv/t/plex-crashing-every-night/794417/5 "2022-05-27T04:03:01Z")

</div>

Thanks Mate, I have taken all steps as suggested, will check back in tomorrow and hopefully it fixes the issue.

Appreciate it!

---

<div class="post-metadata">

**Author:** ![Justin-Rahme](https://avatars.discourse-cdn.com/v4/letter/j/b782af/32.png) [@Justin-Rahme](https://forums.plex.tv/u/Justin-Rahme)\
**Post date:** [May 28, 2022, 12:50am UTC](https://forums.plex.tv/t/plex-crashing-every-night/794417/6 "2022-05-28T00:50:36Z")

</div>

looks like this was potentially the issue, i stopped a couple dockers last night as well which i will leave on tonight and see if it stays up overnight again.

Thanks heaps!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [August 26, 2022, 12:50am UTC](https://forums.plex.tv/t/plex-crashing-every-night/794417/7 "2022-08-26T00:50:43Z")

</div>

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