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

Can't run example project #219

Open
aleprovencio opened this issue Oct 15, 2022 · 5 comments
Open

Can't run example project #219

aleprovencio opened this issue Oct 15, 2022 · 5 comments

Comments

@aleprovencio
Copy link

Hello, I was not able to make the example project work:

  • Using just as it is, returns this error on build stage:
chown: invalid user: ‘odoo:odoo’
The command '/bin/sh -c chown -R odoo:odoo /odoo' returned a non-zero code: 1
  • When updating the Dockerfile's image to ghcr.io/camptocamp/odoo-project:14.0-latest, building the image works but got this error after trying docker-compose up:
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "docker-entrypoint.sh" executable file not found in $PATH: unknown
@khalidchamakh
Copy link

Hello, I was not able to make the example project work:

  • Using just as it is, returns this error on build stage:
chown: invalid user: ‘odoo:odoo’
The command '/bin/sh -c chown -R odoo:odoo /odoo' returned a non-zero code: 1
  • When updating the Dockerfile's image to ghcr.io/camptocamp/odoo-project:14.0-latest, building the image works but got this error after trying docker-compose up:
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "docker-entrypoint.sh" executable file not found in $PATH: unknown

Hello @aleprovencio , i have the same problem, did you find any solution ?

@HekSahiti
Copy link

HekSahiti commented Dec 6, 2022

I've updated the image on the Dockerfile to ghcr.io/camptocamp/odoo-project:15.0-latest and than used the test-compose.yml instead of docker-compose.yml and it ran successfully.

With the docker-compose.yml I was getting the chown ..... error too.

@khalidchamakh
Copy link

Thanks a lot, it works also for me when i used test-compose.yml

@aleprovencio
Copy link
Author

Thanks for the input guys and no, I still haven't found a solution @khalidchamakh

@Tatider
Copy link

Tatider commented Jan 5, 2023

The problem is in the image in the registry. The last update of f.e. for 15.0 was done on 21.10.20221. If you will check content of the "docker-odoo-project/15.0/Dockerfile" file, you will see that there is no odoo user creation command was there on 21.10.2021.
https://github.com/camptocamp/docker-odoo-project/blob/6fa0aee98b145b58dab0309d6866f0e0f9ec08d4/15.0/Dockerfile

So, image camptocamp/odoo-project:15.0-latest should be rebuilt and pushed to the registry to be compatible with latest changes in the example. But I deliver only camptocamp authorized users can do that.

UPDATE! I am speaking about the odoo image on Dockerhub, because the example still has reference to It camptocamp/odoo-project:<version>-latest instead of ghcr.io/camptocamp/odoo-project:<version>-latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants