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

[Docker compose] : ibft consensus failed to run the relayer node #1926

Closed
FournyP opened this issue Sep 21, 2023 · 6 comments · Fixed by #1971 or #1973
Closed

[Docker compose] : ibft consensus failed to run the relayer node #1926

FournyP opened this issue Sep 21, 2023 · 6 comments · Fixed by #1971 or #1973
Assignees
Labels
in the pipeline Logged into our issue tracking pipeline

Comments

@FournyP
Copy link

FournyP commented Sep 21, 2023

[Docker compose] : ibft consensus failed to run the relayer node

Description

When I want to run the docker-compose using the ibft consensus, I get the following error on the node-1 container (the relayer)
image

All other containers run perfectly

Your environment

  • Windows 11 using WSL. (Docker engine : 24.0.6)
  • The version of the Polygon Edge: 1.1.0 or on the develop branch .
  • Locally hosted.

Steps to reproduce

  • Clone the repo or unzip the source code of the 1.1.0 version
  • The issue appear on the node-1 of the docker-compose (with the --relayer) option.
  • Which commands triggered the issue :
$ export EDGE_CONSENSUS=ibft
$ docker-compose -f ./docker/local/docker-compose.yml up -d --build

It work perfectly using the polybft consensus

Expected behavior

  • The container should running but crash and restart indefinitely.

Logs

2023-09-21 13:59:43 2023-09-21T11:59:43.757Z [INFO]  polygon.server: Data dir: path=/data/data-1
2023-09-21 13:59:43 2023-09-21T11:59:43.757Z [INFO]  polygon.server: Prometheus server started: addr==0.0.0.0:5001
2023-09-21 13:59:43 2023-09-21T11:59:43.807Z [INFO]  polygon.blockchain: Current header: hash=0xe07aeb316bf1dd6ee078c147c1484cc688ce5d9d013c463d62dff33b815cbf22 number=0
2023-09-21 13:59:43 2023-09-21T11:59:43.807Z [INFO]  polygon.blockchain: genesis: hash=0xe07aeb316bf1dd6ee078c147c1484cc688ce5d9d013c463d62dff33b815cbf22
2023-09-21 13:59:43 2023-09-21T11:59:43.808Z [INFO]  polygon.server.ibft: validator key: addr=0x0A5ab5584e1f76c076bEA0088BCCd64EAa37BDd1
2023-09-21 13:59:43 2023-09-21T11:59:43.808Z [INFO]  polygon.server: GRPC server running: addr=0.0.0.0:9632
2023-09-21 13:59:43 2023-09-21T11:59:43.808Z [INFO]  polygon.network: LibP2P server running: addr=/ip4/172.19.0.3/tcp/1478/p2p/16Uiu2HAmAQKo8ycYCJ22YW3QY1UeLbMfCgJYPVEYtF9qhxYuBp5f
2023-09-21 13:59:43 2023-09-21T11:59:43.808Z [INFO]  polygon.network: Omitting bootnode with same ID as host: id=16Uiu2HAmAQKo8ycYCJ22YW3QY1UeLbMfCgJYPVEYtF9qhxYuBp5f
2023-09-21 13:59:43 2023-09-21T11:59:43.808Z [INFO]  polygon.server.jsonrpc: http server started: addr=0.0.0.0:8545
2023-09-21 13:59:43 failed to create account from secret: failed to retrieve bls key: math/big: cannot unmarshal "32de51bb0eb9c46123f58ad5c45f4b0b17a7222ba77217650db4f28f422e588a" into a *big.Int
2023-09-21 14:00:44 2023-09-21T12:00:44.164Z [INFO]  polygon.server: Data dir: path=/data/data-1
2023-09-21 14:00:44 2023-09-21T12:00:44.164Z [INFO]  polygon.server: Prometheus server started: addr==0.0.0.0:5001
2023-09-21 14:00:44 2023-09-21T12:00:44.218Z [INFO]  polygon.blockchain: Current header: hash=0xe07aeb316bf1dd6ee078c147c1484cc688ce5d9d013c463d62dff33b815cbf22 number=0
2023-09-21 14:00:44 2023-09-21T12:00:44.218Z [INFO]  polygon.blockchain: genesis: hash=0xe07aeb316bf1dd6ee078c147c1484cc688ce5d9d013c463d62dff33b815cbf22
2023-09-21 14:00:44 2023-09-21T12:00:44.218Z [INFO]  polygon.server.ibft: validator key: addr=0x0A5ab5584e1f76c076bEA0088BCCd64EAa37BDd1
2023-09-21 14:00:44 2023-09-21T12:00:44.218Z [INFO]  polygon.server: GRPC server running: addr=0.0.0.0:9632
2023-09-21 14:00:44 2023-09-21T12:00:44.218Z [INFO]  polygon.network: LibP2P server running: addr=/ip4/172.19.0.3/tcp/1478/p2p/16Uiu2HAmAQKo8ycYCJ22YW3QY1UeLbMfCgJYPVEYtF9qhxYuBp5f
2023-09-21 14:00:44 2023-09-21T12:00:44.218Z [INFO]  polygon.network: Omitting bootnode with same ID as host: id=16Uiu2HAmAQKo8ycYCJ22YW3QY1UeLbMfCgJYPVEYtF9qhxYuBp5f
2023-09-21 14:00:44 2023-09-21T12:00:44.218Z [INFO]  polygon.server.jsonrpc: http server started: addr=0.0.0.0:8545
2023-09-21 14:00:44 failed to create account from secret: failed to retrieve bls key: math/big: cannot unmarshal "32de51bb0eb9c46123f58ad5c45f4b0b17a7222ba77217650db4f28f422e588a" into a *big.Int

Thanks for your help

Have a good day ;)

@Solidityghost998
Copy link

i have the same issue with docker file please provide solution

@begmaroman
Copy link
Contributor

begmaroman commented Oct 3, 2023

Please, use ./scripts/cluster script in order to run the network inside the docker.

Also, I see that you use a hex-encoded private key without 0x prefix. There are two options:

  1. Use 0x prefix in your private key.
  2. Use a plain text big number private key, not hex-encoded.

@FournyP
Copy link
Author

FournyP commented Oct 3, 2023

Hi @begmaroman.

I can't use your 2 options that you gave to fix the issue because this value is auto generated and auto filled by the init container in the docker-compose here :

If we can only use the script ./scripts/cluster I think it would be great to update the README.md in the docker folder

Have a good day and thanks for your work

@begmaroman
Copy link
Contributor

@FournyP I see. Then, you can try to run make run-docker from the root of the repo.
We will update docs.

@Stefan-Ethernal
Copy link
Collaborator

Then, you can try to run make run-docker from the root of the repo.

@begmaroman it wouldn't work, because @FournyP wants to run the IBFT consensus protocol.

@FournyP I'm going to assign myself to this issue and investigate further.

@Stefan-Ethernal Stefan-Ethernal self-assigned this Oct 6, 2023
@Stefan-Ethernal Stefan-Ethernal added the in the pipeline Logged into our issue tracking pipeline label Oct 6, 2023
@Stefan-Ethernal Stefan-Ethernal linked a pull request Oct 10, 2023 that will close this issue
11 tasks
@begmaroman begmaroman self-assigned this Oct 11, 2023
@begmaroman begmaroman linked a pull request Oct 11, 2023 that will close this issue
11 tasks
@begmaroman
Copy link
Contributor

2023-09-21 14:00:44 failed to create account from secret: failed to retrieve bls key: math/big: cannot unmarshal "32de51bb0eb9c46123f58ad5c45f4b0b17a7222ba77217650db4f28f422e588a" into a *big.Int

Changes introduced in #1973 PR have fixed the error above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in the pipeline Logged into our issue tracking pipeline
Projects
None yet
4 participants