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: Could not open database: open /bsc/node/geth/chaindata/ancient/chain/headers.cidx: no such file or directory #305

Closed
vaibhavraj05 opened this issue Nov 21, 2023 · 1 comment

Comments

@vaibhavraj05
Copy link

i am trying to setup bsc node on my system with docker but i am facing issue

  1. first i downloaded the data from below website and with the given link
    https://github.com/48Club/bsc-snapshots/tree/main#bsc-snapshots
    https://snapshots.48.club/geth.fast.33660414.tar.zst

I run the command

wget https://snapshots.48.club/geth.fast.33660414.tar.zst -O - | zstd -cd | tar xf -

and its download the geth.fast/geth/chainnode and chaindata contain all data

  1. Then i downloaded mainnet using below command provided on bsc website
wget   $(curl -s https://api.github.com/repos/bnb-chain/bsc/releases/latest |grep browser_ |grep mainnet |cut -d\" -f4)
unzip mainnet.zip

And my folder structure look like this

image
  1. below is my docker compose
version: "3.3"
services: 
  bsc:
    image : ghcr.io/bnb-chain/bsc:latest
    container_name: bsc
    restart: always
    ports:
      - 8575:8575
    volumes:
      - /bsc/config:/bsc/config
      - /bsc/data/geth.fast:/bsc/node
    command: --http.addr 0.0.0.0 --http.port 8575 --http.vhosts '*' --verbosity 5

these are the logs for the docker compose
image

and while running this command in container
geth --datadir node init ./config/genesis.json
getting below error
image

Fatal: Could not open database: open /bsc/node/geth/chaindata/ancient/chain/headers.cidx: no such file or directory

@du5
Copy link
Contributor

du5 commented Dec 1, 2023

bnb-chain/bsc#1986

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

3 participants