Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to see addons in odoo17 container #65764

Closed
sergueikp opened this issue Apr 29, 2024 · 4 comments
Closed

Impossible to see addons in odoo17 container #65764

sergueikp opened this issue Apr 29, 2024 · 4 comments
Assignees
Labels
odoo solved stale 15 days without activity tech-issues The user has a technical issue about an application

Comments

@sergueikp
Copy link

sergueikp commented Apr 29, 2024

Name and Version

bitnami/odoo:17.0.20240405

What architecture are you using?

amd64

What steps will reproduce the bug?

We are trying bitnami/odoo:17.0.20240405 image.
We made container data persistent.
We have the persistence folder on our local host created like this in the docker-compose.yml file:

- /home/serguei/docker_persistance/bitnami/odoo:/bitnami/odoo

Impossible to see addons in the odoo addons folder. We need to access to addons folder!
The addons folder is empty on the local machine.

What is the expected behavior?

We must see all modules inside addons folder of the container.

What do you see instead?

The addons folder is empty.
The only file that is visible is odoo.conf

@sergueikp sergueikp added the tech-issues The user has a technical issue about an application label Apr 29, 2024
@github-actions github-actions bot added the triage Triage is needed label Apr 29, 2024
@sergueikp
Copy link
Author

sergueikp commented Apr 30, 2024

Below docker-compose.yml persistance for Odoo files.
Folders /addons and /python3.11 are empty.

They must have other folders and files inside them.

odoo:
    image: docker.io/bitnami/odoo:17.0.20240405
    container_name: odoo17
    networks:
      - odoo17-network
    restart: always
    ports:
      - '80:8069'
    volumes:
      - /home/serguei/docker_persistance/bitnami/odoo:/bitnami/odoo
      - /home/serguei/docker_persistance/opt/bitnami/odoo/odoo/addons:/opt/bitnami/odoo/odoo/addons
      - /home/serguei/docker_persistance/opt/bitnami/python/lib/python3.11/:/opt/bitnami/python/lib/python3.11

@github-actions github-actions bot removed the triage Triage is needed label May 1, 2024
@github-actions github-actions bot assigned juan131 and unassigned javsalgar May 1, 2024
@juan131
Copy link
Contributor

juan131 commented May 2, 2024

Hi @sergueikp

I launched Odoo using the docker-compose.yaml included on this repository (without any modification to mount host directories instead of using docker volumes).

Once the containers were ready...

$ docker compose ps
NAME                IMAGE                             COMMAND                  SERVICE      CREATED         STATUS         PORTS
odoo-odoo-1         docker.io/bitnami/odoo:17         "/opt/bitnami/script…"   odoo         4 minutes ago   Up 4 minutes   3000/tcp, 8072/tcp, 0.0.0.0:80->8069/tcp
odoo-postgresql-1   docker.io/bitnami/postgresql:16   "/opt/bitnami/script…"   postgresql   4 minutes ago   Up 4 minutes   5432/tcp

... I accessed the Odoo container and, as you can see below, the /opt/bitnami/odoo/addons folder is a symbolic link to /bitnami/odoo/addons, where addons are persisted given a volume is mounted at /bitnami/odoo.

$ docker compose exec odoo bash
root@869f4a70e546:/# ls -la /opt/bitnami/odoo/
total 212
drwxr-xr-x  1 odoo root   4096 May  2 06:55 .
drwxrwxr-x  1 root root   4096 Apr 23 14:42 ..
-rw-r--r--  1 root root 150025 Apr  5 07:23 .spdx-odoo.spdx
lrwxrwxrwx  1 root root     20 May  2 06:55 addons -> /bitnami/odoo/addons
drwxr-xr-x  2 root root   4096 Apr 23 14:42 bin
lrwxrwxrwx  1 root root     18 May  2 06:55 conf -> /bitnami/odoo/conf
lrwxrwxrwx  1 root root     18 May  2 06:55 data -> /bitnami/odoo/data
drwxr-xr-x  3 root root   4096 Apr  5 06:51 lib
drwxr-xr-x  2 root root   4096 Apr  5 06:51 licenses
drwxrwxr-x  2 odoo root   4096 Apr 23 14:42 log
drwxr-xr-x 26 root root   4096 Apr  5 06:51 node_modules
drwxr-xr-x  2 root root   4096 Apr 23 14:42 odoo
-rw-r--r--  1 root root   9081 Apr  5 06:17 package-lock.json
-rw-r--r--  1 root root     88 Apr  5 06:17 package.json
drwxrwxr-x  1 odoo root   4096 May  2 06:55 tmp
drwxr-xr-x  5 root root   4096 Apr  5 06:51 venv

By default, the directory is empty but once you install new addons (e.g. using Odoo UI) you should see them there.

Find more information about persistence mounting host directories on this link.

Copy link

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label May 18, 2024
Copy link

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
odoo solved stale 15 days without activity tech-issues The user has a technical issue about an application
Projects
None yet
Development

No branches or pull requests

5 participants