I was resyncing my bcoin node and got the following error:

 Error: Warning: Your database does not match the current database version. 
 This is likely because the database layout or serialization format has changed drastically. 
 If you want to dump your data, downgrade to your previous version first. 
 If you do not think you should be seeing this error, post an issue on the repo.
   at LowlevelUp.checkVersion (/root/bcoin/lib/db/lowlevelup.js:603:11)
   at <anonymous>

1 Answer 1


If you're running master, there was a recent migration that would cause this.

you can run this to fix it: node migrate/chaindb2to3.js /path/to/chaindb.ldb

That will take a very long time, but if you don't mind pruning your DB at the same time, you can run this instead and it will be much faster: node migrate/chaindb2to3.js /path/to/chaindb.ldb --prune

If that doesn't work you can always reset the DB and resync. Just remove all .ldb files from ~/.bcoin dir and restart bcoin.

  • 3
    I'm upgrading from beta8 to beta14... the db is NOT chaindb.ldb but chain.ldb
    – pinhead
    Commented Aug 10, 2017 at 22:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.