You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just wanted to drop this in here as I had several issues during my upgrade, but managed to get through after a couple of days searching and failing.
There seems to be a postmaster servicing the old cluster. Please shutdown that postmaster and try again.
see Does not work with official postgres:10 due to shutdown issues #15
I increased the shutdown period to 10min, but it was not enough. I had to run the 4 commands described in issue 15 above.
Next failure was with error ""no password supplied"
This was fixed with by editing pg_hba.conf on original (v12) postgresql. Changed settings for the two "local" lines from my "md5" to "peer". (Note that changing the other to peer will genereate another error).
See postgres official upgrade step7 (Adjust authentication). https://www.postgresql.org/docs/14/pgupgrade.html
Finally something started to happen. But as I had postgis extention installed I had to run the upgrade with this extentions.
see Upgrade postgresql with postgis extension #33
I build a new docker container for upgrade with the postgis extentions as explained above.
Next failure was during upgrade of the postgis extention:
-- For binary upgrade, handle extension membership the hard way
ALTER EXTENSION "postgis_sfcgal" ADD FUNCTION "public"."postgis_sfcgal_version"();
I could not find much information about this. But I ended up removing this extension on the databases that had it. and then create them again when the pg14 was up and running. I deleted and created these with pgadmin4 web ui.
I suspect this failure might be due to incorrect versions of postgis in my upgrade docker vs the original PG12 docker.
when upgrade finally completed I had to change the PG14 pg_hba.conf file to get access again. basically I copied the file from v12, and changed back the "peer" changes made at failure 2 above.
finally getting the connections up with pgadmin4 to the new PG14 I created the postgis_sfcgal extension from failure 4 above, and also updated the extensions as suggested in the "update_exstensions.sql" generated by this docker_upgrade.
Hope this can help others that also has issues upgrading
This discussion was converted from issue #45 on February 25, 2022 18:02.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Just wanted to drop this in here as I had several issues during my upgrade, but managed to get through after a couple of days searching and failing.
see Does not work with official postgres:10 due to shutdown issues #15
I increased the shutdown period to 10min, but it was not enough. I had to run the 4 commands described in issue 15 above.
This was fixed with by editing pg_hba.conf on original (v12) postgresql. Changed settings for the two "local" lines from my "md5" to "peer". (Note that changing the other to peer will genereate another error).
See postgres official upgrade step7 (Adjust authentication). https://www.postgresql.org/docs/14/pgupgrade.html
see Upgrade postgresql with postgis extension #33
I build a new docker container for upgrade with the postgis extentions as explained above.
-- For binary upgrade, handle extension membership the hard way
ALTER EXTENSION "postgis_sfcgal" ADD FUNCTION "public"."postgis_sfcgal_version"();
I could not find much information about this. But I ended up removing this extension on the databases that had it. and then create them again when the pg14 was up and running. I deleted and created these with pgadmin4 web ui.
I suspect this failure might be due to incorrect versions of postgis in my upgrade docker vs the original PG12 docker.
Hope this can help others that also has issues upgrading
Beta Was this translation helpful? Give feedback.
All reactions