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

update-postgis.sh throws error on upgrading from 2.5 to 3.0 #207

Open
iamareebjamal opened this issue Sep 13, 2020 · 1 comment
Open

update-postgis.sh throws error on upgrading from 2.5 to 3.0 #207

iamareebjamal opened this issue Sep 13, 2020 · 1 comment

Comments

@iamareebjamal
Copy link

When upgrading from postgis:12-2.5-alpine to postgis:12-3.0-alpine, the command update-postgis.sh throws this error:

Updating PostGIS extensions 'template_postgis' to 3.0.2
NOTICE:  extension "postgis" already exists, skipping
WARNING:  unpackaging raster
WARNING:  PostGIS Raster functionality has been unpackaged
HINT:  type `SELECT postgis_extensions_upgrade(); to finish the upgrade. After upgrading, if you want to drop raster, run: DROP EXTENSION postgis_raster;
ERROR:  could not access file "$libdir/postgis-2.5": No such file or directory
CONTEXT:  PL/pgSQL function _postgis_drop_function_if_needed(text,text) line 6 at FOR over SELECT rows
@phillipross
Copy link
Contributor

It might be the case that the docker images do not support automatic upgrades between major versions. There may be some special instructions for 2.x to 3.x upgrades that have not been encapsulated in the docker upgrade scripts, especially around the changes to the raster extension. See PR #190 for reference.

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