Closed LucaWebDev closed 4 months ago
ERROR abcdef odoo.service.db: CREATE DATABASE failed:
This makes me think that the modules could be a red herring and your problem is one of container linkage or database permissions.
Alternately, I would consider that addons_path
setting is non-recursive, and OCA modules are in many repositories, so you can't just drop them into /mnt/extra-addons side by side without updating addons_path
for each.
Hello, thank you for your help. Before opening the issue, I managed to get the container working with Odoo Enterprise, but without the OCA modules. The OCA modules were cloned from GitHub and have versions matching Odoo. However, the OCA installation seems to have some issues. I am continuing to look for solutions.
I just solved the problem. You need to create an entry in the odoo.conf file for each /mnt/oca/
So, the configuration file ~/odoo/odooConfigFile/odoo.conf should look like this:
[options]
addons_path = /mnt/odoo/addons, /mnt/odoo/odoo/addons, /mnt/enterprise-addons, /mnt/addons/oca/<module1>, /mnt/addons/oca/<module2>
and the command should be like this:
docker run -v ~/odoo/odooConfigFile:/etc/odoo \
-v odoo-data:/var/lib/odoo \
-v ~/odoo/odooAddons/odoo16/odoo/addons:/mnt/odoo/addons \
-v ~/odoo/odooAddons/odoo16/odoo/odoo/addons:/mnt/odoo/odoo/addons \
-v ~/odoo/odooAddons/odoo16/addons/enterprise:/mnt/enterprise-addons \
-v ~/odoo/odooAddons/odoo16/addons/oca/<module1>:/mnt/addons/oca/<module1> \
-v ~/odoo/odooAddons/odoo16/addons/oca/<module2>:/mnt/addons/oca/<module2> \
-d -p 8069:8069 \
--name odoo \
--link db:db \
-t odoo:16
Thanks for the suggestion @amh-mw
Thanks for the suggestion @amh-mw
Glad you were able to solve the problem. Would you kindly close this issue?
Description: I'm trying to install Odoo version 16 using Docker and include the Enterprise addons. However, some of the Enterprise packages aren't being added correctly. Here are the steps I followed to create the Docker setup:
Steps Taken: Created odoo.conf Configuration File:
Created Docker Volumes:
Cloned Enterprise Repository: To my ubuntu folder ~/odoo/odooAddons/odoo16/addons/enterprise/
Started PostgreSQL Container:
Started Odoo Container:
~/odoo/odooAddons/odoo16/addons/custom is empty folder ~/odoo/odooAddons/odoo16/addons/oca:/mnt/oca-addons contains some OCA packages
Encountered Errors: I'm facing the following errors during the Odoo startup process for first database creation :
This error occurs when I try to add the OCA modules that I download separately into ubuntu folder from git.
What is wrong with this configuration?