erigon icon indicating copy to clipboard operation
erigon copied to clipboard

mainnet stucked after the merge

Open alexlee85 opened this issue 4 years ago • 38 comments

System information

Erigon version: v2022.09.01

OS & Version: docker:v2022.09.01

Commit hash : 4067b7c4da6c5d741d3027d95ae2afdf6b7a943a

[INFO] [09-15|06:42:50.852]                                                                                                                                                      [90/1955]

    ,,,         ,,,                                               ,,,         ,,,
  ;"   ^;     ;'   ",                                           ;"   ^;     ;'   ",
  ;    s$$$$$$$s     ;                                          ;    s$$$$$$$s     ;
  ,  ss$$$$$$$$$$s  ,'  ooooooooo.    .oooooo.   .oooooo..o     ,  ss$$$$$$$$$$s  ,'
  ;s$$$$$$$$$$$$$$$     '888   'Y88. d8P'  'Y8b d8P'    'Y8     ;s$$$$$$$$$$$$$$$
  $$$$$$$$$$$$$$$$$$     888   .d88'888      888Y88bo.          $$$$$$$$$$$$$$$$$$
 $$$$P""Y$$$Y""W$$$$$    888ooo88P' 888      888 '"Y8888o.     $$$$P""Y$$$Y""W$$$$$
 $$$$  p"$$$"q  $$$$$    888        888      888     '"Y88b    $$$$  p"$$$"q  $$$$$
 $$$$  .$$$$$.  $$$$     888        '88b    d88'oo     .d8P    $$$$  .$$$$$.  $$$$
  $$DcaU$$$$$$$$$$      o888o        'Y8bood8P' 8""88888P'      $$DcaU$$$$$$$$$$
    "Y$$$"*"$$$Y"                                                 "Y$$$"*"$$$Y"
        "$b.$$"                                                       "$b.$$"
       .o.                   .   o8o                         .                 .o8
      .888.                .o8   '"'                       .o8                "888
     .8"888.     .ooooo. .o888oooooo oooo    ooo .oooo.  .o888oo .ooooo.  .oooo888
    .8' '888.   d88' '"Y8  888  '888  '88.  .8' 'P  )88b   888  d88' '88bd88' '888
   .88ooo8888.  888        888   888   '88..8'   .oP"888   888  888ooo888888   888
  .8'     '888. 888   .o8  888 . 888    '888'   d8(  888   888 .888    .o888   888
 o88o     o8888o'Y8bod8P'  "888"o888o    '8'    'Y888""8o  "888"'Y8bod8P''Y8bod88P"


[INFO] [09-15|06:42:50.853] [1/15 Headers] Processed                 highest inserted=15537393 age=8s
[INFO] [09-15|06:42:51.093] [6/15 Execution] Completed on            block=15537393
[INFO] [09-15|06:42:51.224] Timings (slower than 50ms)               Headers=5.697s BlockHashes=70ms Execution=129ms IntermediateHashes=62ms
[INFO] [09-15|06:42:51.224] Tables                                   PlainState=73.7GB AccountChangeSet=162.7GB StorageChangeSet=240.7GB BlockTransaction=7.8GB TransactionLog=447.0GB Fre
eList=52.2MB ReclaimableSpace=52.2GB
[INFO] [09-15|06:42:51.356] Commit cycle                             in=132.087312ms
[INFO] [09-15|06:42:51.357] RPC Daemon notified of new headers       from=15537392 to=15537393 header sending=14.334µs log sending=398ns
[INFO] [09-15|06:42:51.379] [1/15 Headers] Waiting for Beacon Chain...
[INFO] [09-15|06:43:18.163] [txpool] stat                            block=15537393 pending=10000 baseFee=30000 queued=30000 alloc=4.0GB sys=9.2GB
[INFO] [09-15|06:44:15.882] [p2p] GoodPeers                          eth66=33
[INFO] [09-15|06:44:18.144] [txpool] stat                            block=15537393 pending=10000 baseFee=30000 queued=30000 alloc=4.5GB sys=9.2GB
[INFO] [09-15|06:45:18.145] [txpool] stat                            block=15537393 pending=10000 baseFee=30000 queued=30000 alloc=3.8GB sys=9.2GB
[INFO] [09-15|06:46:15.881] [p2p] GoodPeers                          eth66=33
[INFO] [09-15|06:46:18.119] [txpool] stat                            block=15537393 pending=10000 baseFee=30000 queued=30000 alloc=4.2GB sys=9.2GB
[INFO] [09-15|06:47:18.161] [txpool] stat                            block=15537393 pending=10000 baseFee=30000 queued=30000 alloc=3.8GB sys=9.2GB
[INFO] [09-15|06:48:15.882] [p2p] GoodPeers                          eth66=33
[INFO] [09-15|06:48:18.154] [txpool] stat                            block=15537393 pending=10000 baseFee=30000 queued=30000 alloc=4.2GB sys=9.2GB
[INFO] [09-15|06:49:18.122] [txpool] stat                            block=15537393 pending=10000 baseFee=30000 queued=30000 alloc=3.7GB sys=9.2GB
[INFO] [09-15|06:50:15.882] [p2p] GoodPeers                          eth66=33
[INFO] [09-15|06:50:18.120] [txpool] stat                            block=15537393 pending=10000 baseFee=30000 queued=30000 alloc=4.1GB sys=9.2GB
[INFO] [09-15|06:51:18.121] [txpool] stat                            block=15537393 pending=10000 baseFee=30000 queued=30000 alloc=3.7GB sys=9.2GB
[INFO] [09-15|06:52:15.881] [p2p] GoodPeers                          eth66=33
[INFO] [09-15|06:52:18.120] [txpool] stat                            block=15537393 pending=10000 baseFee=30000 queued=30000 alloc=4.0GB sys=9.2GB
[INFO] [09-15|06:53:18.121] [txpool] stat                            block=15537393 pending=10000 baseFee=30000 queued=30000 alloc=3.7GB sys=9.2GB
[INFO] [09-15|06:54:15.881] [p2p] GoodPeers                          eth66=33
[INFO] [09-15|06:54:18.120] [txpool] stat                            block=15537393 pending=10000 baseFee=30000 queued=30000 alloc=3.9GB sys=9.2GB
[INFO] [09-15|06:55:18.181] [txpool] stat                            block=15537393 pending=10000 baseFee=30000 queued=30000 alloc=3.6GB sys=9.2GB
[INFO] [09-15|06:56:15.882] [p2p] GoodPeers                          eth66=32
[INFO] [09-15|06:56:27.423] [txpool] stat                            block=15537393 pending=10000 baseFee=30000 queued=30000 alloc=3.4GB sys=9.2GB
[INFO] [09-15|06:57:18.165] [txpool] stat                            block=15537393 pending=10000 baseFee=30000 queued=30000 alloc=3.7GB sys=9.2GB

alexlee85 avatar Sep 15 '22 07:09 alexlee85

me too😢

wssll789 avatar Sep 15 '22 07:09 wssll789

I'm seeing the same issue, exact same version.

redmar avatar Sep 15 '22 07:09 redmar

[INFO] [09-15|09:33:59.953] [p2p] GoodPeers eth66=39 [INFO] [09-15|09:34:01.009] [txpool] stat block=15537393 pending=10000 baseFee=30000 queued=29991 alloc=2.9GB sys=3.7GB [INFO] [09-15|09:35:02.347] [txpool] stat block=15537393 pending=10000 baseFee=30000 queued=29999 alloc=3.5GB sys=3.7GB [INFO] [09-15|09:35:59.953] [p2p] GoodPeers eth66=49 [INFO] [09-15|09:36:01.004] [txpool] stat block=15537393 pending=10000 baseFee=30000 queued=30000 alloc=3.0GB sys=3.8GB [INFO] [09-15|09:37:00.998] [txpool] stat block=15537393 pending=10000 baseFee=30000 queued=29999 alloc=3.6GB sys=3.9GB

wssll789 avatar Sep 15 '22 07:09 wssll789

the same issues :(

ghost avatar Sep 15 '22 07:09 ghost

restarting gave me the same state, but stopping the node was not possible (even with 10s minutes of waiting in shutting down state). Maybe the backtrace of force quitting has any info on the issue at hand?

Go panic dump: (v2022.09.01)

dump
^CWARN[09-15|09:14:11.768] Already shutting down, interrupt more to panic. times=9                                                                                                                                                       [140/1932]
^CWARN[09-15|09:14:12.467] Already shutting down, interrupt more to panic. times=8
^CWARN[09-15|09:14:12.647] Already shutting down, interrupt more to panic. times=7
^CWARN[09-15|09:14:12.773] Already shutting down, interrupt more to panic. times=6
^CWARN[09-15|09:14:12.899] Already shutting down, interrupt more to panic. times=5
^CWARN[09-15|09:14:13.050] Already shutting down, interrupt more to panic. times=4
^CWARN[09-15|09:14:13.204] Already shutting down, interrupt more to panic. times=3
^CWARN[09-15|09:14:13.341] Already shutting down, interrupt more to panic. times=2
^CWARN[09-15|09:14:13.627] Already shutting down, interrupt more to panic. times=1
^Cpanic: boom

goroutine 4680 [running]:
github.com/ledgerwatch/erigon/internal/debug.LoudPanic(...)
     github.com/ledgerwatch/erigon/internal/debug/loudpanic.go:26
github.com/ledgerwatch/erigon/internal/debug.ListenSignals({0x1ff7cc0?, 0xc000ae2080})
     github.com/ledgerwatch/erigon/internal/debug/signal.go:38 +0x359
created by github.com/ledgerwatch/erigon/cmd/utils.StartNode
     github.com/ledgerwatch/erigon/cmd/utils/cmd.go:58 +0xaa

goroutine 1 [chan receive, 17 minutes]:
github.com/ledgerwatch/erigon/node.(*Node).Wait(...)
     github.com/ledgerwatch/erigon/node/node.go:265
github.com/ledgerwatch/erigon/turbo/node.(*ErigonNode).Serve(0xc003e7e140)
     github.com/ledgerwatch/erigon/turbo/node/node.go:32 +0x7c
main.runErigon(0xc0003bbb80?)
     github.com/ledgerwatch/erigon/cmd/erigon/main.go:64 +0x325
github.com/urfave/cli.HandleAction({0x16bb980?, 0x1deb770?}, 0xc0002bbc00?)
     github.com/urfave/[email protected]/app.go:526 +0x50
github.com/urfave/cli.(*App).Run(0xc0002bbc00, {0xc00003c080, 0x4, 0x4})
     github.com/urfave/[email protected]/app.go:286 +0x7c5
main.main()
     github.com/ledgerwatch/erigon/cmd/erigon/main.go:35 +0x75

goroutine 6 [sleep, 3 minutes]:
time.Sleep(0x22ecb25c00)
     runtime/time.go:194 +0x12e
github.com/VictoriaMetrics/metrics.summariesSwapCron(0x45d964b800)
     github.com/VictoriaMetrics/[email protected]/summary.go:237 +0x36
created by github.com/VictoriaMetrics/metrics.registerSummaryLocked
     github.com/VictoriaMetrics/[email protected]/summary.go:211 +0x125

goroutine 3033 [sleep]:
time.Sleep(0x6fc23ac00)
     runtime/time.go:194 +0x12e
github.com/ledgerwatch/erigon/cmd/downloader/downloader.MainLoop.func1()
     github.com/ledgerwatch/erigon/cmd/downloader/downloader/downloader.go:355 +0x4d
created by github.com/ledgerwatch/erigon/cmd/downloader/downloader.MainLoop
     github.com/ledgerwatch/erigon/cmd/downloader/downloader/downloader.go:333 +0x11e

goroutine 3083 [chan receive]:
github.com/ledgerwatch/erigon/metrics.(*meterArbiter).tick(0x2d2b8c0)
     github.com/ledgerwatch/erigon/metrics/meter.go:230 +0x87
created by github.com/ledgerwatch/erigon/metrics.NewMeterForced
     github.com/ledgerwatch/erigon/metrics/meter.go:34 +0xc5

goroutine 4637 [chan receive, 17 minutes]:
github.com/ledgerwatch/erigon-lib/direct.(*SubscribeLogsStreamC).Recv(0xc000025d48?)
     github.com/ledgerwatch/[email protected]/direct/eth_backend_client.go:181 +0x2b
github.com/ledgerwatch/erigon/cmd/rpcdaemon/rpcservices.(*RemoteBackend).SubscribeLogs(0xc00c59bef0, {0x2008b08, 0xc000aea840}, 0xc0027a17a0, 0x0?)
     github.com/ledgerwatch/erigon/cmd/rpcdaemon/rpcservices/eth_backend.go:156 +0x222
github.com/ledgerwatch/erigon/turbo/rpchelper.New.func2()
     github.com/ledgerwatch/erigon/turbo/rpchelper/filters.go:108 +0xec
created by github.com/ledgerwatch/erigon/turbo/rpchelper.New
     github.com/ledgerwatch/erigon/turbo/rpchelper/filters.go:98 +0x3d9

goroutine 4604 [syscall]:
os/signal.signal_recv()
     runtime/sigqueue.go:151 +0x2f
os/signal.loop()
     os/signal/signal_unix.go:23 +0x19
created by os/signal.Notify.func1.1
     os/signal/signal.go:151 +0x2a

goroutine 4593 [chan receive, 17 minutes]:
github.com/ledgerwatch/erigon-lib/direct.(*SubscribeLogsStreamS).Recv(0xc00c59b860?)
     github.com/ledgerwatch/[email protected]/direct/eth_backend_client.go:154 +0x2b
github.com/ledgerwatch/erigon/ethdb/privateapi.(*LogsFilterAggregator).subscribeLogs(0xc00c59b860, {0x2012a10, 0xc00dba9380})
     github.com/ledgerwatch/erigon/ethdb/privateapi/logsfilter.go:131 +0xbc
github.com/ledgerwatch/erigon/ethdb/privateapi.(*EthBackendServer).SubscribeLogs(0x2006c40?, {0x2012a10?, 0xc00dba9380?})
     github.com/ledgerwatch/erigon/ethdb/privateapi/ethbackend.go:677 +0x2c
github.com/ledgerwatch/erigon-lib/direct.(*EthBackendClientDirect).SubscribeLogs.func1()
     github.com/ledgerwatch/[email protected]/direct/eth_backend_client.go:121 +0x9b
created by github.com/ledgerwatch/erigon-lib/direct.(*EthBackendClientDirect).SubscribeLogs
     github.com/ledgerwatch/[email protected]/direct/eth_backend_client.go:118 +0x15b

goroutine 4648 [IO wait]:
internal/poll.runtime_pollWait(0x7f1dd4bdb768, 0x72)
     runtime/netpoll.go:302 +0x89
internal/poll.(*pollDesc).wait(0xc000025e00?, 0xc00000e108?, 0x0)
     internal/poll/fd_poll_runtime.go:83 +0x32
internal/poll.(*pollDesc).waitRead(...)
     internal/poll/fd_poll_runtime.go:88
internal/poll.(*FD).Accept(0xc000025e00)
     internal/poll/fd_unix.go:614 +0x22c
net.(*netFD).accept(0xc000025e00)
     net/fd_unix.go:172 +0x35
net.(*TCPListener).accept(0xc002421308)
     net/tcpsock_posix.go:139 +0x28
net.(*TCPListener).Accept(0xc002421308)
     net/tcpsock.go:288 +0x3d
github.com/ledgerwatch/erigon/p2p.(*Server).listenLoop(0xc00dfc02c0, {0x2008b08, 0xc000aeac80})
     github.com/ledgerwatch/erigon/p2p/server.go:892 +0x753
github.com/ledgerwatch/erigon/p2p.(*Server).setupListening.func2()
     github.com/ledgerwatch/erigon/p2p/server.go:721 +0x74
created by github.com/ledgerwatch/erigon/p2p.(*Server).setupListening
     github.com/ledgerwatch/erigon/p2p/server.go:718 +0x26d

goroutine 4679 [chan send, 3 minutes, locked to thread]:
github.com/ledgerwatch/erigon/eth/stagedsync.handleInterrupt(_, {{0x2011690, 0xc00029f080}, 0xc0065f0480, 0xc00998c0c0, {{0xc000408878, 0x7}, 0xc0000c60c0, {0xc000408888, 0x6}, ...}, ...}, ...)
     github.com/ledgerwatch/erigon/eth/stagedsync/stage_headers.go:729 +0xf9
github.com/ledgerwatch/erigon/eth/stagedsync.HeadersPOS(_, {_, _}, {_, _}, {_, _}, {{0x2011690, 0xc00029f080}, 0xc0065f0480, ...}, ...)
     github.com/ledgerwatch/erigon/eth/stagedsync/stage_headers.go:195 +0x3db
github.com/ledgerwatch/erigon/eth/stagedsync.SpawnStageHeaders(_, {_, _}, {_, _}, {_, _}, {{0x2011690, 0xc00029f080}, 0xc0065f0480, ...}, ...)
     github.com/ledgerwatch/erigon/eth/stagedsync/stage_headers.go:163 +0x41c
github.com/ledgerwatch/erigon/eth/stagedsync.DefaultStages.func1(0x60?, 0xf7?, 0x1986ecf?, {0x1ff7c60?, 0xc00029f760?}, {0x201d110?, 0xc0ce0b6ed0?})
     github.com/ledgerwatch/erigon/eth/stagedsync/default_stages.go:20 +0xb5
github.com/ledgerwatch/erigon/eth/stagedsync.(*Sync).runStage(0xc00029f760, 0xc00c59b8b0, {0x2011690?, 0xc00029f080}, {0x201d110?, 0xc0ce0b6ed0}, 0xa0?, 0xba?)
     github.com/ledgerwatch/erigon/eth/stagedsync/sync.go:352 +0x150
github.com/ledgerwatch/erigon/eth/stagedsync.(*Sync).Run(0xc00029f760, {0x2011690?, 0xc00029f080}, {0x201d110, 0xc0ce0b6ed0}, 0xd0?)
     github.com/ledgerwatch/erigon/eth/stagedsync/sync.go:255 +0x265
github.com/ledgerwatch/erigon/turbo/stages.StageLoopStep({0x2008b08, 0xc000aea840}, {0x2011690?, 0xc00029f080?}, 0xc00029f760, 0xed14fe, 0xc001ab81a0, 0x0, 0xc003e7f800, 0x0)
     github.com/ledgerwatch/erigon/turbo/stages/stageloop.go:163 +0x445
github.com/ledgerwatch/erigon/turbo/stages.StageLoop({0x2008b08, 0xc000aea840}, {0x2011690?, 0xc00029f080}, 0x2d2adb0?, 0x1980d33?, 0xc00e664d20?, 0xc003c91867?, 0xc00e5317c0?, 0x0)
     github.com/ledgerwatch/erigon/turbo/stages/stageloop.go:84 +0x145
created by github.com/ledgerwatch/erigon/eth.(*Ethereum).Start
     github.com/ledgerwatch/erigon/eth/backend.go:883 +0x1e5

goroutine 309253 [chan receive, 3 minutes]:
github.com/ledgerwatch/erigon/eth.(*Ethereum).Stop(0xc000230000)
     github.com/ledgerwatch/erigon/eth/backend.go:911 +0x189
github.com/ledgerwatch/erigon/node.(*Node).stopServices(0xc07ce26748?, {0xc003e7e130, 0x1, 0xc0f937d8f8?})
     github.com/ledgerwatch/erigon/node/node.go:219 +0xb3
github.com/ledgerwatch/erigon/node.(*Node).Close(0xc000ae2080)
     github.com/ledgerwatch/erigon/node/node.go:162 +0x18b
created by github.com/ledgerwatch/erigon/internal/debug.ListenSignals
     github.com/ledgerwatch/erigon/internal/debug/signal.go:29 +0x26d

redmar avatar Sep 15 '22 07:09 redmar

My Erigon + Nimbus isn't working either. I get a lot of these: [WARN] [09-15|17:46:41.648] Served method=engine_exchangeTransitionConfigurationV1 reqid=2284 t=147.125µs err="the execution layer has a wrong terminal block hash. expected 0x55b11b918355b1ef9c5db810302ebad0bf2544255b530cdce90674d5887bb286, but instead got: 0x0000000000000000000000000000000000000000000000000000000000000000"

amirderakh avatar Sep 15 '22 07:09 amirderakh

According to the official website ( https://ethereum.org/en/upgrades/merge/ ):

Up until The Merge, an execution client (such as Geth, Erigon, Besu or Nethermind) was enough to receive, properly validate, and propagate blocks being gossiped by the network. After The Merge, the validity of transactions contained within an execution payload now also depends on the validity of the "consensus block" it is contained within.

As a result, a full Ethereum node now requires both an execution client and a consensus client. These two clients work together using a new Engine API. The Engine API requires authentication using a JWT secret, which is provided to both clients allowing secure communication.

Key action items include:

Install a consensus client in addition to an execution client Authenticate execution and consensus clients with a shared JWT secret so they can securely communicate with one another. Not completing the above items will result in your node appearing to be "offline" until both layers are synced and authenticated.

According to Erigon main Github page ( https://github.com/ledgerwatch/erigon ), Erigon does not include consensus client. Anyone has a solution for this? Let's find out together.

Yes, you will now need a consensus client to run correctly. One thing is that some clients support checkpoint sync, so you won't need to wait for another day on full syncing the consensus client. I find these pages helpful:

  • consensus client comparison: https://docs.rocketpool.net/guides/node/eth-clients.html#consensus-clients
  • I learn how to do checkpoint sync here, and it is sure there are many more other articles and documents: https://www.youtube.com/watch?v=ce9uVRl23zI
  • Ways of running several different consensus clients. You may want to check the official documentation before running the commands: https://notes.ethereum.org/@launchpad/goerli

Yxang avatar Sep 15 '22 08:09 Yxang

Having this issue as well. Running erigon and lighthouse beacon-chain

suspended avatar Sep 15 '22 08:09 suspended

We're also having the same issue with one of our nodes - Erigon + Prysm

Just rebooted our EL+CL combination and seems to be fine so far. Fingers crossed.

Enigmatic331 avatar Sep 15 '22 08:09 Enigmatic331

My backup machine with Erigon + Teku is stuck as well. Erigon serves thousands of these: INFO[09-15|18:35:30.150] [1/16 Headers] Waiting for Beacon Chain... INFO[09-15|18:35:30.150] [1/16 Headers] Fork choice missing header with hash c923337f63a0ed51288b1468064085679383d41ebee7273da2c2260ae7bbdbbf

amirderakh avatar Sep 15 '22 08:09 amirderakh

same issue :(

JC1DA avatar Sep 15 '22 08:09 JC1DA

this problem solved. as @Yxang said, we need to run a consensus client, I chose lighthouse. just 3 steps solved this problem

1. docker pull sigp/lighthouse:v3.1.0
2. create a eth2 node on infura.io to support checkpoint sync.
3. docker run -d --name=lighthouse \
              sigp/lighthouse:v3.1.0 lighthouse --network mainnet beacon \
              --checkpoint-sync-url https://<xxxxxxx>@eth2-beacon-mainnet.infura.io \
              --execution-endpoint http://localhost:8551 --execution-jwt /root/.lighthouse/jwt.hex

alexlee85 avatar Sep 15 '22 08:09 alexlee85

this problem solved. as @Yxang said, we need to run a consensus client, I chose lighthouse. just 3 steps solved this problem

1. docker pull sigp/lighthouse:v3.1.0
2. create a eth2 node on infura.io to support checkpoint sync.
3. docker run -d --name=lighthouse \
              sigp/lighthouse:v3.1.0 lighthouse --network mainnet beacon \
              --checkpoint-sync-url https://<xxxxxxx>@eth2-beacon-mainnet.infura.io \
              --execution-endpoint http://localhost:8551 --execution-jwt /root/.lighthouse/jwt.hex

好兄弟+V BASE64. emxtei01MjA=

wssll789 avatar Sep 15 '22 09:09 wssll789

Hi, I run Erigon with Prysm. I tried to run Erigon like this:

erigon --datadir /data/erigon --chain mainnet --http.port 8545 --http.addr 0.0.0.0 --http.vhosts "*" --http.api eth,engine,erigon,trace --authrpc.jwtsecret=/xyz/jwt.hex  --override.terminaltotaldifficulty=0xc70d808a128d7380000

also with --override.terminaltotaldifficulty=58750000000000000000000 and also without override but still, Prysm complains that

ERROR powchain: Could not check configuration values between execution and consensus client error=the execution layer doesn't have a terminal total difficulty. expected: 0xc70d808a128d7380000: client error while processing request

Interestingly enough I tried the same setup on Ropsten and Sepolia successfully, only mainnet does not work.

I use erigon v2022.09.01 with Prysm 3.1.1

GBBx avatar Sep 15 '22 09:09 GBBx

Ok here's the full solution, no need to wait for the full sync:

  1. Get free API key from https://infura.io/.
  2. Download lighthouse binary from here: https://github.com/sigp/lighthouse/releases
  3. Start Lighthouse: ./lighthouse --network mainnet beacon --checkpoint-sync-url https://xxx:[email protected] --execution-endpoint http://127.0.0.1:8551 --execution-jwt /root/.lighthouse/jwt.hex
  4. Start Erigon with these options: ./erigon --http.api=eth,erigon,engine,debug,trace --authrpc.jwtsecret=/root/.lighthouse/jwt.hex --authrpc.addr=127.0.0.1 --override.terminaltotaldifficulty=0xc70d808a128d7380000

Great tutorial! One remark: first of all start 4 and then 3 because authrpc service is served by Erigon and Lighthouse consumes it.

DirectX avatar Sep 15 '22 10:09 DirectX

@AdminAnticaptcha : I have tried both erigon and prysm with and without override, with hex and decimal - to no avail.

GBBx avatar Sep 15 '22 12:09 GBBx

Same here, even with --override.terminaltotaldifficulty Erigon remains completely stuck in a loop of "Fork choice missing header with hash..." and "...the execution layer has a wrong terminal block hash...". I'm setting up Geth now, though even their snap sync seems to take like 24 hours?

amirderakh avatar Sep 15 '22 12:09 amirderakh

It also fails with lighthouse:

 ./lighthouse --network mainnet beacon --execution-endpoint http://127.0.0.1:8551 --execution-jwt /data/jwt/jwtsecret
...
Sep 15 12:41:00.596 INFO HTTP server is disabled
Sep 15 12:41:00.600 INFO Execution engine online                 service: exec
Sep 15 12:41:00.600 ERRO Execution engine call failed            error: ServerMessage { code: -32000, message: "the execution layer doesn't have a terminal total difficulty. expected: 0xc70d808a128d7380000" }, service: exec
Sep 15 12:41:00.600 ERRO Unable to get transition config         error: Api { error: ServerMessage { code: -32000, message: "the execution layer doesn't have a terminal total difficulty. expected: 0xc70d808a128d7380000" } }, service: exec
Sep 15 12:41:00.601 ERRO Failed to check transition config       error: EngineError(Api { error: ServerMessage { code: -32000, message: "the execution layer doesn't have a terminal total difficulty. expected: 0xc70d808a128d7380000" } }), service: exec
Sep 15 12:41:11.078 INFO UPnP not available                      error: IO error: Resource temporarily unavailable (os error 11), service: UPnP

GBBx avatar Sep 15 '22 12:09 GBBx

Same here, even with --override.terminaltotaldifficulty Erigon remains completely stuck in a loop of "Fork choice missing header with hash..." and "...the execution layer has a wrong terminal block hash...". I'm setting up Geth now, though even their snap sync seems to take like 24 hours?

same for me and also - we are running 6 nodes in total on mainnet with erigno x prysm setup, after restart some of them do seem to process and try to rollback eventually sync the blockchain, but some of them just pollute log with these:

[INFO] [09-15|13:08:43.268] Commit cycle in=7.5µs [INFO] [09-15|13:08:43.268] RPC Daemon notified of new headers from=15539241 to=15539242 header sending=10.74µs log sending=170ns [INFO] [09-15|13:08:43.268] [1/15 Headers] Waiting for Beacon Chain... [INFO] [09-15|13:08:43.268] [1/15 Headers] Fork choice missing header with hash 31a9908226e542baa14a55a079755efbb320c9bb446dc8bd3472aeed76a5751f

We run very similar setup on sepolia / goerli and there are no issues with them...

david-bartos avatar Sep 15 '22 13:09 david-bartos

  1. 从https://infura.io/

API 密钥是什么时候用的?

kledgold avatar Sep 15 '22 14:09 kledgold