OpenHFT / Chronicle-Map

Replicate your Key Value Store across your network, with consistency, persistance and performance.
http://chronicle.software/products/chronicle-map/
Apache License 2.0
2.79k stars 471 forks source link

msync failed: error code 5 when running on docker openjdk:8-jre-alpine #204

Closed marinkobabic closed 2 years ago

marinkobabic commented 4 years ago

rto_1 | java.io.IOException: msync failed: error code 5 rto_1 | at net.openhft.chronicle.hash.impl.util.jna.PosixMsync.msync(PosixMsync.java:37) ~[app.jar:?] rto_1 | at net.openhft.chronicle.hash.impl.VanillaChronicleHash.msync(VanillaChronicleHash.java:855) ~[app.jar:?] rto_1 | at net.openhft.chronicle.hash.impl.VanillaChronicleHash.msync(VanillaChronicleHash.java:841) ~[app.jar:?] rto_1 | at net.openhft.chronicle.map.ChronicleMapBuilder.commitChronicleMapReady(ChronicleMapBuilder.java:465) ~[app.jar:?] rto_1 | at net.openhft.chronicle.map.ChronicleMapBuilder.createWithNewFile(ChronicleMapBuilder.java:1818) ~[app.jar:?] rto_1 | at net.openhft.chronicle.map.ChronicleMapBuilder.createWithFile(ChronicleMapBuilder.java:1721) ~[app.jar:?] rto_1 | at net.openhft.chronicle.map.ChronicleMapBuilder.createPersistedTo(ChronicleMapBuilder.java:1615) ~[app.jar:?] rto_1 | at net.openhft.chronicle.map.ChronicleMapBuilder.createOrRecoverPersistedTo(ChronicleMapBuilder.java:1637) ~[app.jar:?] rto_1 | at net.openhft.chronicle.map.ChronicleMapBuilder.createOrRecoverPersistedTo(ChronicleMapBuilder.java:1626) ~[app.jar:?] rto_1 | at com.regtech.rto.sanction.importer.worldcheck.WorldCheckDataWriter.createVersionMap(WorldCheckDataWriter.java:46) ~[app.jar:?] rto_1 | at com.regtech.rto.sanction.importer.worldcheck.WorldCheckDataWriter.init(WorldCheckDataWriter.java:53) ~[app.jar:?] rto_1 | at com.regtech.rto.sanction.importer.worldcheck.WorldCheckDataWriter.add(WorldCheckDataWriter.java:68) ~[app.jar:?] rto_1 | at com.regtech.rto.sanction.importer.worldcheck.WorldCheckImporter.execute(WorldCheckImporter.java:127) ~[app.jar:?] rto_1 | at com.regtech.rto.sanction.verticles.AbstractImportVerticle.executeImport(AbstractImportVerticle.java:104) ~[app.jar:?] rto_1 | at com.regtech.rto.sanction.verticles.AbstractImportVerticle.executeImportIfFileIsReady(AbstractImportVerticle.java:68) ~[app.jar:?] rto_1 | at com.regtech.rto.sanction.verticles.AbstractImportVerticle.executeImportIfFileIsReady(AbstractImportVerticle.java:96) ~[app.jar:?] rto_1 | at com.regtech.rto.sanction.verticles.AbstractImportVerticle.lambda$null$2(AbstractImportVerticle.java:167) ~[app.jar:?] rto_1 | at io.vertx.core.impl.ContextImpl.lambda$executeBlocking$2(ContextImpl.java:316) ~[app.jar:?] rto_1 | at io.vertx.core.impl.TaskQueue.run(TaskQueue.java:76) ~[app.jar:?] rto_1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_212] rto_1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_212] rto_1 | at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [app.jar:?]

dpisklov commented 4 years ago

@marinkobabic when using docker you must ensure you use --ipc="host" and we only tested putting files on the bind-mounted folders from the host (i.e. -v /host/dir/1/:/container/dir ). Please try this and let us know.

marinkobabic commented 4 years ago

@dpisklov I tried host, shared, private and none of them worked. Any idea? If you wan't me I can prepare a example for your. I use docker-compose in my tests.

`version: '3.7' services: rto: image: "regtechone/rto:latest" ports:

`

dpisklov commented 4 years ago

@marinkobabic are you able to test on Linux? None of us ever used/tested it on Windows, so it might well be a Windows-specific issue which we can't really test...

marinkobabic commented 4 years ago

Can do the check also by running docker on Linux. Will let you know how it goes.

On Tue, Dec 3, 2019, 21:32 Dmitry Pisklov notifications@github.com wrote:

@marinkobabic https://github.com/marinkobabic are you able to test on Linux? None of us ever used/tested it on Windows, so it might well be a Windows-specific issue which we can't really test...

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/OpenHFT/Chronicle-Map/issues/204?email_source=notifications&email_token=AAY5EOE5LYRKPPGWKYONHCDQW266RA5CNFSM4JUCOBGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF2XAIQ#issuecomment-561344546, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAY5EOAUZ7A3Y6BITIOKBZTQW266RANCNFSM4JUCOBGA .

marinkobabic commented 4 years ago

On Linux the same code works fine by using the ipc:host

Any way to get it running on Windows docker as well?

dpisklov commented 4 years ago

It's the question for docker I'm afraid...

minborg commented 2 years ago

I will close this issue @marinkobabic . Please reopen if your Windows Docker issues persist on newer versions.