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