Full Sync: BAD BLOCK: gas limit reached
Closed this issue · 5 comments
System information
Geth version: 1.9.10-unstable-3bb6815f-20191224
OS & Version: 18.04.3 LTS
Go Version: go1.13.4
Expected behaviour
Process all blocks
Actual behaviour
BAD BLOCK gas limit reached
Steps to reproduce the behaviour
I did not import DB this time, just straight --syncmode full
with an empty chaindata and empty ancients folder. It's been syncing for days, now it's stuck.
/opt/go-ethereum/build/bin/geth --datadir /data/ethereum --datadir.ancient /archive/ancient --nousb --ethstats=MysticRyuujin-geth01:<redacted>@ethstats.net --identity MysticRyuujin-geth01 --light.serve 100 --port 30301 --maxpeers 100 --nat extip:$(curl -s ipinfo.io/ip) --shh --rpc --rpcapi db,eth,net,web3,admin,txpool,shh --rpcaddr 192.168.15.31 --rpccorsdomain "*" --rpcvhosts "*" --ws --wsaddr 192.168.15.31 --wsapi db,eth,net,web3,admin,txpool,shh --wsorigins "*" --graphql --graphql.addr 192.168.15.31 --graphql.corsdomain "*" --graphql.vhosts "*" --syncmode full --cache 8192'
Backtrace
INFO [12-26|05:20:50.251] Imported new chain segment blocks=35 txs=3815 mgas=265.118 elapsed=8.049s mgasps=32.934 number=6027931 hash=5f1980…78c01b age=1y5mo1w dirty=1.29GiB
INFO [12-26|05:20:58.472] Imported new chain segment blocks=33 txs=4912 mgas=250.937 elapsed=8.220s mgasps=30.526 number=6027964 hash=17fc22…1087c6 age=1y5mo1w dirty=1.29GiB
INFO [12-26|05:21:06.527] Imported new chain segment blocks=46 txs=6061 mgas=330.144 elapsed=8.054s mgasps=40.987 number=6028010 hash=b3be70…599233 age=1y5mo1w dirty=1.29GiB
INFO [12-26|05:21:14.606] Imported new chain segment blocks=36 txs=4547 mgas=279.135 elapsed=8.079s mgasps=34.550 number=6028046 hash=8d8a56…8f431a age=1y5mo1w dirty=1.29GiB
INFO [12-26|05:21:22.738] Imported new chain segment blocks=43 txs=4750 mgas=315.514 elapsed=8.131s mgasps=38.800 number=6028089 hash=e60b0d…906389 age=1y5mo1w dirty=1.29GiB
INFO [12-26|05:21:31.064] Imported new chain segment blocks=50 txs=5918 mgas=357.989 elapsed=8.326s mgasps=42.992 number=6028139 hash=849bb2…1c2a6a age=1y5mo1w dirty=1.29GiB
INFO [12-26|05:21:39.111] Imported new chain segment blocks=43 txs=5768 mgas=323.721 elapsed=8.046s mgasps=40.229 number=6028182 hash=204b24…5b1a31 age=1y5mo1w dirty=1.29GiB
INFO [12-26|05:21:47.303] Imported new chain segment blocks=39 txs=5920 mgas=279.217 elapsed=8.191s mgasps=34.087 number=6028221 hash=578ccf…2f51d3 age=1y5mo1w dirty=1.29GiB
INFO [12-26|05:21:53.364] Deep froze chain segment blocks=331 elapsed=7.488s number=5938216 hash=d65678…0c6945
INFO [12-26|05:21:55.341] Imported new chain segment blocks=40 txs=4671 mgas=272.158 elapsed=8.038s mgasps=33.858 number=6028261 hash=58e974…70e3e7 age=1y5mo1w dirty=1.29GiB
INFO [12-26|05:22:03.417] Imported new chain segment blocks=50 txs=6084 mgas=344.484 elapsed=8.076s mgasps=42.654 number=6028311 hash=1959e1…579fa6 age=1y5mo1w dirty=1.29GiB
INFO [12-26|05:22:11.498] Imported new chain segment blocks=44 txs=5884 mgas=311.827 elapsed=8.081s mgasps=38.587 number=6028355 hash=061266…8510da age=1y5mo1w dirty=1.29GiB
INFO [12-26|05:22:19.612] Imported new chain segment blocks=48 txs=5668 mgas=352.428 elapsed=8.113s mgasps=43.436 number=6028403 hash=19b30d…a834b6 age=1y5mo1w dirty=1.29GiB
INFO [12-26|05:22:27.948] Imported new chain segment blocks=38 txs=3656 mgas=258.823 elapsed=8.335s mgasps=31.049 number=6028441 hash=fa3221…379ee7 age=1y5mo1w dirty=1.29GiB
INFO [12-26|05:22:36.055] Imported new chain segment blocks=43 txs=4468 mgas=316.000 elapsed=8.107s mgasps=38.977 number=6028484 hash=5d01d2…f45164 age=1y5mo1w dirty=1.29GiB
INFO [12-26|05:22:44.153] Imported new chain segment blocks=45 txs=5832 mgas=300.300 elapsed=8.097s mgasps=37.085 number=6028529 hash=d7112a…611588 age=1y5mo1w dirty=1.29GiB
INFO [12-26|05:22:52.250] Imported new chain segment blocks=57 txs=6409 mgas=386.113 elapsed=8.097s mgasps=47.684 number=6028586 hash=c482ff…f49023 age=1y5mo1w dirty=1.29GiB
INFO [12-26|05:22:56.541] Deep froze chain segment blocks=371 elapsed=3.175s number=5938587 hash=72f456…00820b
INFO [12-26|05:23:00.384] Imported new chain segment blocks=38 txs=4477 mgas=251.341 elapsed=8.134s mgasps=30.898 number=6028624 hash=11c93c…07aae6 age=1y5mo1w dirty=1.29GiB
ERROR[12-26|05:23:03.191]
########## BAD BLOCK #########
Chain config: {ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 2675000 Byzantium: 4370000 Constantinople: 7280000 Petersburg: 7280000 Istanbul: 9069000, Muir Glacier: 9200000, Engine: ethash}
Number: 6028634
Hash: 0xc227169cbd2593fa7e371170f8a89e95c4840f674e32c9e7f36c90627993e18f
Error: gas limit reached
##############################
WARN [12-26|05:23:03.193] Synchronisation failed, dropping peer peer=f12c2406387fe178 err="retrieved hash chain is invalid"
INFO [12-26|05:23:03.369] message loop peer=40f97c9725dff51e err=EOF
ERROR[12-26|05:23:08.714]
########## BAD BLOCK #########
Chain config: {ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 2675000 Byzantium: 4370000 Constantinople: 7280000 Petersburg: 7280000 Istanbul: 9069000, Muir Glacier: 9200000, Engine: ethash}
Number: 6028634
Hash: 0xc227169cbd2593fa7e371170f8a89e95c4840f674e32c9e7f36c90627993e18f
Error: gas limit reached
##############################
WARN [12-26|05:23:08.718] Synchronisation failed, dropping peer peer=39b3de1b8057c000 err="retrieved hash chain is invalid"
ERROR[12-26|05:23:13.346]
########## BAD BLOCK #########
Error repeats itself over and over.
As far as I can tell this is a valid block from etherscan:
6028634
0xc227169cbd2593fa7e371170f8a89e95c4840f674e32c9e7f36c90627993e18f
That's no good. However, I'm just doing a benchmarking full sync for #20481 , and both master
and that PR have successfully completed past block 7M, so it does not appear to be something 'chronic'.
Anything I can do/try to get the sync to resume or get past this error? Build with that pull request included? Tell Geth to start over from a previous block? Or am I just stuck starting from 0?
Provide more logs?
I'm happy to provide SSH access to the box. But if you feel like it's just a fluke/corruption somewhere. I'll just resync. This is the same node as before having other issues. I guess it could have a bad SSD or something?