vcash icon indicating copy to clipboard operation
vcash copied to clipboard

Multiple daemon instances on Windows

Open whphhg opened this issue 7 years ago • 1 comments

It's possible to run mutliple instances of the daemon on Windows at the same time and run into the issue below, after which the first launched daemon becomes unresponsive. You can continue launching new instances which will kill the previous one with the same error.

[ERROR] - errcall: Database environment, arg2 = BDB0060 PANIC: fatal region error detected; run recovery.

This doesn't happen on Linux and macOS. If a daemon is launched while there's already one running the new one exits with the Failed to obtain lock on file .lock message.

whphhg avatar May 31 '17 09:05 whphhg

I checked and saw that Windows "one instance only" locking is not handled: https://github.com/openvcash/vcash/blob/master/coin/src/stack_impl.cpp#L5560-L5600 Imo best would be to implement a locking file for win too.

xCoreDev avatar Jun 10 '17 00:06 xCoreDev