rzmahmood / ethereum-pos-testnet

💻⛓️ A Quick and Easy Way to Bootstrap your own Local Ethereum PoS Testnet. Great for testing consensus ⛓️💻
MIT License
41 stars 18 forks source link

Failed generate-genesis #5

Closed artjoma closed 11 months ago

artjoma commented 11 months ago

./prysmctl testnet generate-genesis --fork=capella --num-validators=2 --chain-config-file=./config.yml --geth-genesis-json-in=./genesis.json --output-ssz=./genesis.ssz --geth-genesis-json-out=./genesiss.json

INFO[0000] Specified a chain config file: ./config.yml   prefix=genesis
INFO[0000] No genesis time specified, defaulting to now()  prefix=genesis
INFO[0000] Delaying genesis 1696420459 by 0 seconds      prefix=genesis
INFO[0000] Genesis is now 1696420459                     prefix=genesis
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1702abf]

goroutine 1 [running]:
github.com/prysmaticlabs/prysm/v4/cmd/prysmctl/testnet.generateGenesis({0x242da70, 0xc000056120})
        /home/art/dev/eth-custom/devnet/prysm/cmd/prysmctl/testnet/generate_genesis.go:279 +0x6ff
github.com/prysmaticlabs/prysm/v4/cmd/prysmctl/testnet.cliActionGenerateGenesisState(0xc00031fd40)
        /home/art/dev/eth-custom/devnet/prysm/cmd/prysmctl/testnet/generate_genesis.go:179 +0x1c9
github.com/prysmaticlabs/prysm/v4/cmd/prysmctl/testnet.glob..func1(0x32161a0?)
        /home/art/dev/eth-custom/devnet/prysm/cmd/prysmctl/testnet/generate_genesis.go:70 +0x2e
github.com/urfave/cli/v2.(*Command).Run(0x32161a0, 0xc00031fd40, {0xc000b00850, 0x7, 0x7})
        /home/art/go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:274 +0x9eb
github.com/urfave/cli/v2.(*Command).Run(0x3216040, 0xc00031fc40, {0xc000572380, 0x8, 0x8})
        /home/art/go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:267 +0xc4d
github.com/urfave/cli/v2.(*Command).Run(0xc000b0e000, 0xc00031fb00, {0xc000052090, 0x9, 0x9})
        /home/art/go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:267 +0xc4d
github.com/urfave/cli/v2.(*App).RunContext(0xc0002665a0, {0x242da70?, 0xc000056120}, {0xc000052090, 0x9, 0x9})
        /home/art/go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:332 +0x616
github.com/urfave/cli/v2.(*App).Run(...)
        /home/art/go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:309
main.main()
        /home/art/dev/eth-custom/devnet/prysm/cmd/prysmctl/main.go:23 +0x8e
rzmahmood commented 11 months ago

Interesting, I thought this issue was resolved on the prysm side, I'll investigate. Particular versions of prysm will cause this issue.

Are you using the version submoduled in this repo? @artjoma

rzmahmood commented 11 months ago

Tried this repo on a fresh laptop and no issues with the submoduled versions. Some versions of prysm have that bug. Don't have enough information to replicate.

CoNETProject commented 11 months ago

My case is GETH side has:

Beacon client online, but never received consensus updates. Please ensure your beacon client is operational to follow the chain!
Beacon client online, but never received consensus updates. Please ensure your beacon client is operational to follow the chain!
Beacon client online, but never received consensus updates. Please ensure your beacon client is operational to follow the chain!

Same as OffchainLabs eth-pos-devnet

rzmahmood commented 11 months ago

@CoNETProject What were the steps to replicate the issue and what machine/operating system are you running it on?

artjoma commented 11 months ago

Interesting, I thought this issue was resolved on the prysm side, I'll investigate. Particular versions of prysm will cause this issue.

Are you using the version submoduled in this repo? @artjoma

I solved this issue using Prysm 4.0.8 not a dev branch!

artjoma commented 11 months ago

My case is GETH side has:

Beacon client online, but never received consensus updates. Please ensure your beacon client is operational to follow the chain!
Beacon client online, but never received consensus updates. Please ensure your beacon client is operational to follow the chain!
Beacon client online, but never received consensus updates. Please ensure your beacon client is operational to follow the chain!

Same as OffchainLabs eth-pos-devnet

I had same issue with OffchainLabs. Look carefully at : https://github.com/rzmahmood/ethereum-pos-testnet/blob/main/testnet.sh

rzmahmood commented 11 months ago

@CoNETProject yep, I've added CI which is passing on ephemeral environments. If you follow the steps in the guide or use appropriate GETH/PRYSM versions you should have no issues.

Feel free to create a new issue if your issues aren't resolved