Closed Wdavery closed 2 years ago
After further testing this appears to be related to MergerFS and may be a configuration issue there. Will close for now as I investigate further.
Yep, solved. Unrelated to Leanify.
mergerFS requires the option cache.files=partial
to enable mmap support
My apologies in advance if this error is outside this project's scope, but I haven't been able to pin this down, or reproduce it outside of Leanify.
Erring on the side of user-error, I'm thinking this may be a configuration issue on the docker side, but all other tools work as expected–only Leanify fails to run as expected.
I am running Leanify within a docker container (Debian:stable-slim). This has been tested on the vanilla Debian image (only installing
wget unzip make gcc g++
to grab and compile Leanify)When processing a file on the container's native file system, Leanify runs normally:
When on a docker bind mount it produces an error:
On a docker volume, it works as expected:
Relevant section in Leanify code: https://github.com/JayXon/Leanify/blob/3e0d2d7f1e563066e6cf510f0b8908d8b0201399/fileio_linux.cpp#L48-L54
I haven't had any luck searching the web for this issue and I've hit the limit of my knowledge. Hoping someone familiar with MMAP can help here.