health
[Top][All Lists]
Advanced

[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>
    admin.run(options)
  File "/usr/lib/python3.6/site-packages/trytond/admin.py", line 54, in run
    installdeps=options.installdeps)
  File "/usr/lib/python3.6/site-packages/trytond/pool.py", line 153, in init
    lang=lang, installdeps=installdeps)
  File "/usr/lib/python3.6/site-packages/trytond/modules/__init__.py", line 462, in load_modules
    _load_modules(update)
  File "/usr/lib/python3.6/site-packages/trytond/modules/__init__.py", line 432, in _load_modules
    load_module_graph(graph, pool, update, lang)
  File "/usr/lib/python3.6/site-packages/trytond/modules/__init__.py", line 244, in load_module_graph
    cls.__register__(module)
  File "/usr/lib/python3.6/site-packages/trytond/modules/product/product.py", line 373, in __register__
    cls._migrate_property([], [], [])
  File "/usr/lib/python3.6/site-packages/trytond/modules/product/product.py", line 382, in _migrate_property
    parent='template', fields=fields)
  File "/usr/lib/python3.6/site-packages/trytond/tools/multivalue.py", line 111, in migrate_property
    columns + pcolumns + vcolumns, values=values))
  File "/usr/lib/python3.6/site-packages/trytond/backend/postgresql/database.py", 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]