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

dev environment postgres health check emitting errors #3422

Closed
gsnider2195 opened this issue Mar 14, 2023 · 1 comment · Fixed by #4039
Closed

dev environment postgres health check emitting errors #3422

gsnider2195 opened this issue Mar 14, 2023 · 1 comment · Fixed by #4039
Labels
type: bug Something isn't working as expected

Comments

@gsnider2195
Copy link
Contributor

Environment

  • Nautobot version (Docker tag too if applicable): v1.5.12
  • Python version: v3.7
  • Database platform, version: postgres
  • Middleware(s):

Steps to Reproduce

  1. run the development environment invoke debug using docker-compose.postgres.yml for the db container

Expected Behavior

No errors are emitted from the database container

Observed Behavior

Database container logs the following messages

nautobot-db-1             | 2023-03-14 17:08:43.726 UTC [87] FATAL:  role "root" does not exist
nautobot-db-1             | 2023-03-14 17:08:48.800 UTC [96] FATAL:  role "root" does not exist
nautobot-db-1             | 2023-03-14 17:08:53.875 UTC [105] FATAL:  role "root" does not exist

Adding PGUSER=nautobot to the db container environment fixes this.

@gsnider2195 gsnider2195 added the type: bug Something isn't working as expected label Mar 14, 2023
@u1735067
Copy link
Contributor

If it can be useful:

    healthcheck:
      test: pg_isready --username=$$POSTGRES_USER --dbname=$$POSTGRES_DB
      interval: 5s
      timeout: 5s
      retries: 15
      start_period: 300s  # In case DB needs recovery, allow 5 mins of failures

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working as expected
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants