İçereği Atla
Menü
Bu soru işaretlendi
3 Cevaplar
79839 Görünümler

I followed this guide to setup my Odoo Community server: https://www.linode.com/docs/websites/cms/install-odoo-10-on-ubuntu-16-04

(See in particular the section "Create an Odoo Service")

My Odoo installation works absolutely fine with just the default addons path.

My Odoo installation is in /opt/odoo/odoo10.

The relevant part of my service file reads:

[Service]
Type=simple PermissionsStartOnly=true SyslogIdentifier=odoo-server User=odoo Group=odoo
ExecStart=/opt/odoo/odoo10/odoo-bin --config=/etc/odoo-server.conf --addons-path="/opt/odoo/odoo10/addons/,/opt/odoo/odoo10/custom-addons/"
WorkingDirectory=/opt/odoo/odoo10/


In my server.conf file, I also have the line:

addons_path = /opt/odoo/odoo10/addons, /opt/odoo/odoo10/custom-addons


When I attempt to start the Odoo server, I get the error:

odoo-server[1303]: odoo-bin: error: option --addons-path: The addons-path '/opt/odoo/odoo10/custom-addons/' does not seem to a be a valid Addons Directory!

I've double checked the permissions on the directory, and the odoo system user is the owner, with proper chmod permissions.

Please advise.

Avatar
Vazgeç
Üretici En İyi Yanıt

I actually figured it out. The issue was backslashes at the end of the paths.

The correct line in the service configuration file should read:

--addons-path="/opt/odoo/odoo10/addons,/opt/odoo/odoo10/custom-addons"
Avatar
Vazgeç
Üretici

I should add that if your custom addons folder is empty, Odoo won't recognize it as a valid folder. Download/unzip or git clone an addon into the folder first before starting the server.

En İyi Yanıt

Please check your addons path for  /opt/odoo/odoo10/custom-addons   and make sure this path exist and correct.

Avatar
Vazgeç
En İyi Yanıt

you don't really need to specify base directory for odoo modules. enough to add your modules directory.

--addons-path=/opt/odoo/odoo10/custom-addons

make sure you have execute permission on.

Avatar
Vazgeç