-
Notifications
You must be signed in to change notification settings - Fork 20.2k
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
Fatal: Failed to register the Ethereum service #25848
Comments
Could you please provide |
@holiman hi , below is info log:
|
Great! Now please also the other thing too:> Could you please provide geth db metadata (if you have any special arguments like --datadir, or --goerli, you need to provide those too).
|
@holiman when i use geth db metadata --datadir /data , it show this the same with start log
|
OK. I have no idea why this occurred. My guess is that the fastest and least painful way to move forward would be to do a fresh sync (clean database via |
Note to self, we should apply this diff diff --git a/core/rawdb/database.go b/core/rawdb/database.go
index 1eaf033bbe..a47d9bf46e 100644
--- a/core/rawdb/database.go
+++ b/core/rawdb/database.go
@@ -240,8 +240,8 @@ func NewDatabaseWithFreezer(db ethdb.KeyValueStore, ancient string, namespace st
if kvhash, _ := db.Get(headerHashKey(frozen)); len(kvhash) == 0 {
// Subsequent header after the freezer limit is missing from the database.
// Reject startup if the database has a more recent head.
- if *ReadHeaderNumber(db, ReadHeadHeaderHash(db)) > frozen-1 {
- return nil, fmt.Errorf("gap (#%d) in the chain between ancients and leveldb", frozen)
+ if ldbNum := *ReadHeaderNumber(db, ReadHeadHeaderHash(db)); ldbNum > frozen-1 {
+ return nil, fmt.Errorf("gap in the chain between ancients (#%d) and leveldb (#%d)", frozen, ldbNum)
}
// Database contains only older data than the freezer, this happens if the
// state was wiped and reinited from an existing freezer. |
@holiman OK, so i use geth --datadir /data removedb |
yes, and you can answer yes to all |
That should wipe out the blockchain itself and let you sync from scratch. and Also you probably want to do a fast sync afterwards on the chain you can use --fast |
|
@holiman ok, it start sync from begin, thank you. |
Hello every .
When I restart my host , I found my geth log say :
Fatal: Failed to register the Ethereum service: gap (#5734246) in the chain between ancients and leveldb
what can i do to fix, thank you.
my geth version:1.10.25
The text was updated successfully, but these errors were encountered: