indexer icon indicating copy to clipboard operation
indexer copied to clipboard

Cannot run Indexer

Open KorayBarkin opened this issue 3 years ago • 4 comments

Hello everyone, I did follow the docs but could not figure it out how to run Indexer. Guide: https://developer.algorand.org/docs/run-a-node/setup/indexer/

I'd like to run indexer to subscribe blocks for following deposits.

Tried this one: ./algorand-indexer daemon -P “host=172.32.30.79 port=1923 user=algorand password=pass dbname=algodb sslmode=disable" --algod-net="http://172.32.30.79:4160" --algod-token="/home/ubuntu/node/data/algod.token” --data-dir="/home/ubuntu/indexer/algorand-indexer_linux_amd64_2.12.0/datadir"

Error: {"error":"connecting to postgres: failed to connect to host=/tmp user=ubuntu database=: dial error (dial unix /tmp/.s.PGSQL.5432: connect: no such file or directory)","level":"error","msg":"could not init db, connecting to postgres: failed to connect to host=/tmp user=ubuntu database=: dial error (dial unix /tmp/.s.PGSQL.5432: connect: no such file or directory)","time":"2022-06-23T12:10:22Z"}

What parameters should I pass to run Indexer? Any help appreciated, thanks in advance!

KorayBarkin avatar Jun 23 '22 13:06 KorayBarkin

That error message is from the database driver and means it was unable to connect to your database.

Depending on your configuration your next step might be using psql to make sure your database is healthy.

winder avatar Jun 24 '22 12:06 winder

That error message is from the database driver and means it was unable to connect to your database.

Depending on your configuration your next step might be using psql to make sure your database is healthy.

Do I need to create and run postgredb or is it in the indexer instance? I didn't install and create any db. The documentation did not mention such thing.

KorayBarkin avatar Jun 24 '22 15:06 KorayBarkin

You need to run postgres yourself and provide a connection string.

winder avatar Jul 28 '22 14:07 winder

Could you suggest a place in the documentation where clarification would have been helpful?

winder avatar Jul 28 '22 14:07 winder