QWAT icon indicating copy to clipboard operation
QWAT copied to clipboard

pum upgrade: issue with pre/post_all.py

Open varrieta opened this issue 3 years ago • 1 comments

I'm upgrading my qwat database using PUM from version 1.3.4 to 1.3.6 (using windows).

pum -c pum_config.yaml upgrade -p pg_dev -t qwat_sys.info -d update\delta -v int SRID 2056

All the deltas passed with no issues and my database is now at version 1.3.6 as expected. But I have a problem with pre_all.py and post_all.py. I get theses errors messages:

For pre_all.py

Applying pre-all.py... Message from DropViews: Dropping views Message from DropViews: psql service=pg_dev -f update\delta....\ordinary_data\views\drop_views.sql psql: warning: extra command-line argument "update\delta....\ordinary_data\views\drop_views.sql" ignored psql: FATAL: authentification par mot de passe échouée pour l'utilisateur « -f » Message from DropViews: Dropping views: done OK Applying pre-all.sql... OK

For post_all.py

Applying post-all.py... Message from RecreateViewsAndFunctions: Reloading views and functions 'PGSERVICE' n’est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes. 'PGSERVICE' n’est pas reconnu en tant que commande interne ou externe, un programme exécutable ou un fichier de commandes. Message from RecreateViewsAndFunctions: Reloading views and functions: done OK Applying post-all.sql... OK

@olivierdalang Do I miss something in my installation or cmd ? I don't have this issue with QGEP.

PUM version : 0.9.14 Pirogue version: 1.4.1

varrieta avatar Feb 23 '22 14:02 varrieta

Problem temporary solved by @olivierdalang. The script was adapted for windows.

It can't be used in production for now due to this issue #354

varrieta avatar Jul 08 '22 09:07 varrieta