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

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

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

winder
Copy link
Contributor

@winder winder commented Aug 24, 2023

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"}

@winder winder requested a review from a team August 24, 2023 17:53
@winder winder self-assigned this Aug 24, 2023
@winder winder requested review from tzaffi, Eric-Warehime, shiqizng and algochoi and removed request for a team August 24, 2023 17:53
@winder winder changed the title Mention Conduit in DB open error message. ux: Mention Conduit in DB open error message. Aug 24, 2023
@winder winder added the Enhancement New feature or request label Aug 24, 2023
@winder winder changed the title ux: Mention Conduit in DB open error message. postgres: Mention Conduit in DB open error message. Aug 24, 2023
@codecov
Copy link

codecov bot commented Aug 24, 2023

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           

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

@winder winder merged commit f3e54d6 into algorand:develop Aug 28, 2023
6 of 9 checks passed
@winder winder deleted the will/conduit-warning branch August 28, 2023 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request Team Lamprey
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants