Docker Plex not scanning library

Server Version#: 1.21.2.3943

Trying to setup Plex in Docker on Ubuntu.
I have created the Plex server, and connected it to my Plex account.
After adding a library the scanner starts, but it only finds 4-10 movies.

Docker logs attached as DockerLog.log (The 3 dmp files from the log is not in the folder as it states.)DockerLog.log (32.2 KB) Docker-compse attached. docker-compose.txt (381 Bytes)

The Folder /netshares/ds1511/plex on the host is a network mount to my synology share (cifs)
fstab line:
//syno.nh4.4tw.dk/plex /netshares/ds1511/plex cifs vers=3.0,credentials=/root/.plexcred,iocharset=utf8,file_mode=0777,dir_mode=0777,uid=root,gid=root,nofail 0 0

Let me know if you need more info

Regards LarsPlex Media Server Logs_2021-01-29_22-52-19.zip (162.8 KB)

Database is damaged.

Jan 29, 2021 22:38:57.335 [0x7f519dffb700] DEBUG - Request: [127.0.0.1:42014 (Loopback)] GET /identity (3 live) Signed-in
Jan 29, 2021 22:38:57.336 [0x7f51df7fe700] DEBUG - Completed: [127.0.0.1:42014] 200 GET /identity (3 live) 0ms 398 bytes (pipelined: 1)
Jan 29, 2021 22:38:57.439 [0x7f51c17fa700] ERROR - SQLITE3:(nil), 11, database corruption at line 65066 of [bf8c1b2b7a]
Jan 29, 2021 22:38:57.439 [0x7f51c17fa700] ERROR - SQLITE3:(nil), 11, statement aborts at 9: [select metadata_items.id as 'metadata_items_id', metadata_items.library_section_id as 'metadata_items_library_section_id', metadata_items.parent_id as 'metadata_items_parent_id', metada
Jan 29, 2021 22:38:57.440 [0x7f51c17fa700] ERROR - Native Scanner: Exception executing stage Add to Database: sqlite3_statement_backend::loadOne: database disk image is malformed
Jan 29, 2021 22:38:57.440 [0x7f51c17fa700] DEBUG - Native Scanner: Executed Add to Database stage in 4.15 sec.
Jan 29, 2021 22:39:00.209 [0x7f519dffb700] DEBUG - Request: [127.0.0.1:42018 (Loopback)] GET /library/changestamp (3 live) GZIP Signed-in Token (nOrphf)
Jan 29, 2021 22:39:00.209 [0x7f51df7fe700] DEBUG - Completed: [127.0.0.1:42018] 200 GET /library/changestamp (3 live) GZIP 0ms 464 bytes
Jan 29, 2021 22:39:02.677 [0x7f519dffb700] DEBUG - Request: [127.0.0.1:42020 (Loopback)] GET /identity (3 live) Signed-in

Hi

Thank you for your answer.
Since this is a brand new install, and it is happening every time I set up the container as a new server I suspect my setup :).
Is thes most likely because the database resides on a network share?
Or can you see another reason?

Regards Lars

Yes. Placing the database on a network share will always lead to database corruption because CIFS does not support the file locking required.

The best you could ever hope for, which still is unsupported, is NFS v4 to a NFS v4 server

Thanks. I will se if I put it local or try the NFS way .

Regards Lars

local is always best. You are guaranteed the kernel sees both the application and the target file. Network locks rely on the network sharing protocol daemon to be as timely and atomic (emphasis on atomic) as the kernel is.

If I put it local, what is the best way to do backup of my configuration/whats watched ?

Regards Lars

best way is a simple cron job.

  1. Stop Plex
  2. Make a tar ball
  3. Start Plex

This gives you an image backup so you can restore to precisely the point of the last image backup.

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