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

chain_id / unknown protocol in flextesa-sandbox #783

Open
uid2532 opened this issue Dec 7, 2021 · 5 comments
Open

chain_id / unknown protocol in flextesa-sandbox #783

uid2532 opened this issue Dec 7, 2021 · 5 comments
Assignees

Comments

@uid2532
Copy link

uid2532 commented Dec 7, 2021

With tqtezos/flextesa:20211025 (as it is currently in docker-compose.flextesa.yml):

Indexer: ERR error="Invalid chain_id: NetXgbFy27eBoxH (state) != NetXzcB5DmnBoxG (head)"

Updating docker-compose.flextesa.yml to:

image: tqtezos/flextesa:20211206
command: hangzbox start

Indexer: ERR error="Unknown protocol: PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx"

Looks like the indexer expects Hangzhou for the flextesa sandbox chain_id but then, if flextesa is ran with hangzbox, the indexer does not recognise the protocol.

@uid2532
Copy link
Author

uid2532 commented Dec 7, 2021

Can you please update bakingbad/bcdhub-indexer docker hub image?

@852Kerfunkle
Copy link

As a workaround, you can just build the latest images locally with make stable-images.

@uid2532
Copy link
Author

uid2532 commented Dec 7, 2021

As a workaround, you can just build the latest images locally with make stable-images.

Thanks. Just a note that for the workaround to work you need to first pull the golang:1.15-alpine, postgres:12 and docker.elastic.co/elasticsearch/elasticsearch:7.5.1 images and also update docker-compose.flextesa.yml as mentioned above.

@m-kus
Copy link
Member

m-kus commented Dec 8, 2021

Chain id mismatch usually means that you have indexed one network and then switched to another one. Wiping the indexer database should help

@m-kus m-kus self-assigned this Dec 8, 2021
@uid2532
Copy link
Author

uid2532 commented Dec 8, 2021

Chain id mismatch usually means that you have indexed one network and then switched to another one. Wiping the indexer database should help

I think it's just that the docker hub indexer image is not updated with Hangzhou. I was able to run it following @852Kerfunkle comment above with a few modifications.

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