Resyncing bcoin brings up database version error

2

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>

Bucko

Posted 2017-08-03T20:50:01.990

Reputation: 173

Answers

2

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.

Thann

Posted 2017-08-03T20:50:01.990

Reputation: 70

3I'm upgrading from beta8 to beta14... the db is NOT chaindb.ldb but chain.ldbpinhead 2017-08-10T22:15:54.880