-
Notifications
You must be signed in to change notification settings - Fork 182
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
Heimdall 1.1.0-beta Amoy in combination with Erigon v2.60.10 not able to begin without remote bor #1218
Comments
It looks like the local erigon node is not running ? |
@avalkov The local Erigon instance runs. This message comes not continuous. The problem for this message in my opinion is, that Erigon is not fast enough for Heimdall. The blocknumber also rises with these messages. But to be clear, this message is the only thing I find suspicious and I am not sure if it is related to the main problem. The main problem here is:
|
@MrFreezeDZ From what I understand you run a heimdall container and you run erigon in container or host machine ? Because from the error it looks like heimdall is trying to connect to erigon on Please verify manually that you can connect to the erigon RPC (which is port 8545), from inside of the heimdall container. Thanks. |
@avalkov oh I think you are right. That is definitely a problem. Thank you very much for pointing me in the right direction. Right now I am trying to test it. I will write here if it works or not. |
@avalkov Hi, I tested it. When I spin up Heimdall and Erigon from scratch with snapshots from https://publicnode.com/snapshots#polygon and Heimdall pointing to
I get following errors, when I then switch to
Another panic is:
|
Regarding seeds not found, are you sure that all required erigon ports are forwarded properly ? https://github.com/erigontech/erigon?tab=readme-ov-file#default-ports-and-firewalls Also when you say you spin up from scratch with snapshots, you mean that both erigon and heimdall start from same snapshot? |
@MrFreezeDZ Can you ensure that the |
@avalkov I can say that before Heimdall 1.1.0-beta everything worked and we did not even had the bor api enabled on Erigon. As you pointed me to, we never had a correct bor endpoint configured for our Heimdall instance, until now. The comment from icculp here describes exactly what I am wondering about too. So as long as this is a known issue and it is not planned to have this circular dependency in the future I will look forward to the next Heimdall release. |
Yes there are some instances where heimdall is made to do a bor rpc call, specifically
Well heimdall won't have a dependency on bor until the Jorvik HF hits. Overall, we realised that PIP-52 ended up introducing slight non-deterministic behaviour for which we have a fix ready. It should get rolled out on amoy in early Jan and Feb'25 for mainnet. |
@Raneet10 to answer your question to ensure that the bor api is enabled I started a pod in the same namespace to be able to use curl to access the ergion-svc. I can use the bor_ methods, for example this works:
|
Heimdall version
We run the image from here: https://hub.docker.com/layers/0xpolygon/heimdall/1.1.0-beta/images/sha256-1f8acf1364c29c388869b7701dc9870f58267ba7989221e289596b3a3473d7b4
Environment:
What happened:
After upgrading to version 1.1.0-beta we had an error. We opened a support ticket: https://support.polygon.technology/support/tickets/140239
We should resync with snapshots from here: https://publicnode.com/snapshots#polygon
And we should use for heimdall the remote bor_rpc_url: https://rpc-amoy.polygon.technology
We also had to unwind our Erigon to get it to run again.
Also we needed to activate the bor api on the Erigon side, which we did not have to do before Heimdall 1.1.0-beta.
After Heimdall and Erigon were in sync again, we were able to set the Heimdall bor_rpc_url again to our local Erigon. Heimdall only complained every now and then with messages like this:
Also when I have Erigon running and stop Heimdall and delete it's data folder, download the Heimdall snapshot and extract it again, it will log an error message if the bor_rpc_url is set to Erigon (localhost). The only way getting Heimdall to run with the downloaded snapshots for me is to use the bor_rpc_url: https://rpc-amoy.polygon.technology
What you expected to happen:
I expect to be able to download the snapshots for Heimdall and Erigon from https://publicnode.com/snapshots#polygon and run our node without any remote bor rpc url set. The constraint of having to set another bor_rpc_url for our Heimdall than our own feels wrong.
Have you tried the latest version: yes/no
yes
How to reproduce it (as minimally and precisely as possible):
Logs (paste a small part showing an error (< 10 lines) or link a pastebin, gist, etc. containing more of the log file):
Config (you can paste only the changes you've made):
Nothing changed since Heimdall version 1.0.7.
node command runtime flags:
/usr/bin/heimdalld start --home=/heimdall-home
/dump_consensus_state
output for consensus bugsAnything else we need to know:
The text was updated successfully, but these errors were encountered: