kgp
kubectl exec --stdin --tty plex-7c7678c96d-btc28 -- /bin/bash
cd '/config/Library/Application Support/Plex Media Server/Plug-in Support/Databases'

ls /usr/lib/plexmediaserver/

'/usr/lib/plexmediaserver/Plex SQLite' com.plexapp.plugins.library.db

(src: https://support.plex.tv/articles/repair-a-corrupted-database/)

yeah, keep getting error

database disk image is malformed

src: https://www.reddit.com/r/PleX/comments/15uhckv/database_disk_image_is_malformed_how_to_repair/ -> https://github.com/ChuckPa/PlexDBRepair/blob/master/DBRepair.sh

no vi / vim on docker image

so doing it the cat way

cat > DBRepair.sh
<paste code>
<ctrl-d>
chmod +x DBRepair.sh
./DBRepair.sh

I chose automatic

afterwards, the integrity check was ok

'/usr/lib/plexmediaserver/Plex SQLite' com.plexapp.plugins.library.db
SQLite version 3.39.4 2022-09-29 15:55:41
Enter ".help" for usage hints.
sqlite> PRAGMA integrity_check;
ok