Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

"Error : Ancient block sync is still in progress" when running parity with explorer #10569

Closed
ajit-soman opened this issue Apr 6, 2019 · 5 comments
Labels
Z1-question 🙋‍♀️ Issue is a question. Closer should answer.
Milestone

Comments

@ajit-soman
Copy link

Before filing a new issue, please provide the following information.

  • Parity Ethereum version: 2.3.8
  • Operating system: Linux
  • Installation: one-line installer
  • Fully synchronized: yes
  • Network: Private POA blockchain
  • Restarted: no

I am using this explorer : https://github.com/carsenk/explorer to create explorer for my private parity blockchain. but i am getting Ancient block sync is still in progress error .
Screenshot from 2019-04-06 17-21-27

This is my parity toml file

[parity]
chain = "parity-genesis.json"
[network]
port = 30300
[rpc]
port = 8000
apis = ["web3", "eth", "net", "personal", "parity", "parity_set", "traces", "rpc", "parity_accounts"]
cors = ["http://localhost:8545"]
[account]
password = ["parity-node.pass"]
unlock = ["0x289c2b76e329f962d26a9a8d9692b2f7db3bf8e3"]
[mining]
engine_signer = "0xea01694f217b0d67855646b6721682fb95d56059"
min_gas_price = 20000000000
reseal_on_txs = "none"
@ajit-soman ajit-soman changed the title Error : Ancient block sync is still in progress when running parity with explorer "Error : Ancient block sync is still in progress" when running parity with explorer Apr 6, 2019
@jam10o-new
Copy link
Contributor

https://wiki.parity.io/JSONRPC-parity-module#parity_chainstatus allows you to verify whether ancient block sync is ongoing, you will not see that error anymore once it is complete

@jam10o-new jam10o-new added the Z1-question 🙋‍♀️ Issue is a question. Closer should answer. label Apr 12, 2019
@jam10o-new jam10o-new added this to the 2.6 milestone Apr 12, 2019
@imjayson
Copy link

imjayson commented Apr 26, 2019

I'm also facing this issue.
Version: 2.4.5
State DB configuration: archive +Trace

PoA chain steps/behavior:
Kill chain db
On startup, node syncs only the latest blocks that are mined.
There is no console output that it is trying to download ancient blocks
Number of blocks on the chain is only < 2000

Tried to debug using the link provided by @joshua-mir . Does blockGap: null means that it is still trying to download the ancient blocks or has it stalled?

Thanks.

curl --data '{"method":"parity_chainStatus","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

{"jsonrpc":"2.0","result":{"blockGap":null},"id":1}

curl --data '{"method":"eth_getTransactionByBlockNumberAndIndex","params":["0x599", "0x0"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

{"jsonrpc":"2.0","error":{"code":-32000,"message":"Ancient block sync is still in progress"},"id":1}

@jam10o-new
Copy link
Contributor

@imjayson if you are running an archive sync, there is no ancient block sync as you sync from the beginning of the chain, and you shouldn't be seeing that error. Can you share exactly how you are running parity and your config?

@jam10o-new
Copy link
Contributor

Also, this has already been resolved and should be fixed next release #10261

@imjayson
Copy link

@joshua-mir you are right, i checked and there wasn't any transaction in the block i'm querying.
it's just a wrong error message.

thank you so much!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Z1-question 🙋‍♀️ Issue is a question. Closer should answer.
Projects
None yet
Development

No branches or pull requests

3 participants