algorand / indexer

searchable history and current state
MIT License
115 stars 92 forks source link

postgres: Mention Conduit in DB open error message. #1569

Closed winder closed 1 year ago

winder commented 1 year ago

Summary

start postgres:

docker run -d --name some-postgres -p 5555:5432 -e POSTGRES_PASSWORD=pgpass -e POSTGRES_USER=algorand -e POSTGRES_DB=conduitdb postgres

old

$ ./algorand-indexer daemon  -P "host=127.0.0.1 port=5555 user=algorand password=pgpass dbname=conduitdb" -i . -S :8989
{"error":"openPostgres() err: getMigrationState() get state err: GetMetastate() err: ERROR: relation \"metastate\" does not exist (SQLSTATE 42P01)","level":"error","msg":"could not init db, openPostgres() err: getMigrationState() get state err: GetMetastate() err: ERROR: relation \"metastate\" does not exist (SQLSTATE 42P01)","time":"2023-08-24T13:38:32-04:00"}

new

$ ./algorand-indexer daemon  -P "host=127.0.0.1 port=5555 user=algorand password=pgpass dbname=conduitdb" -i . -S :8989
{"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":"2023-08-24T13:52:53-04:00"}
codecov[bot] commented 1 year ago

Codecov Report

Merging #1569 (30af72a) into develop (a6cd341) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop    #1569   +/-   ##
========================================
  Coverage    68.58%   68.58%           
========================================
  Files           37       37           
  Lines         7417     7417           
========================================
  Hits          5087     5087           
  Misses        1903     1903           
  Partials       427      427           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more