So basically, i have set up a chain and created a couple of streams.I have spammed a chain with 'liststreamkeyitems' API occasionally with invalid stream name as a parameter (Stream with this name not found error). At some point, chain became unresponsive, see http://prntscr.com/dwr8ny
When i try to run the chain again - i get this message:
"ERROR: Couldn't initialize permission database for blockchain chain. Probably multichaind for this blockchain is already running. Exiting..."
Also at some point (i could not reproduce it now) i get an error that i've put as a topic name - IO error: lock ../chain/permissions.db/LOCK: Resource temporary unavailable
Permissions log has this message at one line:
2017-01-17 08:33:41.169 Initialize: Database corrupted 1
So what may be the cause of corruption and how to avoid it? At some point, chain will "unfreeze" and continue to work properly.
Note that i have put multiple "rpcallowip" parameters as well as high "maxshowndata" in multichain.conf.
Also i have put max available number for transaction size parameters in params.dat - since i am sending big metadata into stream.
Thank you in advance.