Starting up docker in unraid seems to be in a loop?

Server Version#: latest, plexpass
Player Version#:
Restarting the server docker fails. The log indicates that the server seems to be in a loop saying “Starting Plex media Server.”. I have left this 30mins or more!!! I have also tried restarting unraid. This makes no difference!!

“[s6-init] making user provided files available at /var/run/s6/etc…exited 0.
[s6-init] ensuring user provided files have correct perms…exited 0.
[fix-attrs.d] applying ownership & permissions fixes…
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts…
[cont-init.d] 40-plex-first-run: executing…
[cont-init.d] 40-plex-first-run: exited 0.
[cont-init.d] 50-plex-update: executing…
[cont-init.d] 50-plex-update: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.
Starting Plex Media Server.”

From unraid docker gui open a terminal to docker and gather logs and post.

Thanks for helping😀 I can open the terminal, but how do I get the logs?

it should be under your /config directory which is specified in your docker under that its located at this path.

Library/Application Support/Plex Media Server/Logs

Great, thanks. This one?
Plex Media Server.log (1.2 KB)

Yeah that shows a corrupt database

https://support.plex.tv/articles/201100678-repair-a-corrupt-database/

If you have a backup you can restore it or try to repair or start from scratch.

I have the same exact issue - Unraid 6.7.2 - plexinc/pms-docker - latest . The logs even look the same.

[services.d] starting services
[services.d] done.
Starting Plex Media Server.
(repeats)

I followed the corrupt database article referenced- and chose to delete the library.db (all dbs). When I restarted Plex - it rebuilt the dbs, but had the same loop.
I then un-installed the docker.
Deleted the appdata folder for Plex and reinstalled. Same loop.

Could it be a permissions issue to the DB?

Has there been any updates on this?
I’ve got the same problem. v6.7.2

In my case it corrupted several times even after a fresh install. Reverting to 6.6.7 with a working db fixed it. Took two weeks trying each version. Tested this about 20 times with the various solutions on the Unraid forums. This isn’t probably an issue that is to be fixed on Plex side. Many cases of it on the Unraid forum. Happens with Radarr and Sonarr too. Dockers with sqlite dbs.

As for the loop, this is what worked for me. Just remove all the db files and start only with the library.db or hunt and delete the two blob.db files, it should start. I could replicate this with a recovered db and a non-matching blob.db. Deleting the blob.db always broke the loop for me.

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