Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default_container_timeout not working #5133

Open
1 task done
introfini opened this issue Jul 13, 2023 · 14 comments
Open
1 task done

default_container_timeout not working #5133

introfini opened this issue Jul 13, 2023 · 14 comments
Milestone

Comments

@introfini
Copy link

introfini commented Jul 13, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Expected Behavior

I have a rather large database that I snapshot, but when I try to restore it I get the following error:

Failed waiting for web/db containers to become ready: db container failed: log=, err=health check timed out after 2m0s: labels map[com.ddev.site-name:cufpt com.docker.compose.service:db] timed out without becoming healthy, status=
Container ddev-router  Running
Failed to restore snapshot cufpt_20230713113115 for project cufpt: failed to start project for RestoreSnapshot: container(s) failed to become healthy before their configured timeout or in 120 seconds. This may be just a problem with the healthcheck and not a functional problem. (health check timed out: labels map[com.ddev.site-name:cufpt] timed out without becoming healthy, status=, detail= ddev-cufpt-db:starting - more info with `docker inspect --format "{{json .State.Health }}" ddev-cufpt-db` )

I've override the default-container-timeout variable as instructed:
ddev config --default-container-timeout 250

Actual Behavior

I still get the error with the same 120 seconds:

Failed to restore snapshot cufpt_20230713113115 for project cufpt: failed to start project for RestoreSnapshot: container(s) failed to become healthy before their configured timeout or in 120 seconds. This may be just a problem with the healthcheck and not a functional problem. (health check timed out: labels map[com.ddev.site-name:cufpt] timed out without becoming healthy, status=, detail= ddev-cufpt-db:starting - more info with docker inspect --format "{{json .State.Health }}" ddev-cufpt-db )

@rfay
Copy link
Member

rfay commented Jul 13, 2023

I think if you just wait for it it will work anyway, even though it says that it timed out. Use ddev list to watch, or follow the logs

@rfay
Copy link
Member

rfay commented Jul 13, 2023

I'm not saying that the default-container-timeout function might not be broken, just that it likely won't affect your work.

@introfini
Copy link
Author

@rfay the ddev list reports "db: unhealthy". Perhaps the snapshot is simply too large; it is only 20GB in size. ;-)

Thanks!

@rfay
Copy link
Member

rfay commented Jul 13, 2023

It will be unhealthy until it completes; does the log still show things happening? WHen you do the snapshot restore it shows you how to watch it.

Lots of people have done huge snapshots like this, but you need enough disk allocated to docker to do it. You didn't provide the requested ddev debug test so I don't know what environment you're working in...

@introfini
Copy link
Author

❯ docker inspect --format "{{json .State.Health }}" ddev-cufpt-db
{"Status":"unhealthy","FailingStreak":1,"Log":[{"Start":"2023-07-13T21:26:41.103997197Z","End":"2023-07-13T21:26:41.182204157Z","ExitCode":1,"Output":"mysql: [Warning] Using a password on the command line interface can be insecure.\nERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1:3306' (111)\n"},{"Start":"2023-07-13T21:26:42.371107559Z","End":"2023-07-13T21:26:42.439950106Z","ExitCode":1,"Output":"mysql: [Warning] Using a password on the command line interface can be insecure.\nERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1:3306' (111)\n"},{"Start":"2023-07-13T21:26:43.444746158Z","End":"2023-07-13T21:26:43.513824295Z","ExitCode":0,"Output":"currently restoring snapshot"},{"Start":"2023-07-13T21:26:44.529999488Z","End":"2023-07-13T21:27:45.175593694Z","ExitCode":0,"Output":"container was previously healthy, so sleeping 59 seconds before continuing healthcheck... currently restoring snapshot"},{"Start":"2023-07-13T21:27:46.18636955Z","End":"2023-07-13T21:28:27.849190398Z","ExitCode":137,"Output":"container was previously healthy, so sleeping 59 seconds before continuing healthcheck... "}]}

Expand `ddev debug test` diagnostic information
❯ ddev debug test
Running bash [-c /var/folders/x0/l2nysd4577ngb586867ml4jr0000gn/T/test_ddev.sh]
======= Existing project config =========
These config files were loaded for project cufpt: [/Users/josefernandes/Dev/cufpt/.ddev/config.yaml]
name: cufpt
type: drupal9
docroot: html
php_version: 8.1
webserver_type: nginx-fpm
webimage: drud/ddev-webserver:v1.21.5
router_http_port: 80
router_https_port: 443
additional_hostnames: []
additional_fqdns: []
database: {mysql 8.0}
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: 2500
======= Creating dummy project named  tryddevproject-22609 in ../tryddevproject-22609 =========
OS Information: Darwin MacBookJose.local 22.5.0 Darwin Kernel Version 22.5.0: Thu Jun  8 22:22:22 PDT 2023; root:xnu-8796.121.3~7/RELEASE_X86_64 x86_64
ProductName:		macOS
ProductVersion:		13.4.1
BuildVersion:		22F82
User information: uid=501(josefernandes) gid=20(staff) groups=20(staff),12(everyone),61(localaccounts),79(_appserverusr),80(admin),81(_appserveradm),98(_lpadmin),33(_appstore),100(_lpoperator),204(_developer),250(_analyticsusers),395(com.apple.access_ftp),398(com.apple.access_screensharing),399(com.apple.access_ssh),400(com.apple.access_remote_ae)
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           24.0.2
 docker-compose   v2.15.1
 docker-platform  docker-desktop
 mutagen          0.16.0
 os               darwin
 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=true
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: lrwxr-xr-x  1 root  staff  54 Jul 13 21:43 /usr/local/bin/docker -> /Applications/Docker.app/Contents/Resources/bin/docker
Docker Desktop Version: Docker Desktop for Mac 4.21.1 build 114176
docker version:
Client:
 Cloud integration: v1.0.35
 Version:           24.0.2
 API version:       1.43
 Go version:        go1.20.4
 Git commit:        cb74dfc
 Built:             Thu May 25 21:51:16 2023
 OS/Arch:           darwin/amd64
 Context:           default

Server: Docker Desktop 4.21.1 (114176)
 Engine:
  Version:          24.0.2
  API version:      1.43 (minimum version 1.12)
  Go version:       go1.20.4
  Git commit:       659604f
  Built:            Thu May 25 21:52:17 2023
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.21
  GitCommit:        3dce8eb055cbb6872793272b4f20ed16117344f8
 runc:
  Version:          1.1.7
  GitCommit:        v1.1.7-0-g860f061
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
DOCKER_DEFAULT_PLATFORM=notset
======= Mutagen Info =========
Mutagen is installed in ddev, version=0.16.0
--------------------------------------------------------------------------------
Name: newpet
Identifier: sync_EYZmfYZMqYGnXD5WjSpdgbX3khvU0wQWuHhEyu9378r
Labels:
	com.ddev.volume-signature: var-run-1687211477
Configuration:
	Synchronization mode: Two Way Resolved
	Maximum allowed entry count: Default (2⁶⁴−1)
	Maximum staging file size: Default (18 EB)
	Symbolic link mode: POSIX Raw
	Ignore VCS mode: Default (Propagate)
	Ignores:
		/.git
		/.tarballs
		/.ddev/db_snapshots
		/.ddev/.importdb*
		.DS_Store
		.idea
		/web/sites/default/files
	Permissions mode: Default (Portable)
Alpha:
	URL: /Users/josefernandes/Dev/newpet
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Beta:
	URL: docker://ddev-newpet-web/var/www/html
		DOCKER_HOST=unix:///var/run/docker.sock
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Status: [Paused]
--------------------------------------------------------------------------------
Name: ipc-balcao-unico
Identifier: sync_m4iizoqClFyKlKSHLn4GzNibhdUDrwKTCsnIwwejbsz
Labels:
	com.ddev.volume-signature: var-run-1687339766
Configuration:
	Synchronization mode: Two Way Resolved
	Maximum allowed entry count: Default (2⁶⁴−1)
	Maximum staging file size: Default (18 EB)
	Symbolic link mode: POSIX Raw
	Ignore VCS mode: Default (Propagate)
	Ignores:
		/.git
		/.tarballs
		/.ddev/db_snapshots
		/.ddev/.importdb*
		.DS_Store
		.idea
		/web/dpcdec/sites/default/files
	Permissions mode: Default (Portable)
Alpha:
	URL: /Users/josefernandes/Dev/ipc-balcao-unico
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Beta:
	URL: docker://ddev-ipc-balcao-unico-web/var/www/html
		DOCKER_HOST=unix:///var/run/docker.sock
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Status: [Paused]
--------------------------------------------------------------------------------
Name: fcebi
Identifier: sync_JkSXADxzCsjH2qJ4tiJx50n3oP75MJDnDvgOcad6qv3
Labels:
	com.ddev.volume-signature: var-run-1687365369
Configuration:
	Synchronization mode: Two Way Resolved
	Maximum allowed entry count: Default (2⁶⁴−1)
	Maximum staging file size: Default (18 EB)
	Symbolic link mode: POSIX Raw
	Ignore VCS mode: Default (Propagate)
	Ignores:
		/.git
		/.tarballs
		/.ddev/db_snapshots
		/.ddev/.importdb*
		.DS_Store
		.idea
		/web/sites/default/files
	Permissions mode: Default (Portable)
Alpha:
	URL: /Users/josefernandes/Dev/fcebi
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Beta:
	URL: docker://ddev-fcebi-web/var/www/html
		DOCKER_HOST=unix:///var/run/docker.sock
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Status: [Paused]
--------------------------------------------------------------------------------
Name: bstorelondon
Identifier: sync_9iU57pHMhVod65yxKW8wrvtGLgf78P57bXNvMCkSgmB
Labels:
	com.ddev.volume-signature: var-run-1687688223
Configuration:
	Synchronization mode: Two Way Resolved
	Maximum allowed entry count: Default (2⁶⁴−1)
	Maximum staging file size: Default (18 EB)
	Symbolic link mode: POSIX Raw
	Ignore VCS mode: Default (Propagate)
	Ignores:
		/.git
		/.tarballs
		/.ddev/db_snapshots
		/.ddev/.importdb*
		.DS_Store
		.idea
		/web/sites/default/files
	Permissions mode: Default (Portable)
Alpha:
	URL: /Users/josefernandes/Dev/bstorelondon
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Beta:
	URL: docker://ddev-bstorelondon-web/var/www/html
		DOCKER_HOST=unix:///var/run/docker.sock
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Status: [Paused]
--------------------------------------------------------------------------------
Name: firstbike
Identifier: sync_bB9huffz2OW2vTLGyuG7RoKJQRXYsn5TUZsCvbsBPRL
Labels:
	com.ddev.volume-signature: var-run-1687788624
Configuration:
	Synchronization mode: Two Way Resolved
	Maximum allowed entry count: Default (2⁶⁴−1)
	Maximum staging file size: Default (18 EB)
	Symbolic link mode: POSIX Raw
	Ignore VCS mode: Default (Propagate)
	Ignores:
		/.git
		/.tarballs
		/.ddev/db_snapshots
		/.ddev/.importdb*
		.DS_Store
		.idea
		/web/sites/default/files
	Permissions mode: Default (Portable)
Alpha:
	URL: /Users/josefernandes/Dev/firstbike
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Beta:
	URL: docker://ddev-firstbike-web/var/www/html
		DOCKER_HOST=unix:///var/run/docker.sock
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Status: [Paused]
--------------------------------------------------------------------------------
Name: fap
Identifier: sync_RyEmajpXLS14eSiZoI2GHTILb8Y2j8pWHHq6wz7kepm
Labels:
	com.ddev.volume-signature: var-run-1687860626
Configuration:
	Synchronization mode: Two Way Resolved
	Maximum allowed entry count: Default (2⁶⁴−1)
	Maximum staging file size: Default (18 EB)
	Symbolic link mode: POSIX Raw
	Ignore VCS mode: Default (Propagate)
	Ignores:
		/.git
		/.tarballs
		/.ddev/db_snapshots
		/.ddev/.importdb*
		.DS_Store
		.idea
		/sites/default/files
	Permissions mode: Default (Portable)
Alpha:
	URL: /Users/josefernandes/Dev/fap
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Beta:
	URL: docker://ddev-fap-web/var/www/html
		DOCKER_HOST=unix:///var/run/docker.sock
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Status: [Paused]
--------------------------------------------------------------------------------
Name: origensbio
Identifier: sync_ve4gnhK2aTbebeuYG8Wx9s0R0Y8pKMmj4CfOSAXu8Kb
Labels:
	com.ddev.volume-signature: var-run-1687899165
Configuration:
	Synchronization mode: Two Way Resolved
	Maximum allowed entry count: Default (2⁶⁴−1)
	Maximum staging file size: Default (18 EB)
	Symbolic link mode: POSIX Raw
	Ignore VCS mode: Default (Propagate)
	Ignores:
		/.git
		/.tarballs
		/.ddev/db_snapshots
		/.ddev/.importdb*
		.DS_Store
		.idea
		/web/sites/default/files
	Permissions mode: Default (Portable)
Alpha:
	URL: /Users/josefernandes/Dev/origensbio
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Beta:
	URL: docker://ddev-origensbio-web/var/www/html
		DOCKER_HOST=unix:///var/run/docker.sock
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Status: [Paused]
--------------------------------------------------------------------------------
Name: ambienteportugal
Identifier: sync_CohvWhcvYq8zvrHqgtT97yHWoC2v5hqTokk3d1AcYVV
Labels:
	com.ddev.volume-signature: var-run-1688030556
Configuration:
	Synchronization mode: Two Way Resolved
	Maximum allowed entry count: Default (2⁶⁴−1)
	Maximum staging file size: Default (18 EB)
	Symbolic link mode: POSIX Raw
	Ignore VCS mode: Default (Propagate)
	Ignores:
		/.git
		/.tarballs
		/.ddev/db_snapshots
		/.ddev/.importdb*
		.DS_Store
		.idea
		/sites/default/files
	Permissions mode: Default (Portable)
Alpha:
	URL: /Users/josefernandes/Dev/ambienteportugal
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Beta:
	URL: docker://ddev-ambienteportugal-web/var/www/html
		DOCKER_HOST=unix:///var/run/docker.sock
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Status: [Paused]
--------------------------------------------------------------------------------
Name: farmacia-silveira
Identifier: sync_XoJVewBUHGDc1sBNdk3bJnsgYsLb6EkkmHzoKushQZL
Labels:
	com.ddev.volume-signature: var-run-1688135395
Configuration:
	Synchronization mode: Two Way Resolved
	Maximum allowed entry count: Default (2⁶⁴−1)
	Maximum staging file size: Default (18 EB)
	Symbolic link mode: POSIX Raw
	Ignore VCS mode: Default (Propagate)
	Ignores:
		/.git
		/.tarballs
		/.ddev/db_snapshots
		/.ddev/.importdb*
		.DS_Store
		.idea
		/web/sites/default/files
	Permissions mode: Default (Portable)
Alpha:
	URL: /Users/josefernandes/Dev/farmacia-silveira
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Beta:
	URL: docker://ddev-farmacia-silveira-web/var/www/html
		DOCKER_HOST=unix:///var/run/docker.sock
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Status: [Paused]
--------------------------------------------------------------------------------
Name: josefinas
Identifier: sync_5zETvy5qjOdpaYLRAcOuKY123BQs806AslqYmK0crPb
Labels:
	com.ddev.volume-signature: var-run-1688204306
Configuration:
	Synchronization mode: Two Way Resolved
	Maximum allowed entry count: Default (2⁶⁴−1)
	Maximum staging file size: Default (18 EB)
	Symbolic link mode: POSIX Raw
	Ignore VCS mode: Default (Propagate)
	Ignores:
		/.git
		/.tarballs
		/.ddev/db_snapshots
		/.ddev/.importdb*
		.DS_Store
		.idea
		/web/sites/default/files
	Permissions mode: Default (Portable)
Alpha:
	URL: /Users/josefernandes/Dev/josefinas
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Beta:
	URL: docker://ddev-josefinas-web/var/www/html
		DOCKER_HOST=unix:///var/run/docker.sock
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Status: [Paused]
--------------------------------------------------------------------------------
Name: ecoceno
Identifier: sync_Vt8DxZGMpue9zuPBkP3zKfXyMSGdUl7SJKViEWwHyR9
Labels:
	com.ddev.volume-signature: var-run-1688638409
Configuration:
	Synchronization mode: Two Way Resolved
	Maximum allowed entry count: Default (2⁶⁴−1)
	Maximum staging file size: Default (18 EB)
	Symbolic link mode: POSIX Raw
	Ignore VCS mode: Default (Propagate)
	Ignores:
		/.git
		/.tarballs
		/.ddev/db_snapshots
		/.ddev/.importdb*
		.DS_Store
		.idea
		/web/sites/default/files
	Permissions mode: Default (Portable)
Alpha:
	URL: /Users/josefernandes/Dev/ecoceno
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Beta:
	URL: docker://ddev-ecoceno-web/var/www/html
		DOCKER_HOST=unix:///var/run/docker.sock
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Status: [Paused]
--------------------------------------------------------------------------------
Name: esel
Identifier: sync_vHaAdU5pdPk3JYawGRFgi34qry9ic2mq8EQNvNPkFPr
Labels:
	com.ddev.volume-signature: var-run-1688739751
Configuration:
	Synchronization mode: Two Way Resolved
	Maximum allowed entry count: Default (2⁶⁴−1)
	Maximum staging file size: Default (18 EB)
	Symbolic link mode: POSIX Raw
	Ignore VCS mode: Default (Propagate)
	Ignores:
		/.git
		/.tarballs
		/.ddev/db_snapshots
		/.ddev/.importdb*
		.DS_Store
		.idea
		/web/sites/default/files
	Permissions mode: Default (Portable)
Alpha:
	URL: /Users/josefernandes/Dev/esel
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Beta:
	URL: docker://ddev-esel-web/var/www/html
		DOCKER_HOST=unix:///var/run/docker.sock
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Status: [Paused]
--------------------------------------------------------------------------------
Name: onepharma
Identifier: sync_YpQZDzyjaQsdY9pvZbbTU3i0hFi8JquSnJyLvw0W6f5
Labels:
	com.ddev.volume-signature: var-run-1688805134
Configuration:
	Synchronization mode: Two Way Resolved
	Maximum allowed entry count: Default (2⁶⁴−1)
	Maximum staging file size: Default (18 EB)
	Symbolic link mode: POSIX Raw
	Ignore VCS mode: Default (Propagate)
	Ignores:
		/.git
		/.tarballs
		/.ddev/db_snapshots
		/.ddev/.importdb*
		.DS_Store
		.idea
		/web/sites/default/files
	Permissions mode: Default (Portable)
Alpha:
	URL: /Users/josefernandes/Dev/elo-farma/onepharma
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Beta:
	URL: docker://ddev-onepharma-web/var/www/html
		DOCKER_HOST=unix:///var/run/docker.sock
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Status: [Paused]
--------------------------------------------------------------------------------
Name: byfarma
Identifier: sync_5OVtmOyhmoH3xOsxEOwqmDQa16A5iJZUZJ54DuqLxIi
Labels:
	com.ddev.volume-signature: var-run-1688828100
Configuration:
	Synchronization mode: Two Way Resolved
	Maximum allowed entry count: Default (2⁶⁴−1)
	Maximum staging file size: Default (18 EB)
	Symbolic link mode: POSIX Raw
	Ignore VCS mode: Default (Propagate)
	Ignores:
		/.git
		/.tarballs
		/.ddev/db_snapshots
		/.ddev/.importdb*
		.DS_Store
		.idea
		/web/sites/default/files
	Permissions mode: Default (Portable)
Alpha:
	URL: /Users/josefernandes/Dev/elo-farma/byfarma
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Beta:
	URL: docker://ddev-byfarma-web/var/www/html
		DOCKER_HOST=unix:///var/run/docker.sock
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: No
Status: [Paused]
--------------------------------------------------------------------------------
Name: cufpt
Identifier: sync_AiwzvAtg4CcHyrK7ha5qy4a46R3JnUVNSqcqnI95ytS
Labels:
	com.ddev.volume-signature: Users-josefernandes-docker-run-1689281340
Configuration:
	Synchronization mode: Two Way Resolved
	Maximum allowed entry count: Default (2⁶⁴−1)
	Maximum staging file size: Default (18 EB)
	Symbolic link mode: POSIX Raw
	Ignore VCS mode: Default (Propagate)
	Ignores:
		/.git
		/.tarballs
		/.ddev/db_snapshots
		/.ddev/.importdb*
		.DS_Store
		.idea
		/html/sites/default/files
	Permissions mode: Default (Portable)
Alpha:
	URL: /Users/josefernandes/Dev/cufpt
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: Yes
	Synchronizable contents:
		14587 directories
		57592 files (6.1 GB)
		4 symbolic links
Beta:
	URL: docker://ddev-cufpt-web/var/www/html
		DOCKER_HOST=unix:///Users/josefernandes/.docker/run/docker.sock
	Configuration:
		Watch mode: Default (Portable)
		Watch polling interval: Default (10 seconds)
		Probe mode: Default (Probe)
		Scan mode: Default (Accelerated)
		Stage mode: Neighboring
		File mode: Default (0600)
		Directory mode: Default (0700)
		Default file/directory owner: Default
		Default file/directory group: Default
	Connected: Yes
	Synchronizable contents:
		14587 directories
		57592 files (6.1 GB)
		4 symbolic links
Status: Watching for changes
--------------------------------------------------------------------------------
======= Docker Info =========
Docker platform: docker-desktop
Using docker context: default (unix:///Users/josefernandes/.docker/run/docker.sock)
docker-compose: v2.15.1
Using DOCKER_HOST=unix:///Users/josefernandes/.docker/run/docker.sock
Docker version: 24.0.2
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                 146.4G    138.9G         0 100% /

Container ddev-cufpt-db  Removed
Container ddev-cufpt-redis  Removed
Container ddev-cufpt-solr  Removed
Container ddev-cufpt-dba  Removed
Container ddev-cufpt-web  Removed
Network ddev-cufpt_default  Removed
Project cufpt has been stopped.
Stopped mutagen daemon
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 (/Users/josefernandes/Dev/tryddevproject-22609)
Once completed, your configuration will be written to /Users/josefernandes/Dev/tryddevproject-22609/.ddev/config.yaml

Configuring unrecognized codebase as project type 'php' at /Users/josefernandes/Dev/tryddevproject-22609/web
Configuration complete. You may now run 'ddev start'.
Network ddev_default created
Starting tryddevproject-22609...
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.
v1.21.5: Pulling from drud/ddev-dbserver-mariadb-10.4
df6635ed1257: Pull complete
d5dcb717eef2: Pull complete
a070ce9ccedb: Pull complete
a053d9150480: Pull complete
6ed373d44e5f: Pull complete
fc6bc86ece58: Pull complete
b059da3f9343: Pull complete
9b5821485fd0: Pull complete
252007fceb34: Pull complete
4f4fb700ef54: Pull complete
2876ab84cc20: Pull complete
a9c6c6577142: Pull complete
e09039585973: Pull complete
bcfaebd8820a: Pull complete
9e61d5ae7fe0: Pull complete
cc8326747b4c: Pull complete
3c5741040871: Pull complete
ba2b0d64ed27: Pull complete
837feaa00959: Pull complete
8327a4ef2c27: Pull complete
f5b18830cd88: Pull complete
4a543c656169: Pull complete
a1029061daf1: Pull complete
9b86af1b6bda: Pull complete
Digest: sha256:5c09a3302f5d77780e7cf2987762aefe2c0e0bcb603cb9624d1cc8624a9c6f30
Status: Downloaded newer image for drud/ddev-dbserver-mariadb-10.4:v1.21.5
docker.io/drud/ddev-dbserver-mariadb-10.4:v1.21.5

What's Next?
  View summary of image vulnerabilities and recommendations → docker scout quickview drud/ddev-dbserver-mariadb-10.4:v1.21.5
Network ddev-tryddevproject-22609_default  Created
Container ddev-tryddevproject-22609-dba  Started
Container ddev-tryddevproject-22609-web  Started
Container ddev-tryddevproject-22609-db  Started
You have mutagen enabled and your 'php' project type doesn't have an upload_dir set.
For faster startup and less disk usage,
set upload_dir to where your user-generated files are stored.
Starting mutagen sync process... This can take some time.
Mutagen sync flush completed in 3s.
For details on sync status 'ddev mutagen st tryddevproject-22609 -l'
Container ddev-router  Started
Successfully started tryddevproject-22609
Project can be reached at https://tryddevproject-22609.ddev.site https://127.0.0.1:55941
======== Curl of site from inside container:
HTTP/1.1 200 OK
Server: nginx
Date: Thu, 13 Jul 2023 21:58:47 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding

======== curl -I of http://tryddevproject-22609.ddev.site from outside:
HTTP/1.1 200 OK
Server: nginx/1.20.1
Date: Thu, 13 Jul 2023 21:58:47 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding

======== full curl of http://tryddevproject-22609.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-22609'
======== Project ownership on host:
drwxr-xr-x  4 josefernandes  staff  128 Jul 13 22:57 ../tryddevproject-22609
======== Project ownership in container:
drwxr-xr-x 4 josefernandes dialout 4096 Jul 13 21:58 /var/www/html
======== In-container filesystem:
Filesystem     Type 1K-blocks     Used Available Use% Mounted on
/dev/vda1      ext4 153472156 35129732 110513588  25% /var/www
======== curl again of tryddevproject-22609 from host:
Success accessing database... db via TCP/IP
ddev is working. You will want to delete this project with 'ddev delete -Oy tryddevproject-22609'
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-22609'

@rfay
Copy link
Member

rfay commented Jul 13, 2023

You're on a mac with Docker Desktop. Do you have at least 100GB allocated in "Resources"? It can't know what you're about to do when you bring in a 20GB gzipped snapshot, and it eats an enormous amount.

If it's possible to share the snapshot or the source db dump I'll be happy to take a look.

@rfay
Copy link
Member

rfay commented Jul 17, 2023

It also looks like you're probably using MySQL 8, true? It seems to be to be tremendously slow.

@introfini
Copy link
Author

Yes, I am unable to use a different version for this project. I won't be taking any snapshots for this project.

I appreciate the support!

@rfay
Copy link
Member

rfay commented Jul 17, 2023

The fundamental thing you were talking about isn't resolved. (default_container_timeout)

@rfay rfay reopened this Jul 17, 2023
@introfini
Copy link
Author

You are right, sorry for closing.

@rfay
Copy link
Member

rfay commented Jul 17, 2023

I would appreciate if you could test the artifacts in #5154 (comment) @introfini

@introfini
Copy link
Author

@rfay doing that now.

Just leaving this note:

The instructions tell to change the parameter like this "ddev config --default_container_timeout=600" but only this works "ddev config --default-container-timeout 600"

@rfay
Copy link
Member

rfay commented Jul 18, 2023

Actually, it's ddev config --default-container-timeout=120, all dashes/hyphens, no underscores.

rfay@rfay-xps13:~/workspace/d10$ ddev config --default-container-timeout=120
You are reconfiguring the project at /home/rfay/workspace/d10.
The existing configuration will be updated and replaced.
Configuring a 'drupal10' codebase with docroot 'web' at /home/rfay/workspace/d10/web
2023-07-17T21:39:38.835 Ensuring write permissions for d10
2023-07-17T21:39:38.838 Existing settings.php file includes settings.ddev.php
Configuration complete. You may now run 'ddev start'.
Instrumentation is opted in, but SegmentKey is not available. This usually means you have a locally-built ddev binary or one from a PR build. It's not an error. Please report it if you're using an official release build.

@rfay
Copy link
Member

rfay commented May 13, 2024

I confirm that this has somehow reappeared in (at least) DDEV v1.23.0

I use my "hugedb" project and set default_container_timeout to 720, and on ddev snapshot restore qa I get a timeout in 120 seconds instead of 720. :(

@rfay rfay reopened this May 13, 2024
@rfay rfay added this to the v1.23.2 milestone May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants