romancin / tinymediamanager-docker

A repository for creating a docker container including TinyMediaManager with GUI interface.
203 stars 69 forks source link

IllegalStateException java.lang.IllegalStateException: The file is locked: nio:data/movies.db [1.4.197/7] #52

Closed yagomp closed 3 years ago

yagomp commented 3 years ago

Hi!

I am running your docker image on my Synology NAS and my main user case is to automate the renaming of files using the Task Scheduler (headless use).

After configuring TMM settings using the GUI, I have doubled checked that everything is working fine. Then I close the GUI and I run the following command via SSH: sudo docker exec -ti tmm /config/tinyMediaManagerCMD.sh -updateMovies -scrapeAll -rename

I have managed to get it to work, but sometimes I get the following error message: ERROR [headless] org.tinymediamanager.TinyMediaManager:361 - IllegalStateException java.lang.IllegalStateException: The file is locked: nio:data/movies.db [1.4.197/7]

I have 2 TMM containers running on my system, and I make sure to stop them right after the renaming process has finished by using the following command via SSH: sudo docker stop tmm

What am I missing here? I got it working before, but I am not sure what is root cause of the error message I posted above.

Thanks!