Server version: 1.22.1.4228 from Linuxserver.io docker
OS: Unraid
I am trying to check for corruption and im getting these errors…
Note: I move the db to do all this stuff so thats why the path has “clean” in it, thats where I copy my db to do work then put it back later.
root@MIKESDESKTOP:/mnt/disks/ADATA_1TB/PlexMediaServer/clean# sqlite3 com.plexapp.plugins.library.db "DROP index 'index_title_sort_naturalsort'"
Error: no such index: index_title_sort_naturalsort
root@MIKESDESKTOP:/mnt/disks/ADATA_1TB/PlexMediaServer/clean# sqlite3 com.plexapp.plugins.library.db "PRAGMA integrity_check"
Error: no such collation sequence: icu_root
In this post Chuck PA says you have to invoke built in SQLITE3 and later in the post says documentation will be updated once they go public version
When I try his method I get this…
root@MIKESDESKTOP:/mnt/disks/ADATA_1TB/PlexMediaServer/clean# "/usr/lib/plexmediaserver/Plex Media Server" --sqlite
bash: /usr/lib/plexmediaserver/Plex Media Server: No such file or directory
root@MIKESDESKTOP:~# "/usr/lib/plexmediaserver/Plex Media Server" --sqlite
bash: /usr/lib/plexmediaserver/Plex Media Server: No such file or directory
Am I missing something? I have the docker installed so does that make any difference?
I’m also getting weird errors in the log about libusb_int when I shut down the container. I also get libusb errors other times. These errors dont exist in the plexserver logs only in the container log themselves.
I’m also on unraid and just got a warning about a corrupt database.
This is how i invoked it:
but its my understanding that we can’t attempt repairs on the DB while the docker is running and we have to use the built in sqlite version? Is it possible to stop plex as a service while keeping the docker up so we can attempt DB repairs? Can we get some updated instructions?
Your path to the executable is incorrect. That’s what the error bash: /usr/lib/plexmediaserver/Plex Media Server: No such file or directory means. Likely the LSIO container installs it in a different location.
I’m not sure which container you are talking about but the plex container uses s6 as its launch daemon which allows you to shutdown the plex service within the container. You should be able to stop it via the script at the root: /plex_service.sh -d. I’m not sure if the LSIO container uses the same but I expect there is a way to shut it down in their container as well.