# Plex Server Becomes Unavailable Overnight

**URL:** <https://forums.plex.tv/t/plex-server-becomes-unavailable-overnight/933982>\
**Category:** Plex Media Server\
**Tags:** server-synology\
**Created:** [November 28, 2025, 8:20pm UTC](https://forums.plex.tv/t/plex-server-becomes-unavailable-overnight/933982 "2025-11-28T20:20:43Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![simondjjones\_gmail\_com](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@simondjjones\_gmail\_com](https://forums.plex.tv/u/simondjjones_gmail_com)\
**Post date:** [November 28, 2025, 8:20pm UTC](https://forums.plex.tv/t/plex-server-becomes-unavailable-overnight/933982/1 "2025-11-28T20:20:43Z")

</div>

Hi, almost daily, I have to reboot my NAS to get my Plex libraries online. I have no trouble accessing the library through the NAS interface, but Plex constantly shows the server is unavailable until after I do a NAS reboot. It doesn’t do it every time, but enough to be irritating.

Server Version#:Version 4.152.0

---

<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:** [November 29, 2025, 12:40am UTC](https://forums.plex.tv/t/plex-server-becomes-unavailable-overnight/933982/2 "2025-11-29T00:40:53Z")

</div>

@simondjjones_gmail_com

1. Version 4.152.0 is the Plex/Web version
2. You can confirm PMS version in Settings - Server - General or in Package Center.
3. [Plex.tv](http://Plex.tv) reports you are using 1.43.0.10346-fc911a729 on a DS220+

Is this correct?

If so, When it stops, 60 seconds after you restart it, would you please download the [server logs](https://support.plex.tv/articles/200250417-plex-media-server-log-files/) zip file (Settings - Server - Troubleshooting - Download Logs) and attach it here?

---

<div class="post-metadata">

**Author:** ![simondjjones\_gmail\_com](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@simondjjones\_gmail\_com](https://forums.plex.tv/u/simondjjones_gmail_com)\
**Post date:** [November 29, 2025, 3:19pm UTC](https://forums.plex.tv/t/plex-server-becomes-unavailable-overnight/933982/3 "2025-11-29T15:19:39Z")

</div>

Hi ChuckPa, thanks for your quick response.

Yes, correct on all counts. The issue did not occur today, but has persisted over many months and OS/SW updates.

I will update with logs at the next event.

---

<div class="post-metadata">

**Author:** ![simondjjones\_gmail\_com](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@simondjjones\_gmail\_com](https://forums.plex.tv/u/simondjjones_gmail_com)\
**Post date:** [November 29, 2025, 5:25pm UTC](https://forums.plex.tv/t/plex-server-becomes-unavailable-overnight/933982/4 "2025-11-29T17:25:18Z")

</div>

Had another unavailable event. Logs attached.

[Plex Media Server Logs\_2025-11-29\_12-24-20.zip](https://forums.plex.tv/uploads/short-url/qprAgtxXQXms4ComzPaMPMRSMcc.zip) (730.2 KB)

---

<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:** [November 29, 2025, 8:13pm UTC](https://forums.plex.tv/t/plex-server-becomes-unavailable-overnight/933982/5 "2025-11-29T20:13:21Z")

</div>

@simondjjones_gmail_com

Thanks for the logs.

You definitely have some issues in there 🙈 lol

I normally prefer [DEBUG logging](https://support.plex.tv/articles/201643703-reporting-issues-with-plex-media-server/#toc-1) but this shows what’s happening very well.

```auto
Nov 29, 2025 12:14:37.574 [140571618970424] WARN - [Req#1eeda] QueryParser: Invalid field 'pinnedContentDirectoryID' found, ignoring.
Nov 29, 2025 12:14:41.055 [140571592178488] ERROR - [Req#1eedb] Unknown metadata type: folder
Nov 29, 2025 12:14:44.017 [140571621079864] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:14:44.018 [140571637300024] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:14:54.230 [140571621079864] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:14:54.231 [140571637300024] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:15:04.438 [140571621079864] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:15:04.449 [140571637300024] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:15:04.639 [140571621079864] ERROR - Thread: Uncaught exception running async task which was spawned by thread 140571633081144: sqlite3_statement_backend::loadOne: database is locked
Nov 29, 2025 12:15:04.649 [140571637300024] ERROR - Thread: Uncaught exception running async task which was spawned by thread 140571633081144: sqlite3_statement_backend::loadOne: database is locked
Nov 29, 2025 12:15:14.648 [140571621079864] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:15:14.658 [140571637300024] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:15:24.865 [140571621079864] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:15:24.874 [140571637300024] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:15:35.080 [140571621079864] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:15:35.090 [140571637300024] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:15:45.290 [140571621079864] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:15:45.300 [140571637300024] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:15:55.502 [140571621079864] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:15:55.523 [140571637300024] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:16:05.720 [140571621079864] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:16:05.740 [140571637300024] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:16:15.931 [140571621079864] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:16:15.951 [140571637300024] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:16:26.148 [140571621079864] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:16:26.168 [140571637300024] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:16:36.364 [140571621079864] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:16:36.388 [140571637300024] ERROR - Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:16:41.028 [140571594287928] ERROR - [Req#1eee9] Waited over 10 seconds for a busy database; giving up.
Nov 29, 2025 12:16:41.028 [140571594287928] ERROR - [Req#1eee9] Failed to begin transaction (/home/runner/_work/plex-media-server/plex-media-server/Statistics/Device.cpp:46) (tries=1): Cannot begin transaction. database is locked

```

Your database is so fragmented that it cannot function which causes PMS to crash under load.

The solution is to run DBRepair and optimize the DB properly (PMS can’t optimize itself at this depth)

How are your SSH command line skills ?

---

<div class="post-metadata">

**Author:** ![simondjjones\_gmail\_com](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@simondjjones\_gmail\_com](https://forums.plex.tv/u/simondjjones_gmail_com)\
**Post date:** [November 29, 2025, 8:34pm UTC](https://forums.plex.tv/t/plex-server-becomes-unavailable-overnight/933982/6 "2025-11-29T20:34:44Z")

</div>

Wow, interesting, thank you very much for the insight. My SSH skills are entirely non-existent, but I’ll see if there is a Synology App that might serve the purpose. Thanks again!

---

<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:** [November 29, 2025, 9:02pm UTC](https://forums.plex.tv/t/plex-server-becomes-unavailable-overnight/933982/7 "2025-11-29T21:02:39Z")

</div>

If you want, I think I can make time to help you tomorrow

We would need some way to commicate voice (I use apple products)

We would also use a tool RustDesk (an app) on your computer for desktop sharing.

I’d come in and, with you there at all times to login / access control, get into SSH and teach you how to run DBRepair yourself.

After that, you’ll be able to do it yourself as needed.

Here’s the tool I’ve written

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

---

<div class="post-metadata">

**Author:** ![simondjjones\_gmail\_com](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@simondjjones\_gmail\_com](https://forums.plex.tv/u/simondjjones_gmail_com)\
**Post date:** [November 29, 2025, 10:29pm UTC](https://forums.plex.tv/t/plex-server-becomes-unavailable-overnight/933982/8 "2025-11-29T22:29:52Z")

</div>

ChuckPa, thank you for your very kind offer. For now I’m trying the built-in defragmenter and scrubbing the drives. If the issue persists thereafter I’ll take a look at the tool to see if I can figure it out. Once upon a time I knew my way around a CLI (\<DOS 5, lol), so I’ll give it the ol’ college try. Thank you once again for quickly identifying the issue.

---

<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:** [November 29, 2025, 10:38pm UTC](https://forums.plex.tv/t/plex-server-becomes-unavailable-overnight/933982/9 "2025-11-29T22:38:32Z")

</div>

The filesystem defragmenter won’t help here.

The records in the DB are what’s fragmented (grossly out of order)

If you look in the README.md file (under DBRepair),

you’ll find where I show how to do it on Synology.

If you used to know the CLI then this should be as easy as getting back on that tricycle 🙂 lol

---

<div class="post-metadata">

**Author:** ![simondjjones\_gmail\_com](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@simondjjones\_gmail\_com](https://forums.plex.tv/u/simondjjones_gmail_com)\
**Post date:** [December 1, 2025, 4:09pm UTC](https://forums.plex.tv/t/plex-server-becomes-unavailable-overnight/933982/10 "2025-12-01T16:09:39Z")

</div>

Good day ChuckPa. I was able to run your utility and it seems to have fixed the issue. I also noticed it’s a lot more responsive to load my libraries. I had never run any optimization or otherwise maintained the database previously, so this was an eye opener and a big help.

Do you recommend that I run the Plex optimization now? Or should I work solely with the utility on a regular basis?

Simon

---

<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:** [December 1, 2025, 6:16pm UTC](https://forums.plex.tv/t/plex-server-becomes-unavailable-overnight/933982/11 "2025-12-01T18:16:21Z")

</div>

@simondjjones_gmail_com

You don’t need to run the built-in Optimize Databases . DBRepair does a better job (because PMS is shut down during the process).

You can run the built-in Optimize Databases weekly if you want and then DBRepair when you notice it getting sluggish or you have other issues (it checks for DB damage)

---

<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:** [March 1, 2026, 6:16pm UTC](https://forums.plex.tv/t/plex-server-becomes-unavailable-overnight/933982/12 "2026-03-01T18:16:23Z")

</div>

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