Can't access Plex Server

Hi there,

I’m having a similar issue where the page normally leading to the Plex Server is now going to 404 Unable to connect page suddenly. It’s also running on a QNAP NAS, and it only started after I accidentally disconnected the power to the NAS while it was running, but not actually doing any streaming. I tried to do the SSH to the QNAP when the PMS is stopped. However, I should note the only processes running were this one which seems to just be the folder (like the third line in Wouter35’s list), and I have none of the actual .qpkg showing in my running processes regardless of it being before OR after stopping the PMS on my App Center. So it’s like it’s not even starting up despite it showing as started in the QNAP App Center.

I will also note, I’ve stopped, uninstalled, installed, uninstalled, installed manually, both the most recent version available from App center AND version 1.25.3.5409, 1.25.2.5319, and 1.25.1.5286. It’s always the same, the app shows open in App Center, but 404’ing and the processes list always showing the same thing, only the “./Plex Media Server” process and my “grep -i plex”. I made sure even that process was stopped, installed, and yet still same issue.
Hoping you can help me as well, thank you in advanced.
Here’s my exact process list still:

[alex@BigNasX share]$ ps -ef | grep -i plex
 3211 admin     22932 S   ./Plex Media Server
12518 alex        432 S   grep -i plex

Moved to a separate thread, since the other was already marked as solved

In an SSH console, type the following and show us the output afterwards

$(getcfg -f /etc/config/qpkg.conf PlexMediaServer Install_path)/plex.sh restart

Hi @dane22

I am lost, too.
I updated to the latest beta 2,5 hours ago and since then, I cannot access my QNAP server any longer. I read about “update taking longer” but I only find a couple of WARNINGS about plug-ins not being found when I check the logs via SSH…

What exactly’s the procedure to find out which problem I do have?

With the server being started?

Mine shows:
Plex Media Server hasn’t been enabled or started…
Starting Plex Media Server…
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Sqlite3: Sleeping for 200ms to retry busy DB.
Error: Unable to set up server: sqlite3_statement_backend::loadOne: database is locked (N4soci10soci_errorE)

Above means the following:

It’s stopped in the AppCenter, and was started from SSH

A former process has locked the database, and will not let go :frowning:

Type the following:

$(getcfg -f /etc/config/qpkg.conf PlexMediaServer Install_path)/plex.sh stop

Wait 2 min, and then type:

ps aux | grep plex

If it respond with anything else than a single line with the words grep plex in it, then a process is still running and needs to be killed, so please show the output if so

If it doesn’t show anything else, then type:

$(getcfg -f /etc/config/qpkg.conf PlexMediaServer Install_path)/plex.sh start

and show the output

Here’s the output:

19554 admin    146400 S N Plex Plug-in [com.plexapp.system] /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-f11334058/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.25.3.5409-f11334058 /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-f11334058/System.bundle
21229 admin     38112 S   Plex Plug-in [com.plexapp.plugins.WebTools] /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Resources/Plug-ins-f11334058/Framework.bundle/Contents/Resources/Versions/2/Python/bootstrap.py --server-version 1.25.3.5409-f11334058 /share/CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Plug-ins/WebTools.bundle

Type the following:

kill -9 19554
kill -9 21229
$(getcfg -f /etc/config/qpkg.conf PlexMediaServer Install_path)/plex.sh start

The kill processes leave no processes open, but starting the server via command line just shows the same result (locked db) as before.

Then sadly the OS File-System is not releasing the lock when the process is killed.

Can only suggest then, that you restart your QNAP

I am just doing this as we speak. Any things I need to check with the QNAP starting? Database integrity? I am not used to things like that…

Start with the reboot, and start from the QTS AppCenter

Then report back

Well, after server restart, PMS is running (automatically)…
Since I could not be sure that the last update was working okay, I stopped/killed all processes, then re-installed latest Plex beta, then restarted the server.

There I am now…

BTW: Thank you so much for supporting me with that problem…

Meaning it works, or ?

And note that latest does DB cleanups, so could take a long time to start

Ref: Plex Media Server - #481 by drzoidberg33

Yeah, it works… I am not sure about the database maintainance work… it was working pretty instantly after server restart.

1 Like

A post was split to a new topic: Write Access denied

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