komga
komga copied to clipboard
lucene index rebuild causing issues in docker
Steps to reproduce
- Get the latest komga image for docker (
docker pull gotson/komga:latest), - Use
docker compose up -dto launch a container, - Leave it running, and the error will appear.
Expected behavior
What I wanted to happen, was for my komga install to run, and I would be able to read manga/comics/webtoons using the webui, as I had been doing for the past few days.
Actual behavior
What happened instead, was after I restarted it, java giving this error java.nio.channels.OverlappingFileLockException: null after trying to rebuild the lucene index.
Logs
(the write.lock file is 0kb, so that won't be of much use)
Komga version
0.154.1
Operating system
Docker (MacOS)
Acknowledgements
- [X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
- [X] I have written a short but informative title.
- [X] I have checked the FAQ.
- [X] I have updated the app to the latest version.
- [X] I will fill out all of the requested information in this form.
Try to stop komga, delete the artemis folder located in the config dir, and start komga again.
Thanks, but that didn't help. It's still spitting out the same error.
~~Check the rights on the docker mounts.~~
Try deleting the lucene folder too, and then start komga.
Ok, I used this [chmod -R a+rwx /Volumes/WD2TB/Media/] command to allow everyone to read and/or write to the config and media folders, and then deleted the artemis and lucene folders. But persistence is strong with this one. It re-created the artemis and lucene folders, with their contents, and gave me the exact same error.
You may have a duplicate process accessing the same file, which gives the error.
Check if you have 2 komga instances running, or in doubt reboot.
I've rebooted and removed every running task that I wasn't using. Aaaand it's still there. I'll quickly see what happens if I try to create a new database.
Ok, it does create the database, the log files, and the artemis folder, but when it gets to the lucene rebuild. Same error.
That error means 2 processes are concurrently trying to access the index. You will need to check your system to find out who's accessing the files.
Ok, shall do.
This is the output of lsof | grep "/Volumes/WD2TB/" while komga is on (after the error):
com.docke 771 antariksh 113r DIR 1,12 131072 298492 /Volumes/WD2TB/Media/Data/Komga/Config
com.docke 771 antariksh 114r DIR 1,12 131072 409224 /Volumes/WD2TB/Media/Data/Komga
com.docke 771 antariksh 115r DIR 1,12 131072 104696 /Volumes/WD2TB/Media/Data
com.docke 771 antariksh 116r DIR 1,12 131072 104672 /Volumes/WD2TB/Media
com.docke 771 antariksh 122r DIR 1,12 131072 3590118 /Volumes/WD2TB/Media/Literature
com.docke 771 antariksh 123r DIR 1,12 131072 104672 /Volumes/WD2TB/Media
com.docke 771 antariksh 127w REG 1,12 99230 436568 /Volumes/WD2TB/Media/Data/Komga/Config/logs/komga.log
com.docke 771 antariksh 128u REG 1,12 19 1310403 /Volumes/WD2TB/Media/Data/Komga/Config/artemis/journal/server.lock
com.docke 771 antariksh 129u REG 1,12 0 1 /Volumes/WD2TB/Media/Data/Komga/Config/artemis/journal/serverlock.1
com.docke 771 antariksh 131u REG 1,12 0 1 /Volumes/WD2TB/Media/Data/Komga/Config/artemis/journal/serverlock.1
com.docke 771 antariksh 132u REG 1,12 1048576 1310407 /Volumes/WD2TB/Media/Data/Komga/Config/artemis/bindings/activemq-bindings-1.bindings
com.docke 771 antariksh 133u REG 1,12 1048576 2813725 /Volumes/WD2TB/Media/Data/Komga/Config/artemis/bindings/activemq-bindings-2.bindings
com.docke 771 antariksh 134u REG 1,12 10485760 2813900 /Volumes/WD2TB/Media/Data/Komga/Config/artemis/journal/activemq-data-1.amq
com.docke 771 antariksh 135u REG 1,12 10485760 2814015 /Volumes/WD2TB/Media/Data/Komga/Config/artemis/journal/activemq-data-2.amq
com.docke 771 antariksh 136u REG 1,12 368640 2814097 /Volumes/WD2TB/Media/Data/Komga/Config/database.sqlite
CleanMyMa 863 antariksh 11r DIR 1,12 131072 3594810 /Volumes/WD2TB/.Trashes/501
And this is after I turned it off:
CleanMyMa 863 antariksh 11r DIR 1,12 131072 3594810 /Volumes/WD2TB/.Trashes/501
I can't find any other application/process that is touching it except for docker. The only other thing I can think of, is that, in the log, it is said that the java.nio.channels.OverlappingFileLockException: null error is happening at a lot of places, mainly the index writer and a supposed java.base that I have no idea about.
In your compose file the mount for /config is /Users/[me]/Documents/komga but in the previous message you mention it's under /Volumes/WD2TB/Media/Data/Komga/Config ?