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 error #26

Open
hchor opened this issue Feb 2, 2021 · 5 comments
Open

Postgres error #26

hchor opened this issue Feb 2, 2021 · 5 comments

Comments

@hchor
Copy link

hchor commented Feb 2, 2021

This doesn't load anymore when I use the template. I also can't edit the source files to try to fix it manually. I'd recommend finding a different way to deploy than heroku.

Database Initialization Error: no pg_hba.conf entry for host...

@thomrburg
Copy link

@hchor - see here: requarks/wiki#2949. The fix is to create a new (version 10) pg database via CLI, delete the original, and reattach the new as DATABASE.

@Johann-L-Pickard
Copy link

Johann-L-Pickard commented Mar 7, 2021

How would I migrate an existing verion? I have tried using pg_dump and restore, but it gives me errors as it still tries to allow me to create a new admin when I first start

Specifically I get this error :

delete from "locales" where "code" != $1 - update or delete on table "locales" violates foreign key constraint "pagehistory_localecode_foreign" on table "pageHistory"

image

@clayton-franceschetto
Copy link

How would I migrate an existing verion? I have tried using pg_dump and restore, but it gives me errors as it still tries to allow me to create a new admin when I first start

Specifically I get this error :

delete from "locales" where "code" != $1 - update or delete on table "locales" violates foreign key constraint "pagehistory_localecode_foreign" on table "pageHistory"

image

Same problem here.

@Johann-L-Pickard
Copy link

Strange thing is, I wiped the database, used pgadmin and attempted the restore again, and it worked.
Dont think I did anything differently.

@dawikowski
Copy link

I have the same issue. @Johann-L-Pickard What did you do exactly?

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

5 participants