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

Error creating a new database #97

Closed
lcrea opened this issue Jan 5, 2017 · 3 comments
Closed

Error creating a new database #97

lcrea opened this issue Jan 5, 2017 · 3 comments

Comments

@lcrea
Copy link

lcrea commented Jan 5, 2017

Hi everybody,

I've recently tried the new Odoo 10.0 docker image and I stumbled upon this error at the very beginning, just trying to create a new empty database for test:

ERROR myodoo odoo.modules.registry: Failed to load registry
[…]
ParseError: "13 Permission denied" while parsing /usr/lib/python2.7/dist-packages/odoo/addons/base/base_data.xml:17
[…]
ERROR myodoo odoo.service.db: CREATE DATABASE failed

You can find the whole log in this file:
odoo10-docker-error.txt

To sum up, it sounds to simply be a wrong permission issue: the odoo user doesn't have the right write/execution permissions inside the Odoo image.

Possible solutions

I solved the problem with the first one, but the second one IMHO would be definitely better.

  1. Changing the default Odoo image user to root
  2. Fixing the files permissions to odoo user, right in the nightly deb package

I also tried to use the latest Odoo version, creating a new image (based on the official Dockerfile) and simply changing the release URL to the new 20170105: same problem, solved as above.

How to reproduce it

This is my environment:

  • macOS Sierra 10.12.2
  • Docker version 1.12.3, build 6b644ec
  • docker-compose version 1.8.1, build 878cff1
  • VirtualBox 5.1.12

I've created a simple docker-compose file, following the official instructions with this images:

  • postgres:alpine (or latest, it's the same)
  • odoo:10

and I ran it inside a docker machine (guest IP: 192.168.99.100).
Then, when the welcome page appeared, I tried to create a new database called myodoo as follow:

schermata_2017-01-05_alle_17_32_14

and I got the error.

schermata 2017-01-05 alle 17 32 38

The file linked above is the step-by-step result of this process.

I hope that this could be helpful 😊
Bye!

lcrea added a commit to lcrea/odoo-docker that referenced this issue Jan 15, 2017
[NEW]
+ Updated the Dockerfile of any version to always download and use the latest nightly build version.

[BUGFIX]
- Fixed (in any version) the permission error returned during the init process of the database creation. See this issue:
  odoo#97
lcrea added a commit to lcrea/odoo-docker that referenced this issue Jan 15, 2017
[NEW]
+ Updated the Dockerfile of any version to always download and use the latest nightly build version.

[BUGFIX]
- Fixed (in any version) the permission error returned during the init process of the database creation. See this issue:
  odoo#97
lcrea added a commit to lcrea/odoo-docker that referenced this issue Jan 15, 2017
Fixed (in any version) the permission error returned during the init process of the database creation. See the issue:
odoo#97
@lcrea lcrea changed the title [10.0] Error creating a new database Error creating a new database Jan 15, 2017
@CristianHR
Copy link

Quiero levantar odoo 10 desde Kitematic y me sale el siguiente error, como lo soluciono?

image

@lcrea
Copy link
Author

lcrea commented Oct 5, 2017

@CristianHR
I never used Kitematic, but it looks like Odoo couldn't find PostgreSQL container. Do you properly set the env and link options in Docker or Docker Compose?
Give them a check. They should be something like:

docker run --link your_psql_container_name:db --env HOST=db  [etc...]

@d-fence
Copy link
Contributor

d-fence commented Feb 21, 2018

I cannot reproduce this issue. It seems to be fixed. I tested all docker images and checked that the '/var/lib/odoo/filestore/' was created.

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

3 participants