Closed bosd closed 3 years ago
@bosd Did you run (if you did, could you try running again) invoke resetdb start
? That should ensure the DB is created correctly.
Yes, I did run that.
I just run the command again.
Same result:
doodba INFO: Waiting until postgres is listening at db...
I've did some tests, had the same message on odoo versions 8, 12 , 13 It seems to be inter-container related.
Ok, does the issue keep happening if you delete all the containers (you can do it with invoke stop --purge
) and re-do the process?
Also, could you provide the database container logs as well?
I've deleted all the containters with the purge command.
Even performed a copier --force update
So everything is fresh.
but the result is the same.
Here are the logs of the DB container:
Nothing strange there..
I'm sorry, but I can't reproduce this error :confused:
Can you check that the odoo container and the DB one can communicate? They should be in a docker network that ends in _default
.
Maybe @Yajo can help here.
domains_prod: pr2.nl domains_test: test.pr2.nl
These look like wrong answers that might have broken the workflow.
Please generate a new project from scratch and answer these according to the expected format. Then try there.
Well, that's odd. I've exact the same situation at 2 systems.
The DB and odoo container are both in the _default
network
Here's the feedback of the Postgres container:
The odoo one:
@yajo, Thanks for the pointer. I've overlooked that the domain should be in Yaml format.
I made a new project. Run a couple of tests but without luck.
Here are my attempts:
Leaving the domains_prod
and domains_test
empty provides the same result.
Then, I started again a new instance and tried the input:
[{'hosts': ['www.main.com', 'shop.main.com']}]
and
[{'hosts': [‘test.main.com', 'testshop.main.com']}]
Yet, still the odoo container is waiting.
I see nothing that can help us debug. I guess you must be doing some step wrong... The problem you're seeing is "correct" in the sense that if the db doesn't exist, odoo shouldn't boot.
Please paste all the commands you're executing, so I can reproduce your flow.
The workflow I used:
mkdir ~/pr3
copier copy gh:Tecnativa/doodba-copier-template ~/pr3
Answers file:
invoke img-pull img-build --pull git-aggregate resetdb start
Logs:
I have reproduced your exact same steps with correct results:
yajo@yajolap-tecnativa-com:~ ➤ mktemp -d /tmp/tmp.EfAZFvG35N yajo@yajolap-tecnativa-com:~ ➤ cd /tmp/tmp.EfAZFvG35N yajo@yajolap-tecnativa-com:/t/tmp.EfAZFvG35N yajo@yajolap-tecnativa-com:/t/tmp.EfAZFvG35N ➤ copier copy gh:Tecnativa/doodba-copier-template . 🎤 On which odoo version is it based? odoo_version? Format: float 13.0 🎤 Set your Odoo db filter. It must be a regexp that matches the domain name bei odoo_dbfilter? Format: str .* 🎤 ⚠️ Using a misconfigured proxy for production can create a security hole. Usin Which proxy will you use to deploy odoo? odoo_proxy? Format: str No proxy (dangerous for production) 🎤 If you want to initialize Odoo automatically in a specific language, write it Examples: en_US, es_ES, es_VE... odoo_initial_lang? Format: str en_US 🕵️ 💡 To auto-generate strong passwords, see https://ddg.gg/?q=password+64+strong ⚠️ This password is critical for security, especially if you set odoo_listdb to t What will be your odoo admin password? odoo_admin_password? Format: str ********************** 🎤 Do you want to list databases publicly? odoo_listdb? Format: bool Yes 🎤 If you are using an OCI/Docker image registry (such as the Docker Hub, Quay o Example: docker.io/myteam/example-odoo odoo_oci_image? Format: str 🎤 Tell me who you are. If private modules do not include this author, pylint will warn you. project_author? Format: str Tecnativa 🎤 What's your project name? Do not use dots or spaces in the name; just "A-Za-z0-9-_" please. project_name? Format: str pr3 🎤 It's important to use a good license for your project. In https://choosealicense.com/ you can read details about most common FOSS ones. So, what's your project's license? project_license? Format: str Boost Software License 1.0 🎤 If you host this project in Gitlab, then please enter here the project URL. It must have no trailing slash. 💡 If you don't use Gitlab, leave this empty and ignore all other Gitlab questio Example: `https://gitlab.com/Tecnativa/your-doodba-project`. gitlab_url? Format: str 🎤 Configure the production domains for this project. The format is a list with these keys: - hosts: The domain names. List of strings. - path_prefixes: The path prefixes (if any) that will match this routing rule. List of strings. Default: []. - redirect_to: Apply a 301 redirection to this other domain. String. Default: null. - cert_resolver: Traefik cert resolver name. String/Boolean. Default: "letsencry Set it to `true` to use a self-signed certificate. Set it to `false` to disable TLS in those domains. If not `false`, it will force using HTTPS. - entrypoints: List of entrypoint names to use when creating this rule. Default: Leave empty to apply this rule on all available entrypoints. Those are defined in your Traefik deployment. See https://www.tecnativa.com/r/Anu for an example. ⚠ Remember that you have to write one-line YAML, at least until Copier supports multiline input > hosts: - www.main.com - shop.main.com 🎤 Configure the test domains for this project. The format is the same as for `prod_domains`; a list with these keys: - hosts: The domain names. List of strings. - path_prefixes: The path prefixes (if any) that will match this routing rule. List of strings. Default: []. - redirect_to: Apply a 301 redirection to this other domain. String. Default: null. - cert_resolver: Traefik cert resolver name. String/Boolean. Default: "letsencry Set it to `true` to use a self-signed certificate. Set it to `false` to disable TLS in those domains. If not `false`, it will force using HTTPS. - entrypoints: List of entrypoint names to use when creating this rule. Default: Leave empty to apply this rule on all available entrypoints. Those are defined in your Traefik deployment. See https://www.tecnativa.com/r/Y0v for an example. ⚠ Remember that you have to write one-line YAML, at least until Copier supports multiline input > hosts: - test.main.com - testshop.main.com 🎤 Tell me the list of paths which where you want to forbid crawlers. Imagine you do not want your `/shop` and `/shop/**` pages to be indexed. Then pu ⚠️ It must be a list. And this is only supported if you deploy with Traefik. 💡 We will convert this to `Path` rules. Check valid syntax in https://docs.trae paths_without_crawlers? Format: yaml (Finish with 'Alt+Enter' or 'Esc, Enter') > ['/web', '/website/info'] 🎤 If you need to whitelist certain CIDR to allow only them to access your Odoo ⚠️ It must be a list. And this is only supported if you deploy with Traefik 2+. cidr_whitelist? Format: yaml (Finish with 'Alt+Enter' or 'Esc, Enter') > 🎤 Which PostgreSQL version do you want to deploy? postgres_version? Format: int 13 🎤 Which user name will be used to connect to the postgres server? postgres_username? Format: str odoo 🎤 💡 If database names differ among environments, operations like restoring a d What is going to be the main database name? postgres_dbname? Format: str prod 🕵️ What will be your postgres user password? postgres_password? Format: str ******************* 🎤 Now, let's start configuring outgoing mail. In case an email coming out from odoo doesn't have a valid `From:` header addres smtp_default_from? Format: str 🎤 ⚠️ If you leave this answer empty, all next SMTP settings will be ignored. If you supply a valid SMTP host, production Odoo will be able to send emails wit So, what is your SMTP host? Example: mail.example.com smtp_relay_host? Format: str 🎤 If you want to use an Amazon S3 bucket, write its URL like `boto3+s3://exampl If you want to use any other backend, supply any URL supported by Duplicity (our If you don't want bakcups, leave this empty. Where should the backups be stored? backup_dst? Format: str create .copier-answers.yml create LICENSE create test.yaml create tasks.py create setup-devel.yaml create prod.yaml create devel.yaml create common.yaml create README.md create .pylintrc create .pylintrc-mandatory create .prettierrc.yml create .pre-commit-config.yaml create .isort.cfg create .gitignore create .flake8 create .eslintrc.yml create .editorconfig create odoo/ create odoo/Dockerfile create odoo/.dockerignore create odoo/custom/ create odoo/custom/ssh/ create odoo/custom/ssh/known_hosts create odoo/custom/ssh/id_rsa.pub create odoo/custom/ssh/id_rsa create odoo/custom/ssh/config create odoo/custom/src/ create odoo/custom/src/repos.yaml create odoo/custom/src/addons.yaml create odoo/custom/src/private/ create odoo/custom/src/private/.editorconfig create odoo/custom/entrypoint.d/ create odoo/custom/entrypoint.d/.empty create odoo/custom/dependencies/ create odoo/custom/dependencies/pip.txt create odoo/custom/dependencies/npm.txt create odoo/custom/dependencies/gem.txt create odoo/custom/dependencies/apt_build.txt create odoo/custom/dependencies/apt.txt create odoo/custom/conf.d/ create odoo/custom/conf.d/.empty create odoo/custom/build.d/ create odoo/custom/build.d/.empty create .vscode/ create .vscode/settings.json create .vscode/extensions.json create .vscode/doodba.code-snippets create .docker/ create .docker/odoo.env create .docker/db-creation.env create .docker/db-access.env > Running task 1 of 1: invoke develop Inicializado repositorio Git vacío en /tmp/tmp.EfAZFvG35N/.git/ pre-commit installed at .git/hooks/pre-commit yajo@yajolap-tecnativa-com:/t/tmp.EfAZFvG35N|HEAD⚡? ➤ invoke img-pull img-build --pull git-aggregate resetdb start Reinicializado el repositorio Git existente en /tmp/tmp.EfAZFvG35N/.git/ pre-commit installed at .git/hooks/pre-commit Pulling db ... done Pulling pgweb ... done Pulling smtp ... done Pulling wdb ... done Pulling proxy_cdnjs_cloudflare_com ... done Pulling proxy_fonts_googleapis_com ... done Pulling proxy_fonts_gstatic_com ... done Pulling proxy_www_google_com ... done Pulling proxy_www_googleapis_com ... done Pulling proxy_www_gravatar_com ... done Pulling odoo ... done Pulling odoo_proxy ... done db uses an image, skipping pgweb uses an image, skipping smtp uses an image, skipping wdb uses an image, skipping proxy_cdnjs_cloudflare_com uses an image, skipping proxy_fonts_googleapis_com uses an image, skipping proxy_fonts_gstatic_com uses an image, skipping proxy_www_google_com uses an image, skipping proxy_www_googleapis_com uses an image, skipping proxy_www_gravatar_com uses an image, skipping odoo_proxy uses an image, skipping Building odoo Step 1/2 : ARG ODOO_VERSION Step 2/2 : FROM ghcr.io/tecnativa/doodba:${ODOO_VERSION}-onbuild 13.0-onbuild: Pulling from tecnativa/doodba Digest: sha256:23c82b10dbfca6f85bfeaea3162b979774a9515d757198844a7cb5dc660e6800 Status: Image is up to date for ghcr.io/tecnativa/doodba:13.0-onbuild # Executing 39 build triggers ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Using cache ---> Running in 25df4db3fb3e Removing intermediate container 25df4db3fb3e ---> Running in 2be0b5d72a2f Removing intermediate container 2be0b5d72a2f ---> Running in d552daad966d Removing intermediate container d552daad966d ---> Running in f3e2acdde384 Removing intermediate container f3e2acdde384 ---> Running in 605fae76e4e8 Removing intermediate container 605fae76e4e8 ---> Running in b71e02b10e53 Removing intermediate container b71e02b10e53 ---> Running in 91fdd7e70748 doodba WARNING: Not aggregating code repositories doodba INFO: No installable requirements found in /opt/odoo/custom/dependencies/apt_build.txt doodba INFO: No installable requirements found in /opt/odoo/custom/dependencies/apt.txt doodba INFO: No installable requirements found in /opt/odoo/custom/dependencies/gem.txt doodba INFO: No installable requirements found in /opt/odoo/custom/dependencies/npm.txt doodba INFO: Executing: ['pip', 'install', '--no-cache-dir', '-r', '/opt/odoo/custom/dependencies/pip.txt'] Collecting git+https://github.com/OCA/openupgradelib.git@master (from -r /opt/odoo/custom/dependencies/pip.txt (line 1)) Cloning https://github.com/OCA/openupgradelib.git (to revision master) to /tmp/pip-req-build-h2s6gobw Requirement already satisfied: lxml in /usr/local/lib/python3.6/site-packages (from openupgradelib==3.0.0->-r /opt/odoo/custom/dependencies/pip.txt (line 1)) (3.7.1) Collecting unicodecsv Downloading unicodecsv-0.14.1.tar.gz (10 kB) Collecting unidecode Downloading Unidecode-1.1.2-py2.py3-none-any.whl (239 kB) Collecting cssselect Downloading cssselect-1.1.0-py2.py3-none-any.whl (16 kB) Building wheels for collected packages: openupgradelib, unicodecsv Building wheel for openupgradelib (setup.py): started Building wheel for openupgradelib (setup.py): finished with status 'done' Created wheel for openupgradelib: filename=openupgradelib-3.0.0-py2.py3-none-any.whl size=63648 sha256=7423e9b8377dd36a8ea5f98947a7512719afbb963475713ee5f0bae0d2ba974b Stored in directory: /tmp/pip-ephem-wheel-cache-rypf0z3j/wheels/42/9b/9d/a412eba874a375b2d64cd20b37d0e6e47edcd57efb41ac4b84 Building wheel for unicodecsv (setup.py): started Building wheel for unicodecsv (setup.py): finished with status 'done' Created wheel for unicodecsv: filename=unicodecsv-0.14.1-py3-none-any.whl size=10767 sha256=9aa6bee5c38f2fe53de07ed53e3d2d902eb46ba2b767dacb2e49fef87bc10464 Stored in directory: /tmp/pip-ephem-wheel-cache-rypf0z3j/wheels/8d/0b/ff/bbba4ab3cf81844c3f8d130f8c53d392e1224b9750a71f0485 Successfully built openupgradelib unicodecsv Installing collected packages: cssselect, unidecode, unicodecsv, openupgradelib Successfully installed cssselect-1.1.0 openupgradelib-3.0.0 unicodecsv-0.14.1 unidecode-1.1.2 Get:1 http://deb.debian.org/debian buster InRelease [121 kB] Get:2 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB] Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB] Get:4 http://security.debian.org/debian-security buster/updates/main amd64 Packages [260 kB] Get:5 http://deb.debian.org/debian buster/main amd64 Packages [7907 kB] Get:6 http://deb.debian.org/debian buster-updates/main amd64 Packages [7860 B] Get:7 http://apt.postgresql.org/pub/repos/apt stretch-pgdg InRelease [76.6 kB] Get:8 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 Packages [252 kB] Fetched 8742 kB in 5s (1617 kB/s) Reading package lists... debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libpq5:amd64. (Reading database ... 37381 files and directories currently installed.) Preparing to unpack .../libpq5_13.1-1.pgdg90+1_amd64.deb ... Unpacking libpq5:amd64 (13.1-1.pgdg90+1) ... Selecting previously unselected package pgdg-keyring. Preparing to unpack .../pgdg-keyring_2018.2_all.deb ... Unpacking pgdg-keyring (2018.2) ... Selecting previously unselected package postgresql-client-common. Preparing to unpack .../postgresql-client-common_223.pgdg90+1_all.deb ... Unpacking postgresql-client-common (223.pgdg90+1) ... Selecting previously unselected package postgresql-client-13. Preparing to unpack .../postgresql-client-13_13.1-1.pgdg90+1_amd64.deb ... Unpacking postgresql-client-13 (13.1-1.pgdg90+1) ... Selecting previously unselected package postgresql-client. Preparing to unpack .../postgresql-client_13+223.pgdg90+1_all.deb ... Unpacking postgresql-client (13+223.pgdg90+1) ... Setting up pgdg-keyring (2018.2) ... Removing apt.postgresql.org key from trusted.gpg: OK Setting up libpq5:amd64 (13.1-1.pgdg90+1) ... Setting up postgresql-client-common (223.pgdg90+1) ... Setting up postgresql-client-13 (13.1-1.pgdg90+1) ... update-alternatives: using /usr/share/postgresql/13/man/man1/psql.1.gz to provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode Setting up postgresql-client (13+223.pgdg90+1) ... Processing triggers for libc-bin (2.28-10) ... doodba WARNING: Not cleaning garbage doodba WARNING: Not compiling Python code doodba INFO: Installing Odoo from /opt/odoo/custom/src/odoo doodba WARNING: Blindly symlinking odoo executable doodba INFO: No removable requirements found in /opt/odoo/custom/dependencies/apt_build.txt doodba INFO: Executing: ['apt-get', '-y', 'autoremove'] Reading package lists... Building dependency tree... Reading state information... 0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. doodba INFO: Executing: rm -Rf /var/lib/apt/lists/* doodba INFO: Executing: rm -Rf ~/.gem /var/lib/gems/*/cache/ doodba INFO: Executing: rm -Rf ~/.npm /tmp/* Removing intermediate container 91fdd7e70748 ---> Running in ad330d1b055c Removing intermediate container ad330d1b055c ---> Running in 076a87434f5d Removing intermediate container 076a87434f5d ---> 18c801f5d8f3 Successfully built 18c801f5d8f3 Successfully tagged tmpefazfvg35n_odoo:latest Creating network "tmpefazfvg35n_public" with the default driver Creating tmpefazfvg35n_odoo_run ... done doodba INFO: Running gitaggregate with /opt/odoo/custom/src/repos.yaml (INFO) [10:44:56] git_aggregator.repo odoo Start aggregation of /opt/odoo/custom/src/odoo (INFO) [10:44:56] git_aggregator.repo odoo Init empty git repository in /opt/odoo/custom/src/odoo Initialized empty Git repository in /opt/odoo/custom/src/odoo/.git/ (INFO) [10:44:56] git_aggregator.repo odoo Switch to branch 13.0 Switched to a new branch '13.0' (INFO) [10:44:56] git_aggregator.repo odoo Adding remote ocb <https://github.com/OCA/OCB.git> (INFO) [10:44:56] git_aggregator.repo odoo Adding remote odoo <https://github.com/odoo/odoo.git> (INFO) [10:44:56] git_aggregator.repo odoo Adding remote openupgrade <https://github.com/OCA/OpenUpgrade.git> (INFO) [10:44:56] git_aggregator.repo odoo Fetching required remotes From https://github.com/OCA/OCB * branch 13.0 -> FETCH_HEAD * [new branch] 13.0 -> ocb/13.0 (INFO) [10:45:34] git_aggregator.repo odoo Pull ocb, 13.0 Checking out files: 100% (25631/25631), done. (INFO) [10:45:39] git_aggregator.repo odoo Execute shell after commands (INFO) [10:45:39] git_aggregator.repo odoo End aggregation of /opt/odoo/custom/src/odoo Creating network "tmpefazfvg35n_default" with the default driver Creating volume "tmpefazfvg35n_filestore" with default driver Creating volume "tmpefazfvg35n_db" with default driver Creating tmpefazfvg35n_db_1 ... done Creating tmpefazfvg35n_proxy_www_google_com_1 ... done Creating tmpefazfvg35n_proxy_www_gravatar_com_1 ... done Creating tmpefazfvg35n_proxy_fonts_googleapis_com_1 ... done Creating tmpefazfvg35n_proxy_www_googleapis_com_1 ... done Creating tmpefazfvg35n_proxy_cdnjs_cloudflare_com_1 ... done Creating tmpefazfvg35n_wdb_1 ... done Creating tmpefazfvg35n_smtp_1 ... done Creating tmpefazfvg35n_proxy_fonts_gstatic_com_1 ... done Creating tmpefazfvg35n_odoo_run ... done doodba INFO: Waiting until postgres is listening at db... doodba INFO: Unaccent extension installed doodba INFO: Linking all addons from /opt/odoo/custom/src/addons.yaml in /opt/odoo/auto/addons doodba INFO: Generating /opt/odoo/auto/odoo.conf file. Overriding any existing... doodba INFO: Merging found configuration files in /opt/odoo/auto/odoo.conf doodba INFO: Executing click-odoo-dropdb devel /usr/local/lib/python3.6/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>. """) Creating tmpefazfvg35n_odoo_run ... done doodba INFO: Waiting until postgres is listening at db... doodba WARNING: Attempt to install unaccent in devel@db failed with this message: psql: error: FATAL: database "devel" does not exist doodba INFO: Linking all addons from /opt/odoo/custom/src/addons.yaml in /opt/odoo/auto/addons doodba INFO: Generating /opt/odoo/auto/odoo.conf file. Overriding any existing... doodba INFO: Merging found configuration files in /opt/odoo/auto/odoo.conf doodba INFO: Executing click-odoo-initdb -n devel -m base /usr/local/lib/python3.6/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>. """) 2021-01-13 10:45:50,455 1 WARNING ? odoo.modules.registry: The option --unaccent was given but no unaccent() function was found in database. 2021-01-13 10:46:07,903 1 INFO devel click_odoo_contrib.initdb: Created new Odoo database devel. 2021-01-13 10:46:07,967 1 INFO devel click_odoo_contrib.update: Database updated, new checksums stored 2021-01-13 10:46:07,970 1 INFO devel click_odoo_contrib.initdb: Creating database cache-202101131046-46b7d635946b4fc4fe037240624bbc3b06c5cbb0 from template devel tmpefazfvg35n_proxy_www_google_com_1 is up-to-date tmpefazfvg35n_smtp_1 is up-to-date tmpefazfvg35n_proxy_www_gravatar_com_1 is up-to-date tmpefazfvg35n_proxy_fonts_googleapis_com_1 is up-to-date tmpefazfvg35n_proxy_www_googleapis_com_1 is up-to-date tmpefazfvg35n_proxy_cdnjs_cloudflare_com_1 is up-to-date tmpefazfvg35n_proxy_fonts_gstatic_com_1 is up-to-date tmpefazfvg35n_db_1 is up-to-date tmpefazfvg35n_wdb_1 is up-to-date Creating tmpefazfvg35n_pgweb_1 ... done Creating tmpefazfvg35n_odoo_1 ... done Creating tmpefazfvg35n_odoo_proxy_1 ... done Restarting tmpefazfvg35n_odoo_proxy_1 ... done Restarting tmpefazfvg35n_odoo_1 ... done yajo@yajolap-tecnativa-com:/t/tmp.EfAZFvG35N|HEAD⚡? ➤ curl -sSL localhost:13069 | head <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>Odoo</title> <link rel="shortcut icon" href="/web/static/src/img/favicon.ico" type="image/x-icon"> <link rel="stylesheet" href="/web/static/lib/fontawesome/css/font-awesome.css"> <link rel="stylesheet" href="/web/static/lib/bootstrap/css/bootstrap.css"> curl: (23) Failure writing output to destination
domains_prod: hosts:
- www.main.com
- shop.main.com domains_test: hosts:
- test.main.com
- testshop.main.com
BTW these answers are still wrong. They should be:
domains_prod:
- hosts:
- www.main.com
- shop.main.com
domains_test:
- hosts:
- test.main.com
- testshop.main.com
But I used these same answers and it still worked for me. There must be some problem specific to your os, setup or docker installation.
@bosd this happened to me too, although I was using a modified compose file, and also there is a similar issue in odoo/postgres containers in general, see this issue on the official odoo/odoo repo. If you open the log while visiting the url it will give you the exact error. Strange thing is, odoo acts as if the database is not accessible, yet you can run another odoo instance to initialize the db with no problems.
Try this:
When you build the image use --no-cache to make sure the image is also fresh docker-compose build --no-cache
, it worked for me.
BTW these answers are still wrong. They should be:
Sorry, My input was correct. I was just fighting the gihub markup.
Thanks for the help!! Finally succeeded in getting the project up and running. :tada: Have not pinpointed the problem yet, :thinking:
Here are my steps:
In an attempt to fix it, I tried the running of another instance of initializing the DB. but that did'nt work.
I tried to set the DB name to postgres
also without result. :cry:
When I use Fedora as a host system, I get the dreadfull
doodba INFO: Waiting until postgres is listening at db...
When using another docker based odoo project. Everything worked fine.
( https://github.com/minhng92/odoo-13-docker-compose )
Solution To get Doodba working I switched to use an Debian based host system on a VM. Installed the requirement, followed the copier instructions. It worked like a charm :tada:
Seems like containers aren't as platform agnostic as they should be :thinking: As workaround I will use the debian VM.
The details of the tested systems are:
Fedora Host: Python 3.9.1
(2nd fedora host uses docker 20.10.1, Python 3.9.1)
Debian based host (MXlinux): Python3.7.3
Fedora is against docker in some regards. It evolved to cgroups v2 and nstables before docker, so you have to do some magic to make it work there. Hopefully docker will catch up at some point, or podman will be really compatible with docker-compose and we'll be able to dump docker.
Dear, how are you? I'm not sure, but I think the problem described here I have solved in this way:
I was trying to run odoo 12 with database in version 13 of Postgres. I edited the .copier-answers.yml file and left it like this: postgres_version: '12'
I then ran the following command with Invoke:
invoke stop --purge after-update img-pull img-build --pull git-aggregate resetdb start
I'm not sure if what worked was changing that in the question file or if it was the command I just used
Dear, how are you? I'm not sure, but I think the problem described here I have solved in this way: I was trying to run odoo 12 with database in version 13 of Postgres. I edited the .copier-answers.yml file and left it like this: postgres_version: '12' I then ran the following command with Invoke:
invoke stop --purge after-update img-pull img-build --pull git-aggregate resetdb start
I'm not sure if what worked was changing that in the question file or if it was the command I just used
Sorry, the file to change the database version is common.yaml. On the line:
image: ghcr.io/tecnativa/postgres-autoconf:12-alpine
So it has nothing to do with the version of the database being used in this case, what fixes the problem is probably the stop --purge option of the command I used:
invoke stop --purge after-update img-pull img-build --pull git-aggregate resetdb start
stop --purge
That is likely the answer. It helped me out on severel occasions with glitches as well
I have the same problem and cannot fix it. When I run $ invoke stop --purge I get: podman-compose: error: unrecognized arguments: --rmi Error: executing /usr/bin/podman-compose down --remove-orphans --rmi local --volumes: exit status 2
This project is not compatible with podman-compose AFAIK.
At the end I got it working with podman, it is a matter of internal DNS names. Tnank you!!
Followed the docs to setup a new copier template. Invoke start triggers containers, but odoo is stuck at: ``doodba INFO: Waiting until postgres is listening at db...
Steps to reproduce:
answersfile
after a long wait I terminate the process: feedback: