Couldn't initialize permission database for blockchain X (on Mac OSX)

+1 vote
Had this problem before on Mac OSX with v1, and still persists with v2...maybe I am missing something...

compiled and installed and connected successfully to a chain, running commands etc..then I stopped the chain and deleted the folder for the chain details. Now when I try to connect to the chain again fresh it gives this

multichaind &

MultiChain 2.0 alpha 2 Daemon (latest protocol 20002)
ERROR: Couldn't initialize permission database for blockchain tagcash. Probably multichaind for this blockchain is already running. Exiting...

So I check if multichain is running - nothing there:

ps -x |grep multichain
78928 ttys000    0:00.00 grep multichain

I deleted the .multichain directory in home folder, and then ran the connect command creates a new tagcash folder inside .multichain folder, with these files:


The permissions.log shows only this:

2018-03-18 23:17:44.445    Initialize: Cannot initialize semaphore

Kinda stuck now. Any ideas?
asked Mar 18, 2018 by mark
edited Mar 18, 2018 by mark

2 Answers

0 votes
We've heard of this problem before, with OS X semaphores. Does rebooting the OS solve the problem?
answered Mar 19, 2018 by MultiChain
yes..rebooting solves the problem - for now just have to make sure I have a terminal up and running all the time and connected to the chain in CLI..
0 votes
This should now be fixed in both MultiChain 1.0.6 and 2.0 alpha 4.
answered Aug 9, 2018 by MultiChain