bugGNU Health - Bugs: bug #60978, Server crashes with...

 
 

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

bug #60978: Server crashes with python-Werkzeug 2.x series

Submitter:  Axel Braun <coogor>
Submitted:  Tue 27 Jul 2021 06:38:23 AM UTC
   
 
Category:  Tryton Severity:  4 - Important
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Closed Release:  3.9.0
Module:  trytond Component:  None

Tue 27 Jul 2021 03:43:38 PM UTC, comment #2: 

Patches for tryton 5 and 6 series have been applied for openSUSE aleady.
Thanks to Mathias Behrle for pointing me to the right direction.

(file #51700, file #51701)

Axel Braun <coogor>
Tue 27 Jul 2021 09:52:02 AM UTC, comment #1: 

Thanks, Axel!

After the initial migration of the GH HMIS client, I have started the process of migrating the server.

I'll definitely look into it, and we'll work things out :)

I will get back to you with news soon :)

ALl the best
Luis

Luis Falcon <meanmicio>
Group administrator
Tue 27 Jul 2021 06:38:23 AM UTC, original submission:  

Looks like there is an API change in python-Werkzeug 2.x:

Initializing database - this may take a while
Traceback (most recent call last):
  File "/usr/bin/trytond-admin", line 21, in <module>
    admin.run(options)
  File "/usr/lib/python3.8/site-packages/trytond/admin.py", line 20, in run
    Database = backend.get('Database')
  File "/usr/lib/python3.8/site-packages/trytond/backend/__init__.py", line 25, in get
    module = importlib.import_module(modname)
  File "/usr/lib64/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 848, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3.8/site-packages/trytond/backend/postgresql/__init__.py", line 4, in <module>
    from .database import *
  File "/usr/lib/python3.8/site-packages/trytond/backend/postgresql/database.py", line 38, in <module>
    from trytond.protocols.jsonrpc import JSONDecoder
  File "/usr/lib/python3.8/site-packages/trytond/protocols/jsonrpc.py", line 12, in <module>
    from trytond.protocols.wrappers import Request
  File "/usr/lib/python3.8/site-packages/trytond/protocols/wrappers.py", line 11, in <module>
    from werkzeug.http import wsgi_to_bytes, bytes_to_wsgi
ImportError: cannot import name 'wsgi_to_bytes' from 'werkzeug.http' (/usr/lib/python3.8/site-packages/werkzeug/http.py)

This breaks trytond 6.x for GNU Health 4.0 as well!

Axel Braun <coogor>

 

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

Attached Files
file #51700:  tryton5_fix_werkzeug_2.x.patch added by coogor (2KiB - text/x-patch - Patches for Tryton 5 and 6 Series)
file #51701:  tryton6_fix_werkzeug_2.x.patch added by coogor (2KiB - text/x-patch - Patches for Tryton 5 and 6 Series)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by meanmicio (Posted a comment)
  • -email is unavailable- added by coogor (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.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-07-27 coogor Attached File- Added tryton5_fix_werkzeug_2.x.patch, #51700
        Attached File- Added tryton6_fix_werkzeug_2.x.patch, #51701
        Open/ClosedOpen Closed
    2021-07-27 meanmicio ReleaseNone 3.9.0

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code