ethereum / go-ethereum

Go implementation of the Ethereum protocol
https://geth.ethereum.org
GNU Lesser General Public License v3.0
47.52k stars 20.11k forks source link

Error: invalid gas used (remote: 7959203 local: 2139203) / Ropsten Archive Node #23375

Closed mikoim closed 1 year ago

mikoim commented 3 years ago

System information

Geth version: v1.10.6 OS & Version: Linux Commit hash : (if develop)

Expected behaviour

Synchronizing blockchain nomarly

Actual behaviour

Stuck at block height 6430379

Steps to reproduce the behaviour

geth --datadir /ssd --ropsten --syncmode full --gcmode archive --cache 32768 --cache.trie 30 --cache.gc 0 --cache.snapshot 20

Backtrace

INFO [08-11|07:40:17.226] Downloader queue stats                   receiptTasks=0 blockTasks=0     itemSize=7.95KiB  throttle=8192
INFO [08-11|07:40:17.291] Skip duplicated bad block                number=6,430,379 hash=b4ef54..191a33
ERROR[08-11|07:40:17.291] 
########## BAD BLOCK #########
Chain config: {ChainID: 3 Homestead: 0 DAO: <nil> DAOSupport: true EIP150: 0 EIP155: 10 EIP158: 10 Byzantium: 1700000 Constantinople: 4230000 Petersburg: 4939394 Istanbul: 6485846, Muir Glacier: 7117117, Berlin: 9812189, London: 10499401, Engine: ethash}

Number: 6430379
Hash: 0xb4ef541b7573d538d4b87097250276e0cc25c75fe700e6e85d1ddf5079191a33
         0: cumulative: 2139203 gas: 2139203 contract: 0x0000000000000000000000000000000000000000 status: 1 tx: 0xb3fa74108654455c0101ae6d02ae7c448dadec996315f2d783df3fc0c0ea2d0c logs: [] bloom: 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 state: 

Error: invalid gas used (remote: 7959203 local: 2139203)
##############################

WARN [08-11|07:40:17.291] Synchronisation failed, dropping peer    peer=0b3f2989a90a3d8f6fbe7be13f4c6dd621fc7a7ab384f109f2011dcd17050005 err="retrieved hash chain is invalid: invalid gas used (remote: 7959203 local: 2139203)"
WARN [08-11|07:40:17.691] Synchronisation failed, dropping peer    peer=7b3b838b71676496af9e86543852c495f63a4daec3d257014e974e6d32003505 err="action from bad peer ignored: returned headers 192 != requested 1"
s1na commented 3 years ago

Do you by any chance have access to the logs from when you started geth? were there any unclean shutdowns?

mikoim commented 3 years ago

I stopeed geth by Ctrl + C about two times for server maintenance but I confirmed it had stopped without errors. Also, the file system (ZFS) has not shown an error yet.

There is any way to collect information to debug this issue?

MariusVanDerWijden commented 3 years ago

@mikoim If you start up your node it will print lines like this, if you had an unclean shutdown:

WARN [03-26|10:10:29.944] Unclean shutdown detected booted=2021-03-17T13:16:42+0000 age=1w1d20h
MariusVanDerWijden commented 1 year ago

With Ropsten being deprecated and this issue getting a bit stale, I'm going to close this for now. Thanks for reporting, if you still experience this, please reopen another issue