Skip to content

can't start bsc - Fatal: Could not open database: open /srv/bsc/geth/chaindata/ancient/chain/bodies.cidx: no such file or directory #2110

@rmlcu

Description

@rmlcu

System information

bsc-node:~$ sudo /srv/bsc/bsc-geth version
Geth
Version: 1.3.6
Git Commit: 5ee77bb
Git Commit Date: 20231214
Architecture: amd64
Go Version: go1.20.11
Operating System: linux
GOPATH=
GOROOT=/opt/hostedtoolcache/go/1.20.11/x64

bsc-node:~$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian

bsc-node:~$ sudo cat /etc/systemd/system/bsc-geth.service
[Unit]
Description=bsc geth go client
After=syslog.target network-online.target

[Service]
User=geth
Group=geth
#Type=simple
ExecStart=/srv/bsc/bsc-geth --config=/srv/bsc/config.toml --datadir=/srv/bsc --nat=extip:1.2.3.4
--history.transactions=5000000 --syncmode=full --tries-verify-mode=none --diffblock=5000
--cache=18000 --rpc.allow-unprotected-txs --db.engine=pebble
#KillMode=process
KillSignal=SIGINT
TimeoutStopSec=90
Restart=on-failure
RestartSec=10s

[Install]
WantedBy=multi-user.target

Expected behaviour

node successfully starting

Actual behaviour

node is failing to start:

-- Boot 6f5a36d8fb0a45ff894b0834f496879c --
Dec 26 17:01:46 bsc-node systemd[1]: Started bsc geth go client.
Dec 26 17:01:47 bsc-node bsc-geth[28939]: INFO [12-26|17:01:47.135] Starting Geth on BSC mainnet...
Dec 26 17:01:47 bsc-node bsc-geth[28939]: WARN [12-26|17:01:47.136] Config field is deprecated and won't have an effect name=ethconfig.Config.EWASMInterpreter
Dec 26 17:01:47 bsc-node bsc-geth[28939]: WARN [12-26|17:01:47.139] Config field is deprecated and won't have an effect name=ethconfig.Config.EVMInterpreter
Dec 26 17:01:47 bsc-node bsc-geth[28939]: INFO [12-26|17:01:47.144] Maximum peer count                       ETH=256 LES=0 total=256
Dec 26 17:01:47 bsc-node bsc-geth[28939]: INFO [12-26|17:01:47.150] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
Dec 26 17:01:47 bsc-node bsc-geth[28939]: WARN [12-26|17:01:47.150] Option nousb is deprecated and USB is deactivated by default. Use --usb to enable
Dec 26 17:01:47 bsc-node bsc-geth[28939]: INFO [12-26|17:01:47.150] Using pebble as db engine
Dec 26 17:01:47 bsc-node bsc-geth[28939]: INFO [12-26|17:01:47.833] Using pebble as the backing database
Dec 26 17:01:47 bsc-node bsc-geth[28939]: INFO [12-26|17:01:47.834] Allocated cache and file handles         database=/srv/bsc/geth/chaindata cache=7.03GiB handles=262,144 "memory table"=1.76GiB
Dec 26 17:01:54 bsc-node bsc-geth[28939]: Chain metadata
Dec 26 17:01:54 bsc-node bsc-geth[28939]:   databaseVersion: 8 (0x8)
Dec 26 17:01:54 bsc-node bsc-geth[28939]:   headBlockHash: 0x6130a6f6754de4af55a2dd6d69f996ad53e1f7b7e4b0f598c02e5b331ee6f173
Dec 26 17:01:54 bsc-node bsc-geth[28939]:   headFastBlockHash: 0x6130a6f6754de4af55a2dd6d69f996ad53e1f7b7e4b0f598c02e5b331ee6f173
Dec 26 17:01:54 bsc-node bsc-geth[28939]:   headHeaderHash: 0x6130a6f6754de4af55a2dd6d69f996ad53e1f7b7e4b0f598c02e5b331ee6f173
Dec 26 17:01:54 bsc-node bsc-geth[28939]:   lastPivotNumber: 31706311 (0x1e3ccc7)
Dec 26 17:01:54 bsc-node bsc-geth[28939]:   len(snapshotSyncStatus): 286 bytes
Dec 26 17:01:54 bsc-node bsc-geth[28939]:   snapshotDisabled: false
Dec 26 17:01:54 bsc-node bsc-geth[28939]:   snapshotJournal: 8343476 bytes
Dec 26 17:01:54 bsc-node bsc-geth[28939]:   snapshotRecoveryNumber: 33620042 (0x201004a)
Dec 26 17:01:54 bsc-node bsc-geth[28939]:   snapshotRoot: 0x5b748d890a88bb8d5f714786c72d4e48c3b84b9bb98a4a12c9e2b8e9315bc64d
Dec 26 17:01:54 bsc-node bsc-geth[28939]:   txIndexTail: 29371693 (0x1c02d2d)
Dec 26 17:01:54 bsc-node bsc-geth[28939]:   fastTxLookupLimit: 2350000 (0x23dbb0)
Dec 26 17:01:54 bsc-node bsc-geth[28939]: Fatal: Could not open database: open /srv/bsc/geth/chaindata/ancient/chain/bodies.cidx: no such file or directory
Dec 26 17:01:54 bsc-node systemd[1]: bsc-geth.service: Main process exited, code=exited, status=1/FAILURE
Dec 26 17:01:54 bsc-node systemd[1]: bsc-geth.service: Failed with result 'exit-code'.
Dec 26 17:01:54 bsc-node systemd[1]: bsc-geth.service: Consumed 14.277s CPU time.

Steps to reproduce the behaviour

download 48club snapshot (https://snapshots.48.club/geth.full.34148567.tar.zst) and move unpacked data into the needed folder

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions