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

New node sync crashed with 'key 012f002f626c6f636b2d72656c6...not found' (v0.11.11) #1936

Open
ag3ntt opened this issue Jan 28, 2022 · 9 comments

Comments

@ag3ntt
Copy link

ag3ntt commented Jan 28, 2022

Hi,

I upgraded my kaspad from 0.11.9 to 0.11.11 (by precompiled kaspad binary for linux) and after few tens of minutes I end up with error below. I have Debian Linux Bullseye.

This error happends immediately after ./kaspad --utxoindex.

Btw, i deleted (moved) previous datadir2 content, because just after upgrade kaspad binary and start it again, after 2-3 hours there was only lot of "Connecting to... lot of IPs", so kaspad was not unable to sync. After that i deleted datadir2 content and restarted kaspad. Kaspad started to sync from 2022-01-25 which was OK, but after tens of minutes it crashed with error below.

./kaspad --utxoindex;
2022-01-28 19:57:23.012 [INF] KASD: Version 0.11.11
2022-01-28 19:57:23.020 [INF] KASD: Loading database from '/root/.kaspad/kaspa-mainnet/datadir2'
2022-01-28 19:57:23.347 [INF] ADXR: Loaded 4096 addresses and 0 banned addresses
2022-01-28 19:57:23.352 [ERR] KASD: Unable to start kaspad: not found
key 012f002f626c6f636b2d72656c6174696f6e732fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff not found
github.com/kaspanet/kaspad/infrastructure/db/database/ldb.(*LevelDB).Get
        /home/runner/work/kaspad/kaspad/infrastructure/db/database/ldb/leveldb.go:69
github.com/kaspanet/kaspad/domain/consensus/database.(*dbManager).Get
        /home/runner/work/kaspad/kaspad/domain/consensus/database/dbmanager.go:13
github.com/kaspanet/kaspad/domain/consensus/datastructures/blockrelationstore.(*blockRelationStore).BlockRelation
        /home/runner/work/kaspad/kaspad/domain/consensus/datastructures/blockrelationstore/block_relation_store.go:51
github.com/kaspanet/kaspad/domain/consensus.(*consensus).GetVirtualInfo
        /home/runner/work/kaspad/kaspad/domain/consensus/consensus.go:505
github.com/kaspanet/kaspad/domain/utxoindex.(*UTXOIndex).Reset
        /home/runner/work/kaspad/kaspad/domain/utxoindex/utxoindex.go:51
github.com/kaspanet/kaspad/domain/utxoindex.New
        /home/runner/work/kaspad/kaspad/domain/utxoindex/utxoindex.go:35
github.com/kaspanet/kaspad/app.NewComponentManager
        /home/runner/work/kaspad/kaspad/app/component_manager.go:105
github.com/kaspanet/kaspad/app.(*kaspadApp).main
        /home/runner/work/kaspad/kaspad/app/app.go:126
github.com/kaspanet/kaspad/app.StartApp
        /home/runner/work/kaspad/kaspad/app/app.go:73
main.main
        /home/runner/work/kaspad/kaspad/main.go:15
runtime.main
        /opt/hostedtoolcache/go/1.16.13/x64/src/runtime/proc.go:225
runtime.goexit
        /opt/hostedtoolcache/go/1.16.13/x64/src/runtime/asm_amd64.s:1371
2022-01-28 19:57:23.352 [INF] KASD: Gracefully shutting down the database...
2022-01-28 19:57:23.389 [INF] KASD: Shutdown complete
@marco-jem
Copy link

Hello!
I'm facing the same issue. After running kaspad for many days it suddenly died (between 2022-03-04 and 2022-03-07). This morning I tried restarting kaspad and got the reported error message:

kaspa@xxxxxxxxx:~$ ~/kaspa/bin/kaspad --utxoindex
2022-03-07 10:08:38.770 [INF] KASD: Version 0.11.11
2022-03-07 10:08:38.771 [INF] KASD: Loading database from '/opt/kaspa/.kaspad/kaspa-mainnet/datadir2'
2022-03-07 10:08:40.038 [ERR] KASD: Unable to start kaspad: not found
key 012f7574786f2d646966662d6368696c6472656e2f9704281679bc7fa3de38b9a052138e0e091a2d9bd92dcf5c13e86c2a57901c89 not found
github.com/kaspanet/kaspad/infrastructure/db/database/ldb.(*LevelDB).Get
	/home/runner/work/kaspad/kaspad/infrastructure/db/database/ldb/leveldb.go:69
github.com/kaspanet/kaspad/domain/consensus/database.(*dbManager).Get
	/home/runner/work/kaspad/kaspad/domain/consensus/database/dbmanager.go:13
github.com/kaspanet/kaspad/domain/consensus/datastructures/utxodiffstore.(*utxoDiffStore).UTXODiffChild
	/home/runner/work/kaspad/kaspad/domain/consensus/datastructures/utxodiffstore/utxo_diff_store.go:98
github.com/kaspanet/kaspad/domain/consensus/processes/pruningmanager.(*pruningManager).calculateDiffBetweenPreviousAndCurrentPruningPoints
	/home/runner/work/kaspad/kaspad/domain/consensus/processes/pruningmanager/pruningmanager.go:732
github.com/kaspanet/kaspad/domain/consensus/processes/pruningmanager.(*pruningManager).updatePruningPoint
	/home/runner/work/kaspad/kaspad/domain/consensus/processes/pruningmanager/pruningmanager.go:865
github.com/kaspanet/kaspad/domain/consensus/processes/pruningmanager.(*pruningManager).UpdatePruningPointIfRequired
	/home/runner/work/kaspad/kaspad/domain/consensus/processes/pruningmanager/pruningmanager.go:841
github.com/kaspanet/kaspad/domain/consensus.(*factory).NewConsensus
	/home/runner/work/kaspad/kaspad/domain/consensus/factory.go:479
github.com/kaspanet/kaspad/domain.New
	/home/runner/work/kaspad/kaspad/domain/domain.go:186
github.com/kaspanet/kaspad/app.NewComponentManager
	/home/runner/work/kaspad/kaspad/app/component_manager.go:88
github.com/kaspanet/kaspad/app.(*kaspadApp).main
	/home/runner/work/kaspad/kaspad/app/app.go:126
github.com/kaspanet/kaspad/app.StartApp
	/home/runner/work/kaspad/kaspad/app/app.go:73
main.main
	/home/runner/work/kaspad/kaspad/main.go:15
runtime.main
	/opt/hostedtoolcache/go/1.16.13/x64/src/runtime/proc.go:225
runtime.goexit
	/opt/hostedtoolcache/go/1.16.13/x64/src/runtime/asm_amd64.s:1371
2022-03-07 10:08:40.038 [INF] KASD: Gracefully shutting down the database...
2022-03-07 10:08:40.042 [INF] KASD: Shutdown complete

As I said the daemon has run for many days before dying with this error, so it should not be in syncing phase.

Here are version informations:

  • OS: Debian 11 (fully up to date at 2022-03-07 09:00 UTC)
  • kaspad 0.11.11 (precompiled version downloaded from GitHub)

@isezen
Copy link

isezen commented Sep 19, 2022

I had faced same issue today with v0.12.6. Any solution?

@tomekmak
Copy link

Same here is there any solution (2.12.1 version)

@someone235
Copy link
Collaborator

Same here is there any solution (2.12.1 version)

Does resetting the DB fixes the problem?

@tomekmak
Copy link

Same here is there any solution (2.12.1 version)

Does resetting the DB fixes the problem?

I just did reset database, reinstalled KDX and now i cant open the app - shows only in taskbar. "Show" is grayed out.
image

@uranik777
Copy link

I just installed it from source on (Ubuntu 22.04.1 LTS), launched it from scratch, and after synchronizing the blockchain I received a message:

./kaspad --utxoindex

2023-07-24 20:37:56.731 [INF] KASD: Version 0.12.13
2023-07-24 20:37:56.735 [INF] KASD: Loading database from '/root/.kaspad/kaspa-mainnet/datadir2'
2023-07-24 20:37:56.863 [ERR] KASD: Unable to start kaspad: not found
key 012f002f626c6f636b2d67686f73746461672d646174612fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff not found

@ronihcohen
Copy link

happens on windows too.

@uranik777
Copy link

How to fix it?

@stoyanovivan
Copy link

stoyanovivan commented Sep 26, 2023

Happened to me today on Windows, Any idea how to fix it??

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

No branches or pull requests

8 participants