lighthouse: after updating to 1.02 it fails connecting to external eth1 nodes

Description

After updating lighthouse can’t connect to eth1 nodes. This has been confirmed by another user on discord. We are both running ubuntu and tried both alchemyapi and infura.io.

No firewalls, no mistakes in the endpoint.

I can curl the endpoint with no issues.

Version

cargo 1.48.0 (65cbdd2dc 2020-10-14) Lighthouse v1.0.2-f7183098 BLS Library: blst

Present Behaviour

Command: lighthouse bn --network mainnet --datadir /mnt/ssd/stake/ --eth1-endpoint https://mainnet.infura.io/v3/6****f/

Output:

Nov 29 15:52:27.442 INFO Lighthouse started                      version: Lighthouse/v1.0.2-f7183098
Nov 29 15:52:27.442 INFO Configured for network                  name: mainnet
Nov 29 15:52:27.443 INFO Data directory initialised              datadir: /mnt/ssd/stake
Nov 29 15:52:27.458 INFO Deposit contract                        address: 0x00000000219ab540356cbb839cbe05303d7705fa, deploy_block: 11184524
Nov 29 15:52:27.526 INFO Starting beacon chain                   method: resume, service: beacon
Nov 29 15:52:39.464 INFO Block production enabled                method: json rpc via http, endpoints: ["https://mainnet.infura.io/v3/*****/"]
Nov 29 15:52:39.519 INFO Beacon chain initialized                head_slot: 0, head_block: 0x4d61…9360, head_state: 0x7e76…2c2b, service: beacon
Nov 29 15:52:39.520 INFO Timer service started                   service: node_timer
Nov 29 15:52:39.521 INFO UPnP Attempting to initialise routes    service: UPnP
Nov 29 15:52:39.524 INFO Libp2p Service                          peer_id: 16Uiu2HAmT5no4boHMrUt4cZEQNoFTkiE3ynEnVnwmcNhUcmSra9m, service: libp2p
Nov 29 15:52:39.526 INFO ENR Initialised                         tcp: Some(9000), udp: Some(9000), ip: Some(93.*****), id: 0x398d..a7ed, seq: 2, enr: enr:-LK4QP2cyGpWINr-z15hPcFIrXtKTr-wZYHg2E4rwAuyMmknGaw13EmjAM2H2EjbC5P1Z0KYqhNIHlsYeDWS-O2UL0ACh2F0dG5ldHOIAAAAAAAAAACEZXRoMpC1MD8qAAAAAP__________gmlkgnY0gmlwhF2wojOJc2VjcDI1NmsxoQPWXhI5zcP7zuaKlDQ790UuMigbUlRXX--r1R_m8blfmIN0Y3CCIyiDdWRwgiMo, service: libp2p
Nov 29 15:52:39.528 INFO Listening established                   address: /ip4/0.0.0.0/tcp/9000/p2p/16Uiu2HAmT5no4boHMrUt4cZEQNoFTkiE3ynEnVnwmcNhUcmSra9m, service: libp2p
Nov 29 15:52:39.631 INFO HTTP server is disabled
Nov 29 15:52:39.632 INFO Waiting for genesis                     wait_time: 1 day 20 hrs, peers: 0, service: slot_notifier
Nov 29 15:52:48.723 INFO Sync state updated                      new_state: Synced, old_state: Stalled, service: sync
Nov 29 15:52:48.725 INFO Subscribed to topics                    topics: [BeaconBlock, BeaconAggregateAndProof, VoluntaryExit, ProposerSlashing, AttesterSlashing], service: network
Nov 29 15:52:51.632 INFO Waiting for genesis                     wait_time: 1 day 20 hrs, peers: 3, service: slot_notifier
Nov 29 15:52:54.548 WARN Error connecting to eth1 node. Trying fallback ..., endpoint: https://mainnet.infura.io/v3/****/, service: eth1_rpc
Nov 29 15:52:54.549 CRIT Couldn't connect to any eth1 node. Please ensure that you have an eth1 http server running locally on http://localhost:8545 or specify one or more (remote) endpoints using `--eth1-endpoints <COMMA-SEPARATED-SERVER-ADDRESSES>`. Also ensure that `eth` and `net` apis are enabled on the eth1 http server, warning: BLOCK PROPOSALS WILL FAIL WITHOUT VALID, SYNCED ETH1 CONNECTION, service: eth1_rpc
Nov 29 15:52:54.550 ERRO Failed to update eth1 cache             error: Failed to update Eth1 service: "All fallback errored: https://mainnet.infura.io/v3/6****715e8f/ => EndpointError(NotReachable)", retry_millis: 7000, service: eth1_rpc
Nov 29 15:52:55.164 WARN Error connecting to eth1 node. Trying fallback ..., endpoint: https://mainnet.infura.io/v3/60****e8f/, service: eth1_rpc
Nov 29 15:52:55.165 CRIT Couldn't connect to any eth1 node. Please ensure that you have an eth1 http server running locally on http://localhost:8545 or specify one or more (remote) endpoints using `--eth1-endpoints <COMMA-SEPARATED-SERVER-ADDRESSES>`. Also ensure that `eth` and `net` apis are enabled on the eth1 http server, warning: BLOCK PROPOSALS WILL FAIL WITHOUT VALID, SYNCED ETH1 CONNECTION, service: eth1_rpc
Nov 29 15:52:55.166 ERRO Failed to update eth1 cache             error: Failed to update Eth1 service: "All fallback errored: https://mainnet.infura.io/v3/6****f/ => EndpointError(NotReachable)", retry_millis: 7000, service: eth1_rpc
Nov 29 15:52:55.760 WARN Error connecting to eth1 node. Trying fallback ..., endpoint: https://mainnet.infura.io/v3/6****f/, service: eth1_rpc
Nov 29 15:52:55.761 CRIT Couldn't connect to any eth1 node. Please ensure that you have an eth1 http server running locally on http://localhost:8545 or specify one or more (remote) endpoints using `--eth1-endpoints <COMMA-SEPARATED-SERVER-ADDRESSES>`. Also ensure that `eth` and `net` apis are enabled on the eth1 http server, warning: BLOCK PROPOSALS WILL FAIL WITHOUT VALID, SYNCED ETH1 CONNECTION, service: eth1_rpc
Nov 29 15:52:55.762 ERRO Failed to update eth1 cache             error: Failed to update Eth1 service: "All fallback errored: https://mainnet.infura.io/v3/609fc*****715e8f/ => EndpointError(NotReachable)", retry_millis: 7000, service: eth1_rpc
^CNov 29 15:52:57.568 INFO Shutting down..
Nov 29 15:52:57.570 INFO Saved DHT state                         service: network
Nov 29 15:52:57.571 INFO Network service shutdown                service: network
Nov 29 15:52:57.584 INFO Saved beacon chain to disk              service: beacon

Some other time the output it’s slighly different:

Nov 29 16:48:58.285 ERRO Failed to update eth1 cache             error: Failed to update eth1 cache: "All fallback errored: https://mainnet.infura.io/v3/609fc*****39ea715e8f => GetDepositLogsFailed(\"Request failed: reqwest::Error { kind: Request, url: Url { scheme: \\\"https\\\", host: Some(Domain(\\\"mainnet.infura.io\\\")), port: None, path: \\\"/v3/60******5e8f\\\", query: None, fragment: None }, source: TimedOut }\")", retry_millis: 7000, service: eth1_rpc

I have no authentication activated on Infura.

I can curl it just fine

curl https://mainnet.infura.io/v3/60***15e8f -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params": [],"id":1}'

{"jsonrpc":"2.0","id":1,"result":"0xad413a"}

Replace all these symptoms with Alchemy, same problem

In alchemy dashboard I can see all the request arriving to the endpoint with no problem. Here is the raw request:

{
"id":1
"jsonrpc":"2.0"
"method":"eth_getLogs"
"params":[
0:{
"address":"0x00000000219a***"
"fromBlock":"0xaaebf4"
"toBlock":"0xaaefdc"
"topics":[
0:"0x649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5"
]
}
]
}

and here is a raw response

{"id": 1, "jsonrpc": "2.0", "result": [{"address": "0x00000000219ab540356cbb839cbe05303d7705fa", "blockHash": "0x779b5145d45be31fe12d9346e5cc50aac62baa5ad33732de01657ec9911ea4cf", "blockNumber": "0xaaedb5", "data": "0x00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000", "logIndex": "0xac", "removed": false, "topics": ["0x649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5"], "transactionHash": "0x64a66740ae4cf64e8735271f94fa9c763e9a68c506292671041301196f6f2d70", "transactionIndex": "0x5b"}, {"address": "0x00000000219ab540356cbb839cbe05303d7705fa", "blockHash": "0x950b51346b740e50254a41e5bbdb2628a07e9cbaf9ff6ec6a8c3407c193b82fb", "blockNumber": "0xaaedb6", "data": "0x00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000", "logIndex": "0xf6", "removed": false, "topics": ["0x649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5"], "transactionHash": "0xccd2ddb9827a39bb30fd1a2166f40d2d571feab375e0d6469ba749d86e3f4e0b", "transactionIndex": "0xbe"}, {"address": "0x00000000219ab540356cbb839cbe05303d7705fa", "blockHash": "0x950b51346b740e50254a41e5bbdb2628a07e9cbaf9ff6ec6a8c3407c193b82fb", "blockNumber": "0xaaedb6", "data": "0x00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000", "logIndex": "0x100", "removed": false, "topics": ["0x649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5"], "transactionHash": "0x721a69c5bd3b697827eabd44d7176e95ba803a462d99e74f62299111e8c516b1", "transactionIndex": "0xc6"}, {"address": "0x00000000219ab540356cbb839cbe05303d7705fa", "blockHash": "0x98cf9fdf393b73e3f133282cbb511eeb4624c5f7879100dd88ea706d185084d1", "blockNumber": "0xaaedba", "data": "0x00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000", "logIndex": "0x8", "removed": false, "topics": ["0x649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5"], "transactionHash": "0xedf5930af6dd9efd54787d57acb250aff72ecb9a697b4abefa87274035343787", "transactionIndex": "0xd"}, {"address": "0x00000000219ab540356cbb839cbe05303d7705fa", "blockHash": "0x98cf9fdf393b73e3f133282cbb511eeb4624c5f7879100dd88ea706d185084d1", "blockNumber": "0xaaedba", "data": "0x00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000", "logIndex": "0x2c", "removed": false, "topics": ["0x649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5"], "transactionHash": "0x92f90a1271a184e1c5ee1e468f391bab5749108effb2c57a49f2cef153f9bc58", "transactionIndex": "0x19"}, {"address": "0x00000000219ab540356cbb839cbe05303d7705fa", "blockHash": "0x98cf9fdf393b73e3f133282cbb511eeb4624c5f7879100dd88ea706d185084d1", "blockNumber": "0xaaedba", "data": "0x00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000", "logIndex": "0x3e", "removed": false, "topics": ["0x649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5"], "transactionHash": "0x7c2f5f1ade5b7df58eebbe3c76b8cb038936e0f7fb4479ab5ac9df7a6f0fbd41", "transactionIndex": "0x1f"}, {"address": "0x00000000219ab540356cbb839cbe05303d7705fa", "blockHash": "0x98cf9fdf393b73e3f133282cbb511eeb4624c5f7879100dd88ea706d185084d1", "blockNumber": "0xaaedba", "data": "0x00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000", "logIndex": "0x4a", "removed": false, "topics": ["0x649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5"], "transactionHash": "0x5722e35df3387aa21c825b0d8ddea3cf168d421a31edfe63c73ffc028df2a4f1", "transactionIndex": "0x27"}, {"address": "0x00000000219ab540356cbb839cbe05303d7705fa", "blockHash": "0xc3ae7bf1ad372a3a31dc82db625e594c619fd70c99f530018bf1dd5541cd3a3d", "blockNumber": "0xaaee47", "data": "0x00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000", "logIndex": "0xf0", "removed": false, "topics": ["0x649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5"], "transactionHash": "0xaed6dce1102e4b034e2587ffcfc7ce08651362a611a397936d7fc49447edca11", "transactionIndex": "0x85"}, {"address": "0x00000000219ab540356cbb839cbe05303d7705fa", "blockHash": "0xc3ae7bf1ad372a3a31dc82db625e594c619fd70c99f530018bf1dd5541cd3a3d", "blockNumber": "0xaaee47", "data": "0x00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000", "logIndex": "0xf1", "removed": false, "topics": ["0x649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5"], "transactionHash": "0xa9ac740839af5b3d9a049202d7dc81a9ad913408736adbba7334f29e68469d77", "transactionIndex": "0x86"}, {"address": "0x00000000219ab540356cbb839cbe05303d7705fa", "blockHash": "0x6ea0faea7b3556f0e7c276519134b34c874be43750c0f4b6c0ddbc3f791f7502", "blockNumber": "0xaaef9d", "data": "0x00000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000", "logIndex": "0x3c", "removed": false, "topics": ["0x649bbc62d0e31342afea4e5cd82d4049e7e1ee912fc0889aa790803be39038c5"], "transactionHash": "0xed7637442cac9df2eb66d7ce16fccb1b676d04060fbd752563b0ed8d96c08705", "transactionIndex": "0x4b"}]}

Steps to resolve

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 15 (9 by maintainers)

Most upvoted comments

2 things I have noticed:

  • Make sure to have --eth1-endpoints and not --eth1-endpoint when using multiple ones

@adv0r you have a trailing slash in the endpoint URL