bugGNU Health - Bugs: bug #65432, ./trytond-admin -d ghdemo44 --all...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #65432: ./trytond-admin -d ghdemo44 --all run fail

Submitter:  Feng Shu <tumashu>
Submitted:  Fri 08 Mar 2024 06:01:40 AM UTC
   
 
Category:  Demo environment Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open Release:  None
Module:  health* Component:  Hospital Management

Fri 08 Mar 2024 06:01:40 AM UTC, original submission:  

I try to update ghdemo44 with command: ./trytond-admin -d ghdemo44 --all run fail

show error:

feng@Tumashu ~/gnuhealth/tryton/server/trytond-6.0.43/bin $ ./trytond-admin -d ghdemo44 --all
17649 140649984704576 [2024-03-08 05:56:10,799] ERROR trytond.convert Could not delete id 12 from model res.user.
There may be a relation that points to this resource that must be manually fixed before restarting the update.
Traceback (most recent call last):
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.43/trytond/convert.py", line 805, in post_import
    Model.delete([Model(db_id)])
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.43/trytond/res/user.py", line 442, in delete
    raise DeleteError(gettext('res.msg_user_delete_forbidden'))
trytond.res.user.DeleteError: For logging purposes users cannot be deleted, instead they should be deactivated. -
17649 140649984704576 [2024-03-08 05:56:10,873] ERROR trytond.convert Could not delete id 11 from model res.user.
There may be a relation that points to this resource that must be manually fixed before restarting the update.
Traceback (most recent call last):
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.43/trytond/convert.py", line 805, in post_import
    Model.delete([Model(db_id)])
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.43/trytond/res/user.py", line 442, in delete
    raise DeleteError(gettext('res.msg_user_delete_forbidden'))
trytond.res.user.DeleteError: For logging purposes users cannot be deleted, instead they should be deactivated. -
17649 140649984704576 [2024-03-08 05:56:10,910] ERROR trytond.convert Could not delete id 13 from model res.user.
There may be a relation that points to this resource that must be manually fixed before restarting the update.
Traceback (most recent call last):
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.43/trytond/convert.py", line 805, in post_import
    Model.delete([Model(db_id)])
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.43/trytond/res/user.py", line 442, in delete
    raise DeleteError(gettext('res.msg_user_delete_forbidden'))
trytond.res.user.DeleteError: For logging purposes users cannot be deleted, instead they should be deactivated. -
17649 140649984704576 [2024-03-08 05:56:11,201] ERROR trytond.convert Could not delete id 19 from model ir.sequence.
There may be a relation that points to this resource that must be manually fixed before restarting the update.
Traceback (most recent call last):
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.43/trytond/convert.py", line 805, in post_import
    Model.delete([Model(db_id)])
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.43/trytond/ir/sequence.py", line 222, in delete
    return super(Sequence, cls).delete(sequences)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.43/trytond/model/modelsql.py", line 159, in wrapper
    return func(cls, args, *kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.43/trytond/model/modelsql.py", line 1176, in delete
    raise ForeignKeyError(
trytond.model.modelsql.ForeignKeyError: The records could not be deleted because they are used by field "Dengue DU Survey Sequence" of "Dengue DU Survey Sequences setup". -
17649 140649984704576 [2024-03-08 05:56:11,222] ERROR trytond.convert Could not delete id 21 from model ir.sequence.type.
There may be a relation that points to this resource that must be manually fixed before restarting the update.
Traceback (most recent call last):
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.43/trytond/convert.py", line 805, in post_import
    Model.delete([Model(db_id)])
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.43/trytond/model/modelsql.py", line 159, in wrapper
    return func(cls, args, *kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.43/trytond/model/modelsql.py", line 1176, in delete
    raise ForeignKeyError(
trytond.model.modelsql.ForeignKeyError: The records could not be deleted because they are used by field "Sequence Type" of "Sequence". -
17649 140649984704576 [2024-03-08 05:56:11,234] ERROR trytond.convert Could not delete id 20 from model ir.sequence.
There may be a relation that points to this resource that must be manually fixed before restarting the update.
Traceback (most recent call last):
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.43/trytond/convert.py", line 805, in post_import
    Model.delete([Model(db_id)])
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.43/trytond/ir/sequence.py", line 222, in delete
    return super(Sequence, cls).delete(sequences)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.43/trytond/model/modelsql.py", line 159, in wrapper
    return func(cls, args, *kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.43/trytond/model/modelsql.py", line 1176, in delete
    raise ForeignKeyError(
trytond.model.modelsql.ForeignKeyError: The records could not be deleted because they are used by field "Chagas DU Survey Sequence" of "Chagas DU Survey Sequences setup". -
17649 140649984704576 [2024-03-08 05:56:11,242] ERROR trytond.convert Could not delete id 22 from model ir.sequence.type.
There may be a relation that points to this resource that must be manually fixed before restarting the update.
Traceback (most recent call last):
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.43/trytond/convert.py", line 805, in post_import
    Model.delete([Model(db_id)])
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.43/trytond/model/modelsql.py", line 159, in wrapper
    return func(cls, args, *kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/feng/gnuhealth/tryton/server/trytond-6.0.43/trytond/model/modelsql.py", line 1176, in delete
    raise ForeignKeyError(
trytond.model.modelsql.ForeignKeyError: The records could not be deleted because they are used by field "Sequence Type" of "Sequence". -

Feng Shu <tumashu>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by tumashu (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code