Fund:0.024 ETH / $13.89
Question is solved

I can’t set up MultiChain Explorer on my local machine. Can someone advise?

1 month ago

I’m trying to set up MultiChain Explorer with this command:

python -m Mce.abe –config chain1.conf –commit-bytes 100000 –no-serve

After that command, I get the following error:

ubuntu@ip-172-31-16-61:~/multichain-explorer$ python -m Mce.abe –config chain1.conf –commit-bytes 100000 –no-serve
Traceback (most recent call last):
File “/usr/lib/python2.7/”, line 162, in _run_module_as_main
“__main__”, fname, loader, pkg_name)
File “/usr/lib/python2.7/”, line 72, in _run_code
exec code in run_globals
File “/home/ubuntu/multichain-explorer/Mce/”, line 4306, in
File “/home/ubuntu/multichain-explorer/Mce/”, line 4300, in main
store = make_store(args)
File “/home/ubuntu/multichain-explorer/Mce/”, line 193, in make_store
store =
File “Mce/”, line 4348, in new
return DataStore(args)
File “Mce/”, line 237, in __init__
File “Mce/”, line 255, in commit
File “Mce/”, line 515, in commit
sqlite3.OperationalError: database is locked

Would greatly appreciate an answer! 🙂


Based on the stack trace error, it looks like your having trouble accessing the database since it’s locked for some reason. Here are some things to check:
That you don't have a hung process sitting on the file (unix: $ fuser cache.db should say nothing)
There isn't a cache.db-journal file in the directory with cache.db; this would indicate a crashed session that hasn't been cleaned up properly.
Ask the database shell to check itself: $ sqlite3 cache.db "pragma integrity_check;"
Backup the database $ sqlite3 cache.db ".backup cache.db.bak"
Remove cache.db as you probably have nothing in it (if you are just learning) and try your code again
See if the backup works $ sqlite3 cache.db.bak ".schema"
1 month ago

Your question is successfully refund. You will be redirect in few seconds.