Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when opening the Bisq application: heightOfLastBlock must match chainHeight #6016

Closed
RayHawi opened this issue Jan 31, 2022 · 5 comments · Fixed by #6018
Closed

error when opening the Bisq application: heightOfLastBlock must match chainHeight #6016

RayHawi opened this issue Jan 31, 2022 · 5 comments · Fixed by #6018

Comments

@RayHawi
Copy link

RayHawi commented Jan 31, 2022

Description

when i open the application I recieve this error message "heightOfLastBlock must match chainHeight"

Version

Steps to reproduce

Expected behaviour

Actual behaviour

Screenshots

Device or machine

Additional info

@boring-cyborg
Copy link

boring-cyborg bot commented Jan 31, 2022

Thanks for opening your first issue here!

Be sure to follow the issue template. Your issue will be reviewed by a maintainer and labeled for further action.

@ghost
Copy link

ghost commented Jan 31, 2022

What version of Bisq are you on?

There's a workaround fix described here: #5917 (comment)

@loadedmodg
Copy link

loadedmodg commented Feb 1, 2022

I'm not OP but am experiencing the same issue. I'm on version 1.8, Windows 10.

I attempted the fix in #5917, restarted, same error.
bisq.log

Deleted outdated TOR files and restarted, same error.

Deleted the newly created DaoStateStore and BsqBlocks files, still same error.

@ghost
Copy link

ghost commented Feb 1, 2022

@loadedmodg

Looking at your log, I can see you tried this multiple times already, without success. Comparing your log with mine after deleting DaoStateStore and BsqBlocks, I would expect to see the following messages showing it re-create BsqBlocks:

INFO  b.c.d.s.s.BsqBlocksStorageService: Copying 143 resource files took 3173 ms 
INFO  b.n.p.s.p.StoreService: We copy resource to file: resourceFileName=DaoStateStore_BTC_MAINNET, destinationFile=/home/x/.local/share/Bisq/btc_mainnet/db/DaoStateStore 
INFO  b.c.p.PersistenceManager: Reading DaoStateStore completed in 933 ms 
INFO  b.c.d.s.s.BlocksPersistence: Reading 141494 blocks took 3729 msec 
INFO  b.c.d.s.s.BsqBlocksStorageService: Reading and deserializing 141494 blocks took 5737 ms 

But your log shows it reading already existing BsqBlocks:

INFO  b.c.d.s.s.BlocksPersistence: Reading 142254 blocks took 1112 msec 
INFO  b.c.d.s.s.BsqBlocksStorageService: Reading and deserializing 142254 blocks took 1582 ms 
ERROR b.c.s.CommonSetup: Uncaught Exception from thread Read-BsqBlocksStore 
ERROR b.c.s.CommonSetup: throwableMessage= heightOfLastBlock must match chainHeight 

There must be some problem with the way you are deleting BsqBlocks, because Bisq is still finding them at startup, as if they weren't deleted. Maybe try shift-Delete of the BsqBlocks directory and empty wastebasket if appropriate. Also check you're deleting from the correct location? Check the timestamp of the BsqBlocks directory. If Bisq is creating the BsqBlocks directory at startup, it will have a current timestamp.
image

@loadedmodg
Copy link

Perfect - worked flawlessly after shift-delete. Thanks for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants