Replies: 4 comments 8 replies
-
Hi. Is it your odo environment working properly ? |
Beta Was this translation helpful? Give feedback.
-
I just installed a system from scratch: I issue the command you requested: ./odoo-bin --addons-path=/var/lib/odoo/migration/openupgrade/addons -d test_db --init base --stop-after-init --load=base,web . The error looks the same, posted below. After the error and after starting odoo again (systemctl start odoo), both initial databases work fine. 2023-01-04 00:18:39,411 9300 CRITICAL test_db0 odoo.modules.module: Couldn't load module auth_crypt |
Beta Was this translation helpful? Give feedback.
-
I had same issue, and similar setup. currently you have odoo V11 installed right? which means In my case somehow it will still load that path along with whatever in |
Beta Was this translation helpful? Give feedback.
-
OK... i did successful migration V11 => V15 and below are some lesson learned! Cleanup source instanceremove all extra modules, non-needed module, theme, x_fields that are used directly in odoo... etc [VERY IMPORTANT] Clean addons PATHclean addons linkage (this caused funny weird issues right and left). If odoo is installed using Upgrade EnvironmentV11->V13 is using OpenUpgrade odoo version, so my config is this: [options]
db_host = False
db_port = 5432
db_user = odoo
db_password = False
; 11.0 -> 13.0
data_dir = /var/lib/odoo/.local/share/Odoo
addons_path = /migration/OpenUpgrade/addons
limit_time_cpu = 600000
limit_time_real = 600000 V14+is using OpenUpgrade as a module, so I have odoo downloaded from github and [options]
db_host = False
db_port = 5432
db_user = odoo
db_password = False
; 13.0 -> 15.0:
data_dir = /var/lib/odoo/.local/share/Odoo
addons_path = /migration/odoo/addons
server_wide_modules = base,web,openupgrade_framework
limit_time_cpu = 600000
limit_time_real = 600000 I hope this will help you to pass the issues you are facing. After sometime I will be writing all what I've learned in a post (not sure where to post yet), probably with details for environment setup and some small scripts. |
Beta Was this translation helpful? Give feedback.
-
Hello Community,
I'm trying to migrate Odoo 11 CE to 12 CE with the following command:
./odoo-bin --addons-path=/var/lib/odoo/migration/openupgrade/addons -d SMRTTGUSUPG --update all --stop-after-init --load=base,web
and I get the following errors:
2023-01-03 15:28:12,368 24283 CRITICAL SMRTTGUSUPG odoo.modules.module: Couldn't load module auth_crypt
2023-01-03 15:28:12,368 24283 CRITICAL SMRTTGUSUPG odoo.modules.module: No module named 'odoo.addons.base.res'
2023-01-03 15:28:12,369 24283 ERROR SMRTTGUSUPG odoo.modules.registry: Failed to load registry
Traceback (most recent call last):
File "/var/lib/odoo/migration/openupgrade/odoo/modules/registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/var/lib/odoo/migration/openupgrade/odoo/modules/loading.py", line 487, in load_modules
force, status, report, loaded_modules, update_module, models_to_check, upg_registry)
File "/var/lib/odoo/migration/openupgrade/odoo/modules/loading.py", line 371, in load_marked_modules
upg_registry=upg_registry,
File "/var/lib/odoo/migration/openupgrade/odoo/modules/loading.py", line 196, in load_module_graph
load_openerp_module(package.name)
File "/var/lib/odoo/migration/openupgrade/odoo/modules/module.py", line 368, in load_openerp_module
import('odoo.addons.' + module_name)
File "/var/lib/odoo/migration/openupgrade/odoo/modules/module.py", line 82, in load_module
exec(open(modfile, 'rb').read(), new_mod.dict)
File "", line 3, in
File "/usr/lib/python3/dist-packages/odoo/addons/auth_crypt/models/init.py", line 3, in
from . import res_users
File "/usr/lib/python3/dist-packages/odoo/addons/auth_crypt/models/res_users.py", line 9, in
from odoo.addons.base.res import res_users
ModuleNotFoundError: No module named 'odoo.addons.base.res'
2023-01-03 15:28:12,371 24283 CRITICAL SMRTTGUSUPG odoo.service.server: Failed to initialize database
SMRTTGUSUPG
.Traceback (most recent call last):
File "/var/lib/odoo/migration/openupgrade/odoo/service/server.py", line 1164, in preload_registries
registry = Registry.new(dbname, update_module=update_module)
File "/var/lib/odoo/migration/openupgrade/odoo/modules/registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/var/lib/odoo/migration/openupgrade/odoo/modules/loading.py", line 487, in load_modules
force, status, report, loaded_modules, update_module, models_to_check, upg_registry)
File "/var/lib/odoo/migration/openupgrade/odoo/modules/loading.py", line 371, in load_marked_modules
upg_registry=upg_registry,
File "/var/lib/odoo/migration/openupgrade/odoo/modules/loading.py", line 196, in load_module_graph
load_openerp_module(package.name)
File "/var/lib/odoo/migration/openupgrade/odoo/modules/module.py", line 368, in load_openerp_module
import('odoo.addons.' + module_name)
File "/var/lib/odoo/migration/openupgrade/odoo/modules/module.py", line 82, in load_module
exec(open(modfile, 'rb').read(), new_mod.dict)
File "", line 3, in
File "/usr/lib/python3/dist-packages/odoo/addons/auth_crypt/models/init.py", line 3, in
from . import res_users
File "/usr/lib/python3/dist-packages/odoo/addons/auth_crypt/models/res_users.py", line 9, in
from odoo.addons.base.res import res_users
ModuleNotFoundError: No module named 'odoo.addons.base.res'
I found something related at Issue #2142 saying that I should remove /usr/lib/python3/dist-packages/odoo so I took it out from /etc/odoo/odoo.conf addons_path but I still have the same error.
From the command output, I can see this addons path loaded:
INFO ? odoo: addons paths: ['/var/lib/odoo/.local/share/Odoo/addons/12.0', '/var/lib/odoo/migration/openupgrade/addons', '/var/lib/odoo/migration/openupgrade/odoo/addons', '/usr/lib/python3/dist-packages/odoo/addons']
so even when I took that out it is still loading, tried to find another config file but couldn't find it. Please your help!!
Beta Was this translation helpful? Give feedback.
All reactions