algorand / indexer

searchable history and current state

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to run Algorand Indexer using the official docker image

Palak3196 opened this issue · comments

Hi Team,

Could you please guide me on how to run the Algorand indexer (pointing to my own Algorand node, synced to latest) using the official indexer image (https://hub.docker.com/r/algorand/indexer)?

Thanks,
Palak

For the current version of the Indexer (3.x line), you want to have:

  • An algod configured in follower mode
  • Postgres
  • Conduit
  • An indexer

Check out the Conduit/Indexer READMEs for more information.

The Docker images are for convenience, but there is not one image that has all of these components in it.

The ReadMe doesn;t specify how to run the Conduit along with the indexer and algod node. Do I really need a Conduit because such was not the case with Indexer v2. if its needed, how do i use it with indexer and get indexer to sync?

Hi @Palak3196, Indexer v3 is now only the API. Conduit populates the postgres DB that it uses.

There is a link to the setup tutorial at the top of the Indexer README. It explains the different services you'll need:
https://github.com/algorand/conduit/blob/master/docs/tutorials/IndexerWriter.md

Thanks @winder, the link is very helpful,

I followed the tutorial to start the postgresql db (with docker as stated in tutorial) and configured conduit to point to my existing algod node (that I was using with indexer v2) by supplying the url and token in conduit.yml.

However, as soon as I start the conduit, I'm getting this error:
{"__type":"importer","_name":"algod","level":"error","msg":"ledger state delta not found: node round (33449498), required round (1): verify follower node configuration and ensure follower node has its sync round set to the required round, re-deploying the follower node may be necessary: HTTP 404: {\"message\":\"failed retrieving State Delta: round 1 before dbRound 33449494\"}\n","time":"2023-11-06T21:17:19.496935476Z"}