Open XtremXpert opened 6 years ago
@XtremXpert thanks for reporting.
This is strange because all signs looks green (odoo.conf is properly generated and the directory is there).
One potential reason for the issue might be that the directory of the addons does not belong to the same user running Odoo in the docker. You can easily check either in the docker or in the mapped directory the ownership via ls -al
.
Can you share your dc file too so that we reproduce the environment? cc @seb-elico
Thank you for your fast reply
this is my dc
services:
postgres:
image: postgres:9.5
volumes:
- /srv/odoo8/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=odoo
- POSTGRES_PASSWORD=M4uxd3p4553
odoo:
image: elicocorp/odoo:8.0
command: start
ports:
- 8069:8069
links:
- postgres:db
volumes:
- /srv/odoo8/addons:/opt/odoo/additional_addons
- /srv/odoo8/filestore:/opt/odoo/data/filestore
- /srv/odoo8/sessions:/opt/odoo/data/sessions
- /srv/odoo8/ssh:/opt/odoo/ssh:ro
environment:
- TARGET_UID=1000
- ODOO_ADMIN_PASSWD=M4uxd3P4553F0rt
- ODOO_DB_USER=odoo
- ODOO_DB_PASSWORD=M4uxd3p4553
I realy thing it is not a premission issue as everything belong to odoo user:
$ docker exec -it odoo8_odoo_1 ls -la /opt/odoo/additional_addons
drwxr-xr-x 15 odoo odoo 4096 Aug 8 20:35 .
drwxrwxr-x 1 odoo odoo 4096 Aug 9 11:52 ..
drwxr-xr-x 22 odoo odoo 4096 Aug 8 20:35 server-tools
$ docker exec -it odoo8_odoo_1 ls -la /opt/odoo/additional_addons/server-tools
drwxr-xr-x 22 odoo odoo 4096 Aug 8 20:35 .
drwxr-xr-x 15 odoo odoo 4096 Aug 8 20:35 ..
drwxr-xr-x 8 odoo odoo 4096 Aug 9 11:52 .git
-rw-r--r-- 1 odoo odoo 556 Aug 8 20:35 .gitignore
-rw-r--r-- 1 odoo odoo 1843 Aug 8 20:35 .travis.yml
-rw-r--r-- 1 odoo odoo 34499 Aug 8 20:35 LICENSE
-rw-r--r-- 1 odoo odoo 1233 Aug 8 20:35 README.md
drwxr-xr-x 9 odoo odoo 4096 Aug 8 20:35 auditlog
drwxr-xr-x 9 odoo odoo 4096 Aug 8 20:35 auto_backup
drwxr-xr-x 6 odoo odoo 4096 Aug 8 20:35 base_cron_exclusion
drwxr-xr-x 9 odoo odoo 4096 Aug 8 20:35 base_exception
drwxr-xr-x 9 odoo odoo 4096 Aug 8 20:35 base_name_search_improved
drwxr-xr-x 7 odoo odoo 4096 Aug 8 20:35 base_remote
drwxr-xr-x 9 odoo odoo 4096 Aug 8 20:35 base_search_fuzzy
drwxr-xr-x 5 odoo odoo 4096 Aug 8 20:35 base_technical_user
drwxr-xr-x 7 odoo odoo 4096 Aug 8 20:35 database_cleanup
drwxr-xr-x 6 odoo odoo 4096 Aug 8 20:35 datetime_formatter
drwxr-xr-x 4 odoo odoo 4096 Aug 8 20:35 dbfilter_from_header
drwxr-xr-x 9 odoo odoo 4096 Aug 8 20:35 fetchmail_notify_error_to_sender
drwxr-xr-x 6 odoo odoo 4096 Aug 8 20:35 html_image_url_extractor
drwxr-xr-x 6 odoo odoo 4096 Aug 8 20:35 html_text
drwxr-xr-x 9 odoo odoo 4096 Aug 8 20:35 letsencrypt
drwxr-xr-x 10 odoo odoo 4096 Aug 8 20:35 module_auto_update
drwxr-xr-x 5 odoo odoo 4096 Aug 8 20:35 onchange_helper
-rw-r--r-- 1 odoo odoo 39 Aug 8 20:35 requirements.txt
drwxr-xr-x 5 odoo odoo 4096 Aug 8 20:35 sentry
drwxr-xr-x 21 odoo odoo 4096 Aug 8 20:35 setup
And when I restart my docker, I clearly see '/opt/odoo/additional_addons/server-tools' is in the addon path
2018-08-09 20:29:36,677 106 INFO ? openerp: addons paths: ['/opt/odoo/data/addons/8.0', u'/opt/odoo/additional_addons/server-tools', u'/opt/odoo/sources/odoo/addons', '/opt/odoo/sources/odoo/openerp/addons']
Any help welcome
Hi @XtremXpert
Thanks for reporting your issue.
I don't see the oca_dependencies.txt
in the folder /opt/odoo/additional_addons
, how come? Also, there's a typo in your issue report (oca-dependencies.txt
with a -
).
Please note that the addons paths is built based on the content of that file (or the environment variable ADDONS_REPO
), whether or not there are folders inside /opt/odoo/additional_addons
.
Could you please clarify this point?
Hi,
I did start and odoo 8 using your example docker-compose but if I add server-tools in oca-dependencies.txt, I saw the git clone while starting the docker, if I go in (docker exec bash) I can saw all the directory under /opt/odoo/additional_addons/server-tools
I also saw "openerp: addons paths: ['/opt/odoo/data/addons/8.0', u'/opt/odoo/additional_addons/server-tools', u'/opt/odoo/sources/odoo/addons', '/opt/odoo/sources/odoo/openerp/addons']" but if I go in the module menu to install, even if I update the module list, I can not find any of those OCA modules.
btw: I am admin and I have enable technical feature...
Any help is welcome