Skip to content

Instantly share code, notes, and snippets.

@bserem
Created March 23, 2023 12:36
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 bserem/115e563df4c1743ef49d3ad3ddb9b8bf to your computer and use it in GitHub Desktop.
Save bserem/115e563df4c1743ef49d3ad3ddb9b8bf to your computer and use it in GitHub Desktop.
Running bash [-c /tmp/test_ddev.sh]
======= Existing project config =========
These config files were loaded for project p-ci: [/home/bserem/Development/anrt/p-ci/.ddev/config.yaml /home/bserem/Development/anrt/p-ci/.ddev/config.hooks.yaml]
name: p-ci
type: drupal9
docroot: web
php_version: 8.1
webserver_type: nginx-fpm
webimage: drud/ddev-webserver:v1.21.5
router_http_port: 80
router_https_port: 443
database: {mariadb 10.4}
hooks: map[post-import-db:[map[exec:drush cr] map[exec:drush sql:sanitize -y] map[exec:drush en stage_file_proxy -y] map[exec:drush uli] map[exec:drush cr] map[exec:drush sql:sanitize -y] map[exec:drush en stage_file_proxy -y] map[exec:drush uli]] post-start:[map[exec-host:ddev auth ssh] map[exec-host:ddev auth ssh]] pre-start:[map[exec-host:cp .ddev/settings.ddev.annertech.php web/sites/default/settings.local.php] map[exec-host:cp .ddev/settings.ddev.annertech.php web/sites/default/settings.local.php]]]
mailhog_port: 8025
mailhog_https_port: 8026
phpmyadmin_port: 8036
phpmyadmin_https_port: 8037
project_tld: ddev.site
use_dns_when_possible: true
composer_version: 2
nodejs_version: 16
default_container_timeout: 120
======= Creating dummy project named tryddevproject-18312 in ../tryddevproject-18312 =========
OS Information: Linux dragoon 6.1.0-3-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.8-1 (2023-01-29) x86_64 GNU/Linux
User information: uid=1000(bserem) gid=1000(bserem) groups=1000(bserem),4(adm),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),109(netdev),112(bluetooth),116(scanner),119(lpadmin),131(i2c),997(docker),998(nordvpn)
DDEV version: ITEM VALUE
DDEV version v1.21.6
architecture amd64
db drud/ddev-dbserver-mariadb-10.4:v1.21.5
dba phpmyadmin:5
ddev-ssh-agent drud/ddev-ssh-agent:v1.21.5
docker 23.0.0
docker-compose v2.15.1
docker-platform dragoon
mutagen 0.16.0
os linux
router drud/ddev-router:v1.21.5
web drud/ddev-webserver:v1.21.5
PROXY settings: HTTP_PROXY='' HTTPS_PROXY='' http_proxy='' NO_PROXY=''
======= DDEV global info =========
Global configuration:
instrumentation-opt-in=true
omit-containers=[]
mutagen-enabled=false
nfs-mount-enabled=false
router-bind-all-interfaces=false
internet-detection-timeout-ms=3000
disable-http2=false
use-letsencrypt=false
letsencrypt-email=
table-style=default
simple-formatting=false
auto-restart-containers=false
use-hardened-images=false
fail-on-hook-fail=false
required-docker-compose-version=
use-docker-compose-from-path=false
project-tld=
xdebug-ide-location=
no-bind-mounts=false
use-traefik=false
wsl2-no-windows-hosts-mgt=false
======= DOCKER info =========
docker location: -rwxr-xr-x 1 root root 35659088 Φεβ 1 19:43 /usr/bin/docker
docker version:
Client: Docker Engine - Community
Version: 23.0.0
API version: 1.42
Go version: go1.19.5
Git commit: e92dd87
Built: Wed Feb 1 17:43:19 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 23.0.0
API version: 1.42 (minimum version 1.12)
Go version: go1.19.5
Git commit: d7573ab
Built: Wed Feb 1 17:43:19 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.16
GitCommit: 31aa4358a36870b21a992d3ad2bef29e1d693bec
runc:
Version: 1.1.4
GitCommit: v1.1.4-0-g5fd4c4d
docker-init:
Version: 0.19.0
GitCommit: de40ad0
DOCKER_DEFAULT_PLATFORM=notset
======= Mutagen Info =========
Mutagen is installed in ddev, version=0.15.1
--------------------------------------------------------------------------------
No synchronization sessions found
--------------------------------------------------------------------------------
======= Docker Info =========
Docker platform: dragoon
Using docker context: default (unix:///var/run/docker.sock)
docker-compose: v2.15.1
Using DOCKER_HOST=unix:///var/run/docker.sock
Docker version: 23.0.0
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 914.9G 550.5G 317.8G 63% /
unable to create project at project root '/home/bserem/Development/contrib': project root /home/bserem/Development/contrib does not exist
[reducted existing projects info]
Creating a new ddev project config in the current directory (/home/bserem/Development/anrt/tryddevproject-18312)
Once completed, your configuration will be written to /home/bserem/Development/anrt/tryddevproject-18312/.ddev/config.yaml
Configuring unrecognized codebase as project type 'php' at /home/bserem/Development/anrt/tryddevproject-18312/web
Configuration complete. You may now run 'ddev start'.
Network ddev_default created
Starting tryddevproject-18312...
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.
The hostname tryddevproject-18312.ddev.site is not currently resolvable, trying to add it to the hosts file
ddev needs to run with administrative privileges.
You may be required to enter your password for sudo or allow escalation. ddev is about to issue the command:
sudo --preserve-env=HOME /usr/bin/ddev hostname tryddevproject-18312.ddev.site 127.0.0.1
[sudo] password for bserem:
Not populating custom commands or hostadditions because running with root privileges
Network ddev-tryddevproject-18312_default Created
Container ddev-tryddevproject-18312-db Started
Container ddev-tryddevproject-18312-dba Started
Container ddev-tryddevproject-18312-web Started
Container ddev-router Started
Successfully started tryddevproject-18312
Project can be reached at https://tryddevproject-18312.ddev.site https://127.0.0.1:32823
======== Curl of site from inside container:
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 23 Mar 2023 12:32:54 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding
======== curl -I of http://tryddevproject-18312.ddev.site from outside:
HTTP/1.1 200 OK
Server: nginx/1.20.1
Date: Thu, 23 Mar 2023 12:32:54 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding
======== full curl of http://tryddevproject-18312.ddev.site from outside:
Success accessing database... db via TCP/IP
ddev is working. You will want to delete this project with 'ddev delete -Oy tryddevproject-18312'
======== Project ownership on host:
drwxr-xr-x 4 bserem bserem 4096 Μαρ 23 14:31 ../tryddevproject-18312
======== Project ownership in container:
drwxr-xr-x 4 bserem bserem 4096 Mar 23 12:31 /var/www/html
======== In-container filesystem:
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/mapper/nvme0n1p2_crypt ext4 959326288 577414096 333107380 64% /var/www/html
======== curl again of tryddevproject-18312 from host:
Success accessing database... db via TCP/IP
ddev is working. You will want to delete this project with 'ddev delete -Oy tryddevproject-18312'
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
If you're brave and you have jq you can delete all tryddevproject instances with this one-liner:
ddev delete -Oy $(ddev list -j |jq -r .raw[].name | grep tryddevproject)
In the future ddev debug test will also provide this option.
Please delete this project after debugging with 'ddev delete -Oy tryddevproject-18312'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment