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
Geth crashes on start-up #27902
Comments
We are running a full archive node using the leveldb backend. It appears to crash here: https://github.com/ethereum/go-ethereum/blob/master/ethdb/leveldb/leveldb.go#L365C13-L365C13 |
I believe that this issue is caused by #27643, and in particular this segment: 863f6da#diff-e708c5e803ad5ce947336bfe82e80ba6f9eac1d99c5032066a52c7566ac41461R78 Is it possible that my leveldb has more than 7 levels? This node is somewhat old (first sync'd late-2021) |
@robmcl4 How large is your leveldb size? From leveldb's design doc, it has at most 7 levels
Is it possible that https://github.com/syndtr/goleveldb has exceed this limit? |
Do you know a good way to check this? I turned verbosity all the way up and didn't see anything relevant logged. |
Total size of |
Maybe you can try it with |
Same exception, seems to be an issue blocking me from getting the stats. Perhaps I should make a small go program to read that value off?
|
Got it. I actually went ahead and wrote a small program to maybe help, here is that output: Program: package main
import (
"fmt"
"github.com/syndtr/goleveldb/leveldb"
)
func main() {
fmt.Println("Hello World")
db, err := leveldb.OpenFile("/data/geth/ethdb2/geth/chaindata", nil)
if err != nil {
fmt.Println("error opening database")
return
}
fmt.Println("opened database")
stats := leveldb.DBStats{}
db.Stats(&stats)
fmt.Println("lt: ", stats.LevelTablesCounts)
} Output:
|
BTW
|
you need to specify it with and thanks for that report, I'm trying to fix on that |
@robmcl4 could you please try with this branch https://github.com/jsvisa/go-ethereum/tree/leveldb-more-than-7 If you are running with docker, you can pull this image jsvisa/go-ethereum:v20230811(for linux x86_64) |
Uptime is 15min and counting, currently re-syncing. This seems solved, I will report back when sync occurs. |
Geth has sync'd, I believe that fixed the issue. |
System information
Geth version: 1.12.1-stable-9c216bd6
CL client & version: lighthouse @ v4.3.0-dfcb336
OS & Version: Linux (docker container)
Expected behaviour
Geth starts normally
Actual behaviour
geth logs the following, then crashes:
Steps to reproduce the behaviour
Start geth.
Backtrace
When submitting logs: please submit them as text and not screenshots.
The text was updated successfully, but these errors were encountered: