cjmanca / plex-credits-detect

Augments plex's built in intro detection, additionally detecting credits.
MIT License
114 stars 5 forks source link

Unable to start container - `Invalid database path` #32

Closed prozbin closed 2 years ago

prozbin commented 2 years ago

Hi, running the docker container (on a linux machine) for the first time with an initial fingerprint.ini file (just removed the mapping directory path)

Log:

Loading global config file: /config/plex-credits-detect/fingerprint.ini
PlexDB.LoadDatabase - Invalid database path
Unhandled exception. System.ArgumentException: Invalid database path
  at plexCreditsDetect.Database.PlexDB.LoadDatabase(String path) in /src/plex-credits-detect/Database/PlexDB.cs:line 69
  at plexCreditsDetect.Program.Main(String[] args) in /src/plex-credits-detect/Program.cs:line 31

fingerprint.ini

[directories]

[intro]
introStart = 0
introEnd = 0.5
introMaxSearchPeriod = 900

[...]

[paths]
databasePath = /config/plex-credits-detect/database
PlexDatabasePath = /PlexDB/com.plexapp.plugins.library.db
TempDirectoryPath = /config/plex-credits-detect/temp
ffmpegPath = ffmpeg

Docker command:

docker run \
    -d \
    --restart=always \
    -v $DATADIR/config:/config \
    -v '/mnt/SSD2/PlexMetas/Plug-in Support/Databases':/PlexDB \
    -v /media:/media:ro \
    --name $NAME \
    $IMAGE

Any thoughts? Thx!

cjmanca commented 2 years ago

It can't access the com.plexapp.plugins.library.db file. The two most likely possibilities are:

  1. It doesn't have appropriate read/write permissions to that file
  2. The file isn't actually located at the path: /mnt/SSD2/PlexMetas/Plug-in Support/Databases/com.plexapp.plugins.library.db
prozbin commented 2 years ago

That was it, I thought this message was related to the internal database of plex-credits located next to the config (fingerprintmedia.db).

Thank you 👍