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

Cannot compose container create-beacon-chain-genesis #36

Open
dewindtk opened this issue Sep 10, 2023 · 5 comments
Open

Cannot compose container create-beacon-chain-genesis #36

dewindtk opened this issue Sep 10, 2023 · 5 comments

Comments

@dewindtk
Copy link

Hi. Just tried running the containers but there seems to be an error in create-beacon-chain-genesis. Here iis what the logs say. Please let me know if there is a known fix to this issue.

2023-09-10 23:27:32 time="2023-09-10T21:27:32Z" level=info msg="No genesis time specified, defaulting to now()" prefix=genesis
2023-09-10 23:27:32 time="2023-09-10T21:27:32Z" level=info msg="Delaying genesis 1694381252 by 15 seconds" prefix=genesis
2023-09-10 23:27:32 time="2023-09-10T21:27:32Z" level=info msg="Genesis is now 1694381267" prefix=genesis
2023-09-10 23:27:32 panic: runtime error: invalid memory address or nil pointer dereference
2023-09-10 23:27:32 [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x2d0503f]
2023-09-10 23:27:32
2023-09-10 23:27:32 goroutine 1 [running]:
2023-09-10 23:27:32 github.com/prysmaticlabs/prysm/v4/cmd/prysmctl/testnet.generateGenesis({0xcfacd0, 0xc000126000})
2023-09-10 23:27:32 cmd/prysmctl/testnet/generate_genesis.go:279 +0x6ff
2023-09-10 23:27:32 github.com/prysmaticlabs/prysm/v4/cmd/prysmctl/testnet.cliActionGenerateGenesisState(0xc000934500)
2023-09-10 23:27:32 cmd/prysmctl/testnet/generate_genesis.go:179 +0x1c9
2023-09-10 23:27:32 github.com/prysmaticlabs/prysm/v4/cmd/prysmctl/testnet.glob..func1(0x2fad200?)
2023-09-10 23:27:32 cmd/prysmctl/testnet/generate_genesis.go:70 +0x2e
2023-09-10 23:27:32 github.com/urfave/cli/v2.(*Command).Run(0x2fad200, 0xc000934500, {0xc00013d880, 0x8, 0x8})
2023-09-10 23:27:32 external/com_github_urfave_cli_v2/command.go:274 +0x9eb
2023-09-10 23:27:32 github.com/urfave/cli/v2.(*Command).Run(0x2fad0a0, 0xc000934440, {0xc0000d65a0, 0x9, 0x9})
2023-09-10 23:27:32 external/com_github_urfave_cli_v2/command.go:267 +0xc4d
2023-09-10 23:27:32 github.com/urfave/cli/v2.(*Command).Run(0xc000546000, 0xc000934380, {0xc000124000, 0xa, 0xa})
2023-09-10 23:27:32 external/com_github_urfave_cli_v2/command.go:267 +0xc4d
2023-09-10 23:27:32 github.com/urfave/cli/v2.(*App).RunContext(0xc00049cb40, {0xcfacd0?, 0xc000126000}, {0xc000124000, 0xa, 0xa})
2023-09-10 23:27:32 external/com_github_urfave_cli_v2/app.go:332 +0x616
2023-09-10 23:27:32 github.com/urfave/cli/v2.(*App).Run(...)
2023-09-10 23:27:32 external/com_github_urfave_cli_v2/app.go:309
2023-09-10 23:27:32 main.main()
2023-09-10 23:27:32 cmd/prysmctl/main.go:23 +0x8e

@helllynx
Copy link

helllynx commented Sep 13, 2023

Have the same issue. Tried all images and here what ive got.

Latest working is HEAD-ec954e but arg --genesis-time-delay is missing. All images after local-devnet will segfault. Here what i make to start this compose:

  create-beacon-chain-genesis:
    image: "gcr.io/prysmaticlabs/prysm/cmd/prysmctl:HEAD-ec954e"
    command:
      - testnet
      - generate-genesis
      - --fork=capella
      - --num-validators=64
      #- --genesis-time-delay=15
      - --output-ssz=/consensus/genesis.ssz
      - --chain-config-file=/consensus/config.yml
      - --geth-genesis-json-in=/execution/genesis.json
      - --geth-genesis-json-out=/execution/genesis.json
    volumes:
      - ./consensus:/consensus
      - ./execution:/execution

@dewindtk
Copy link
Author

Incredible. Thanks for taking the effort of going through all images. Cheers, my network is up.

@lirc571
Copy link

lirc571 commented Sep 22, 2023

This issue still exists. Perhaps we should keep it open? Using an old build should not be the final solution.

@dewindtk
Copy link
Author

I agree. Also there are a lott of things out of date in this tutorial. I request for an update!

@dewindtk dewindtk reopened this Sep 22, 2023
@rzmahmood
Copy link

rzmahmood commented Sep 28, 2023

I've made my own version which doesn't rely on docker, as I prefer using local versions I can quickly modify. It also allows you to run multiple nodes and uses the correct repo versions. You may find it useful

https://github.com/rzmahmood/ethereum-pos-testnet/tree/main

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

4 participants