Closed
Description
openedon Jul 29, 2024
Preliminary checklist
- I am using the latest stable version of DDEV (see upgrade guide)
- I have searched existing issues
- I have checked the troubleshooting guide
- I have run
ddev debug test
to include output below
Output of ddev debug test
Expand `ddev debug test` diagnostic information
======== Existing project config ========
ddev installation alternate locations:
/usr/bin/ddev
/bin/ddev
These config files were loaded for project od1: [/home/alexey_korepov/projects/od1/.ddev/config.yaml]
name: od1
type: python
php_version: 8.2
webserver_type: nginx-gunicorn
webimage: ddev/ddev-webserver:v1.23.0-1
additional_hostnames: []
additional_fqdns: []
database: {postgres 14}
project_tld: ddev.site
use_dns_when_possible: true
composer_version: 2
nodejs_version: 20
default_container_timeout: 120
======== mutagen situation ========
looking for #ddev-generated in mutagen.yml in project /home/alexey_korepov/projects/od1
.ddev/mutagen/mutagen.yml not found
======== Creating dummy project named tryddevproject-311 in ../tryddevproject-311 ========
Creating a new DDEV project config in the current directory (/home/alexey_korepov/projects/tryddevproject-311)
Once completed, your configuration will be written to /home/alexey_korepov/projects/tryddevproject-311/.ddev/config.yaml
Configuring a 'php' project with docroot 'web' at /home/alexey_korepov/projects/tryddevproject-311/web
Configuration complete. You may now run 'ddev start'.
======== OS Information ========
Linux EPAMYERW0270 6.8.0-39-generic #39-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 5 21:49:14 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
======== User information ========
uid=1000(alexey_korepov) gid=1000(alexey_korepov) groups=1000(alexey_korepov),4(adm),24(cdrom),27(sudo),30(dip),44(video),46(plugdev),105(crontab),107(input),109(render),120(lpadmin),132(lxd),133(sambashare),142(vboxusers),997(docker)
======== ddev version ========
ITEM VALUE
DDEV version v1.23.0
architecture amd64
cgo_enabled 0
db ddev/ddev-dbserver-mariadb-10.11:v1.23.0
ddev-ssh-agent ddev/ddev-ssh-agent:v1.23.0
docker 27.1.1
docker-api 1.46
docker-compose v2.26.1
docker-platform linux-docker
mutagen 0.17.2
os linux
router ddev/ddev-traefik-router:v1.23.0
web ddev/ddev-webserver:v1.23.0-1
======== proxy settings ========
HTTP_PROXY=''
HTTPS_PROXY=''
http_proxy=''
NO_PROXY=''
======== DDEV global info ========
developer-mode=false
disable-http2=false
fail-on-hook-fail=false
instrumentation-opt-in=true
instrumentation-queue-size=0
instrumentation-reporting-interval=0s
instrumentation-user=
internet-detection-timeout-ms=3000
last-started-version=v1.23.0
letsencrypt-email=
mailpit-http-port=8025
mailpit-https-port=8026
mkcert-caroot=/home/alexey_korepov/.local/share/mkcert
no-bind-mounts=false
omit-containers=[]
performance-mode=none
project-tld=ddev.site
required-docker-compose-version=v2.26.1
router=traefik
router-bind-all-interfaces=false
router-http-port=80
router-https-port=443
simple-formatting=false
table-style=default
traefik-monitor-port=10999
use-docker-compose-from-path=false
use-hardened-images=false
use-letsencrypt=false
wsl2-no-windows-hosts-mgt=false
xdebug-ide-location=
======== DOCKER provider info ========
docker client location: /usr/bin/docker
docker client alternate locations:
/usr/bin/docker
/bin/docker
Docker provider: linux-docker
docker version:
Client: Docker Engine - Community
Version: 27.1.1
API version: 1.46
Go version: go1.21.12
Git commit: 6312585
Built: Tue Jul 23 19:57:14 2024
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 27.1.1
API version: 1.46 (minimum version 1.24)
Go version: go1.21.12
Git commit: cc13f95
Built: Tue Jul 23 19:57:14 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.19
GitCommit: 2bf793ef6dc9a18e00cb12efb64355c2c9d5eb41
runc:
Version: 1.7.19
GitCommit: v1.1.13-0-g58aa920
docker-init:
Version: 0.19.0
GitCommit: de40ad0
DOCKER_DEFAULT_PLATFORM=notset
Docker platform: linux-docker
Using Docker context: default (unix:///var/run/docker.sock)
docker-compose: v2.26.1
Using DOCKER_HOST=unix:///var/run/docker.sock
Docker version: 27.1.1
Able to run simple container that mounts a volume.
Able to use internet inside container.
Docker disk space:Filesystem Size Used Available Use% Mounted on
overlay 211.9G 177.5G 24.7G 88% /
======== Existing docker containers ========
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
======== mkcert information ========
/usr/bin/mkcert
/bin/mkcert
/home/alexey_korepov/.local/share/mkcert
total 8
-r-------- 1 alexey_korepov alexey_korepov 2488 Apr 14 2022 rootCA-key.pem
-rw-r----- 1 alexey_korepov alexey_korepov 1789 Apr 14 2022 rootCA.pem
======== ping attempt on ddev.site ========
PING dkdkd.ddev.site (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.045 ms
--- dkdkd.ddev.site ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.045/0.045/0.045/0.000 ms
======== Project startup ========
Network ddev_default created
Starting tryddevproject-311...
2024-07-29T09:53:20.198 Pulled image for ddev/ddev-webserver:v1.23.0-1
2024-07-29T09:53:20.199 Pulled image for busybox:stable
2024-07-29T09:53:20.2 Pulled image for ddev/ddev-traefik-router:v1.23.0
2024-07-29T09:53:20.201 Pulled image for ddev/ddev-ssh-agent:v1.23.0
2024-07-29T09:53:20.837 chowning /mnt/ddev-global-cache and /var/lib/mysql to 1000
2024-07-29T09:53:23.745 done chowning /mnt/ddev-global-cache and /var/lib/mysql to 1000
Container ddev-ssh-agent Created
Container ddev-ssh-agent Started
ssh-agent container is running: If you want to add authentication to the ssh-agent container, run 'ddev auth ssh' to enable your keys.
2024-07-29T09:53:29.786 host.docker.internal='' runtime.GOOS==linux and docker 20.10+
v1.23.0: Pulling from ddev/ddev-dbserver-mariadb-10.11
Digest: sha256:8616a3e0ad0554aa26c838819a8cf3e72ae600071c2e9e76e0fd6e32a8c97627
Status: Downloaded newer image for ddev/ddev-dbserver-mariadb-10.11:v1.23.0
docker.io/ddev/ddev-dbserver-mariadb-10.11:v1.23.0
2024-07-29T09:53:44.823 Pulled image for ddev/ddev-dbserver-mariadb-10.11:v1.23.0
2024-07-29T09:53:44.824 Pulled image for ddev/ddev-webserver:v1.23.0-1
2024-07-29T09:53:44.825 Pulled image for ddev/ddev-traefik-router:v1.23.0
2024-07-29T09:53:44.826 Pulled image for ddev/ddev-ssh-agent:v1.23.0
Building project images...
2024-07-29T09:53:44.949 Executing docker-compose -f /home/alexey_korepov/projects/tryddevproject-311/.ddev/.ddev-docker-compose-full.yaml build --progress=plain
.Project images built in 1s.
2024-07-29T09:53:45.95 Executing docker-compose -f /home/alexey_korepov/projects/tryddevproject-311/.ddev/.ddev-docker-compose-full.yaml up -d
Network ddev-tryddevproject-311_default Created
Container ddev-tryddevproject-311-web Created
Container ddev-tryddevproject-311-db Created
Container ddev-tryddevproject-311-db Started
Container ddev-tryddevproject-311-web Started
2024-07-29T09:53:47.111 Copied /home/alexey_korepov/.local/share/mkcert:CopyIntoVolume_frtwgelmhmcv into /mnt/v/mkcert in 62.526691ms
2024-07-29T09:53:47.159 Exec chown -R 1000 /mnt/v/mkcert stdout=, stderr=, err=<nil>
2024-07-29T09:53:47.288 Pushed mkcert rootca certs to ddev-global-cache/mkcert
2024-07-29T09:53:47.288 VIRTUAL_HOST=tryddevproject-311.ddev.site for web
2024-07-29T09:53:47.288 HTTP_EXPOSE=80:80,8025:8025 for web
2024-07-29T09:53:47.288 HTTPS_EXPOSE=443:80,8026:8025 for web
2024-07-29T09:53:48.126 Copied /home/alexey_korepov/projects/tryddevproject-311/.ddev/traefik:CopyIntoVolume_gpukzcebknff into /mnt/v/traefik in 48.294579ms
2024-07-29T09:53:48.173 Exec chown -R 1000 /mnt/v/traefik stdout=, stderr=, err=<nil>
2024-07-29T09:53:48.29 Copied Traefik certs in /home/alexey_korepov/projects/tryddevproject-311/.ddev/traefik/certs to ddev-global-cache/traefik
2024-07-29T09:53:48.29 Running /start.sh in ddev-webserver
Waiting for web/db containers to become ready: [web db]
2024-07-29T09:53:58.491 Copied /home/alexey_korepov/.ddev/commands:CopyIntoVolume_rdlefbynifan into /mnt/v/global-commands in 57.524252ms
2024-07-29T09:53:58.544 Exec chown -R 1000 /mnt/v/global-commands stdout=, stderr=, err=<nil>
2024-07-29T09:53:58.768 Testing to see if /mnt/ddev_config is properly mounted
Starting ddev-router if necessary...
2024-07-29T09:53:59.649 Copied /home/alexey_korepov/.ddev/traefik:CopyIntoVolume_ehpvqxjxlzch into /mnt/v/traefik in 55.867265ms
2024-07-29T09:53:59.697 Exec chown -R 1000 /mnt/v/traefik stdout=, stderr=, err=<nil>
2024-07-29T09:53:59.805 Copied global Traefik config in /home/alexey_korepov/.ddev/traefik/certs to ddev-global-cache/traefik
Container ddev-router Created
Container ddev-router Started
2024-07-29T09:54:00.203 Waiting for ddev-router to become ready. docker inspect --format "{{json .State.Health }}" ddev-router
2024-07-29T09:54:05.706 ddev-router is ready
Waiting for additional project containers to become ready...
All project containers are now ready.
Successfully started tryddevproject-311
Project can be reached at https://tryddevproject-311.ddev.site https://127.0.0.1:60002
======== Curl of site from inside container ========
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
HTTP/1.1 200 OK
Server: nginx
Date: Mon, 29 Jul 2024 05:54:07 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding
======== curl -I of http://tryddevproject-311.ddev.site from outside ========
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Mon, 29 Jul 2024 05:54:07 GMT
Server: nginx
Vary: Accept-Encoding
======== Full curl of http://tryddevproject-311.ddev.site from outside ========
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 198 0 198 0 0 2631 0 --:--:-- --:--:-- --:--:-- 2640
Success accessing database... db via TCP/IP<br />
ddev is working.<br />
The output file for Discord or issue queue is in
<b>/tmp/ddev-debug-test.txt</b><br />
file:///tmp/ddev-debug-test.txt<br />
======== Full curl of https://tryddevproject-311.ddev.site from outside ========
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 198 0 198 0 0 1770 0 --:--:-- --:--:-- --:--:-- 1783
Success accessing database... db via TCP/IP<br />
ddev is working.<br />
The output file for Discord or issue queue is in
<b>/tmp/ddev-debug-test.txt</b><br />
file:///tmp/ddev-debug-test.txt<br />
======== Project ownership on host ========
drwxr-xr-x 4 alexey_korepov alexey_korepov 4096 Jul 29 09:53 ../tryddevproject-311
======== Project ownership in container ========
drwxr-xr-x 4 alexey_korepov alexey_korepov 4096 Jul 29 05:53 //var/www/html
======== In-container filesystem ========
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/mapper/rootfs ext4 222150276 186919460 25045988 89% /var/www/html
======== Thanks for running the diagnostic! ========
Running ddev launch in 3 seconds
Running ddev launch
Waiting 10 seconds to run ddev stop --unlist
Gtk-Message: 09:54:11.658: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
running ddev stop --unlist
Container ddev-tryddevproject-311-db Stopped
Container ddev-tryddevproject-311-web Stopped
Container ddev-tryddevproject-311-web Stopped
Container ddev-tryddevproject-311-db Stopped
Container ddev-tryddevproject-311-db Removed
Container ddev-tryddevproject-311-web Removed
Network ddev-tryddevproject-311_default Removed
Project tryddevproject-311 has been stopped.
Expected Behavior
When I'm configuring a Python project from scratch, I expect that it should start well.
Actual Behavior
Actually, it doesn't start with an error:
$ ddev start
Building project images...
.Project images built in 1s.
Container ddev-od1-db Recreate
Container ddev-od1-web Recreate
Container ddev-od1-db Recreated
Container ddev-od1-web Recreated
Container ddev-od1-db Started
Container ddev-od1-web Started
Waiting for web/db containers to become ready: [web db]
Failed waiting for web/db containers to become ready: web container failed: log=, err=health check timed out after 2m0s: labels map[com.ddev.site-name:od1 com.docker.compose.service:web] timed out without becoming healthy, status=, detail= ddev-od1-web:starting - more info with [
ddev logs -s web
docker logs ddev-od1-web
docker inspect --format "{{ json .State.Health }}" ddev-od1-web | docker run -i --rm ddev/ddev-utilities jq -r
Seems this is because the healthcheck can't ensure that the web container is started well, because Python process is actually missing.
So, the solution seems to be disabling the health check for python projects? Or anyone have better ideas on how to fix this?
Steps To Reproduce
- Start configuring a new ddev project from scratch, with an empty directory.
- Choose the Project Type = python, finalize the configuration.
- Start the project using
ddev start
- See the error.
Anything else?
No response
Metadata
Assignees
Labels
No labels
Activity