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

[No Ticket] Fix broken postgres config in docker compose #10772

Conversation

cslzchen
Copy link
Collaborator

@cslzchen cslzchen commented Oct 9, 2024

Purpose

postgres container fails to start

(osf-3.12) ➜  osf git:(develop) ✗ docker compose up postgres
[+] Running 2/2
 ✔ Network osf_default       Created
 ✔ Container osf-postgres-1  Created
Attaching to postgres-1
postgres-1  | Error: Database is uninitialized and superuser password is not specified.
postgres-1  |        You must specify POSTGRES_PASSWORD to a non-empty value for the
postgres-1  |        superuser. For example, "-e POSTGRES_PASSWORD=password" on "docker run".
postgres-1  |
postgres-1  |        You may also use "POSTGRES_HOST_AUTH_METHOD=trust" to allow all
postgres-1  |        connections without a password. This is *not* recommended.
postgres-1  |
postgres-1  |        See PostgreSQL documentation about "trust":
postgres-1  |        https://www.postgresql.org/docs/current/auth-trust.html
postgres-1 exited with code 1

Changes

Add back the following configuration

POSTGRES_DB: osf
POSTGRES_HOST_AUTH_METHOD: trust

QA Notes

N/A

Documentation

N/A

Side Effects

N/A

Ticket

Discovered during ENG-6297

@cslzchen
Copy link
Collaborator Author

cslzchen commented Oct 9, 2024

This fix will break GravyValet, PR closed. We may already have an alternative fix.

@cslzchen cslzchen closed this Oct 9, 2024
@cslzchen cslzchen deleted the feature/fix-postgres-confi branch October 9, 2024 16:11
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

Successfully merging this pull request may close these issues.

1 participant