Closed dedanirungu closed 5 months ago
Waiting..
Compiled from Dockerfile used for 14.0 and got stuck at the error:
ERROR odoo.service.db: CREATE DATABASE failed: , Traceback (most recent call last):, File "/usr/lib/python3/dist-packages/odoo/service/db.py", line 66, in _initialize_db, env = odoo.api.Environment(cr, SUPERUSER_ID, {}), File "/usr/lib/python3/dist-packages/odoo/api.py", line 506, in __new__, for env in transaction.envs:, AttributeError: 'NoneType' object has no attribute 'envs'
Troubleshooting and waiting for a new Dockerfile...
using this link http://nightly.odoo.com/15.0/nightly/deb/ @vmelnych ?
@herawais yes, and adjusted Dockerfile (from 14.0) to the 15th release and checksums.
Compiled and launched! The Dockerfile needs an extra lib: python3-openssl, then during creating a database it fails with the above listed error, but I updated res_users
with the desired admin e-mail and a scrambled password and could log in!
I get the same error but don't manage to fix it. Will there be an updated dockerfile soon as well? Thx
docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo -e POSTGRES_DB=postgres --name mydb postgres
docker run -v odoo\addon:/mnt/extra-addons -p 8069:8069 --name myisntance --link mydb:db -t odoo
am using winscp to see my files n folders.
Is it able to get an older docker image? I need odoo15 - 20211018 because there are some errors in the newer images with such serious problems that normal work is no longer possible...
It starts with: UncaughtPromiseError > KeyNotFoundError Uncaught Promise > Cannot find mail.widgets.discuss in this registry!
and after that there are only follow-up errors in the important sales modules
@hpz24 , you can build one for yourself, by using the official Dockerfile. Do you need any tip how to do it? Alternatively you can pull docker pull vmelnych/odoo:15.20211006 - this is the earliest build of 15.x I have...
hi @vmelnych, thanks for your tip with the older image - works better than the newest :) I'm not that good at generating my own Dockerfile - if you have useful links, that would be very helpful!
@hpz24 clone this repo and try it. Note, that Docker must be installed :)
excellent, works like a charm! Thank you! :)
The Odoo 15 Docker image needs to use the latest release on the nightly page instead of a particular one. I was testing for a customer using current Odoo enterprise code, and there was a change to base Odoo and enterprise regarding a SASS mixin that completely broke my environment. The Docker image ought to use the most recent release so as to always have current Odoo source code.
@vmelnych how does your build behave on newer version at Odoo git? Do we need to set a specific date for it build the latest version? Or does it automatically latest anyway? Can I connect with you 1:1 somehow to discuss some things about a private image I need? Maybe I can hire you to work on something we need. Thanks!
@codeagencybe, it is self-explanatory, actually. You find a required nightly build and specify date and a checksum in the .env file. Simple it is. You can contact me at ifs.pvt@gmail.com.
@dedanirungu can you close this issue if no longer needed?
Just for those who are seeking an update - here is another docker-build repo for Odoo versions 16+.
Docker Image for odoo 15