[Top][All Lists]

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

[Health-announce] How do I correct this error?

From: shane dockery
Subject: [Health-announce] How do I correct this error?
Date: Sun, 20 Apr 2014 17:41:22 +0000

Hi Everyone, 

I am trying to upgrade from v2.2.2 to v2.4.1 and I have generated this error:-

 [Sun Apr 20 12:22:52 2014] WARNING:init:unable to add 'UNIQUE(name)' constraint on table gnuhealth_healthprofessional !
If you want to have it, you should update the records and execute manually:
ALTER table "gnuhealth_healthprofessional" ADD CONSTRAINT "gnuhealth_healthprofessional_hp_uniq" UNIQUE(name)
Traceback (most recent call last):
  File "/usr/local/bin/trytond", line 111, in <module>
  File "/usr/local/lib/python2.6/dist-packages/trytond/", line 124, in run
    Pool(db_name).init(update=update, lang=lang)
  File "/usr/local/lib/python2.6/dist-packages/trytond/", line 151, in init
  File "/usr/local/lib/python2.6/dist-packages/trytond/modules/", line 399, in load_modules
    load_module_graph(graph, pool, lang)
  File "/usr/local/lib/python2.6/dist-packages/trytond/modules/", line 235, in load_module_graph
  File "/usr/local/lib/python2.6/dist-packages/trytond/modules/health/", line 238, in __register__
    super(HealthProfessional, cls).__register__(module_name)
  File "/usr/local/lib/python2.6/dist-packages/trytond/model/", line 141, in __register__
    table.add_constraint(ident, constraint)
  File "/usr/local/lib/python2.6/dist-packages/trytond/backend/postgresql/", line 395, in add_constraint
  File "/usr/local/lib/python2.6/dist-packages/trytond/backend/postgresql/", line 128, in _update_definitions
  File "/usr/local/lib/python2.6/dist-packages/trytond/backend/postgresql/", line 309, in execute
    return self.cursor.execute(sql, params)

How do I resolve it?

Thank you in advance and please have a holy and peaceful Easter, 


reply via email to

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