Skip to content

Instantly share code, notes, and snippets.

@Mon-Tea
Last active May 12, 2021 20:34
Show Gist options
  • Save Mon-Tea/e5a2a1672ba9cd3efe513055b66981a5 to your computer and use it in GitHub Desktop.
Save Mon-Tea/e5a2a1672ba9cd3efe513055b66981a5 to your computer and use it in GitHub Desktop.
ddev diagnostic with test_ddev.sh (ddev 1.17.1)
$ test_ddev.sh
OS Information: Darwin B-MAC-33 19.6.0 Darwin Kernel Version 19.6.0: Tue Nov 10 00:10:30 PST 2020; root:xnu-6153.141.10~1/RELEASE_X86_64 x86_64
DDEV-Local version v1.17.1
architecture amd64
db drud/ddev-dbserver-mariadb-10.3:v1.17.0
dba phpmyadmin:5
ddev-ssh-agent drud/ddev-ssh-agent:v1.17.0
docker 20.10.6
docker-compose 1.29.1
os darwin
router drud/ddev-router:v1.17.0
web drud/ddev-webserver:v1.17.1
docker location: lrwxr-xr-x 1 root admin 54 12 Apr 10:16 /usr/local/bin/docker -> /Applications/Docker.app/Contents/Resources/bin/docker
Docker Desktop Version: Docker Desktop for Mac 3.3.3 build 64133
Could not remove existing custom TLS certificates: service web does not exist in project nutella-api (state=doesnotexist)
Removing container: ddev-nutella-api-db
Project nutella-api has been stopped.
The ddev-ssh-agent container has been removed. When you start it again you will have to use 'ddev auth ssh' to provide key authentication again.
Existing docker containers:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a0490e71cc6f busybox:latest "sh -c 'mkdir -p /mn…" 4 months ago Created practical_yonath
6c34630f44a7 busybox:latest "sh -c 'mkdir -p /mn…" 4 months ago Created flamboyant_kalam
caaab235af7d 34eb5c183454 "/bin/sh -c 'echo \"u…" 5 months ago Exited (1) 5 months ago silly_nobel
74329604b14f 34eb5c183454 "/bin/sh -c 'echo \"u…" 5 months ago Exited (1) 5 months ago elated_jones
docker can run busybox image
Creating a new ddev project config in the current directory (/Users/montea/tmp/tryddevproject-10532)
Once completed, your configuration will be written to /Users/montea/tmp/tryddevproject-10532/.ddev/config.yaml
Found a php codebase at /Users/montea/tmp/tryddevproject-10532
Project type has no settings paths configured, so not creating settings file.
Configuration complete. You may now run 'ddev start'.
Starting tryddevproject-10532...
Building ddev-ssh-agent
Creating ddev-ssh-agent ...
Creating ddev-ssh-agent ... done
ssh-agent container is running: If you want to add authentication to the ssh-agent container, run 'ddev auth ssh' to enable your keys.
Pushed mkcert rootca certs to ddev-global-cache/mkcert
Building db
Building web
Creating ddev-tryddevproject-10532-db ...
ERROR: for ddev-tryddevproject-10532-db UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
ERROR: for db UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).
Failed to start tryddevproject-10532: Failed to run docker-compose [-f /Users/montea/tmp/tryddevproject-10532/.ddev/.ddev-docker-compose-full.yaml up --build -d], err='exit status 1', stdout='Docker Compose is now in the Docker CLI, try `docker compose up`
Step 1/6 : ARG BASE_IMAGE
Step 2/6 : FROM $BASE_IMAGE
---> 941b404725f0
Step 3/6 : ARG username
---> Using cache
---> 14a3de603851
Step 4/6 : ARG uid
---> Using cache
---> 5552375fcaa6
Step 5/6 : ARG gid
---> Using cache
---> 44c2e0a19c26
Step 6/6 : RUN (groupadd --gid $gid "$username" || groupadd "$username" || true) && (useradd -l -m -s "/bin/bash" --gid "$username" --comment '' --uid $uid "$username" || useradd -l -m -s "/bin/bash" --gid "$username" --comment '' "$username")
---> Using cache
---> 9f32cdc3b124
Successfully built 9f32cdc3b124
Successfully tagged drud/ddev-dbserver-mariadb-10.3:v1.17.0-tryddevproject-10532-built
Step 1/6 : ARG BASE_IMAGE
Step 2/6 : FROM $BASE_IMAGE
---> f57c8057c9b4
Step 3/6 : ARG username
---> Using cache
---> 7c9fd69e4877
Step 4/6 : ARG uid
---> Using cache
---> c790f9194c5b
Step 5/6 : ARG gid
---> Using cache
---> 5acae46e7636
Step 6/6 : RUN (groupadd --gid $gid "$username" || groupadd "$username" || true) && (useradd -l -m -s "/bin/bash" --gid "$username" --comment '' --uid $uid "$username" || useradd -l -m -s "/bin/bash" --gid "$username" --comment '' "$username")
---> Using cache
---> 41e2118c3ce0
Successfully built 41e2118c3ce0
Successfully tagged drud/ddev-webserver:v1.17.1-tryddevproject-10532-built
', stderr='Building db
Building web
Creating ddev-tryddevproject-10532-db ...
ERROR: for ddev-tryddevproject-10532-db UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
ERROR: for db UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).'
NAME TYPE LOCATION URL STATUS
19 projects php/typo3 … stopped
tryddevproject-10532 php ~/tmp/tryddevproject-10532 stopped
db:
6 projects php/typo3 … stopped
DDEV ROUTER STATUS: stopped
The router is not yet healthy. Your projects may not be accessible.
If it doesn't become healthy try running 'ddev start' on a project to recreate it.
========= web container healthcheck ======
Error: No such object: ddev-tryddevproject-10532-web
Thanks for running the diagnostic. It was successful.
Please provide the output of this script in a new gist at gist.github.com
========================================================================================================================
Running ddev launch in 5 seconds
Pushed mkcert rootca certs to ddev-global-cache/mkcert
Building db
Building web
Recreating ddev-tryddevproject-10532-db ...
ERROR: for ddev-tryddevproject-10532-db UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
ERROR: for db UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).
Failed to start project for custom command: Failed to run docker-compose [-f /Users/montea/tmp/tryddevproject-10532/.ddev/.ddev-docker-compose-full.yaml up --build -d], err='exit status 1', stdout='Docker Compose is now in the Docker CLI, try `docker compose up`
Step 1/6 : ARG BASE_IMAGE
Step 2/6 : FROM $BASE_IMAGE
---> 941b404725f0
Step 3/6 : ARG username
---> Using cache
---> 14a3de603851
Step 4/6 : ARG uid
---> Using cache
---> 5552375fcaa6
Step 5/6 : ARG gid
---> Using cache
---> 44c2e0a19c26
Step 6/6 : RUN (groupadd --gid $gid "$username" || groupadd "$username" || true) && (useradd -l -m -s "/bin/bash" --gid "$username" --comment '' --uid $uid "$username" || useradd -l -m -s "/bin/bash" --gid "$username" --comment '' "$username")
---> Using cache
---> 9f32cdc3b124
Successfully built 9f32cdc3b124
Successfully tagged drud/ddev-dbserver-mariadb-10.3:v1.17.0-tryddevproject-10532-built
Step 1/6 : ARG BASE_IMAGE
Step 2/6 : FROM $BASE_IMAGE
---> f57c8057c9b4
Step 3/6 : ARG username
---> Using cache
---> 7c9fd69e4877
Step 4/6 : ARG uid
---> Using cache
---> c790f9194c5b
Step 5/6 : ARG gid
---> Using cache
---> 5acae46e7636
Step 6/6 : RUN (groupadd --gid $gid "$username" || groupadd "$username" || true) && (useradd -l -m -s "/bin/bash" --gid "$username" --comment '' --uid $uid "$username" || useradd -l -m -s "/bin/bash" --gid "$username" --comment '' "$username")
---> Using cache
---> 41e2118c3ce0
Successfully built 41e2118c3ce0
Successfully tagged drud/ddev-webserver:v1.17.1-tryddevproject-10532-built
', stderr='Building db
Building web
Recreating ddev-tryddevproject-10532-db ...
ERROR: for ddev-tryddevproject-10532-db UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
ERROR: for db UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)
An HTTP request took too long to complete. Retry with --verbose to obtain debug information.
If you encounter this issue regularly because of slow network conditions, consider setting COMPOSE_HTTP_TIMEOUT to a higher value (current value: 60).'
Please delete this project after debugging with 'ddev delete -Oy tryddevproject-10532'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment