Tecnativa / doodba-copier-template

A Copier template for Doodba projects
Boost Software License 1.0
86 stars 114 forks source link

Stuck Waiting until postgres is listening at db... #204

Closed bosd closed 3 years ago

bosd commented 3 years ago

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

``` # Changes here will be overwritten by Copier _commit: v2.6.1 _src_path: gh:Tecnativa/doodba-copier-template backup_deletion: false backup_dst: null backup_email_from: null backup_email_to: null backup_tz: UTC cidr_whitelist: null domains_prod: pr2.nl domains_test: test.pr2.nl gitlab_url: null odoo_dbfilter: .* odoo_initial_lang: en_US odoo_listdb: false odoo_oci_image: null odoo_proxy: traefik odoo_version: 13.0 paths_without_crawlers: - /web - /website/info postgres_dbname: prod postgres_username: odoo postgres_version: 13 project_author: Tecnativa project_license: BSL-1.0 project_name: pr2 smtp_canonical_default: null smtp_canonical_domains: null smtp_default_from: null smtp_relay_host: null smtp_relay_port: 587 smtp_relay_user: null ```

after a long wait I terminate the process: feedback:

^CTraceback (most recent call last):
  File "/opt/odoo/common/entrypoint", line 30, in <module>
    subprocess.check_call(command)
  File "/usr/local/lib/python3.6/subprocess.py", line 306, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/local/lib/python3.6/subprocess.py", line 289, in call
    return p.wait(timeout=timeout)
  File "/usr/local/lib/python3.6/subprocess.py", line 1477, in wait
    (pid, sts) = self._try_wait(0)
  File "/usr/local/lib/python3.6/subprocess.py", line 1424, in _try_wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
joao-p-marques commented 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.

bosd commented 3 years ago

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.

joao-p-marques commented 3 years ago

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?

bosd commented 3 years ago

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:

```2021-01-05 22:08:15.631 GMT [1] LOG: starting PostgreSQL 13.1 on x86_64-pc-linux-musl, compiled by gcc (Alpine 9.3.0) 9.3.0, 64-bit 2021-01-05 22:08:15.631 GMT [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 2021-01-05 22:08:15.632 GMT [1] LOG: listening on IPv6 address "::", port 5432 2021-01-05 22:08:15.655 GMT [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" 2021-01-05 22:08:15.720 GMT [24] LOG: database system was shut down at 2021-01-05 22:06:48 GMT 2021-01-05 22:08:15.754 GMT [1] LOG: database system is ready to accept connections```

Nothing strange there..

joao-p-marques commented 3 years ago

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.

yajo commented 3 years ago

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.

bosd commented 3 years ago

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:

```json { "Id": "5ecf4a9ec1ed8b2cadeb4d6ce1a4426f9d6ca5c8df4376da87b21b821e2b164b", "Created": "2021-01-05T22:08:11.510264637Z", "Path": "/autoconf-entrypoint", "Args": [], "State": { "Status": "running", "Running": true, "Paused": false, "Restarting": false, "OOMKilled": false, "Dead": false, "Pid": 1293781, "ExitCode": 0, "Error": "", "StartedAt": "2021-01-05T22:08:15.225510321Z", "FinishedAt": "0001-01-01T00:00:00Z" }, "Image": "sha256:1ec45ea9f2c0ba62d0ea053a5daf534c9aa5faf2663ab9f7bff1a60709ab22f0", "ResolvConfPath": "/var/lib/docker/containers/5ecf4a9ec1ed8b2cadeb4d6ce1a4426f9d6ca5c8df4376da87b21b821e2b164b/resolv.conf", "HostnamePath": "/var/lib/docker/containers/5ecf4a9ec1ed8b2cadeb4d6ce1a4426f9d6ca5c8df4376da87b21b821e2b164b/hostname", "HostsPath": "/var/lib/docker/containers/5ecf4a9ec1ed8b2cadeb4d6ce1a4426f9d6ca5c8df4376da87b21b821e2b164b/hosts", "LogPath": "/var/lib/docker/containers/5ecf4a9ec1ed8b2cadeb4d6ce1a4426f9d6ca5c8df4376da87b21b821e2b164b/5ecf4a9ec1ed8b2cadeb4d6ce1a4426f9d6ca5c8df4376da87b21b821e2b164b-json.log", "Name": "/pr2_db_1", "RestartCount": 0, "Driver": "overlay2", "Platform": "linux", "MountLabel": "", "ProcessLabel": "", "AppArmorProfile": "", "ExecIDs": null, "HostConfig": { "Binds": [ "pr2_db:/var/lib/postgresql/data:z" ], "ContainerIDFile": "", "LogConfig": { "Type": "json-file", "Config": {} }, "NetworkMode": "pr2_default", "PortBindings": {}, "RestartPolicy": { "Name": "", "MaximumRetryCount": 0 }, "AutoRemove": false, "VolumeDriver": "", "VolumesFrom": [], "CapAdd": null, "CapDrop": null, "CgroupnsMode": "private", "Dns": null, "DnsOptions": null, "DnsSearch": null, "ExtraHosts": null, "GroupAdd": null, "IpcMode": "private", "Cgroup": "", "Links": null, "OomScoreAdj": 0, "PidMode": "", "Privileged": false, "PublishAllPorts": false, "ReadonlyRootfs": false, "SecurityOpt": null, "UTSMode": "", "UsernsMode": "", "ShmSize": 536870912, "Runtime": "runc", "ConsoleSize": [ 0, 0 ], "Isolation": "", "CpuShares": 0, "Memory": 0, "NanoCpus": 0, "CgroupParent": "", "BlkioWeight": 0, "BlkioWeightDevice": null, "BlkioDeviceReadBps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteIOps": null, "CpuPeriod": 0, "CpuQuota": 0, "CpuRealtimePeriod": 0, "CpuRealtimeRuntime": 0, "CpusetCpus": "", "CpusetMems": "", "Devices": null, "DeviceCgroupRules": null, "DeviceRequests": null, "KernelMemory": 0, "KernelMemoryTCP": 0, "MemoryReservation": 0, "MemorySwap": 0, "MemorySwappiness": null, "OomKillDisable": null, "PidsLimit": null, "Ulimits": null, "CpuCount": 0, "CpuPercent": 0, "IOMaximumIOps": 0, "IOMaximumBandwidth": 0, "MaskedPaths": [ "/proc/asound", "/proc/acpi", "/proc/kcore", "/proc/keys", "/proc/latency_stats", "/proc/timer_list", "/proc/timer_stats", "/proc/sched_debug", "/proc/scsi", "/sys/firmware" ], "ReadonlyPaths": [ "/proc/bus", "/proc/fs", "/proc/irq", "/proc/sys", "/proc/sysrq-trigger" ] }, "GraphDriver": { "Data": { "LowerDir": "/var/lib/docker/overlay2/31335846813f8f633ec3f7a9c38bfe58d7abb5b09f0fb2fc07b3343b446149a5-init/diff:/var/lib/docker/overlay2/137240769cd9a5823823d350004b8e9fbd37e522eeec59feff36463739da81d4/diff:/var/lib/docker/overlay2/e709d9c4c1df7941a7e353a8c30ae4e25e379153bedfb8f2ba9da96c151270a6/diff:/var/lib/docker/overlay2/7410da4d3f5bf5e92b119024e921fadb4debd7ec56fa9b5bf8eb2ef6226055b3/diff:/var/lib/docker/overlay2/76356394f0a3bb03d013d182e5f5e0ec1dbdaded60c5a37a3c7b9d39de8b3d8a/diff:/var/lib/docker/overlay2/f2151d90cea2a375f2b88be004a69b7a8739e491f37aeddb96f2722d6303b910/diff:/var/lib/docker/overlay2/40df7acf419c32649eab33547be0a143aa89f29822f1bc47689d1f8b7072808f/diff:/var/lib/docker/overlay2/46f6e651c9fc1e229c6e69577c7f4366edbf5b6440e9f3b992d369659bf99e2a/diff:/var/lib/docker/overlay2/cd9a6592a9f60e28ecac333331074b6363f874a5c12e1bb85cd7365ffc51340b/diff:/var/lib/docker/overlay2/f3e9ec57029a9b648503a3765e42cf8c80628ff0d6a9a912733dd774b972fa44/diff:/var/lib/docker/overlay2/e4163078e2b5bed82ac86902b83ceb7aebe91570976eac3e164370b352e07281/diff:/var/lib/docker/overlay2/d02b57b6b2017c264e4c1b9413be9282966cbad150e79bf895415bc52c091a5c/diff", "MergedDir": "/var/lib/docker/overlay2/31335846813f8f633ec3f7a9c38bfe58d7abb5b09f0fb2fc07b3343b446149a5/merged", "UpperDir": "/var/lib/docker/overlay2/31335846813f8f633ec3f7a9c38bfe58d7abb5b09f0fb2fc07b3343b446149a5/diff", "WorkDir": "/var/lib/docker/overlay2/31335846813f8f633ec3f7a9c38bfe58d7abb5b09f0fb2fc07b3343b446149a5/work" }, "Name": "overlay2" }, "Mounts": [ { "Type": "volume", "Name": "pr2_db", "Source": "/var/lib/docker/volumes/pr2_db/_data", "Destination": "/var/lib/postgresql/data", "Driver": "local", "Mode": "z", "RW": true, "Propagation": "" } ], "Config": { "Hostname": "5ecf4a9ec1ed", "Domainname": "", "User": "", "AttachStdin": false, "AttachStdout": false, "AttachStderr": false, "ExposedPorts": { "5432/tcp": {} }, "Tty": false, "OpenStdin": false, "StdinOnce": false, "Env": [ "POSTGRES_DB=devel", "POSTGRES_USER=odoo", "CONF_EXTRA=work_mem = 512MB\n", "POSTGRES_PASSWORD=odoopassword", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "LANG=en_US.utf8", "PG_MAJOR=13", "PG_VERSION=13.1", "PG_SHA256=12345c83b89aa29808568977f5200d6da00f88a035517f925293355432ffe61f", "PGDATA=/var/lib/postgresql/data", "CERTS={}", "LAN_AUTH_METHOD=md5", "LAN_CONNECTION=host", "LAN_DATABASES=[\"all\"]", "LAN_HBA_TPL={connection} {db} {user} {cidr} {meth}", "LAN_TLS=0", "LAN_USERS=[\"all\"]", "WAN_AUTH_METHOD=cert", "WAN_CONNECTION=hostssl", "WAN_DATABASES=[\"all\"]", "WAN_HBA_TPL={connection} {db} {user} {cidr} {meth}", "WAN_TLS=1", "WAN_USERS=[\"all\"]" ], "Cmd": [], "Image": "ghcr.io/tecnativa/postgres-autoconf:13-alpine", "Volumes": { "/var/lib/postgresql/data": {} }, "WorkingDir": "", "Entrypoint": [ "/autoconf-entrypoint" ], "OnBuild": null, "Labels": { "com.docker.compose.config-hash": "e8971b3f92b22c77df787f69cf73c91ff0380fbed9566f23fdf019961e746e68", "com.docker.compose.container-number": "1", "com.docker.compose.oneoff": "False", "com.docker.compose.project": "pr2", "com.docker.compose.project.config_files": "docker-compose.yml", "com.docker.compose.project.working_dir": "/home/dev/pr2", "com.docker.compose.service": "db", "com.docker.compose.version": "1.27.4", "org.label-schema.build-date": "2021-01-03 00:27:25.101172573+00:00\n", "org.label-schema.license": "Apache-2.0", "org.label-schema.vcs-ref": "fd1e433d0ee69ca22ea4df98facfeeb8e25416e6", "org.label-schema.vcs-url": "https://github.com/Tecnativa/docker-postgres-autoconf", "org.label-schema.vendor": "Tecnativa" }, "StopSignal": "SIGINT" }, "NetworkSettings": { "Bridge": "", "SandboxID": "8285ce14caf051c0569b7ce6ada267f288139d5f5781c4b511a27e44c2072fe9", "HairpinMode": false, "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "Ports": {}, "SandboxKey": "/var/run/docker/netns/8285ce14caf0", "SecondaryIPAddresses": null, "SecondaryIPv6Addresses": null, "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "MacAddress": "", "Networks": { "pr2_default": { "IPAMConfig": null, "Links": null, "Aliases": [ "5ecf4a9ec1ed", "db" ], "NetworkID": "c80f7f33323c898fee33b0206eb3fbae8f7870db23e58f85e6c00ae37c27fab9", "EndpointID": "a7bdb9c7a11bdb9c0bda57a7a1b534547d15d6204e3b867f3b4ec21e7a5cc8b1", "Gateway": "172.22.0.1", "IPAddress": "172.22.0.2", "IPPrefixLen": 16, "IPv6Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "MacAddress": "02:42:ac:16:00:02", "DriverOpts": null } } }, "CreatedTime": 1609884491510 } ```

The odoo one:

```json { "Id": "e8b810e0b0ef157b4b05b19e8c8907cdda4eeb5a81c04175afcff31e52ab4585", "Created": "2021-01-05T22:08:23.181210261Z", "Path": "/opt/odoo/common/entrypoint", "Args": [ "click-odoo-dropdb", "devel" ], "State": { "Status": "running", "Running": true, "Paused": false, "Restarting": false, "OOMKilled": false, "Dead": false, "Pid": 1294683, "ExitCode": 0, "Error": "", "StartedAt": "2021-01-05T22:08:25.421567685Z", "FinishedAt": "0001-01-01T00:00:00Z" }, "Image": "sha256:38ea7f6995740f4cdbaaa15f61540ac8675faac317f168f154eff619b4ccbce5", "ResolvConfPath": "/var/lib/docker/containers/e8b810e0b0ef157b4b05b19e8c8907cdda4eeb5a81c04175afcff31e52ab4585/resolv.conf", "HostnamePath": "/var/lib/docker/containers/e8b810e0b0ef157b4b05b19e8c8907cdda4eeb5a81c04175afcff31e52ab4585/hostname", "HostsPath": "/var/lib/docker/containers/e8b810e0b0ef157b4b05b19e8c8907cdda4eeb5a81c04175afcff31e52ab4585/hosts", "LogPath": "/var/lib/docker/containers/e8b810e0b0ef157b4b05b19e8c8907cdda4eeb5a81c04175afcff31e52ab4585/e8b810e0b0ef157b4b05b19e8c8907cdda4eeb5a81c04175afcff31e52ab4585-json.log", "Name": "/pr2_odoo_run_bff905e49d82", "RestartCount": 0, "Driver": "overlay2", "Platform": "linux", "MountLabel": "", "ProcessLabel": "", "AppArmorProfile": "", "ExecIDs": null, "HostConfig": { "Binds": [ "pr2_filestore:/var/lib/odoo:z", "/home/dev/pr2/odoo/custom:/opt/odoo/custom:ro,z", "/home/dev/pr2/odoo/auto:/opt/odoo/auto:rw,z" ], "ContainerIDFile": "", "LogConfig": { "Type": "json-file", "Config": {} }, "NetworkMode": "pr2_default", "PortBindings": {}, "RestartPolicy": { "Name": "", "MaximumRetryCount": 0 }, "AutoRemove": false, "VolumeDriver": "", "VolumesFrom": [], "CapAdd": null, "CapDrop": null, "CgroupnsMode": "private", "Dns": null, "DnsOptions": null, "DnsSearch": null, "ExtraHosts": null, "GroupAdd": null, "IpcMode": "private", "Cgroup": "", "Links": null, "OomScoreAdj": 0, "PidMode": "", "Privileged": false, "PublishAllPorts": false, "ReadonlyRootfs": false, "SecurityOpt": null, "UTSMode": "", "UsernsMode": "", "ShmSize": 67108864, "Runtime": "runc", "ConsoleSize": [ 0, 0 ], "Isolation": "", "CpuShares": 0, "Memory": 0, "NanoCpus": 0, "CgroupParent": "", "BlkioWeight": 0, "BlkioWeightDevice": null, "BlkioDeviceReadBps": null, "BlkioDeviceWriteBps": null, "BlkioDeviceReadIOps": null, "BlkioDeviceWriteIOps": null, "CpuPeriod": 0, "CpuQuota": 0, "CpuRealtimePeriod": 0, "CpuRealtimeRuntime": 0, "CpusetCpus": "", "CpusetMems": "", "Devices": null, "DeviceCgroupRules": null, "DeviceRequests": null, "KernelMemory": 0, "KernelMemoryTCP": 0, "MemoryReservation": 0, "MemorySwap": 0, "MemorySwappiness": null, "OomKillDisable": null, "PidsLimit": null, "Ulimits": null, "CpuCount": 0, "CpuPercent": 0, "IOMaximumIOps": 0, "IOMaximumBandwidth": 0, "MaskedPaths": [ "/proc/asound", "/proc/acpi", "/proc/kcore", "/proc/keys", "/proc/latency_stats", "/proc/timer_list", "/proc/timer_stats", "/proc/sched_debug", "/proc/scsi", "/sys/firmware" ], "ReadonlyPaths": [ "/proc/bus", "/proc/fs", "/proc/irq", "/proc/sys", "/proc/sysrq-trigger" ] }, "GraphDriver": { "Data": { "LowerDir": "/var/lib/docker/overlay2/d9faa7c60fe831bc7808f4fb8dd1235590448a61db54a176a86f764eed59ef92-init/diff:/var/lib/docker/overlay2/c45f5518988ae986b9e67425f4e68aabddd4060afa263643c505e7e45d07321b/diff:/var/lib/docker/overlay2/96392ef6ebd22e1f6c6b2266c7dbab51a0759c18ddfa59a4f95e03dfa57bc286/diff:/var/lib/docker/overlay2/8ed301f6d30d5e9970e6e8ff33e86b06b0f1a5ea83f8e3ae47cd4217bc2a83d9/diff:/var/lib/docker/overlay2/98f4d1410f5454d5a79f2c2762bb7137362d399817540296714ed72e11779e7f/diff:/var/lib/docker/overlay2/4a442d6687d256bafceb5007babe248b61be03bbed67de463cb7e47fdec5b318/diff:/var/lib/docker/overlay2/673e35e56dfd2e589e998fbfbade434bb5a99a2e037c209a37af16e05376c561/diff:/var/lib/docker/overlay2/6a87dc996f832c16087122bfa46062535bcf7f767c67c79dde706c4e36db11a3/diff:/var/lib/docker/overlay2/77ffde35f56c7e833ee30dee51254f2eb037a978f0d499ee83fe490b8848405b/diff:/var/lib/docker/overlay2/5c727bb9f59d084efbf58f098e12c4f94fe068b2f544ec61446be4cb9b90ad28/diff:/var/lib/docker/overlay2/14e2b46a96b75968fe85eecb646a446455f26d0e24c9bcea8e9c39d05d9c8b81/diff:/var/lib/docker/overlay2/4542a31393898518b3f6deadb27f0e82d9b65a1a077681025c69daad1adbba4e/diff:/var/lib/docker/overlay2/f9863a778d14dfa66f35053a405036aa1b30903638afb6de70b01186e516c49d/diff:/var/lib/docker/overlay2/f5c5dd3cf289d7c0aae4c19de6da2426c023dd008ab717fff9bf8679d8c36068/diff:/var/lib/docker/overlay2/9be6969a7bb1864e25f3a5d32da00aa969a02dbd8421d938d16fbe94025421f6/diff:/var/lib/docker/overlay2/e7c7753385b6755b8e3c272101f15037d1b5aa9570d6fd6b4b76c513de77fafc/diff:/var/lib/docker/overlay2/4712e6d471fcf5a6e55229388cbee3caf564268c4173118da7c3aa16c548c1c6/diff:/var/lib/docker/overlay2/80315876c85f242a8e2d717c1b19ae9fe51d513a26275a36452b5567b3ebc103/diff:/var/lib/docker/overlay2/eb965d76fbac06d0364567256cc37622d83911b03fe2037ad783ddff7eb8fa26/diff:/var/lib/docker/overlay2/d9b095e0b9236ef84f3cd885703b9a7938c422f9434d630dba04dc1da9e21d1f/diff:/var/lib/docker/overlay2/01dfc82314f884f3f3be7c134b2b77054ebd80a468eac32ce3105581b4f4f6d6/diff", "MergedDir": "/var/lib/docker/overlay2/d9faa7c60fe831bc7808f4fb8dd1235590448a61db54a176a86f764eed59ef92/merged", "UpperDir": "/var/lib/docker/overlay2/d9faa7c60fe831bc7808f4fb8dd1235590448a61db54a176a86f764eed59ef92/diff", "WorkDir": "/var/lib/docker/overlay2/d9faa7c60fe831bc7808f4fb8dd1235590448a61db54a176a86f764eed59ef92/work" }, "Name": "overlay2" }, "Mounts": [ { "Type": "bind", "Source": "/home/dev/pr2/odoo/custom", "Destination": "/opt/odoo/custom", "Mode": "ro,z", "RW": false, "Propagation": "rprivate" }, { "Type": "bind", "Source": "/home/dev/pr2/odoo/auto", "Destination": "/opt/odoo/auto", "Mode": "rw,z", "RW": true, "Propagation": "rprivate" }, { "Type": "volume", "Name": "pr2_filestore", "Source": "/var/lib/docker/volumes/pr2_filestore/_data", "Destination": "/var/lib/odoo", "Driver": "local", "Mode": "z", "RW": true, "Propagation": "" } ], "Config": { "Hostname": "e8b810e0b0ef", "Domainname": "", "User": "odoo", "AttachStdin": true, "AttachStdout": true, "AttachStderr": true, "ExposedPorts": { "8069/tcp": {}, "8072/tcp": {} }, "Tty": true, "OpenStdin": true, "StdinOnce": true, "Env": [ "EMAIL_FROM=", "PGDATABASE=devel", "PGUSER=odoo", "DB_FILTER=.*", "PROXY_MODE=true", "DOODBA_ENVIRONMENT=devel", "LIST_DB=true", "DEBUGPY_ENABLE=0", "PYTHONDONTWRITEBYTECODE=1", "PYTHONOPTIMIZE=", "PYTHONPATH=/opt/odoo/custom/src/odoo", "SMTP_PORT=1025", "WDB_WEB_PORT=13984", "WITHOUT_DEMO=false", "PATH=/home/odoo/.local/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "LANG=C.UTF-8", "GPG_KEY=0D96DF4D4110E5C43FBFB17F2D347EA6AA65421D", "PYTHON_VERSION=3.6.12", "PYTHON_PIP_VERSION=20.3.3", "PYTHON_GET_PIP_URL=https://github.com/pypa/get-pip/raw/5f38681f7f5872e4032860b54e9cc11cf0374932/get-pip.py", "PYTHON_GET_PIP_SHA256=6a0b13826862f33c13b614a921d36253bfa1ae779c5fbf569876f3585057e9d2", "DEPTH_DEFAULT=1", "DEPTH_MERGE=100", "EMAIL=https://hub.docker.com/r/tecnativa/odoo", "GEOIP_ACCOUNT_ID=", "GEOIP_LICENSE_KEY=", "GIT_AUTHOR_NAME=docker-odoo", "INITIAL_LANG=", "LC_ALL=C.UTF-8", "NODE_PATH=/usr/local/lib/node_modules:/usr/lib/node_modules", "OPENERP_SERVER=/opt/odoo/auto/odoo.conf", "PIP_NO_CACHE_DIR=0", "PTVSD_ARGS=--host 0.0.0.0 --port 6899 --wait --multiprocess", "PTVSD_ENABLE=0", "DEBUGPY_ARGS=--listen 0.0.0.0:6899 --wait-for-client", "PUDB_RDB_HOST=0.0.0.0", "PUDB_RDB_PORT=6899", "UNACCENT=true", "WAIT_DB=true", "WDB_NO_BROWSER_AUTO_OPEN=True", "WDB_SOCKET_SERVER=wdb", "WDB_WEB_SERVER=localhost", "ODOO_VERSION=13.0", "ADMIN_PASSWORD=admin", "DEFAULT_REPO_PATTERN=https://github.com/OCA/{}.git", "DEFAULT_REPO_PATTERN_ODOO=https://github.com/OCA/OCB.git", "PGPASSWORD=odoopassword", "PGHOST=db", "PGPORT=5432", "SMTP_SERVER=smtp", "SMTP_USER=false", "SMTP_PASSWORD=false", "SMTP_SSL=false" ], "Cmd": [ "click-odoo-dropdb", "devel" ], "Image": "pr2_odoo", "Volumes": { "/opt/odoo/auto": {}, "/opt/odoo/custom": {}, "/var/lib/odoo": {} }, "WorkingDir": "/opt/odoo", "Entrypoint": [ "/opt/odoo/common/entrypoint" ], "OnBuild": null, "Labels": { "com.docker.compose.oneoff": "True", "com.docker.compose.project": "pr2", "com.docker.compose.project.config_files": "docker-compose.yml", "com.docker.compose.project.working_dir": "/home/dev/pr2", "com.docker.compose.service": "odoo", "com.docker.compose.slug": "bff905e49d8284b7b0195588e5800df3903a399dbde64e9bd46820e28546c3", "com.docker.compose.version": "1.27.4", "org.label-schema.build-date": "2021-01-03 00:18:16.340161008+00:00", "org.label-schema.license": "Apache-2.0", "org.label-schema.schema-version": "", "org.label-schema.vcs-ref": "bfdfe5fc31b61b9009b3e4d95533e1c56074d593", "org.label-schema.vcs-url": "https://github.com/Tecnativa/doodba", "org.label-schema.vendor": "Tecnativa", "traefik.backend.buffering.retryExpression": "IsNetworkError() && Attempts() < 5", "traefik.docker.network": "inverseproxy_shared", "traefik.enable": "false", "traefik.frontend.passHostHeader": "true", "traefik.port": "8069" } }, "NetworkSettings": { "Bridge": "", "SandboxID": "6b1d556af56f9689cc3a180065b2bda028f0853a77704595cc0dd204339558ea", "HairpinMode": false, "LinkLocalIPv6Address": "", "LinkLocalIPv6PrefixLen": 0, "Ports": {}, "SandboxKey": "/var/run/docker/netns/6b1d556af56f", "SecondaryIPAddresses": null, "SecondaryIPv6Addresses": null, "EndpointID": "", "Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "IPAddress": "", "IPPrefixLen": 0, "IPv6Gateway": "", "MacAddress": "", "Networks": { "pr2_default": { "IPAMConfig": null, "Links": null, "Aliases": [ "e8b810e0b0ef" ], "NetworkID": "c80f7f33323c898fee33b0206eb3fbae8f7870db23e58f85e6c00ae37c27fab9", "EndpointID": "c4eb4ba9549e5759467b23c98d5d182f63b3e217fe55f939f8eefd602136d3e0", "Gateway": "172.22.0.1", "IPAddress": "172.22.0.11", "IPPrefixLen": 16, "IPv6Gateway": "", "GlobalIPv6Address": "", "GlobalIPv6PrefixLen": 0, "MacAddress": "02:42:ac:16:00:0b", "DriverOpts": null } } }, "CreatedTime": 1609884503181 } ```
bosd commented 3 years ago

@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.

yajo commented 3 years ago

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.

bosd commented 3 years ago

The workflow I used: mkdir ~/pr3

copier copy gh:Tecnativa/doodba-copier-template ~/pr3

Answers file:

``` Changes here will be overwritten by Copier _commit: v2.6.1 _src_path: gh:Tecnativa/doodba-copier-template backup_deletion: false backup_dst: null backup_email_from: null backup_email_to: null backup_tz: UTC cidr_whitelist: null domains_prod: hosts: - www.main.com - shop.main.com domains_test: hosts: - test.main.com - testshop.main.com gitlab_url: null odoo_dbfilter: .* odoo_initial_lang: en_US odoo_listdb: true odoo_oci_image: null odoo_proxy: null odoo_version: 13.0 paths_without_crawlers: - /web - /website/info postgres_dbname: prod postgres_username: odoo postgres_version: 13 project_author: Tecnativa project_license: BSL-1.0 project_name: pr3 smtp_canonical_default: null smtp_canonical_domains: null smtp_default_from: null smtp_relay_host: null smtp_relay_port: 587 smtp_relay_user: null ```

invoke img-pull img-build --pull git-aggregate resetdb start

``` Reinitialized existing Git repository in /home/emiel/pr3/.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: Downloaded newer image for ghcr.io/tecnativa/doodba:13.0-onbuild # Executing 39 build triggers ---> Running in 28b065e12c1f Removing intermediate container 28b065e12c1f ---> Running in ddab80ddf3a1 Removing intermediate container ddab80ddf3a1 ---> Running in dc292d6ac10f Removing intermediate container dc292d6ac10f ---> Running in 6d18ddfccdea Removing intermediate container 6d18ddfccdea ---> Running in d819574ce861 Removing intermediate container d819574ce861 ---> Running in d60d6d6e1621 Removing intermediate container d60d6d6e1621 ---> Running in d4d94289168f Removing intermediate container d4d94289168f ---> Running in 9cb90a94d73a Removing intermediate container 9cb90a94d73a ---> Running in bdf883fc6b93 Removing intermediate container bdf883fc6b93 ---> Running in 2c7e7e1c50fb Removing intermediate container 2c7e7e1c50fb ---> Running in b06e4d7065e1 Removing intermediate container b06e4d7065e1 ---> Running in a6f3aae07f60 Removing intermediate container a6f3aae07f60 ---> Running in 605182b73e9c Removing intermediate container 605182b73e9c ---> Running in a845526fda58 Removing intermediate container a845526fda58 ---> Running in 3531006ce4cd Removing intermediate container 3531006ce4cd ---> Running in 850711b82115 Removing intermediate container 850711b82115 ---> Running in 54017d203c8a Removing intermediate container 54017d203c8a ---> Running in 5f07628fe93a Removing intermediate container 5f07628fe93a ---> Running in 9d1a9110e50c Removing intermediate container 9d1a9110e50c ---> Running in 25500c2b42e8 Removing intermediate container 25500c2b42e8 ---> Running in 4f4e2c46ba91 Removing intermediate container 4f4e2c46ba91 ---> Running in 08bf4eb4cbd3 Removing intermediate container 08bf4eb4cbd3 ---> Running in 4cf6f31d0c9b Removing intermediate container 4cf6f31d0c9b ---> Running in 8b5486b93ed4 Removing intermediate container 8b5486b93ed4 ---> Running in f93c42678cf6 Removing intermediate container f93c42678cf6 ---> Running in 308dbc36b74b Removing intermediate container 308dbc36b74b ---> Running in 90c382914fd3 Removing intermediate container 90c382914fd3 ---> Running in 2ac3eb37f6eb Removing intermediate container 2ac3eb37f6eb ---> Running in f9aa1926350e Removing intermediate container f9aa1926350e ---> Running in b7dcd948efcf Removing intermediate container b7dcd948efcf ---> Running in b6cf4f6f61d9 Removing intermediate container b6cf4f6f61d9 ---> Running in 36d41d231793 Removing intermediate container 36d41d231793 ---> Running in 8eed5eb14e1b Removing intermediate container 8eed5eb14e1b ---> Running in 958bb4866175 Removing intermediate container 958bb4866175 ---> Running in 5ff76ecacf62 Removing intermediate container 5ff76ecacf62 ---> Running in cab6066299d5 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-6monxzlp 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=d03d55e814f1138220ae213412248682ce47b3320af10754a4302d15aee2d098 Stored in directory: /tmp/pip-ephem-wheel-cache-iq5f3oon/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=53ff437bc0d8ec01113992e1dc829e1665d81f34a33e92a546f16239488626b0 Stored in directory: /tmp/pip-ephem-wheel-cache-iq5f3oon/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://security.debian.org/debian-security buster/updates InRelease [65.4 kB] Get:2 http://deb.debian.org/debian buster InRelease [121 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://apt.postgresql.org/pub/repos/apt stretch-pgdg InRelease [76.6 kB] Get:7 http://apt.postgresql.org/pub/repos/apt stretch-pgdg/main amd64 Packages [252 kB] Get:8 http://deb.debian.org/debian buster-updates/main amd64 Packages [7860 B] Fetched 8742 kB in 3s (2823 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 cab6066299d5 ---> Running in 6509942a930d Removing intermediate container 6509942a930d ---> Running in 2116f40e8a38 Removing intermediate container 2116f40e8a38 ---> 3a9fa8113bba Successfully built 3a9fa8113bba Successfully tagged pr3_odoo:latest Found orphan containers (pr3_proxy_cdnjs_cloudflare_com_1, pr3_proxy_fonts_googleapis_com_1, pr3_proxy_www_gravatar_com_1, pr3_smtp_1, pr3_proxy_www_googleapis_com_1, pr3_proxy_fonts_gstatic_com_1, pr3_proxy_www_google_com_1, pr3_db_1, pr3_wdb_1) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up. Creating pr3_odoo_run ... done doodba INFO: Running gitaggregate with /opt/odoo/custom/src/repos.yaml (INFO) [23:14:22] git_aggregator.repo odoo Start aggregation of /opt/odoo/custom/src/odoo (INFO) [23:14:22] 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) [23:14:23] git_aggregator.repo odoo Switch to branch 13.0 Switched to a new branch '13.0' (INFO) [23:14:23] git_aggregator.repo odoo Adding remote ocb (INFO) [23:14:23] git_aggregator.repo odoo Adding remote odoo (INFO) [23:14:23] git_aggregator.repo odoo Adding remote openupgrade (INFO) [23:14:23] 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) [23:15:09] git_aggregator.repo odoo Pull ocb, 13.0 Checking out files: 100% (25631/25631), done. (INFO) [23:15:15] git_aggregator.repo odoo Execute shell after commands (INFO) [23:15:15] git_aggregator.repo odoo End aggregation of /opt/odoo/custom/src/odoo Starting pr3_proxy_www_googleapis_com_1 ... done Starting pr3_proxy_www_gravatar_com_1 ... done Starting pr3_smtp_1 ... done Starting pr3_db_1 ... done Starting pr3_proxy_www_google_com_1 ... done Starting pr3_proxy_fonts_gstatic_com_1 ... done Starting pr3_wdb_1 ... done Starting pr3_proxy_cdnjs_cloudflare_com_1 ... done Starting pr3_proxy_fonts_googleapis_com_1 ... done Creating pr3_odoo_run ... done doodba INFO: Waiting until postgres is listening at db... ```

Logs:

``` Attaching to pr3_proxy_www_google_com_1, pr3_proxy_www_gravatar_com_1, pr3_wdb_1, pr3_proxy_fonts_gstatic_com_1, pr3_proxy_fonts_googleapis_com_1, pr3_proxy_www_googleapis_com_1, pr3_smtp_1, pr3_db_1, pr3_proxy_cdnjs_cloudflare_com_1 db_1 | 2021-01-12 23:15:19.685 GMT [1] LOG: starting PostgreSQL 13.1 on x86_64-pc-linux-musl, compiled by gcc (Alpine 9.3.0) 9.3.0, 64-bit db_1 | 2021-01-12 23:15:19.685 GMT [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 db_1 | 2021-01-12 23:15:19.685 GMT [1] LOG: listening on IPv6 address "::", port 5432 db_1 | 2021-01-12 23:15:19.691 GMT [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" db_1 | 2021-01-12 23:15:19.705 GMT [22] LOG: database system was interrupted; last known up at 2021-01-07 22:45:15 GMT db_1 | 2021-01-12 23:15:19.941 GMT [22] LOG: database system was not properly shut down; automatic recovery in progress db_1 | 2021-01-12 23:15:19.945 GMT [22] LOG: redo starts at 0/15D52D8 db_1 | 2021-01-12 23:15:19.945 GMT [22] LOG: invalid record length at 0/15D53C0: wanted 24, got 0 db_1 | 2021-01-12 23:15:19.945 GMT [22] LOG: redo done at 0/15D5388 db_1 | 2021-01-12 23:15:19.993 GMT [1] LOG: database system is ready to accept connections proxy_cdnjs_cloudflare_com_1 | async def netcat(port): proxy_cdnjs_cloudflare_com_1 | INFO:root:Executing: socat tcp-listen:80,fork,reuseaddr,max-children=100 tcp-connect:104.16.19.94:80 proxy_cdnjs_cloudflare_com_1 | INFO:root:Executing: socat tcp-listen:443,fork,reuseaddr,max-children=100 tcp-connect:104.16.19.94:443 proxy_cdnjs_cloudflare_com_1 | /usr/local/bin/proxy:20: DeprecationWarning: please use dns.resolver.Resolver.resolve() instead proxy_cdnjs_cloudflare_com_1 | ip = random.choice([answer.address for answer in resolver.query(target)]) proxy_cdnjs_cloudflare_com_1 | INFO:root:Resolved cdnjs.cloudflare.com to 104.16.19.94 proxy_cdnjs_cloudflare_com_1 | /usr/local/bin/proxy:25: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead proxy_cdnjs_cloudflare_com_1 | async def netcat(port): proxy_cdnjs_cloudflare_com_1 | INFO:root:Executing: socat tcp-listen:80,fork,reuseaddr,max-children=100 tcp-connect:104.16.19.94:80 proxy_cdnjs_cloudflare_com_1 | INFO:root:Executing: socat tcp-listen:443,fork,reuseaddr,max-children=100 tcp-connect:104.16.19.94:443 proxy_fonts_googleapis_com_1 | async def netcat(port): proxy_fonts_googleapis_com_1 | INFO:root:Executing: socat tcp-listen:80,fork,reuseaddr,max-children=100 tcp-connect:172.217.17.42:80 proxy_fonts_googleapis_com_1 | INFO:root:Executing: socat tcp-listen:443,fork,reuseaddr,max-children=100 tcp-connect:172.217.17.42:443 proxy_fonts_googleapis_com_1 | /usr/local/bin/proxy:20: DeprecationWarning: please use dns.resolver.Resolver.resolve() instead proxy_fonts_googleapis_com_1 | ip = random.choice([answer.address for answer in resolver.query(target)]) proxy_fonts_googleapis_com_1 | INFO:root:Resolved fonts.googleapis.com to 172.217.168.234 proxy_fonts_googleapis_com_1 | /usr/local/bin/proxy:25: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead proxy_fonts_googleapis_com_1 | async def netcat(port): proxy_fonts_googleapis_com_1 | INFO:root:Executing: socat tcp-listen:80,fork,reuseaddr,max-children=100 tcp-connect:172.217.168.234:80 proxy_fonts_googleapis_com_1 | INFO:root:Executing: socat tcp-listen:443,fork,reuseaddr,max-children=100 tcp-connect:172.217.168.234:443 proxy_www_google_com_1 | async def netcat(port): proxy_www_google_com_1 | INFO:root:Executing: socat tcp-listen:80,fork,reuseaddr,max-children=100 tcp-connect:172.217.168.228:80 proxy_www_google_com_1 | INFO:root:Executing: socat tcp-listen:443,fork,reuseaddr,max-children=100 tcp-connect:172.217.168.228:443 proxy_www_google_com_1 | /usr/local/bin/proxy:20: DeprecationWarning: please use dns.resolver.Resolver.resolve() instead proxy_www_google_com_1 | ip = random.choice([answer.address for answer in resolver.query(target)]) proxy_www_google_com_1 | INFO:root:Resolved www.google.com to 172.217.168.228 proxy_www_google_com_1 | /usr/local/bin/proxy:25: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead proxy_www_google_com_1 | async def netcat(port): proxy_www_google_com_1 | INFO:root:Executing: socat tcp-listen:80,fork,reuseaddr,max-children=100 tcp-connect:172.217.168.228:80 proxy_www_google_com_1 | INFO:root:Executing: socat tcp-listen:443,fork,reuseaddr,max-children=100 tcp-connect:172.217.168.228:443 proxy_fonts_gstatic_com_1 | async def netcat(port): proxy_fonts_gstatic_com_1 | INFO:root:Executing: socat tcp-listen:80,fork,reuseaddr,max-children=100 tcp-connect:172.217.19.195:80 proxy_fonts_gstatic_com_1 | INFO:root:Executing: socat tcp-listen:443,fork,reuseaddr,max-children=100 tcp-connect:172.217.19.195:443 proxy_fonts_gstatic_com_1 | /usr/local/bin/proxy:20: DeprecationWarning: please use dns.resolver.Resolver.resolve() instead proxy_fonts_gstatic_com_1 | ip = random.choice([answer.address for answer in resolver.query(target)]) proxy_fonts_gstatic_com_1 | INFO:root:Resolved fonts.gstatic.com to 172.217.20.67 proxy_fonts_gstatic_com_1 | /usr/local/bin/proxy:25: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead proxy_fonts_gstatic_com_1 | async def netcat(port): proxy_fonts_gstatic_com_1 | INFO:root:Executing: socat tcp-listen:80,fork,reuseaddr,max-children=100 tcp-connect:172.217.20.67:80 proxy_fonts_gstatic_com_1 | INFO:root:Executing: socat tcp-listen:443,fork,reuseaddr,max-children=100 tcp-connect:172.217.20.67:443 proxy_www_googleapis_com_1 | async def netcat(port): proxy_www_googleapis_com_1 | INFO:root:Executing: socat tcp-listen:80,fork,reuseaddr,max-children=100 tcp-connect:216.58.211.106:80 proxy_www_googleapis_com_1 | INFO:root:Executing: socat tcp-listen:443,fork,reuseaddr,max-children=100 tcp-connect:216.58.211.106:443 proxy_www_googleapis_com_1 | /usr/local/bin/proxy:20: DeprecationWarning: please use dns.resolver.Resolver.resolve() instead proxy_www_googleapis_com_1 | ip = random.choice([answer.address for answer in resolver.query(target)]) proxy_www_googleapis_com_1 | INFO:root:Resolved www.googleapis.com to 172.217.168.234 proxy_www_googleapis_com_1 | /usr/local/bin/proxy:25: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead proxy_www_googleapis_com_1 | async def netcat(port): proxy_www_googleapis_com_1 | INFO:root:Executing: socat tcp-listen:80,fork,reuseaddr,max-children=100 tcp-connect:172.217.168.234:80 proxy_www_googleapis_com_1 | INFO:root:Executing: socat tcp-listen:443,fork,reuseaddr,max-children=100 tcp-connect:172.217.168.234:443 proxy_www_gravatar_com_1 | async def netcat(port): proxy_www_gravatar_com_1 | INFO:root:Executing: socat tcp-listen:80,fork,reuseaddr,max-children=100 tcp-connect:192.0.73.2:80 proxy_www_gravatar_com_1 | INFO:root:Executing: socat tcp-listen:443,fork,reuseaddr,max-children=100 tcp-connect:192.0.73.2:443 proxy_www_gravatar_com_1 | /usr/local/bin/proxy:20: DeprecationWarning: please use dns.resolver.Resolver.resolve() instead proxy_www_gravatar_com_1 | ip = random.choice([answer.address for answer in resolver.query(target)]) proxy_www_gravatar_com_1 | INFO:root:Resolved www.gravatar.com to 192.0.73.2 proxy_www_gravatar_com_1 | /usr/local/bin/proxy:25: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead proxy_www_gravatar_com_1 | async def netcat(port): proxy_www_gravatar_com_1 | INFO:root:Executing: socat tcp-listen:80,fork,reuseaddr,max-children=100 tcp-connect:192.0.73.2:80 proxy_www_gravatar_com_1 | INFO:root:Executing: socat tcp-listen:443,fork,reuseaddr,max-children=100 tcp-connect:192.0.73.2:443 smtp_1 | [APIv1] KEEPALIVE /api/v1/events ```
yajo commented 3 years ago

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.EfAZFvG35Ncopier 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.

obayit commented 3 years ago

@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.

bosd commented 3 years ago

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:

Details

Fedora Host: Python 3.9.1

``` $ docker version Client: Docker Engine - Community Version: 20.10.2 API version: 1.41 Go version: go1.13.15 Git commit: 2291f61 Built: Mon Dec 28 16:18:35 2020 OS/Arch: linux/amd64 Context: default Experimental: true Server: Docker Engine - Community Engine: Version: 20.10.2 API version: 1.41 (minimum version 1.12) Go version: go1.13.15 Git commit: 8891c58 Built: Mon Dec 28 16:15:44 2020 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.4.3 GitCommit: 269548fa27e0089a8b8278fc4fc781d7f65a939b runc: Version: 1.0.0-rc92 GitCommit: ff819c7e9184c13b7c2607fe6c30ae19403a7aff docker-init: Version: 0.19.0 GitCommit: de40ad0 ```

(2nd fedora host uses docker 20.10.1, Python 3.9.1)

Debian based host (MXlinux): Python3.7.3

``` $ docker version Client: Docker Engine - Community Version: 20.10.2 API version: 1.41 Go version: go1.13.15 Git commit: 2291f61 Built: Mon Dec 28 16:17:34 2020 OS/Arch: linux/amd64 Context: default Experimental: true Server: Docker Engine - Community Engine: Version: 20.10.2 API version: 1.41 (minimum version 1.12) Go version: go1.13.15 Git commit: 8891c58 Built: Mon Dec 28 16:15:28 2020 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.4.3 GitCommit: 269548fa27e0089a8b8278fc4fc781d7f65a939b runc: Version: 1.0.0-rc92 GitCommit: ff819c7e9184c13b7c2607fe6c30ae19403a7aff docker-init: Version: 0.19.0 GitCommit: de40ad0 ```
yajo commented 3 years ago

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.

pleirb commented 1 year ago

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

pleirb commented 1 year ago

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

bosd commented 1 year ago

stop --purge

That is likely the answer. It helped me out on severel occasions with glitches as well

linuxnow commented 10 months ago

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

yajo commented 10 months ago

This project is not compatible with podman-compose AFAIK.

linuxnow commented 10 months ago

At the end I got it working with podman, it is a matter of internal DNS names. Tnank you!!