Skip to content

Instantly share code, notes, and snippets.

@stevekessler
Created July 13, 2021 04:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevekessler/de6164817a3236adccbbe341a71a083e to your computer and use it in GitHub Desktop.
Save stevekessler/de6164817a3236adccbbe341a71a083e to your computer and use it in GitHub Desktop.
20210712 DDEV Diagnostic
steve@Steve:~/d8taxonomy$ bash test_ddev.sh
OS Information: Linux Steve 5.4.72-microsoft-standard-WSL2 #1 SMP Wed Oct 28 23:40:43 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
DDEV-Local version v1.17.7
architecture amd64
db drud/ddev-dbserver-mariadb-10.3:v1.17.7
dba phpmyadmin:5
ddev-ssh-agent drud/ddev-ssh-agent:v1.17.0
docker 20.10.7
docker-compose 1.29.2
os linux
router drud/ddev-router:v1.17.6
web drud/ddev-webserver:v1.17.7
docker location: -rwxr-xr-x 1 root root 71578680 Jun 2 05:54 /usr/bin/docker
Removed any existing custom TLS certificates
Stopping ddev-d8taxonomy-web ...
Stopping ddev-d8taxonomy-dba ...
Stopping ddev-d8taxonomy-db ...
Stopping ddev-d8taxonomy-web ... done
Stopping ddev-d8taxonomy-dba ... done
Stopping ddev-d8taxonomy-db ... done
Removing container: ddev-d8taxonomy-web
Removing container: ddev-d8taxonomy-dba
Removing container: ddev-d8taxonomy-db
Project d8taxonomy 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
docker can run busybox image
Creating a new ddev project config in the current directory (/home/steve/tmp/tryddevproject-4985)
Once completed, your configuration will be written to /home/steve/tmp/tryddevproject-4985/.ddev/config.yaml
Found a php codebase at /home/steve/tmp/tryddevproject-4985
Project type has no settings paths configured, so not creating settings file.
Configuration complete. You may now run 'ddev start'.
Starting tryddevproject-4985...
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
Running Command=ip address show dev docker0
Building db
Building web
Creating ddev-tryddevproject-4985-db ...
Creating ddev-tryddevproject-4985-db ... done
Creating ddev-tryddevproject-4985-dba ...
Creating ddev-tryddevproject-4985-web ...
Creating ddev-tryddevproject-4985-dba ... done
Creating ddev-tryddevproject-4985-web ... done
Creating ddev-router ...
Creating ddev-router ... error
ERROR: for ddev-router Cannot start service ddev-router: Ports are not available: listen tcp 127.0.0.1:80: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
ERROR: for ddev-router Cannot start service ddev-router: Ports are not available: listen tcp 127.0.0.1:80: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
Encountered errors while bringing up the project.
Failed to start tryddevproject-4985: failed to start ddev-router: Failed to run docker-compose [-f /home/steve/.ddev/.router-compose-full.yaml -p ddev-router up -d], err='exit status 1', stdout='', stderr='Creating ddev-router ...
Creating ddev-router ... error
ERROR: for ddev-router Cannot start service ddev-router: Ports are not available: listen tcp 127.0.0.1:80: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
ERROR: for ddev-router Cannot start service ddev-router: Ports are not available: listen tcp 127.0.0.1:80: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
Encountered errors while bringing up the project.'
NAME TYPE LOCATION URL STATUS
d8taxonomy drupal8 ~/d8taxonomy stopped
tryddevproject-4985 php ~/tmp/tryddevproject-4985 starting
db: running
DDEV ROUTER STATUS:
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 ======
{"Status":"starting","FailingStreak":0,"Log":[{"Start":"2021-07-13T04:26:24.7803031Z","End":"2021-07-13T04:26:24.8472036Z","ExitCode":1,"Output":"phpstatus: FAILED /var/www/html: OK mailhog: FAILED "}]}
============= ddev-router healthcheck =========
null
Start failed. Please provide this output and the contents of ~/tmp/tryddevproject-4985/logs.txt in a new gist at gist.github.com
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
/home/steve/tmp/tryddevproject-4985/.ddev/commands/host/launch: line 61: xdg-open: command not found
Failed to run launch ; error=exit status 127
Please delete this project after debugging with 'ddev delete -Oy tryddevproject-4985'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment