Skip to content

Instantly share code, notes, and snippets.

@henideepak
Last active December 15, 2022 14:24
Show Gist options
  • Save henideepak/fce2db8200c3975791bb9b54da341ae1 to your computer and use it in GitHub Desktop.
Save henideepak/fce2db8200c3975791bb9b54da341ae1 to your computer and use it in GitHub Desktop.
ddev status
+ set -o errexit nounset pipefail
+ rm -f /tmp/healthy
+ DDEV_PHP_VERSION=7.4
+ DDEV_WEBSERVER_TYPE=nginx-fpm
+ '[' -n 7.4 ']'
+ update-alternatives --set php /usr/bin/php7.4
update-alternatives: using /usr/bin/php7.4 to provide /usr/bin/php (php) in manual mode
update-alternatives: warning: skip creation of /usr/share/man/man1/php.1.gz because associated file /usr/share/man/man1/php7.4.1.gz (of link group php) doesn't exist
+ ln -sf /usr/sbin/php-fpm7.4 /usr/sbin/php-fpm
+ export PHP_INI=/etc/php/7.4/fpm/php.ini
+ PHP_INI=/etc/php/7.4/fpm/php.ini
+ '[' '!' -z ']'
+ '[' -d /mnt/ddev_config/php ']'
+ '[' -d /mnt/ddev_config/nginx_full ']'
+ rm -rf /etc/nginx/sites-enabled
+ cp -r /mnt/ddev_config/nginx_full /etc/nginx/sites-enabled/
+ '[' -d /mnt/ddev_config/apache ']'
+ rm -rf /etc/apache2/sites-enabled
+ cp -r /mnt/ddev_config/apache /etc/apache2/sites-enabled
+ '[' drupal8 = backdrop ']'
+ '[' drupal8 = drupal6 ']'
+ '[' drupal8 = drupal7 ']'
+ '[' drupal8 = backdrop ']'
++ id -un
++ id -gn
+ printf '\nexport APACHE_RUN_USER=deepak\nexport APACHE_RUN_GROUP=deepak\n'
+ a2enmod access_compat alias auth_basic authn_core authn_file authz_core authz_host authz_user autoindex deflate dir env filter mime mpm_prefork negotiation reqtimeout rewrite setenvif status
Considering dependency authn_core for access_compat:
Module authn_core already enabled
Module access_compat already enabled
Module alias already enabled
Considering dependency authn_core for auth_basic:
Module authn_core already enabled
Module auth_basic already enabled
Module authn_core already enabled
Module authn_file already enabled
Module authz_core already enabled
Considering dependency authz_core for authz_host:
Module authz_core already enabled
Module authz_host already enabled
Considering dependency authz_core for authz_user:
Module authz_core already enabled
Module authz_user already enabled
Module autoindex already enabled
Considering dependency filter for deflate:
Module filter already enabled
Module deflate already enabled
Module dir already enabled
Module env already enabled
Module filter already enabled
Module mime already enabled
Considering conflict mpm_event for mpm_prefork:
Considering conflict mpm_worker for mpm_prefork:
Enabling module mpm_prefork.
Module negotiation already enabled
Module reqtimeout already enabled
Enabling module rewrite.
Module setenvif already enabled
Module status already enabled
To activate the new configuration, you need to run:
service apache2 restart
+ a2enconf charset localized-error-pages other-vhosts-access-log security serve-cgi-bin
Conf charset already enabled
Conf localized-error-pages already enabled
Conf other-vhosts-access-log already enabled
Conf security already enabled
Conf serve-cgi-bin already enabled
+ '[' nginx-fpm = apache-fpm ']'
+ '[' false = true ']'
+ disable_xdebug
Disabled xdebug
+ phpenmod assert
+ ls /var/www/html
+ sudo mkdir -p /mnt/ddev-global-cache/terminus/cache
+ sudo mkdir -p /mnt/ddev-global-cache/bashhistory/spl-web /mnt/ddev-global-cache/mysqlhistory/spl-web /mnt/ddev-global-cache/nvm_dir/spl-web /mnt/ddev-global-cache/npm /mnt/ddev-global-cache/yarn/classic /mnt/ddev-global-cache/yarn/berry
++ id -u
++ id -g
+ sudo chown -R 1000:1000 /mnt/ddev-global-cache/ /var/lib/php
+ cd
+ yarn config set cache-folder /mnt/ddev-global-cache/yarn/classic
yarn config v1.22.19
success Set "cache-folder" to "/mnt/ddev-global-cache/yarn/classic".
Done in 0.02s.
+ mkdir -p /home/deepak/.yarn/berry
+ ln -sf /mnt/ddev-global-cache/yarn/berry /home/deepak/.yarn/berry/cache
+ ln -sf /mnt/ddev-global-cache/nvm_dir/spl-web /home/deepak/.nvm
+ '[' '!' -f /home/deepak/.nvm/nvm.sh ']'
+ install_nvm.sh
=> nvm is already installed in /home/deepak/.nvm, trying to update using git
fatal: unable to access 'https://github.com/nvm-sh/nvm.git/': Failed to connect to github.com port 443: Connection timed out
Failed to update nvm with v0.39.2, run 'git fetch' in /home/deepak/.nvm yourself.
+ true
+ '[' -d /mnt/ddev_config/.homeadditions ']'
+ cp -r /mnt/ddev_config/.homeadditions/. /home/deepak/
+ sudo mkdir -p /mnt/ddev-global-cache/mkcert
++ id -u
++ id -g
+ sudo chown -R 1000:1000 /mnt/ddev-global-cache/
+ '[' '!' -f /mnt/ddev-global-cache/mkcert/rootCA.pem ']'
+ mkcert -install
Using the local CA at "/mnt/ddev-global-cache/mkcert" ✨
The local CA is now installed in the system trust store! ⚡️
+ CAROOT=/mnt/ddev-global-cache/mkcert
+ mkcert -cert-file /etc/ssl/certs/master.crt -key-file /etc/ssl/certs/master.key spl.ddev.site localhost 127.0.0.1 127.0.0.1 web ddev-spl-web ddev-spl-web.ddev
Using the local CA at "/mnt/ddev-global-cache/mkcert" ✨
Created a new certificate valid for the following names 📜
- "spl.ddev.site"
- "localhost"
- "127.0.0.1"
- "127.0.0.1"
- "web"
- "ddev-spl-web"
- "ddev-spl-web.ddev"
The certificate is at "/etc/ssl/certs/master.crt" and the key at "/etc/ssl/certs/master.key" ✅
=> Server started
+ echo 'Server started'
+ unset PHP_IDE_CONFIG
+ exec /usr/bin/supervisord -n -c /etc/supervisor/supervisord-nginx-fpm.conf
2022-12-15 14:12:26,891 INFO Included extra file "/etc/supervisor/php-fpm.conf" during parsing
2022-12-15 14:12:26,891 INFO Included extra file "/etc/supervisor/conf.d/mailhog.conf" during parsing
2022-12-15 14:12:26,891 INFO Included extra file "/etc/supervisor/conf.d/supervisor.conf" during parsing
2022-12-15 14:12:26,893 INFO RPC interface 'supervisor' initialized
2022-12-15 14:12:26,893 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2022-12-15 14:12:26,893 INFO supervisord started with pid 1
2022-12-15 14:12:27,896 INFO spawned: 'child_exit_monitor' with pid 4997
2022-12-15 14:12:27,899 INFO spawned: 'php-fpm' with pid 4998
2022-12-15 14:12:27,902 INFO spawned: 'nginx' with pid 4999
2022-12-15 14:12:27,905 INFO spawned: 'mailhog' with pid 5000
[15-Dec-2022 14:12:27] NOTICE: fpm is running, pid 4998
[15-Dec-2022 14:12:27] NOTICE: ready to handle connections
[15-Dec-2022 14:12:27] NOTICE: systemd monitor interval set to 10000ms
2022-12-15 14:12:28,981 INFO success: child_exit_monitor entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-12-15 14:12:28,982 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-12-15 14:12:28,982 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2022-12-15 14:12:28,982 INFO success: mailhog entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
@henideepak
Copy link
Author

henideepak commented Dec 15, 2022

docker inspect --format "{{json .State.Health }}" ddev-spl-web
{"Status":"healthy","FailingStreak":0,"Log":[{"Start":"2022-12-15T19:42:23.515736313+05:30","End":"2022-12-15T19:42:23.636839673+05:30","ExitCode":1,"Output":"phpstatus: FAILED /var/www/html: OK mailhog: FAILED "},{"Start":"2022-12-15T19:42:24.640078398+05:30","End":"2022-12-15T19:42:24.726014841+05:30","ExitCode":1,"Output":"phpstatus: FAILED /var/www/html: OK mailhog: FAILED "},{"Start":"2022-12-15T19:42:25.729887917+05:30","End":"2022-12-15T19:42:25.808996848+05:30","ExitCode":1,"Output":"phpstatus: FAILED /var/www/html: OK mailhog: FAILED "},{"Start":"2022-12-15T19:42:26.813740159+05:30","End":"2022-12-15T19:42:26.898106247+05:30","ExitCode":1,"Output":"phpstatus: FAILED /var/www/html: OK mailhog: FAILED "},{"Start":"2022-12-15T19:42:27.903873709+05:30","End":"2022-12-15T19:42:28.006712062+05:30","ExitCode":0,"Output":"phpstatus: OK /var/www/html: OK mailhog: OK "}]}

@henideepak
Copy link
Author

Running bash [-c /tmp/test_ddev.sh]
OS Information: Linux deepak-H510M-H 5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
User information: uid=1000(deepak) gid=1000(deepak) groups=1000(deepak),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),122(lpadmin),134(lxd),135(sambashare),1002(docker)
DDEV version: ITEM VALUE
DDEV version v1.21.3
architecture amd64
db drud/ddev-dbserver-mariadb-10.4:v1.21.3
dba phpmyadmin:5
ddev-ssh-agent drud/ddev-ssh-agent:v1.21.3
docker 20.10.17
docker-compose v2.10.2
docker-platform deepak-H510M-H
mutagen 0.16.0
os linux
router drud/ddev-router:v1.21.3
web drud/ddev-webserver:v1.21.3
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
project-tld=

======= DOCKER info =========
docker location: -rwxr-xr-x 1 root root 50721976 Oct 25 23:29 /usr/bin/docker
docker version:
Client: Docker Engine - Community
Version: 20.10.21
API version: 1.41
Go version: go1.18.7
Git commit: baeda1f
Built: Tue Oct 25 18:01:58 2022
OS/Arch: linux/amd64
Context: default
Experimental: true

Server:
Engine:
Version: 20.10.17
API version: 1.41 (minimum version 1.12)
Go version: go1.18.5
Git commit: a89b842
Built: Mon Oct 17 06:20:42 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v1.6.6
GitCommit: 10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
runc:
Version: 1.1.2
GitCommit:
docker-init:
Version: 0.19.0
GitCommit: de40ad0
DOCKER_DEFAULT_PLATFORM=notset
======= Mutagen Info =========
======= Docker Info =========
Docker platform: deepak-H510M-H
Using docker context: default (unix:///var/run/docker.sock)
docker-compose: v2.10.2
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 904.5G 84.7G 819.9G 9% /

Container ddev-spl-dba Removed
Container ddev-spl-db Removed
Container ddev-spl-web Removed
Network ddev-spl_default Removed
Project spl has been stopped.
Container ddev-tryddevproject-26969-db Removed
Container ddev-tryddevproject-26969-dba Removed
Container ddev-tryddevproject-26969-web Removed
Network ddev-tryddevproject-26969_default Removed
Project tryddevproject-26969 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/deepak/Documents/ddev/tryddevproject-16694)
Once completed, your configuration will be written to /home/deepak/Documents/ddev/tryddevproject-16694/.ddev/config.yaml

Configuring unrecognized codebase as project type 'php' at /home/deepak/Documents/ddev/tryddevproject-16694/web
Configuration complete. You may now run 'ddev start'.
Network ddev_default created
Starting tryddevproject-16694...
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
Network ddev-tryddevproject-16694_default Created
Container ddev-tryddevproject-16694-web Started
Container ddev-tryddevproject-16694-db Started
Container ddev-tryddevproject-16694-dba Started
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:tryddevproject-16694 com.docker.compose.service:web] timed out without becoming healthy, status=
Container ddev-router Started
Successfully started tryddevproject-16694
Project can be reached at https://tryddevproject-16694.ddev.site https://127.0.0.1:49230
======== Curl of site from inside container:
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 15 Dec 2022 14:22:53 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding

======== Curl of site from outside:
HTTP/1.1 504 Gateway Time-out
Server: nginx/1.20.1
Date: Thu, 15 Dec 2022 14:23:53 GMT
Content-Type: text/html
Content-Length: 167
Connection: keep-alive

curl: (22) The requested URL returned error: 504
Unable to curl the requested project Please provide this output in a new gist at gist.github.com.

Please delete this project after debugging with 'ddev delete -Oy tryddevproject-16694'
Failed running test_ddev.sh: exit status 1
. You can run it manually with curl -sL -O https://raw.githubusercontent.com/drud/ddev/master/cmd/ddev/cmd/scripts/test_ddev.sh && bash test_ddev.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment