This forum is a read-only archive. Posting, replying and signing in are disabled.

New Node instalation with Indexer V2

PikeDr

Hello,
I am installing a node in VPS with ubuntu server 20.04 and I am having problems with the installation of the indexer V2. I have some doubts with the installation of postgrees and the indexer.

I installed the node as the manual says but when I got to the indexer section…i did:

 2º - In a TMP directory: 
             wget https://github.com/algorand/indexer/archive/refs/tags/2.6.1-rc1.tar.gz 
             tar -xf 2.6.1-rc1.tar.gz -C ~/indexer
  2º - in ~/indexer: 
             docker-compose up

and now, “./algorand-indexer daemon -P …” but the orden is unknown…where is the file?
Do i have to do something else?

Thank you

PikeDr

First of all, thank you very much for your answer.

Could you tell me which is the debian file? and once downloaded … do I just run the indexer or do I have to compile or something before?

PikeDr

Thank you very much, the information was perfect!

One last thing. For postgesql, I have to create a new user before launching the indexer … right?

PikeDr

I creted the BBDD named ‘ledger’ and the user whit privileges, but i receive el next error:

algorand-indexer daemon -P “host=[75.119.158.242] port=[8980] user=[*******] password=[********] dbname=[ledgerdb] sslmode=disable” --algod=~/node/data

Error:

{“error”:"~/node/data/algod.net: open ~/node/data/algod.net: no such file or directory",“level”:“error”,“msg”:“fetcher setup, ~/node/data/algod.net: open ~/node/data/algod.net: no such file or directory”,“time”:“2021-09-03T17:49:13+02:00”}

Any idea?
It tells me that the file does not exist, and indeed it is, but the manual is as is

fabrice

You need to run an archival node with data directory ~/node/data.
Note that if you installed your node with the Debian package, you need to change ~/node/data with /var/lib/algorand.

References:

Be careful that:

PikeDr

ok, seeing the size of the databases, I think it is best to mount the archival node on two servers, one for the node and the other for the database. But the indexer…where should it be installed? On the two servers or only on the node? Sorry, but the documentation does not make some things very clear … hahaha

thks a lot¡¡