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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to retrieve proof-of-stake genesis block data #12497

Closed
Fueav opened this issue Jun 6, 2023 · 22 comments
Closed

Unable to retrieve proof-of-stake genesis block data #12497

Fueav opened this issue Jun 6, 2023 · 22 comments
Labels
Help Wanted Extra attention is needed

Comments

@Fueav
Copy link

Fueav commented Jun 6, 2023

馃悶 Bug Report

Description

I'm building my devnet creation node to block normally, and other nodes have encountered problems when joining.

Has this worked before in a previous version?

Yes, the previous version in which this bug was not present was: ....

馃敩 Minimal Reproduction

馃敟 Error

image

[root@1-centos ~]# curl http://localhost:3500/eth/v1/node/syncing | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   106  100   106    0     0   103k      0 --:--:-- --:--:-- --:--:--  103k
{
  "data": {
    "head_slot": "612",
    "sync_distance": "0",
    "is_syncing": false,
    "is_optimistic": true,
    "el_offline": true
  }
}



connectionErrors":[]}[root@1-centos ~]# curl http://localhost:3500/eth/v1alpha1/node/eth1/connections |jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   258  100   258    0     0  86000      0 --:--:-- --:--:-- --:--:-- 86000
{
  "currentAddress": "http://127.0.0.1:8551",
  "currentConnectionError": "retryExecutionClientConnection: HeaderByHash, hash=0x9c1fb1381fbf30135583b2f618c80cb1076b91ea173acf5f2fbf4e976420a4ef: not found",
  "addresses": [
    "http://127.0.0.1:8551"
  ],
  "connectionErrors": []
}




馃實 Your Environment

Operating System:

  
CentOS Linux release 8.5.2111
  

What version of Prysm are you running? (Which release)

  
prysm v4.0.5
  

Anything else relevant (validator index / public key)?

@aaroua5
Copy link

aaroua5 commented Jun 6, 2023

I have the same issue, this happens to me when the timestamp in the genesis file of geth and the timestamp of the genesis state of prysm are not equal.

@nisdas
Copy link
Member

nisdas commented Jun 6, 2023

@Fueav @aaroua5
https://github.com/OffchainLabs/eth-pos-devnet/tree/a293e5c52ec63a4e18fc691ee3013a9fb18e8694

You can try our latest devnet instructions, this should fix this issue

@Fueav
Copy link
Author

Fueav commented Jun 7, 2023

@nisdas I updated the beacon-chain startup command, but the problem was not solved.
my genesis node Normal block production锛孊ut after I added the second node
image
seconde node beacon-chain log:
image
and his status
image
image
seconde node validator log :
image
This appears to be because the beacon-chain node is not ready, and the beacon-chain thinks there is a problem with its connection to the execution node, making it unable to query for the genesis block.

As for the error logs of the genesis node, it seems to be a network issue that caused a delay in the synchronization of p2p information. However, I am sure that I have synchronized the time according to timedatectl.
image

@nisdas
Copy link
Member

nisdas commented Jun 7, 2023

@Fueav It means your node is syncing, you will have to wait for it to be fully synced

@Fueav
Copy link
Author

Fueav commented Jun 7, 2023

I don't think so, because I noticed that the sync_distance is 0.

@Fueav
Copy link
Author

Fueav commented Jun 7, 2023

@nisdas

@nisdas
Copy link
Member

nisdas commented Jun 7, 2023

No, the logs in indicate your execution client is still syncing. So wait for that to finish syncing first. If is_Optimistic is false, then the EL has finished syncing

@Fueav
Copy link
Author

Fueav commented Jun 7, 2023

@nisdas In fact, I once maintained this state for more than 12 hours. The situation did not improve and there were not many blocks in the devnet, which quickly caught up with the footsteps of the genesis node.

@nisdas
Copy link
Member

nisdas commented Jun 7, 2023

Maybe you should look at your execution logs in that case @Fueav , it would indicate what the issue is

@Fueav
Copy link
Author

Fueav commented Jun 7, 2023

@nisdas geth seems to be synchronizing blocks through fork choice, the only thing worth noting is this warning log.
image

@nisdas
Copy link
Member

nisdas commented Jun 7, 2023

Looks like it has no peers @Fueav , it maybe better to do a full sync. --syncmode=full

@Fueav
Copy link
Author

Fueav commented Jun 7, 2023

it's my geth.service
image
Beacon-chain p2p connection is configured and working properly.
image
Does that mean geth also needs to configure the boot node?

@Fueav
Copy link
Author

Fueav commented Jun 7, 2023

@nisdas geth is already --syncmode=full

@nisdas
Copy link
Member

nisdas commented Jun 7, 2023

You can give that a try, our devnet instructions are only for 1 node currently. If you need to add multiple nodes, then you will have to configure a geth/execution bootnode.

@Fueav
Copy link
Author

Fueav commented Jun 7, 2023

I tried, but it didn't work.v4.0.3 running normally, and I'm ready to revert back to this version.

@icemagno
Copy link

icemagno commented Aug 17, 2023

Any progress?
I've seen Prysm is having many trouble to work with multinode private blockchain...

Many... many issues mainly involving sync

{
"data": {
    "head_slot": "0",
    "sync_distance": "79",
    "is_syncing": false,
    "is_optimistic": false,
    "el_offline": true
    }
}

and

time="2023-08-17 23:44:21" level=debug msg="aggregated unaggregated attestations" Duration=176.277碌s prefix="pool/attestations"
time="2023-08-17 23:44:33" level=debug msg="aggregated unaggregated attestations" Duration=197.33碌s prefix="pool/attestations"
time="2023-08-17 23:44:43" level=error msg="Unable to retrieve proof-of-stake genesis block data" error="HeaderByHash, hash=0xb3920fe1b2f6cc9ccbc7c8ab054cde560057d730ad4071251ceb6f903f1db533: not found" prefix=powchain
time="2023-08-17 23:44:45" level=debug msg="aggregated unaggregated attestations" Duration=131.653碌s prefix="pool/attestations"
time="2023-08-17 23:44:57" level=debug msg="aggregated unaggregated attestations" Duration=131.279碌s prefix="pool/attestations"
time="2023-08-17 23:45:09" level=debug msg="aggregated unaggregated attestations" Duration=175.4碌s prefix="pool/attestations"
time="2023-08-17 23:45:12" level=info msg="Peer summary" activePeers=0 inbound=0 outbound=0 prefix=p2p
time="2023-08-17 23:45:15" level=error msg="could not process new slot" error="0x0000000000000000000000000000000000000000000000000000000000000000: unknown finalized root" prefix=blockchain
time="2023-08-17 23:45:21" level=debug msg="aggregated unaggregated attestations" Duration=184.876碌s prefix="pool/attestations"
time="2023-08-17 23:45:33" level=debug msg="aggregated unaggregated attestations" Duration=246.964碌s prefix="pool/attestations"
time="2023-08-17 23:45:45" level=debug msg="aggregated unaggregated attestations" Duration=207.982碌s prefix="pool/attestations"
time="2023-08-17 23:45:57" level=debug msg="aggregated unaggregated attestations" Duration=186.674碌s prefix="pool/attestations"
time="2023-08-17 23:46:09" level=debug msg="aggregated unaggregated attestations" Duration=186.577碌s prefix="pool/attestations"
time="2023-08-17 23:46:12" level=info msg="Peer summary" activePeers=0 inbound=0 outbound=0 prefix=p2p
time="2023-08-17 23:46:21" level=debug msg="aggregated unaggregated attestations" Duration=246.525碌s prefix="pool/attestations"
time="2023-08-17 23:46:27" level=error msg="could not process new slot" error="0x0000000000000000000000000000000000000000000000000000000000000000: unknown finalized root" prefix=blockchain
time="2023-08-17 23:46:33" level=debug msg="aggregated unaggregated attestations" Duration=184.536碌s prefix="pool/attestations"
time="2023-08-17 23:46:45" level=debug msg="aggregated unaggregated attestations" Duration=151.021碌s prefix="pool/attestations"
time="2023-08-17 23:46:57" level=debug msg="aggregated unaggregated attestations" Duration=191.652碌s prefix="pool/attestations"
time="2023-08-17 23:46:58" level=error msg="Unable to retrieve proof-of-stake genesis block data" error="HeaderByHash, hash=0xb3920fe1b2f6cc9ccbc7c8ab054cde560057d730ad4071251ceb6f903f1db533: not found" prefix=powchain
time="2023-08-17 23:47:09" level=debug msg="aggregated unaggregated attestations" Duration=133.121碌s prefix="pool/attestations"
time="2023-08-17 23:47:12" level=info msg="Peer summary" activePeers=0 inbound=0 outbound=0 prefix=p2p
time="2023-08-17 23:47:21" level=debug msg="aggregated unaggregated attestations" Duration=317.25碌s prefix="pool/attestations"
time="2023-08-17 23:47:33" level=debug msg="aggregated unaggregated attestations" Duration=222.805碌s prefix="pool/attestations"
time="2023-08-17 23:47:39" level=error msg="could not process new slot" error="0x0000000000000000000000000000000000000000000000000000000000000000: unknown finalized root" prefix=blockchain
time="2023-08-17 23:47:45" level=debug msg="aggregated unaggregated attestations" Duration=181.368碌s prefix="pool/attestations"
time="2023-08-17 23:47:57" level=debug msg="aggregated unaggregated attestations" Duration=137.934碌s prefix="pool/attestations"

@lyfsn
Copy link

lyfsn commented Nov 6, 2023

@icemagno I encountered the same error. How did you resolve it?

@Gopal-Gurram
Copy link

@Fueav , @lyfsn , @nisdas
did you resolve the
Forkchoice requested sync to new head number=98 hash=748935..d423c8 finalized=75 issue ?
I am facing that while connecting the second node from the localhost and my first node is in droplet and i used the bootnode from geth and bootstrap-node and peer from the beacon node ?

@netoneko
Copy link

netoneko commented Feb 5, 2024

@Gopal-Gurram same issue, trying to add another node to this proof of stake devnet setup and if fails to sync. Did you resolve your issue?

@Gopal-Gurram
Copy link

no @netoneko

@icemagno
Copy link

icemagno commented Feb 23, 2024

@lyfsn I've started to use Hyperledger Besu.

You can check my old try anyway...
https://github.com/icemagno/multinode-blockchain

May the force be with you in this path

@linear linear bot added the Help Wanted Extra attention is needed label Mar 20, 2024
@prestonvanloon
Copy link
Member

Closing old issues. This seems like a devnet setup issue rather than a Prysm issue. Please file again with reproduction steps if this is still an issue.

@prestonvanloon prestonvanloon closed this as not planned Won't fix, can't repro, duplicate, stale Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help Wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

8 participants