wiki-heroku icon indicating copy to clipboard operation
wiki-heroku copied to clipboard

Postgres error

Open hchor opened this issue 4 years ago • 5 comments

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...

hchor avatar Feb 02 '21 06:02 hchor

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

thomrburg avatar Feb 11 '21 21:02 thomrburg

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

Johann-L-Pickard avatar Mar 07 '21 17:03 Johann-L-Pickard

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.

clayton-franceschetto avatar Mar 08 '21 13:03 clayton-franceschetto

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

Johann-L-Pickard avatar Mar 08 '21 20:03 Johann-L-Pickard

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

dawikowski avatar Apr 05 '23 09:04 dawikowski