[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Health] Gnuhelath upgrade from 3.2 to 3.4, problem

From: mike
Subject: [Health] Gnuhelath upgrade from 3.2 to 3.4, problem
Date: Sat, 09 Nov 2019 12:18:40 +0000

Dear all

We have problems with upgrade of Gnuhealth 3.2 to 3.4. We are running Opensuse 15.1.
The script to update from GNU Health 3.2 to 3.4 (tryton 4.6) worked without problem.

Afterwards, as user tryton, when run tryton-admin to update the installation (
/usr/bin/trytond-admin -c /etc/tryton/trytond.conf --all -d Hospital)
we get following fault message:
tryton@Tryton-Server:/usr/share/doc/packages/gnuhealth/upgrade/3.4> /usr/bin/trytond-admin -c /etc/tryton/trytond.conf --all -d Hospital
Traceback (most recent call last):
  File "/usr/bin/trytond-admin", line 21, in <module>
  File "/usr/lib/python3.6/site-packages/trytond/", line 54, in run
  File "/usr/lib/python3.6/site-packages/trytond/", line 153, in init
    lang=lang, installdeps=installdeps)
  File "/usr/lib/python3.6/site-packages/trytond/modules/", line 462, in load_modules
  File "/usr/lib/python3.6/site-packages/trytond/modules/", line 432, in _load_modules
    load_module_graph(graph, pool, update, lang)
  File "/usr/lib/python3.6/site-packages/trytond/modules/", line 244, in load_module_graph
  File "/usr/lib/python3.6/site-packages/trytond/modules/product/", line 373, in __register__
    cls._migrate_property([], [], [])
  File "/usr/lib/python3.6/site-packages/trytond/modules/product/", line 382, in _migrate_property
    parent='template', fields=fields)
  File "/usr/lib/python3.6/site-packages/trytond/tools/", line 111, in migrate_property
    columns + pcolumns + vcolumns, values=values))
  File "/usr/lib/python3.6/site-packages/trytond/backend/postgresql/", line 60, in execute
    cursor.execute(self, sql, args)
psycopg2.IntegrityError: insert or update on table "product_list_price" violates foreign key constraint "product_list_price_template_fkey"
DETAIL:  Key (template)=(755) is not present in table "product_template".

Can anyone help us getting forward.

Best Regards
Michael and Ulf

reply via email to

[Prev in Thread] Current Thread [Next in Thread]