Server Version#: Latest
Here’s my scenario. Up until today I’d been running Plex directly off my Ubuntu install. I’d been having some issues with upgrading and decided it was a good opportunity to move to Kubuntu and also migrate to docker for better manageability.
So I install Docker on a completely fresh Kubuntu install. I use the official yml file for the official plex image. Docker compose file contents:
version: ‘2’
services:
plex:
container_name: plex
image: plexinc/pms-docker
restart: unless-stopped
environment:
- TZ=America/New_York
- PLEX_UID=1000
- PLEX_GID=1000
- PLEX_CLAIM=REDACT
network_mode: host
volumes:
- /home/wpx/DockerFolders/PlexConfig:/config
- /mnt/wpx/Plex Library:/data
The mounted directory for my media is on a Synology NAS and mounted over NFS. I copy pasted my fstab from the previous install for mapping, and this was the exact same setup as on the old install. The only different piece is Docker.
What happens is every single time I add a Library and start scanning it, the database immediately goes corrupt. In the docker logs output I can see it:
****** PLEX MEDIA SCANNER CRASHED, CRASH REPORT WRITTEN: /config/Library/Application Support/Plex Media Server/Crash Reports/1.41.6.9685-d301f511a/PLEX MEDIA SCANNER/e8e387d7-e016-42f9-1f15bf91-72c9eef8.dmp
In the Plex logs you can see the corruption happen as well:
Apr 15, 2025 23:19:10.306 [140521045502776] DEBUG - Found existing show 4 Apr 15, 2025 23:19:10.309 [140521150360376] DEBUG - Activity: updated activity fb674c8b-e564-4b79-a352-9cba8d03a6be - completed 0.4% - Scanning TV Shows Apr 15, 2025 23:19:10.309 [140521150360376] DEBUG - Scanner: Processing directory /data/TV Shows/30 Rock/30.Rock.S03.PROPER.1080p.BluRay.x265-KONTRAST/Subs/30.Rock.S03E10.PROPER.1080p.BluRay.x265-KONTRAST (parent: yes) Apr 15, 2025 23:19:10.309 [140521045502776] ERROR - SQLITE3:0x80000001, 11, database corruption at line 68825 of [a29f994989]
Followed by many more lines of database corruption being called out.
I’m at a complete loss. I’ve tried completely clean installs four times now and the second I add a library and start scanning, it immediately corrupts the DB. Every time. Completely fresh system.
Any help is greatly appreciated, I’m at my wits’ end here. I thought this would be a five minute process and now the family’s mad at me because we have no media.