Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
1642 Vistas

Hello, I'm having a really hard time figuring out how to address this issue: this error comes up seemingly randomly (it happened twice in 5 minutes once, the last time it took 7 days to come up again). 

I'm running Odoo 17.0 in a VM on Ubuntu 22.04; installation went fine, without any issue (apart from the location where of the prerequisite Wkhtmltopdf).

Symptoms of the error are that the web UI suddenly crashes (users get the ugly "500: Internal Server Error" screen), while in the logs I get the following:


Apr 08 05:50:03 odoo17serverTest odoo17[46631]: 2024-04-08 05:50:03,146 46631 CRITICAL SysOdoo2024 odoo.modules.module: Couldn't load module account_edi_ubl_cii

Apr 08 05:50:03 odoo17serverTest odoo17[46631]: 2024-04-08 05:50:03,150 46631 WARNING SysOdoo2024 odoo.modules.loading: Transient module states were reset

Apr 08 05:50:03 odoo17serverTest odoo17[46631]: 2024-04-08 05:50:03,150 46631 ERROR SysOdoo2024 odoo.modules.registry: Failed to load registry

Apr 08 05:50:03 odoo17serverTest odoo17[46631]: Traceback (most recent call last):

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:   File "/opt/odoo17/odoo17/odoo/modules/registry.py", line 87, in __new__

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:     return cls.registries[db_name]

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:   File "/usr/local/lib/python3.10/dist-packages/decorator.py", line 232, in fun

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:     return caller(func, *(extras + args), **kw)

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:   File "/opt/odoo17/odoo17/odoo/tools/func.py", line 87, in locked

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:     return func(inst, *args, **kwargs)

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:   File "/opt/odoo17/odoo17/odoo/tools/lru.py", line 34, in __getitem__

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:     a = self.d[obj]

Apr 08 05:50:03 odoo17serverTest odoo17[46631]: KeyError: 'SysOdoo2024'

Apr 08 05:50:03 odoo17serverTest odoo17[46631]: During handling of the above exception, another exception occurred:

Apr 08 05:50:03 odoo17serverTest odoo17[46631]: Traceback (most recent call last):

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:   File "/opt/odoo17/odoo17/odoo/modules/registry.py", line 113, in new

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:     odoo.modules.load_modules(registry, force_demo, status, update_module)

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:   File "/opt/odoo17/odoo17/odoo/modules/loading.py", line 476, in load_modules

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:     processed_modules += load_marked_modules(env, graph,

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:   File "/opt/odoo17/odoo17/odoo/modules/loading.py", line 364, in load_marked_modules

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:     loaded, processed = load_module_graph(

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:   File "/opt/odoo17/odoo17/odoo/modules/loading.py", line 185, in load_module_graph

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:     load_openerp_module(package.name)

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:   File "/opt/odoo17/odoo17/odoo/modules/module.py", line 394, in load_openerp_module

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:     __import__(qualname)

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:   File "/opt/odoo17/odoo17/addons/account_edi_ubl_cii/__init__.py", line 3, in

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:     from . import models

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:   File "/opt/odoo17/odoo17/addons/account_edi_ubl_cii/models/__init__.py", line 3, in

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:     from . import account_edi_common

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:   File "/opt/odoo17/odoo17/addons/account_edi_ubl_cii/models/account_edi_common.py", line 8, in

Apr 08 05:50:03 odoo17serverTest odoo17[46631]:     from zeep import Client

Apr 08 05:50:03 odoo17serverTest odoo17[46631]: ModuleNotFoundError: No module named 'zeep'


the module account_edi_ubl_cii, stated at the start of the error log, is actually available in the addons folder (which is correctly set up in the configuration file in /etc/odoo17.conf)

If I activate the virtual environment, reinstall the missing module via "pip install zeep==4.1.0" and deactivate the virtual environment, the web UI works once more until the next istance of the problem presents itself.

This issue apart, the platform works flawlessly, so I'm at a loss on what may be the cause of this error. (and therefore the related solution)


I'd be happy to provide any information about installation or configuration of this istance of Odoo, as this random issue turns Odoo itself into a very unreliable system users-wise.

Best regards

Andrea Fait


Avatar
Descartar
Mejor respuesta

Hi,

It seems like the error you're encountering is related to a missing Python module named 'zeep', which is required by the 'account_edi_ubl_cii' module in Odoo.

Use the following command to install zeep:

pip install zeep


Hope it helps

Avatar
Descartar
Autor Mejor respuesta

Hello, thank you for your reply :)

Probably the most strange thing in this issue is that I have to reinstall the zeep module every single time that the error shows up (which again, is totally random: I had it occur twice in a day in a 5 minute span, while the span between the last istance of the error and the previous one has been 7 days).

Every time I activate the virtual environment, install zeep and deactivate the virtual environment.

What is also confusing is that zeep is part of the requirements (it is listed in the requirements.txt) and has been installed from the start... but one in a while this error corrupts/locks it (I'm not sure which one, the module is physically present in the virtual environment folder under /lib/python3.10/site-packages/zeep even when the error is still up).

Avatar
Descartar
Mejor respuesta

Hi,
As per the error message, it seems you are having a missing python package and i believe you have installed it. After installing the package, what is the error you are getting ?

If the odoo is working fine and suddenly is it not expected throw any error without any changes in the source code or change in the python interpreter.


Thanks

Avatar
Descartar