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>
up vote 2 down vote accepted

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 Aug 10 '17 at 22:15

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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