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

fresh install: pg-migration don't run and the installation doesn't work #209

Open
AxelFooley opened this issue Jul 13, 2023 · 1 comment

Comments

@AxelFooley
Copy link

I am using docker with the provide compose file, everything works fine apparently but when i try to login i get a blank page and in the logs i noticed this:

pg_1 | 2023-07-13 07:14:56.063 UTC [95] FATAL: password authentication failed for user "nyala" pg_1 | 2023-07-13 07:14:56.063 UTC [95] DETAIL: Role "nyala" does not exist. pg_1 | Connection matched pg_hba.conf line 100: "host all all all scram-sha-256"

I tried to dig into the code and i've found that this user should be created by this file, but i couldn't find any process actually using it.

Any help will be appreciated.

@gaymersriseup
Copy link

gaymersriseup commented Aug 13, 2023

This has broken the Docker development environment since 9c7d355. I despise both Docker and Bash enough that I really don't want to spend time fixing this, but the fix should be simple enough: running the Postgres migrations as a part of web's entrypoint alongside the MySQL ones.

I also don't want to fix this because I don't want to make decisions on how to slot this in with the GitLab CI environment; it looks like the switch from hardcoded credentials for the database to secrets in GitLab CI was intentional, so I wonder if a similar decision (e.g. don't hardcode credentials in the repo) would want to be made here. (I don't really understand why secret credentials for a testing database only spun up in CI is necessary, but that's besides the point I guess.)

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

2 participants