erigon icon indicating copy to clipboard operation
erigon copied to clipboard

[ mdbx_env_open: MDBX_CORRUPTED ] Upgade erigon to V2.50.1 on Eth Mainnet

Open julia-light opened this issue 3 years ago • 5 comments

System information

Erigon version: erigon version 2.50.1-c91efdcb

OS & Version: Linux

Commit hash: c91efdcb2e885089d95a551c5ec7fa440d53d156

Erigon Command (with flags/config):

/erigon/build/bin/erigon
--datadir /mainnet-data/chain-data 
--chain mainnet --http.addr=[0.0.0.0](http://0.0.0.0/)  
--port 30403
--private.api.addr=localhost:9090
--authrpc.addr=[0.0.0.0](http://0.0.0.0/) 
--authrpc.jwtsecret=/jwtsecret  
--ws 
--http.api=eth,erigon,web3,net,debug,trace,txpool,engine 
--http.vhosts=* 
--pprof
--pprof.addr=[0.0.0.0](http://0.0.0.0/) 
--pprof.port=6061 
--maxpeers 20
--prune=hrtc
--downloader.verify

Concensus Layer: Prysm

Concensus Layer Command (with flags/config):

/prysm/prysm.sh beacon-chain 
--accept-terms-of-use 
--execution-endpoint=http://127.0.0.1:8551/ 
--mainnet --monitoring-host=[0.0.0.0](http://0.0.0.0/) 
--jwt-secret=/jwtsecret
--datadir=/prysm/beacon-data

Chain/Network:

Expected behaviour

Actual behaviour

Steps to reproduce the behaviour

  1. stuck at 16999999
  2. add --downloader.verify and restart

Backtrace

[INFO] [10-03|06:34:35.170] Enabling metrics export to prometheus    path=http://0.0.0.0:6060/debug/metrics/prometheus
[INFO] [10-03|06:34:35.171] Starting pprof server                    cpu="go tool pprof -lines -http=: http://0.0.0.0:6061/debug/pprof/profile?seconds=20" heap="go tool pprof -lines -http=: http://0.0.0.0:6061/debug/pprof/heap"
[INFO] [10-03|06:34:35.171] Build info                               git_branch=HEAD git_tag=v2.50.1 git_commit=c91efdcb2e885089d95a551c5ec7fa440d53d156
[INFO] [10-03|06:34:35.172] Starting Erigon on Ethereum mainnet...
[INFO] [10-03|06:34:35.173] Maximum peer count                       ETH=200 total=200
[INFO] [10-03|06:34:35.173] starting HTTP APIs                       APIs=eth,erigon,web3,net,debug,trace,txpool,engine
[INFO] [10-03|06:34:35.173] torrent verbosity                        level=WRN
[INFO] [10-03|06:34:37.277] Set global gas cap                       cap=50000000
[INFO] [10-03|06:34:37.337] [Downloader] Runnning with               ipv6-enabled=true ipv4-enabled=true download.rate=16mb upload.rate=4mb
[INFO] [10-03|06:34:37.338] Opening Database                         label=chaindata path=/bv/mainnet-data/chain-data/chaindata
[INFO] [10-03|06:34:42.702] Initialised chain configuration          config="{ChainID: 1, Homestead: 1150000, DAO: 1920000, Tangerine Whistle: 2463000, Spurious Dragon: 2675000, Byzantium: 4370000, Constantinople: 7280000, Petersburg: 7280000, Istanbul: 9069000, Muir Glacier: 9200000, Berlin: 12244000, London: 12965000, Arrow Glacier: 13773000, Gray Glacier: 15050000, Terminal Total Difficulty: 58750000000000000000000, Merge Netsplit: <nil>, Shanghai: 1681338455, Cancun: <nil>, Prague: <nil>, Engine: ethash}" genesis=0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3
[INFO] [10-03|06:35:02.771] [snapshots] Creating .torrent files      progress=102/102 alloc=2.1GB sys=2.3GB
[INFO] [10-03|06:35:14.516] Initialising Ethereum protocol           network=1
[INFO] [10-03|06:35:14.517] Disk storage enabled for ethash DAGs     dir=/bv/mainnet-data/chain-data/ethash-dags count=2
[EROR] [10-03|06:35:14.522] Erigon startup                           err="mdbx_env_open: MDBX_CORRUPTED: Maybe free space is over on disk. Otherwise it's hardware failure. Before creating issue please use tools like https://www.memtest86.com to test RAM and tools like https://www.smartmontools.org to test Disk. To handle hardware risks: use ECC RAM, use RAID of disks, run multiple application instances (or do backups). If hardware checks passed - check FS settings - 'fsync' and 'flock' must be enabled.  Otherwise - please create issue in Application repo. On default DURABLE mode, power outage can't cause this error. On other modes - power outage may break last transaction and mdbx_chk can recover db in this case, see '-t' and '-0|1|2' options., label: txpool, trace: [kv_mdbx.go:266 all_components.go:123 backend.go:552 node.go:115 main.go:75 make_app.go:42 command.go:274 app.go:332 app.go:309 main.go:40 proc.go:250 asm_amd64.s:1594]"
mdbx_env_open: MDBX_CORRUPTED: Maybe free space is over on disk. Otherwise it's hardware failure. Before creating issue please use tools like https://www.memtest86.com to test RAM and tools like https://www.smartmontools.org to test Disk. To handle hardware risks: use ECC RAM, use RAID of disks, run multiple application instances (or do backups). If hardware checks passed - check FS settings - 'fsync' and 'flock' must be enabled.  Otherwise - please create issue in Application repo. On default DURABLE mode, power outage can't cause this error. On other modes - power outage may break last transaction and mdbx_chk can recover db in this case, see '-t' and '-0|1|2' options., label: txpool, trace: [kv_mdbx.go:266 all_components.go:123 backend.go:552 node.go:115 main.go:75 make_app.go:42 command.go:274 app.go:332 app.go:309 main.go:40 proc.go:250 asm_amd64.s:1594]
```

julia-light avatar Oct 03 '23 06:10 julia-light

label: txpool - then just delete datadir/txpool folder. it will help. i will check later why it may happen.

AskAlexSharov avatar Oct 03 '23 08:10 AskAlexSharov

label: txpool - then just delete datadir/txpool folder. it will help. i will check later why it may happen.

Thank you! It works!

julia-light avatar Oct 03 '23 10:10 julia-light

Snapshots also got corrupted on my nodes for polygon mainnet after upgrading to 2.50.1

icculp avatar Oct 03 '23 15:10 icculp

Same thing with 2.50.2:

mdbx_env_open: MDBX_CORRUPTED: Maybe free space is over on disk. Otherwise it's hardware failure. Before creating issue please use tools like https://www.memtest86.com to test RAM and tools like https://www.smartmontools.org to test Disk. To handle hardware risks: use ECC RAM, use RAID of disks, run multiple application instances (or do backups). If hardware checks passed - check FS settings - 'fsync' and 'flock' must be enabled.  Otherwise - please create issue in Application repo. On default DURABLE mode, power outage can't cause this error. On other modes - power outage may break last transaction and mdbx_chk can recover db in this case, see '-t' and '-0|1|2' options., label: txpool, trace: [kv_mdbx.go:266 all_components.go:123 backend.go:552 node.go:115 main.go:75 make_app.go:42 command.go:274 app.go:332 app.go:309 main.go:40 proc.go:250 asm_amd64.s:1598]

Any reason why this was closed?

jakubgs avatar Oct 05 '23 08:10 jakubgs

I can confirm removing txpool does resolve the issue, but the issue is still there.

jakubgs avatar Oct 05 '23 09:10 jakubgs