Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal: Failed to register the Ethereum service: state is not available #180

Open
extradz opened this issue Sep 17, 2024 · 1 comment
Open

Comments

@extradz
Copy link

extradz commented Sep 17, 2024

I try to reinstall OPBNB from scratch since my node crashed a few weeks ago.

OS: ubuntu22.04

Version:

op-geth 0.5.0
op-node 0.5.0

snapshot used: https://opbnb-snapshot-mainnet.bnbchain.org/geth-pbss-20240830.tar.gz

There is no triechache folder in the snapshot. only chaindata and lightchaindata

also i have that error.

fatal error witrh op-geth:

Fatal: Failed to register the Ethereum service: state is not available

my start command:

  --opBNBMainnet \
  --datadir="./op-geth-data/datadir" \
  --verbosity=3 \
  --nat extip:x.x.x.x \
  --http \
  --http.corsdomain="*" \
  --http.vhosts="*" \
  --http.addr=0.0.0.0 \
  --http.port=18555 \
  --http.api=net,eth,engine \
  --ws \
  --ws.addr=0.0.0.0 \
  --ws.port=18556 \
  --ws.origins="*" \
  --ws.api=eth,engine \
  --syncmode=full \
  --gcmode=full\
  --maxpeers=10 \
  --networkid=204 \
  --miner.gaslimit=150000000 \
  --txpool.globalslots=10000 \
  --txpool.globalqueue=5000 \
  --txpool.accountqueue=200 \
  --txpool.accountslots=200 \
  --cache 12000 \
  --cache.preimages \
  --allow-insecure-unlock \
  --authrpc.addr="0.0.0.0" \
  --authrpc.port="8551" \
  --authrpc.vhosts="*" \
  --authrpc.jwtsecret=./jwt.txt \
  --metrics \
  --metrics.port 6069 \
  --metrics.addr 0.0.0.0 \
  --rollup.sequencerhttp=https://opbnb-mainnet-rpc.bnbchain.org \
  --bootnodes="enr:-KO4QHs5qh_kPFcjMgqkuN9dbxXT4C5Cjad4SAheaUxveCbJQ3XdeMMDHeHilHyqisyYQAByfdhzyKAdUp2SvyzWeBqGAYvRDf80g2V0aMfGhHFtSjqAgmlkgnY0gmlwhDaykUmJc2VjcDI1NmsxoQJUevTL3hJwj21IT2GC6VaNqVQEsJFPtNtO-ld5QTNCfIRzbmFwwIN0Y3CCdl-DdWRwgnZf,enr:-KO4QKIByq-YMjs6IL2YCNZEmlo3dKWNOy4B6sdqE3gjOrXeKdNbwZZGK_JzT1epqCFs3mujjg2vO1lrZLzLy4Rl7PyGAYvRA8bEg2V0aMfGhHFtSjqAgmlkgnY0gmlwhDbjSM6Jc2VjcDI1NmsxoQNQhJ5pqCPnTbK92gEc2F98y-u1OgZVAI1Msx-UiHezY4RzbmFwwIN0Y3CCdl-DdWRwgnZf" \
  --txlookuplimit 0 \
  --state.scheme path \
  --db.engine pebble \
  --allow-insecure-no-tries

my start logs:

Sep 15 21:56:52 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:52.650] Initializing the KZG library             backend=gokzg
Sep 15 21:56:52 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:52.665] Capped dirty cache size                  provided=2.93GiB adjusted=256.00MiB
Sep 15 21:56:52 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:52.665] Clean cache size                         provided=1.76GiB adjusted=4.44GiB
Sep 15 21:56:52 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:52.665] Allocated memory caches                  state_scheme=path trie_clean_cache=4.44GiB trie_dirty_cache=256.00MiB snapshot_cache=1.17GiB
Sep 15 21:56:52 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:52.676] Using pebble as the backing database
Sep 15 21:56:52 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:52.676] Allocated cache and file handles         database=/home/opbnb/op-geth-data/datadir/geth/chaindata cache=5.86GiB handles=262,144 "memory table"=1.46GiB
Sep 15 21:56:53 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:53.889] loop print db stats                      database=/home/opbnb/op-geth-data/datadir/geth/chaindata comp_time=0 write_delay_count=0 write_delay_time=0 non_level0_comp_count=11 level0_comp_count=7
Sep 15 21:56:54 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:54.066] Opened ancient database                  database=/home/opbnb/op-geth-data/datadir/geth/chaindata/ancient/chain readonly=false
Sep 15 21:56:54 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:54.068] State scheme set by user                 scheme=path
Sep 15 21:56:54 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:54.075] Succeed to init proof keeper             options="&{enable:false keepProofBlockSpan:90000 gcInterval:3600 watchStartKeepCh:0xc005b21200 notifyFinishKeepCh:0xc005b21260}"
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.271] New journal reader for journal kv
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.271] Failed to load journal, discard it       err="unmatched journal want d6b591c6287f8e261ab7a1e4f0de8095e133cd604f471d0a93a864eac06c976e got 2de737af9c4ee907772bea1954b5098be0e62eba12699a5e6e4215605ab71592"
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.271] init trie node buffer                    type=async
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.271] new async node buffer                    limit=256.00MiB layers=0
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.277] Opened ancient database                  database=/home/opbnb/op-geth-data/datadir/geth/chaindata/ancient/state readonly=false
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: WARN [09-15|21:56:56.284] Truncating freezer table                 database=/home/opbnb/op-geth-data/datadir/geth/chaindata/ancient/state table=account.data items=33,232,952 limit=33,228,001
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: WARN [09-15|21:56:56.285] Truncating freezer table                 database=/home/opbnb/op-geth-data/datadir/geth/chaindata/ancient/state table=storage.data items=33,232,952 limit=33,228,001
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: WARN [09-15|21:56:56.286] Truncating freezer table                 database=/home/opbnb/op-geth-data/datadir/geth/chaindata/ancient/state table=history.meta items=33,232,952 limit=33,228,001
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: WARN [09-15|21:56:56.286] Truncating freezer table                 database=/home/opbnb/op-geth-data/datadir/geth/chaindata/ancient/state table=account.index items=33,232,952 limit=33,228,001
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: WARN [09-15|21:56:56.287] Truncating freezer table                 database=/home/opbnb/op-geth-data/datadir/geth/chaindata/ancient/state table=storage.index items=33,232,952 limit=33,228,001
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: WARN [09-15|21:56:56.288] Truncated extra state histories          number=4951
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: WARN [09-15|21:56:56.289] Path-based state scheme is an experimental feature
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323]
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323] ---------------------------------------------------------------------------------------------------------------------------------------------------------
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323] Chain ID:  204 (opBNBMainnet)
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323] Consensus: Optimism
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323]
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323] Pre-Merge hard forks (block based):
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323]  - Homestead:                   #0        (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/homestead.md)
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323]  - Tangerine Whistle (EIP 150): #0        (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/tangerine-whistle.md)
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323]  - Spurious Dragon/1 (EIP 155): #0        (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/spurious-dragon.md)
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323]  - Spurious Dragon/2 (EIP 158): #0        (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/spurious-dragon.md)
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323]  - Byzantium:                   #0        (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/byzantium.md)
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323]  - Constantinople:              #0        (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/constantinople.md)
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323]  - Petersburg:                  #0        (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/petersburg.md)
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323]  - Istanbul:                    #0        (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/istanbul.md)
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323]  - Muir Glacier:                #0        (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/muir-glacier.md)
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323]  - Berlin:                      #0        (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/berlin.md)
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323]  - London:                      #0        (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/london.md)
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323]  - Arrow Glacier:               #0        (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/arrow-glacier.md)
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323]  - Gray Glacier:                #0        (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/gray-glacier.md)
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323]
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.323] Merge configured:
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.324]  - Hard-fork specification:    https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/paris.md
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.324]  - Network known to be merged: true
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.324]  - Total terminal difficulty:  0
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.324]  - Merge netsplit block:       #0
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.324]
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.324] Post-Merge hard forks (timestamp based):
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.324]  - Shanghai:                    @1718870400 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/shanghai.md)
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.324]  - Cancun:                      @1718871600 (https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/cancun.md)
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.324]  - Regolith:                    @0
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.324]  - Canyon:                      @1718870400
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.324]  - Ecotone:                     @1718871600
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.324]  - Fjord:                       @1727157600
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.324] OPBNB hard forks (block based):
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.324]  - Fermat:              #9397477  (https://github.com/bnb-chain/BEPs/blob/master/BEPs/BEP-293.md)
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.324] OPBNB hard forks (timestamp based):
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.324]  - Haber:                    @1718872200
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.324]  - Wright:                    @1724738400
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.324]
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.324] ---------------------------------------------------------------------------------------------------------------------------------------------------------
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.324]
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.325] Loaded most recent local block           number=33,233,079 hash=fab248..04e9e5 td=0 age=2w2d16h
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.325] Loaded most recent local finalized block number=33,232,982 hash=cfa235..eeff3c td=0 age=2w2d16h
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.889] loop print db stats                      database=/home/opbnb/op-geth-data/datadir/geth/chaindata comp_time=308,734,269 write_delay_count=0 write_delay_time=0 non_level0_comp_count=56 level0_comp_count=25
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: WARN [09-15|21:56:56.926] Loaded snapshot journal                  diskroot=5c9f8e..068ae2 diffs=unmatched
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.926] Initialized transaction indexer          range="entire chain"
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: INFO [09-15|21:56:56.926] Initialising Ethereum protocol           network=204  dbversion=8
Sep 15 21:56:56 Ubuntu-2204-jammy-amd64-base bash[67615]: Fatal: Failed to register the Ethereum service: state is not available
Sep 15 21:56:57 Ubuntu-2204-jammy-amd64-base systemd[1]: og.service: Main process exited, code=exited, status=1/FAILURE
Sep 15 21:56:57 Ubuntu-2204-jammy-amd64-base systemd[1]: og.service: Failed with result 'exit-code'.
Sep 15 21:56:57 Ubuntu-2204-jammy-amd64-base systemd[1]: og.service: Consumed 9.827s CPU time.


@krish-nr
Copy link
Contributor

There are currently issues when starting a fast node from the PBSS snapshot using --allow-insecure-no-tries. We have identified and located the specific problem, and it is expected to be fixed and supported in the next version. In the meantime, you can try removing the --allow-insecure-no-tries option to complete the sync.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants