Fatal: Error starting protocol stack: gap (#3) in the chain between ancients and leveldb
when I run geth node for ropsten by :
geth --testnet --syncmode "fast" --cache=512 --rpc --ws --shh console
It throws Error:
INFO [09-11|21:33:55.437] Maximum peer count ETH=50 LES=0 total=50
INFO [09-11|21:33:55.437] Smartcard socket not found, disabling err="stat /run/pcscd/pcscd.comm: no such file or directory"
ERROR[09-11|21:33:55.438] Failed to enumerate USB devices hub=ledger vendor=11415 failcount=1 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[09-11|21:33:55.438] Failed to enumerate USB devices hub=trezor vendor=21324 failcount=1 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[09-11|21:33:55.438] Failed to enumerate USB devices hub=trezor vendor=4617 failcount=1 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[09-11|21:33:55.438] Failed to enumerate USB devices hub=ledger vendor=11415 failcount=2 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[09-11|21:33:55.438] Failed to enumerate USB devices hub=trezor vendor=21324 failcount=2 err="failed to initialize libusb: libusb: unknown error [code -99]"
ERROR[09-11|21:33:55.438] Failed to enumerate USB devices hub=trezor vendor=4617 failcount=2 err="failed to initialize libusb: libusb: unknown error [code -99]"
INFO [09-11|21:33:55.440] Starting peer-to-peer node instance=Geth/v1.9.3-stable-cfbb969d/linux-amd64/go1.11.5
INFO [09-11|21:33:55.440] Allocated trie memory caches clean=128.00MiB dirty=128.00MiB
INFO [09-11|21:33:55.440] Allocated cache and file handles database=/root/.ethereum/testnet/geth/chaindata cache=256.00MiB handles=524288
INFO [09-11|21:33:55.641] Opened ancient database database=/root/.ethereum/testnet/geth/chaindata/ancient
Fatal: Error starting protocol stack: gap (#3) in the chain between ancients and leveldb
I tried to delete ancient directory from chaindata but got this:
Error starting protocol stack: ancient chain segments already extracted, please set --datadir.ancient to the correct path