erigontech / erigon

Ethereum implementation on the efficiency frontier https://erigon.gitbook.io
GNU Lesser General Public License v3.0
3.12k stars 1.11k forks source link

erigon v2.49.2 polygon archive cannot start #8287

Closed rayn316 closed 1 year ago

rayn316 commented 1 year ago

System information

Expected behaviour

The database runs normally in 2.48.1, but cannot be started after the upgrade.

Actual behaviour

Steps to reproduce the behaviour

Backtrace

run info

root@node-eu-fsn-het-arc-7 /node/archive/polygon-erigon/bin # /node/archive/polygon-erigon/bin/erigon --datadir=/node/archive/polygon-erigon/erigon/ --chain=bor-mainnet --prune=disabled --snapshots=false --log.dir.verbosity error --bor.heimdall='http://de-heimdall.blockpi.me:2086' --db.pagesize=16kb --db.size.limit=10TB --rpc.gascap=600000000 --rpc.evmtimeout=30s --rpc.batch.limit=100 --rpc.returndata.limit=104857600 --http=true --http.api 'eth,net,web3,debug,trace,txpool' --http.addr $listeningAddr --http.corsdomain '*' --http.vhosts '*' --ws --port=21290 --http.port 21291 --private.api.addr='' --authrpc.port 21293 --torrent.port=21294 --p2p.allowed-ports 21296,21298
INFO[09-25|05:35:43.530] logging to file system                   log dir=/node/archive/polygon-erigon/erigon/logs file prefix=erigon log level=eror json=false
INFO[09-25|05:35:43.530] Build info                               git_branch=HEAD git_tag=v2.49.2 git_commit=1b54c31c7178cef0553e05fc810f810318e04385
INFO[09-25|05:35:43.530] Starting Erigon on Bor Mainnet...
INFO[09-25|05:35:43.530] Maximum peer count                       ETH=100 total=100
INFO[09-25|05:35:43.530] starting HTTP APIs                       APIs=eth,net,web3,debug,trace,txpool
INFO[09-25|05:35:43.530] torrent verbosity                        level=WRN
INFO[09-25|05:35:45.634] Set global gas cap                       cap=600000000
INFO[09-25|05:35:45.635] [Downloader] Runnning with               ipv6-enabled=true ipv4-enabled=true download.rate=16mb upload.rate=4mb
INFO[09-25|05:35:45.635] Opening Database                         label=chaindata path=/node/archive/polygon-erigon/erigon/chaindata
INFO[09-25|05:35:45.636] Initialised chain configuration          config="{ChainID: 137, Homestead: 0, DAO: <nil>, Tangerine Whistle: 0, Spurious Dragon: 0, Byzantium: 0, Constantinople: 0, Petersburg: 0, Istanbul: 3395000, Muir Glacier: 3395000, Berlin: 14750000, London: 23850000, Arrow Glacier: <nil>, Gray Glacier: <nil>, Terminal Total Difficulty: <nil>, Merge Netsplit: <nil>, Shanghai: <nil>, Cancun: <nil>, Prague: <nil>, Engine: bor}" genesis=0xa9c28ce2141b56c474f1dc504bee9b01eb1bd7d1a507580d5519d4437a97de1b
INFO[09-25|05:35:45.637] Initialising Ethereum protocol           network=137
INFO[09-25|05:35:45.637] Opening Database                         label=bor path=/node/archive/polygon-erigon/erigon/bor
mdbx_setup_dxb:15897 could not apply preconfigured db-geometry: err -30417
EROR[09-25|05:35:45.638] catch panic                              err="mdbx_env_open: MDBX_TOO_LARGE: Database is too large for current system, e.g. could NOT be mapped into RAM, label: consensus, trace: [kv_mdbx.go:263 node.go:342 node.go:345 config.go:108 backend.go:465 node.go:111 main.go:71 make_app.go:42 command.go:274 app.go:332 app.go:309 main.go:38 proc.go:250 asm_amd64.s:1594]" stack="[main.go:33 panic.go:884 config.go:111 backend.go:465 node.go:111 main.go:71 make_app.go:42 command.go:274 app.go:332 app.go:309 main.go:38 proc.go:250 asm_amd64.s:1594]"

db info

root@node-eu-fsn-het-arc-7 /tmp/erigon # ./build/bin/mdbx_stat -ef /node/archive/polygon-erigon/erigon/chaindata/
mdbx_stat v0.12.0-71-g1cac6536 (2022-07-28T09:57:31+07:00, T-9a6d7e5b917e5fbd14dc51835fa749d092aa1d72)
Running for /node/archive/polygon-erigon/erigon/chaindata/...
Environment Info
  Pagesize: 16384
  Dynamic datafile: 49152..10995116277760 bytes (+2147483648/-4294967296), 3..671088640 pages (+131072/-262144)
  Current mapsize: 10995116277760 bytes, 671088640 pages
  Current datafile: 9949291741184 bytes, 607256576 pages
  Last transaction ID: 2758186
  Latter reader transaction ID: 2758186 (0)
  Max readers: 116
  Number of reader slots uses: 1
Garbage Collection
  Pagesize: 16384
  Tree depth: 2
  Branch pages: 1
  Leaf pages: 801
  Overflow pages: 9592
  Entries: 16670
Page Usage
  Total: 671088640 100%
  Backed: 607256576 90.5%
  Allocated: 607220974 90.5%
  Remained: 63867666 9.5%
  Used: 567522661 84.6%
  GC: 39698313 5.9%
  Retained: 20 0.0%
  Reclaimable: 39698293 5.9%
  Available: 103565959 15.4%
Status of Main DB
  Pagesize: 16384
  Tree depth: 1
  Branch pages: 0
  Leaf pages: 1
  Overflow pages: 0
  Entries: 103
AskAlexSharov commented 1 year ago

label: consensus means it's error from consensus database. remove datadir/bor

rayn316 commented 1 year ago

It worked and is running normally, thank you