Plex had playback issues on a users Iphone, so stopped the docker running plex server on unraid and then restarted the docker. Since then had the error 503 Maintenance “Plex Media Server is currently running database migrations”
Have waited 24 hours as per other suggestions but still nothing.
Logs from docker (on constant repeat)
Error: Unable to set up server: std::exception (N2DB9ExceptionE)
Stopping Plex Media Server.
Starting Plex Media Server.
Error: Unable to set up server: std::exception (N2DB9ExceptionE)
Stopping Plex Media Server.
Have tried spaceinvander one on how to fix a corrupt dasebase. Docker log now reads
Starting Plex Media Server.
Error: Unable to set up server: sqlite3_statement_backend::prepare: no such table: schema_migrations for SQL: select version from schema_migrations order by version (N4soci10soci_errorE)
Stopping Plex Media Server.
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec … or kill -l [sigspec]
updating the share access I got in via mapped network drive. Deleted the original datebase file and renamed a backup to the original files name. Docker now starts. Had to remap the librarys and rescan everything. But happy to back running. Will have Metadata to correct up again going this pathway
I now have a new problem where I can not share the new libraires I created to respectively replace the ones that no longer existed. I see the error “you don’t have any connected servers”
I have seen elsewhere perhaps logging out and logging back in.
Is this safe and easy to do on the ‘unraid docker gui’ without interfering with the server itself? Or is there another solution?
dealing with PMS in Docker on Unraid – you use the Console for best results.
Windows will frequently “muck it up”
By using a backup as I showed above, none of what you’re now experiencing will happen (which is why we do it this way)
Above, you show what seems to be an unclaimed server situation.
Preferences.xml contains the account/login information.
I’m starting to suspect you got a zero-length Preferences.xml
as a result of the last actions/shutdown (not sure what caused it) which PMS then resets and makes an unclaimed server. (why you needed to make new sections again)
-or-
The entire container storage area (/config) was erased.
One of the two caused what you’re seeing.
I always use the Unraid Docker GUI - Plex → “Console” to open a command line window.
In there you can do things like run DBRepair which would allow you to select older DBs and let it do the work for you.