# Terrible performance

**URL:** <https://forums.plex.tv/t/terrible-performance/929327>\
**Category:** Plex Media Server\
**Tags:** server-synology\
**Created:** [August 15, 2025, 5:08pm UTC](https://forums.plex.tv/t/terrible-performance/929327 "2025-08-15T17:08:21Z")\
**Posts on this page:** 20\
**Page:** 4

<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:** [September 13, 2025, 5:04pm UTC](https://forums.plex.tv/t/terrible-performance/929327/61 "2025-09-13T17:04:14Z")

</div>

DSM 7

> [@Synology FAQ - Questions, Answers, and How-To's](https://forums.plex.tv/t/synology-faq-questions-answers-and-a-few-how-tos/490215/39):
>
> FAQ 31: Reset / Reclaim PMS on DSM 7 (Not Authorized - Locked Out) Uninstall the app - Use the first radio button (KEEP) option. Reinstall the same, or newer, SPK (package) version. Select the “Install using Plex Claim Token” button Click the ‘Get Plex Claim Token’ blue hyperlink In the tab which opens, COPY the token it gives you Return to the installation page. You only have 5 minutes. B…

---

<div class="post-metadata">

**Author:** ![trumpy81](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/trumpy81/32/189687_2.png) [@trumpy81](https://forums.plex.tv/u/trumpy81)\
**Post date:** [September 14, 2025, 1:28am UTC](https://forums.plex.tv/t/terrible-performance/929327/62 "2025-09-14T01:28:29Z")

</div>

I went looking for answers to your question and I discovered that Chuck’s instructions actually want the DBRepair.sh file in the Plex (DSM6) or PlexMediaServer (DSM7) folder.

That’s my bad I’m afraid, I am always weary of placing foreign files in the Plex (DSM6) or PlexMediaServer (DSM7) folders, those folders are usually reserved for Plex use only.

Also, given the error message you received, running DBRepair from it’s current location forces it to look for a Docker container of some description, which is why it spat out the errors, it could not find a Docker container.

I’m sure Chuck will whack my knuckles if I’m wrong … lol

---

<div class="post-metadata">

**Author:** ![bward149](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@bward149](https://forums.plex.tv/u/bward149)\
**Post date:** [September 14, 2025, 1:18pm UTC](https://forums.plex.tv/t/terrible-performance/929327/63 "2025-09-14T13:18:31Z")

</div>

Sorry to be a bit slow on this, but I was really after the code I need to type in to run DBRepair programme. I realise I may have recently been told this, but am a little confused.

I followed the procedure to reset/reclaim PMS on DSM7 on [Synology FAQ - Questions, Answers, and How-To's - #39 by ChuckPa](https://forums.plex.tv/t/synology-faq-questions-answers-and-a-few-how-tos/490215/39) and after deleting some old unused Authorised Devices, access to my media is definitely better. Do/should I still run DBRepair, or will Plex now ‘take care of itself’?

---

<div class="post-metadata">

**Author:** ![trumpy81](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/trumpy81/32/189687_2.png) [@trumpy81](https://forums.plex.tv/u/trumpy81)\
**Post date:** [September 14, 2025, 1:25pm UTC](https://forums.plex.tv/t/terrible-performance/929327/64 "2025-09-14T13:25:09Z")

</div>

To run the DBRepair.sh file, make sure you _cd_ to the Plex/PlexMediaServer folder, where the file is stored, then type in:

`./DBRepair.sh`

Running the DBRepair cannot hurt anything and it may actually improve things, fingers crossed.

You can read all the instructions and info about DBRepair here: [DBRepair - ChuckPa](https://github.com/ChuckPa/PlexDBRepair)

---

<div class="post-metadata">

**Author:** ![bward149](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@bward149](https://forums.plex.tv/u/bward149)\
**Post date:** [September 15, 2025, 10:42am UTC](https://forums.plex.tv/t/terrible-performance/929327/65 "2025-09-15T10:42:43Z")

</div>

I thought I’d posted the following-

In Terminal, running ./DBRepair.sh , I got the following output:

grep: /proc/1/cgroup: No such file or directory  
grep: /proc/1/cgroup: No such file or directory  
grep: /proc/1/cgroup: No such file or directory  
grep: /proc/1/cgroup: No such file or directory

Error: Unknown host. Current supported hosts are: QNAP, Syno, Netgear, Mac, ASUSTOR, WD (OS5), Linux wkstn/svr, SNAP, FreeBSD 14+

```auto
                 Current supported container images: Plexinc, LinuxServer, HotIO, & BINHEX

                 Manual host configuration is available in most use cases.

```

Are you trying to run the tool from outside the container environment? Manual mode is available. Please see documentation.

I understand I may need Docker or similar, but this is outside my understanding, despite your helpful web page..

---

<div class="post-metadata">

**Author:** ![trumpy81](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/trumpy81/32/189687_2.png) [@trumpy81](https://forums.plex.tv/u/trumpy81)\
**Post date:** [September 15, 2025, 10:57am UTC](https://forums.plex.tv/t/terrible-performance/929327/66 "2025-09-15T10:57:33Z")

</div>

No, you do NOT need Docker. Docker is an alternative way of setting up your PMS server on the NAS.

You need to place the DBRepair.sh file inside the Plex or PlexMediaServer folder before you run it.

This is why I stated: _make sure you cd to the Plex/PlexMediaServer folder_.

If you are unsure of any of the instructions you have been given, then scroll up the page in the forum and read them again.

---

<div class="post-metadata">

**Author:** ![Disgustipated](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/disgustipated/32/4550_2.png) [@Disgustipated](https://forums.plex.tv/u/Disgustipated)\
**Post date:** [September 15, 2025, 1:10pm UTC](https://forums.plex.tv/t/terrible-performance/929327/67 "2025-09-15T13:10:43Z")

</div>

Are you SSHed in to the Synology when you’re running the DBRepair script? The script has to be run from the device running PMS, not your local Mac.

---

<div class="post-metadata">

**Author:** ![bward149](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@bward149](https://forums.plex.tv/u/bward149)\
**Post date:** [September 15, 2025, 4:24pm UTC](https://forums.plex.tv/t/terrible-performance/929327/68 "2025-09-15T16:24:52Z")

</div>

> [@Disgustipated](#):
>
> SSH

Er, I don’t think so. Terminal tells me that “The default interactive shell is now zsh.  
To update your account to use zsh, please run `chsh -s /bin/zsh`.” Do I need to run that, or am I barking up the wrong tree, regarding SSH?

On a search, it seems I have three copies of Plex Media Server, none of them are located on my NAS. The oldest one, with the creation date of 1 January 1970 (which I know is a bogus date) lives in my Applications folder. The second one lives on an external hard drive and has the date modified of 16 November 2024. The third one is not able to be opened, as its is damaged. But it has the most recent date of 12 May 2025.

I think there’s a bit of a mess going on here…

---

<div class="post-metadata">

**Author:** ![Disgustipated](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/disgustipated/32/4550_2.png) [@Disgustipated](https://forums.plex.tv/u/Disgustipated)\
**Post date:** [September 15, 2025, 4:31pm UTC](https://forums.plex.tv/t/terrible-performance/929327/69 "2025-09-15T16:31:44Z")

</div>

So I am confused. Do you not have the Synology Plex Media Server package installed on your NAS? If it isn’t running on your NAS then this should be tagged as a Mac server issue, not a Synology server issue, and the whole thing has been a wild goose chase.

---

<div class="post-metadata">

**Author:** ![bward149](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@bward149](https://forums.plex.tv/u/bward149)\
**Post date:** [September 15, 2025, 4:32pm UTC](https://forums.plex.tv/t/terrible-performance/929327/70 "2025-09-15T16:32:24Z")

</div>

I am definitely in the NAS\>PlexMediaServer folder, where DBRepair.sh lives. So I am not sure what to do next. I will go over the documentation again

From Terminal:

baward$ ./DBRepair.sh

grep: /proc/1/cgroup: No such file or directory  
grep: /proc/1/cgroup: No such file or directory  
grep: /proc/1/cgroup: No such file or directory  
grep: /proc/1/cgroup: No such file or directory

Error: Unknown host. Current supported hosts are: QNAP, Syno, Netgear, Mac, ASUSTOR, WD (OS5), Linux wkstn/svr, SNAP, FreeBSD 14+

```
                 Current supported container images: Plexinc, LinuxServer, HotIO, & BINHEX

                 Manual host configuration is available in most use cases.

```

Are you trying to run the tool from outside the container environment? Manual mode is available. Please see documentation.

Mac-mini:PlexMediaServer baward$ ls

ここにメディアファイルを置かないでください。  
请不要在此处放置任何媒体文件。  
AppData  
BR0II5~S  
**DBRepair.sh**  
PFITJG~J  
PZ4KAG~W  
VEQ75K~Q

---

<div class="post-metadata">

**Author:** ![bward149](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@bward149](https://forums.plex.tv/u/bward149)\
**Post date:** [September 16, 2025, 2:31pm UTC](https://forums.plex.tv/t/terrible-performance/929327/71 "2025-09-16T14:31:46Z")

</div>

Yes, I definitely have PMS installed on my NAS, and that’s where TV/Films etc. are meant to be served from.

I’ll still like to be able to run DBRepair. I don’t seem to be able to run it from within the PlexMediaServer folder even though Terminal tells me that’s where I currently am), it’s all a bit beyond me so I might give up. But I’ll keep trying…

---

<div class="post-metadata">

**Author:** ![trumpy81](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/trumpy81/32/189687_2.png) [@trumpy81](https://forums.plex.tv/u/trumpy81)\
**Post date:** [September 16, 2025, 8:05pm UTC](https://forums.plex.tv/t/terrible-performance/929327/72 "2025-09-16T20:05:26Z")

</div>

You must **SSH** into your NAS before you can run DBRepair.sh.

In Mac terminal, type in the following:

ssh YourAdminUser@NAS-IP-Address -p 24  
Then enter YourAdminUser’s password  
sudo -su root  
cd /volume1/PlexMediaServer  
chmod +x DBRepair.sh  
./DBRepair.sh

Press Enter at the end of each of the above lines.

**Note:** _YourAdminUser_ is the user on your NAS that has admin privileges. Don’t use the default Admin user account on the NAS.  
**Note:** use -p xx if you changed the default port number in DSM Control Panel \> Terminal & SNMP. Don’t use -p xx if you have not changed the port number.  
**Note:** After you enter sudo -su root, the screen prompt will change, that is normal.  
**Note:** After you run DBRepair.sh, follow the onscreen prompts.

---

<div class="post-metadata">

**Author:** ![bward149](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@bward149](https://forums.plex.tv/u/bward149)\
**Post date:** [September 18, 2025, 11:17am UTC](https://forums.plex.tv/t/terrible-performance/929327/73 "2025-09-18T11:17:25Z")

</div>

I tried this but unfortunately had my connection refused. I am still persisting, though. I have asked Synology support to confirm what is the “user on your NAS that has admin privileges” named.

I am still using the IP address of 192.168.178.35 .

Thank you.

---

<div class="post-metadata">

**Author:** ![Disgustipated](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/disgustipated/32/4550_2.png) [@Disgustipated](https://forums.plex.tv/u/Disgustipated)\
**Post date:** [September 18, 2025, 1:26pm UTC](https://forums.plex.tv/t/terrible-performance/929327/74 "2025-09-18T13:26:42Z")

</div>

Did you specify the port? In this post you were able to connect: [Terrible performance - #50 by bward149](https://forums.plex.tv/t/terrible-performance/929327/50)

---

<div class="post-metadata">

**Author:** ![bward149](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@bward149](https://forums.plex.tv/u/bward149)\
**Post date:** [September 18, 2025, 2:09pm UTC](https://forums.plex.tv/t/terrible-performance/929327/75 "2025-09-18T14:09:31Z")

</div>

Thank you. This time I didn’t, no. I was slightly confused by trumpy81’s comment “use -p xx if you changed the default port number in DSM Control Panel \> Terminal & SNMP.“ which I idly read as “use -p xx if you _didn’t_ change” etc.

I am now ‘in’ as it were (green cursor), and later on I will complete the rest of trumpy81’s instructions.

---

<div class="post-metadata">

**Author:** ![bward149](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@bward149](https://forums.plex.tv/u/bward149)\
**Post date:** [September 19, 2025, 8:39am UTC](https://forums.plex.tv/t/terrible-performance/929327/76 "2025-09-19T08:39:22Z")

</div>

Progress! I am into DBRepair.sh, I believe. The last line of the Terminal window is:  
Enter command # -or- command name (4 char min) :

One question; do I use quote marks when entering a command? (I didn’t want to break anything as I realise this is a bit off a potentially dangerous area for someone not greatly experience with Terminal.) I tried AUTO and ‘automatic’ but just seemed the have got back where I started.

---

<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:** [September 19, 2025, 9:30am UTC](https://forums.plex.tv/t/terrible-performance/929327/77 "2025-09-19T09:30:42Z")

</div>

> [@bward149](#):
>
> do I use quote marks when entering a command

No.

Use stop, auto, start, exit.

With auto, you’ll see info about checking, exporting, importing, etc. if it completes without errors, then you can start and exit.

Exit provides an option to delete backup files. If no errors in earlier steps, then OK to delete them.

---

<div class="post-metadata">

**Author:** ![bward149](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@bward149](https://forums.plex.tv/u/bward149)\
**Post date:** [September 19, 2025, 4:46pm UTC](https://forums.plex.tv/t/terrible-performance/929327/78 "2025-09-19T16:46:13Z")

</div>

> [@FordGuy61](#):
>
> auto

At last, I have run the routine. Here’s the output (mildly edited for this post, to remove spaces in the text) so it seems to have run perfectly:

“ Enter command # -or- command name (4 char min) : auto

Automatic Check,Repair,Index started.

Checking the PMS databases  
Check complete. PMS main database is OK.  
Check complete. PMS blobs database is OK.

Exporting current databases using timestamp: 2025-09-19\_17.23.55  
Exporting Main DB  
Exporting Blobs DB  
Successfully exported the main and blobs databases.

Start importing into new databases.  
Importing Main DB.  
Importing Blobs DB.  
Successfully imported databases.

Verifying databases integrity after importing.

Verification complete. PMS main database is OK.  
Verification complete. PMS blobs database is OK.  
Saving current databases with ‘-BACKUP-2025-09-19\_17.23.55’

Making repaired databases active

Repair complete. Please check your library settings and contents for completeness.

Recommend: Scan Files and Refresh all metadata for each library section.

Backing up of databases

Backup current databases with ‘-BACKUP-2025-09-19\_17.27.10’ timestamp.  
Reindexing main database  
Reindexing main database successful.  
Reindexing blobs database  
Reindexing blobs database successful.  
Reindex complete.

Automatic Check, Repair/optimize, & Index successful. “

When you say “Recommend: Scan Files and Refresh all metadata” - I take it you mean in Plex web?

Now that it’s complete, your Github webpage will make a whole lot more sense, when I review it shortly.

Again, thanks very much for all your assistance and for providing DBRepair. I’m going away to check on the behaviour of Plex on my Smart TV(s)/Amazon Fire(s)

---

<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:** [September 19, 2025, 5:00pm UTC](https://forums.plex.tv/t/terrible-performance/929327/79 "2025-09-19T17:00:16Z")

</div>

> [@bward149](#):
>
> When you say “Recommend: Scan Files and Refresh all metadata” - I take it you mean in Plex web?

Correct.

For future reference, you can place all those options on the command line instead of using the menus: `./DBRepair stop auto start exit`.

Note that `exit` on the command line assumes a “yes” answer to “do you want to delete…” and deletes the temp/working files automatically.

---

<div class="post-metadata">

**Author:** ![bward149](https://avatars.discourse-cdn.com/v4/letter/b/e8c25b/32.png) [@bward149](https://forums.plex.tv/u/bward149)\
**Post date:** [September 19, 2025, 7:16pm UTC](https://forums.plex.tv/t/terrible-performance/929327/80 "2025-09-19T19:16:51Z")

</div>

Duly noted.

But I’ve now run into a new problem which means all my media is inaccessible. It’s because the server won’t stay running. It keeps on stopping itself, a few seconds after pressing ‘run’ in PMS in DSM. I had entered ‘start’ and ‘exit’ after my earlier adventures (above)

[Previous page](https://forums.plex.tv/t/terrible-performance/929327.md?page=3)

[Next page](https://forums.plex.tv/t/terrible-performance/929327.md?page=5)
