erigon
erigon copied to clipboard
trace_filter -> first run for txIndex 0 error
Erigon version: 2022.09.03
OS & Version: Ubuntu 20.04.5 LTS
Actual behaviour:
While using trace_filter on block 15535003 this results in an error first run for txIndex 0 error: nonce too high: address 0xEA674fdDe714fd979de3EdF0F56AA9716B898ec8, tx: 45174735 state: 45174734
Update Same or similar errors occures also on:
- 15535005:
first run for txIndex 0 error: nonce too high: address 0xEA674fdDe714fd979de3EdF0F56AA9716B898ec8, tx: 45174742 state: 45174741 - 15535019:
first run for txIndex 0 error: nonce too high: address 0xEA674fdDe714fd979de3EdF0F56AA9716B898ec8, tx: 45174778 state: 45174777 - 15535029:
first run for txIndex 0 error: nonce too high: address 0xEA674fdDe714fd979de3EdF0F56AA9716B898ec8, tx: 45174822 state: 45174821 - [...]
- 15535044:
first run for txIndex 17 error: fee cap less than block base fee: address 0xa6Ae57b1dA8238Cd149bC718c40578E4620b752c, gasFeeCap: 25192850622 baseFee: 28522961378 - [...]
- 15535048:
first run for txIndex 37 error: fee cap less than block base fee: address 0xB90688cb809E38986f91377F01150dBb7e6a5986, gasFeeCap: 28170445487 baseFee: 28436614824 - 15535053:
first run for txIndex 56 error: nonce too high: address 0x5EB656432b07fB784c0455e58f865BDe2A7fAc82, tx: 57578 state: 57577
Expected behaviour:
Normal output like for block 15535002 etc.
The erigon node @SinErgy84 is reporting errors for is running via the following systemd service files:
erigon.service
[Unit]
Description=Ethereum erigon daemon
After=network.target
[Service]
User=erigon
Group=erigon
Type=simple
ExecStart=/home/erigon/erigon-client --http --http.addr 0.0.0.0 --http.api "trace,eth,net,web3" --http.vhosts='*' --maxpeers 30 --verbosity 3 --private.api.addr '' --torrent.download.rate 100mb --prune hrtc --prune.h.older 2300000 --prune.r.older 2300000 --prune.t.older 2300000 --prune.c.older 2300000
StandardOutput=append:/home/erigon/.local/share/erigon/log.txt
KillSignal=SIGINT
Restart=always
PrivateTmp=true
TimeoutStopSec=3600s
TimeoutStartSec=10s
StartLimitInterval=120s
StartLimitBurst=5
[Install]
WantedBy=multi-user.target
prysm.service
[Unit]
Description=Ethereum Beacon Chain (prysm)
After=network.target
[Service]
User=erigon
Group=erigon
Type=simple
ExecStart=/home/erigon/prysm-client --datadir=/home/erigon/.prysm --grpc-gateway-port 3500 --rpc-port 4000 --p2p-tcp-port 13000 --p2p-udp-port 12000 --monitoring-port 8080 --execution-endpoint=http://localhost:8551 --jwt-secret=/home/erigon/.local/share/erigon/jwt.hex --log-file=/home/erigon/.prysm/log.txt --block-batch-limit 1024
Restart=always
PrivateTmp=true
TimeoutStopSec=3600s
TimeoutStartSec=10s
StartLimitInterval=120s
StartLimitBurst=5
[Install]
WantedBy=multi-user.target
Symlinks
/home/erigon/erigon-client -> erigon-clients/selfcompiled/erigon-2022.09.03
/home/erigon/prysm-client -> prysm-clients/beacon-chain-v3.1.1-modern-linux-amd64
Logfile
Logfile doesn't mention anything about the trace errors
Expected behaviour
Using block 15535002 (0xed0B9a):
% curl http://localhost:8545 -X POST -H "Content-Type: application/json" --data '{"method":"trace_filter","params":[{"fromBlock":"0xed0B9a","toBlock":"0xed0B9a","fromAddress":["0xEA674fdDe714fd979de3EdF0F56AA9716B898ec8"]}],"id":1,"jsonrpc":"
2.0"}' | jq
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"action": {
"from": "0xea674fdde714fd979de3edf0f56aa9716b898ec8",
"callType": "call",
"gas": "0x37e88",
"input": "0x",
"to": "0x8293e9b3e4c534f32084cea01efcb0de697b855e",
"value": "0x433841ff0c06547"
},
[..]
Actual behaviour
Using block 15535003 (0xed0B9b):
% curl http://localhost:8545 -X POST -H "Content-Type: application/json" --data '{"method":"trace_filter","params":[{"fromBlock":"0xed0B9b","toBlock":"0xed0B9b","fromAddress":["0xEA674fdDe714fd979de3EdF0F56AA9716B898ec8"]}],"id":1,"jsonrpc":"
2.0"}' | jq
{
"jsonrpc": "2.0",
"id": 1,
"result": [
{
"error": {
"code": -32000,
"message": "first run for txIndex 0 error: nonce too high: address 0xEA674fdDe714fd979de3EdF0F56AA9716B898ec8, tx: 45174735 state: 45174734"
}
}
]
}
If you come from a previous version sync then you will have to run ./build/bin/integration --stage_headers --reset --chain=your-chain --datadir=/your/datadir to fix this issue
Hi @enriavil1,
thank you for that info, will try. I have some questions:
- I guess I have to shutdown
erigondaemon before running theintegrationprogram, right? - How am I (and other users) supposed to know that I have to run this type of migration process to convert/fix the datadir after updating erigon? We did sync with
v2022.06.05and I didn't see this mentioned in the release notes. - Is there a time estimate for how long this will take? An hour? days?
This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.
Getting similar error:
$ curl $URL -X POST -H "Content-Type: application/json" --data '{"jsonrpc": "2.0", "method": "debug_traceTransaction", "params": ["0x893c428fed019404f704cf4d9be977ed9ca01050ed93dccdd6c169422155586f", {"tracer": "callTracer"}], "id":10}' -s | jq
{
"jsonrpc": "2.0",
"id": 10,
"result": null,
"error": {
"code": -32000,
"message": "tracing failed: nonce too low: address 0xFD2605a2bF58fDbB90db1Da55dF61628B47F9e8c, tx: 9 state: 357"
}
}
Even stopped Erigon and ran this:
./build/bin/integration stage_headers --reset --chain=mainnet --datadir /nile/erigon-eth/erigon
WARN[11-10|23:37:46.324] no log dir set, console logging only
INFO[11-10|23:37:52.878] [Snapshots] Blocks Stat blocks=15500k indices=15500k alloc=2.3GB sys=2.5GB
INFO[11-10|23:38:52.992] [fillind_db_from_snapshots] Total difficulty index: 1108k/15499k
INFO[11-10|23:39:12.991] [fillind_db_from_snapshots] Total difficulty index: 2169k/15499k
INFO[11-10|23:39:32.992] [fillind_db_from_snapshots] Total difficulty index: 3336k/15499k
INFO[11-10|23:39:52.992] [fillind_db_from_snapshots] Total difficulty index: 3872k/15499k
INFO[11-10|23:40:12.992] [fillind_db_from_snapshots] Total difficulty index: 4932k/15499k
INFO[11-10|23:40:32.991] [fillind_db_from_snapshots] Total difficulty index: 6072k/15499k
INFO[11-10|23:40:52.992] [fillind_db_from_snapshots] Total difficulty index: 7293k/15499k
INFO[11-10|23:41:12.992] [fillind_db_from_snapshots] Total difficulty index: 7897k/15499k
INFO[11-10|23:41:32.991] [fillind_db_from_snapshots] Total difficulty index: 9028k/15499k
INFO[11-10|23:41:52.992] [fillind_db_from_snapshots] Total difficulty index: 10211k/15499k
INFO[11-10|23:42:18.794] [fillind_db_from_snapshots] Total difficulty index: 11184k/15499k
INFO[11-10|23:42:32.991] [fillind_db_from_snapshots] Total difficulty index: 12024k/15499k
INFO[11-10|23:42:52.993] [fillind_db_from_snapshots] Total difficulty index: 13239k/15499k
INFO[11-10|23:43:12.992] [fillind_db_from_snapshots] Total difficulty index: 14395k/15499k
INFO[11-10|23:43:32.992] [fillind_db_from_snapshots] Total difficulty index: 14993k/15499k
This was on a brand new Erigon node. Still getting a similar error.
$ curl $URL -X POST -H "Content-Type: application/json" --data '{"jsonrpc": "2.0", "method": "debug_traceTransaction", "params": ["0x893c428fed019404f704cf4d9be977ed9ca01050ed93dccdd6c169422155586f", {"tracer": "callTracer"}], "id":10}' -s | jq
{
"jsonrpc": "2.0",
"id": 10,
"result": null,
"error": {
"code": -32000,
"message": "tracing failed: nonce too low: address 0xFD2605a2bF58fDbB90db1Da55dF61628B47F9e8c, tx: 9 state: 357"
}
}
@manishrjain i think you are nit synced
@AskAlexSharov It's synced up to 12 million-th block and the query is touching like 5 million-th block. Are you saying it must be fully synced for traces to work?
@AskAlexSharov Erigon didn't build history indices yet. see https://github.com/ledgerwatch/erigon/blob/devel/eth/stagedsync/README.md
also see make integration ./build/bin/integration pritn_stages
also see rpc method eth_syncing
This issue is stale because it has been open for 40 days with no activity. Remove stale label or comment, or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.