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

event not found #1609

Closed
block98ct opened this issue Apr 26, 2024 · 5 comments
Closed

event not found #1609

block98ct opened this issue Apr 26, 2024 · 5 comments

Comments

@block98ct
Copy link

./algorand-indexer daemon --data-dir /tmp -P "host=[127.0.0.1] port=[5432] user=[root] password=[my_password] dbname=[aperion] sslmode=disable" --no-algod
bash: !]: event not found

@urtho
Copy link
Contributor

urtho commented Apr 26, 2024

You probably have ! (exclamation point) in your DB password.

try using single quotes :

./algorand-indexer daemon --data-dir /tmp -P 'host=[127.0.0.1] port=[5432] user=[root] password=[my_password] dbname=[aperion] sslmode=disable' --no-algod

@block98ct
Copy link
Author

@urtho I have removed double quotes because my password had a "!" mark
I ran the command I got this error
Error: unknown flag: --no-algod

{"error":"unknown flag: --no-algod","level":"error","msg":"an error occurred running indexer","time":"2024-04-26T15:44:18+05:30"}

After removing --no-algod flag run the command got another error

{"error":"openPostgres() err: getMigrationState() get state err: GetMetastate() err: ERROR: relation "metastate" does not exist (SQLSTATE 42P01)","level":"error","msg":"unable to open database, if tables are not initialized ensure Conduit is running","time":"2024-04-26T15:45:56+05:30"}

@urtho
Copy link
Contributor

urtho commented Apr 26, 2024

--no-algod is not longer supported in v3 indexer.

You are running an Indexer API which needs to connect to a synchronized database.
To synchronize a DB you need to run Conduit and a follower node.
Sychnronization will take about 2 to 4 weeks and use around 2.7 TB for the database - unless you intend to filter transactions in Conduit.

@block98ct
Copy link
Author

I want to run Node and sync that data in PostgreSQL. How can I do it?
do you know any way?
@urtho

@gmalouf
Copy link
Contributor

gmalouf commented May 15, 2024

This is more of a support issue, suggest checking out https://github.com/algorand/conduit/blob/master/docs/tutorials/IndexerWriter.md or the Algorand Discord channel to get additional support.

@gmalouf gmalouf closed this as completed May 15, 2024
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