Skip to content

Instantly share code, notes, and snippets.

@therobyouknow
Created August 11, 2022 21:38
Show Gist options
  • Save therobyouknow/407fe334d59a66d3d3a040edf6d13697 to your computer and use it in GitHub Desktop.
Save therobyouknow/407fe334d59a66d3d3a040edf6d13697 to your computer and use it in GitHub Desktop.
ddev debug test for Unable to locate package certutil issue with ddev
robdaviswork@DELL7220:~/work/scratchpads/scratchpads2/sites/scratchpads$ ddev debug test
Running bash [-c /tmp/test_ddev.sh]
OS Information: Linux DELL7220 5.10.16.3-microsoft-standard-WSL2 #1 SMP Fri Apr 2 22:23:49 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
User information: uid=1000(robdaviswork) gid=1000(robdaviswork) groups=1000(robdaviswork),4(adm),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),117(netdev),1001(docker)
DDEV version: ITEM VALUE
DDEV version v1.20.0
architecture amd64
db drud/ddev-dbserver-mariadb-10.4:v1.20.0
dba phpmyadmin:5
ddev-ssh-agent drud/ddev-ssh-agent:v1.20.0
docker 20.10.17
docker-compose v2.9.0
docker-platform docker-desktop
mutagen 0.15.0
os linux
router drud/ddev-router:v1.20.0
web drud/ddev-webserver:v1.20.0
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
no-bind-mounts=false
======= DOCKER info =========
docker location: lrwxrwxrwx 1 root root 48 Aug 11 19:08 /usr/bin/docker -> /mnt/wsl/docker-desktop/cli-tools/usr/bin/docker
docker version:
Client: Docker Engine - Community
Cloud integration: v1.0.28
Version: 20.10.17
API version: 1.41
Go version: go1.17.11
Git commit: 100c701
Built: Mon Jun 6 23:03:17 2022
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Desktop
Engine:
Version: 20.10.17
API version: 1.41 (minimum version 1.12)
Go version: go1.17.11
Git commit: a89b842
Built: Mon Jun 6 23:01:23 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.6
GitCommit: 10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
runc:
Version: 1.1.2
GitCommit: v1.1.2-0-ga916309
docker-init:
Version: 0.19.0
GitCommit: de40ad0
======= Mutagen Info =========
======= Docker Info =========
Docker platform: docker-desktop
Using docker context: default (unix:///var/run/docker.sock)
docker-compose: v2.9.0
Using DOCKER_HOST=unix:///var/run/docker.sock
Docker version: 20.10.17
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 251.0G 4.6G 233.6G 2% /
Container ddev-scratchpads-dev-dba Removed
Container ddev-scratchpads-dev-web Removed
Container ddev-scratchpads-dev-solr Removed
Container ddev-scratchpads-dev-db Removed
Network ddev-scratchpads-dev_default Removed
Project scratchpads-dev 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
Creating a new ddev project config in the current directory (/home/robdaviswork/tmp/tryddevproject-3989)
Once completed, your configuration will be written to /home/robdaviswork/tmp/tryddevproject-3989/.ddev/config.yaml
Found a php codebase at /home/robdaviswork/tmp/tryddevproject-3989
Configuration complete. You may now run 'ddev start'.
Network ddev_default created
Starting tryddevproject-3989...
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.
Pushed mkcert rootca certs to ddev-global-cache/mkcert
v1.20.0: Pulling from drud/ddev-dbserver-mariadb-10.4
d7bfe07ed847: Pull complete
59dcb80bbedb: Pull complete
ac6c41888e0f: Pull complete
de82bf1cd459: Pull complete
316c0826d235: Pull complete
b82e623f5d9e: Pull complete
3daba1f86bc0: Pull complete
d04945d0545a: Pull complete
3088ccc5e6c7: Pull complete
ebdc0a737326: Pull complete
bd9954256270: Pull complete
1d92cbc5a67b: Pull complete
4f4fb700ef54: Pull complete
5de1561b8b50: Pull complete
9c4278c1946c: Pull complete
33b7fa3aed5d: Pull complete
33d10c824dc2: Pull complete
7c92dd225799: Pull complete
2253a94d0ea6: Pull complete
1f4b4747ca3c: Pull complete
84b2a4c0a8e0: Pull complete
1e680aa58765: Pull complete
97accb001963: Pull complete
460b1bfcfd8a: Pull complete
05c0b4b0c5f3: Pull complete
64d27f245dc5: Pull complete
Digest: sha256:c35ba34c7d1b42af73e05c0f2f8eeb5cf9664966dd1864b9d0a1ffba9ce61ea5
Status: Downloaded newer image for drud/ddev-dbserver-mariadb-10.4:v1.20.0
docker.io/drud/ddev-dbserver-mariadb-10.4:v1.20.0
The hostname tryddevproject-3989.ddev.site is not currently resolvable, trying to add it to the hosts file
ddev needs to add an entry to your hostfile.
It will require administrative privileges via the sudo command, so you may be required
to enter your password for sudo. ddev is about to issue the command:
You are on WSL2, so should also manually execute 'sudo ddev hostname tryddevproject-3989.ddev.site 127.0.0.1' on Windows if you use a Windows browser.
sudo /usr/local/bin/ddev hostname tryddevproject-3989.ddev.site 127.0.0.1
Please enter your password if prompted.
Running Command=sudo /usr/local/bin/ddev hostname tryddevproject-3989.ddev.site 127.0.0.1
Network ddev-tryddevproject-3989_default Created
Container ddev-tryddevproject-3989-dba Started
Container ddev-tryddevproject-3989-db Started
Container ddev-tryddevproject-3989-db Healthy
Container ddev-tryddevproject-3989-web Started
Container ddev-router Started
Successfully started tryddevproject-3989
Project can be reached at https://tryddevproject-3989.ddev.site https://127.0.0.1:52767
======== Curl of site from inside container:
#HTTP/1.1 200 OK
Server: nginx
Date: Thu, 11 Aug 2022 21:34:02 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding
======== Curl of site from outside:
HTTP/1.1 200 OK
Server: nginx/1.20.1
Date: Thu, 11 Aug 2022 21:34:03 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding
======== Project ownership on host:
drwxr-xr-x 3 robdaviswork robdaviswork 4096 Aug 11 22:33 /home/robdaviswork/tmp/tryddevproject-3989
======== Project ownership in container:
drwxr-xr-x 3 robdaviswork robdaviswork 4096 Aug 11 21:33 /var/www/html
======== In-container filesystem:
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/sde ext4 263174212 2625312 247110744 2% /var/www/html
Success accessing database... db via TCP/IP
ddev is working. You will want to delete this project with 'ddev delete -Oy tryddevproject-3989
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/robdaviswork/tmp/tryddevproject-3989/.ddev/.global_commands/host/launch: line 61: xdg-open: command not found
Failed to run launch ; error=exit status 127
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-3989'
robdaviswork@DELL7220:~/work/scratchpads/scratchpads2/sites/scratchpads$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment