Sqlite3: Sleeping for 200ms to retry busy DB

Server Version#:1.23.4.4805-186bae04e
Player Version#:

I run plex on a qnap TS-431P.

I moved to a place where power is cut every now and then.

[admin@alys ~]$ /etc/init.d/plex.sh start
/etc/init.d/plex.sh: line 25: /share/CE_CACHEDEV1_DATA/.qpkg/PlexMediaServer/etc/ld-musl-x86_64.path: No such file or directory
/etc/init.d/plex.sh: line 157: [: -gt: unary operator expected
Starting Plex Media Server…
[admin@alys ~]$ 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.
libc++abi: terminating with uncaught exception of type soci::soci_error: Cannot begin transaction. database is locked
****** PLEX MEDIA SERVER CRASHED, CRASH REPORT WRITTEN: /share/CE_CACHEDEV1_DATA/.qpkg/PlexMediaServer/Library/Plex Media Server/Crash Reports/1.23.4.4805-186bae04e/PLEX MEDIA SERVER/e6860f29-e2f5-49c7-66b936ba-1dbf926e.dmp

There are several articles in the forum, but none of the suggestions seem to solve my problem

You’re trying to start PMS from an unprivileged account .

Notice the $ in the prompt.
When using a privileged (root / admin) account, having signed in as admin , it will show the # prompt.

That’s also why the script is creating errors.
plex.sh is written to be started by QTS (as root) or from a root account.

Thanks for the swift response.
[admin@alys ~]$ grep root /etc/passwd

no such account available on qnap.

[admin@alys ~]$ id -a
uid=0(admin) gid=0(administrators)

I am indeed root. The script plex.sh is as provided by PLEX.

[admin@alys ~]$ ls -l /etc/init.d/plex.sh
lrwxrwxrwx 1 admin administ 54 Jan 30 22:17 /etc/init.d/plex.sh → /share/CE_CACHEDEV1_DATA/.qpkg/PlexMediaServer/plex.sh*

I inadvertedly deleted plex.sh and decided to re-install Plex on my qnap.
The error is gone now.

Also, I just ordered an UPS.
If I get hit by another outage before its arrival and the error strikes again, I will post an update

Beat

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