ddev: ddev get : Unable to YamlToDict: yamlToDict: type string not handled
Is there an existing issue for this?
- I have searched the existing issues
Output of ddev debug test
Expand `ddev debug test` diagnostic information
======= Existing project config =========
These config files were loaded for project stacy-frontend: [/home/var/www/etnic/stacy-frontend/.ddev/config.yaml]
name: stacy-frontend
type: drupal9
docroot: web
php_version: 8.0
webserver_type: nginx-fpm
webimage: ddev/ddev-webserver:v1.22.3
router_http_port: 80
router_https_port: 443
additional_hostnames: []
additional_fqdns: []
mysql_version: 8.0
database: {mysql 8.0}
hooks: map[post-start:[]]
webimage_extra_packages: [cron]
project_tld: ddev.site
use_dns_when_possible: true
nodejs_version: 18
default_container_timeout: 120
======= Creating dummy project named tryddevproject-2670 in ../tryddevproject-2670 =========
OS Information: Linux Colombus 6.2.0-33-generic #33-Ubuntu SMP PREEMPT_DYNAMIC Tue Sep 5 14:49:19 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
User information: uid=1000(chub) gid=1000(chub) groups=1000(chub),4(adm),24(cdrom),27(sudo),30(dip),33(www-data),46(plugdev),116(lpadmin),126(sambashare),131(docker)
DDEV version: ITEM VALUE
DDEV version v1.22.3
architecture amd64
db ddev/ddev-dbserver-mariadb-10.4:v1.22.3
ddev-ssh-agent ddev/ddev-ssh-agent:v1.22.3
docker 24.0.6
docker-compose v2.21.0
docker-platform Ubuntu 23.04
mutagen 0.17.2
os linux
router ddev/ddev-traefik-router:v1.22.3
web ddev/ddev-webserver:v1.22.3
PROXY settings: HTTP_PROXY='' HTTPS_PROXY='' http_proxy='' NO_PROXY=''
======= DDEV global info =========
Global configuration:
instrumentation-opt-in=true
omit-containers=[]
performance-mode=none
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=v2.21.0
use-docker-compose-from-path=false
project-tld=
xdebug-ide-location=
no-bind-mounts=false
router=traefik
wsl2-no-windows-hosts-mgt=false
router-http-port=80
router-https-port=443
mailpit-http-port=8025
mailpit-https-port=8026
traefik-monitor-port=10999
======= DOCKER info =========
docker location: -rwxr-xr-x 1 root root 57872384 juil. 3 11:51 /usr/local/bin/docker
docker version:
Client: Docker Engine - Community
Cloud integration: v1.0.35
Version: 24.0.6
API version: 1.43
Go version: go1.20.7
Git commit: ed223bc
Built: Mon Sep 4 12:31:40 2023
OS/Arch: linux/amd64
Context: default
Server: Docker Engine - Community
Engine:
Version: 24.0.6
API version: 1.43 (minimum version 1.12)
Go version: go1.20.7
Git commit: 1a79695
Built: Mon Sep 4 12:31:40 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.24
GitCommit: 61f9fd88f79f081d64d6fa3bb1a0dc71ec870523
runc:
Version: 1.1.9
GitCommit: v1.1.9-0-gccaecfc
docker-init:
Version: 0.19.0
GitCommit: de40ad0
DOCKER_DEFAULT_PLATFORM=notset
======= Mutagen Info =========
Mutagen is installed in ddev, version=0.16.0
--------------------------------------------------------------------------------
No synchronization sessions found
--------------------------------------------------------------------------------
======= Docker Info =========
Docker platform: Ubuntu 23.04
Using Docker context: default (unix:///var/run/docker.sock)
docker-compose: v2.21.0
Using DOCKER_HOST=unix:///var/run/docker.sock
Docker version: 24.0.6
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 456.9G 385.6G 48.0G 89% /
Unable to create project at project root '/home/var/www/neo8/sites/demarcilly/drupal': project root /home/var/www/neo8/sites/demarcilly/drupal does not exist
Unable to create project at project root '/home/var/www/etnic/intranetmfwbv3': project root /home/var/www/etnic/intranetmfwbv3 does not exist
Unable to create project at project root '/home/var/www/etnic/stacy-front': project root /home/var/www/etnic/stacy-front does not exist
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
757816f22f8e hello-world "/hello" 2 months ago Exited (0) 2 months ago kind_swirles
b2c73dbc24fa aae3b76c2ae0 "/bin/sh -c 'export …" 19 months ago Exited (0) 19 months ago bold_rhodes
d8e8c204b00b 7d5678b001cc "/bin/bash -c '(grou…" 19 months ago Exited (0) 19 months ago relaxed_cori
0c88a81b1ca6 9258d78bce7e "/docker-entrypoint.…" 19 months ago Created fervent_bell
779afc5a135e 8d1d48cf9b7b "/docker-entrypoint.…" 19 months ago Created hungry_ishizaka
ad0900dfc5d2 e0b33608be1f "/docker-entrypoint.…" 19 months ago Created charming_thompson
1175729d45dd bed1b6fcab5e "/bin/sh -c 'export …" 19 months ago Exited (0) 19 months ago blissful_heisenberg
55fbc32b8d5c aae3b76c2ae0 "/bin/sh -c 'apt-get…" 19 months ago Exited (0) 19 months ago elastic_einstein
acdd829af55f e9783a41a6ff "/bin/sh -c '(groupa…" 19 months ago Exited (0) 19 months ago romantic_mirzakhani
c9b22ac7f771 a0bdac97d874 "/bin/sh -c '#(nop) …" 19 months ago Created flamboyant_albattani
c2dd772d5953 82eaae05bc3e "/bin/sh -c '#(nop) …" 19 months ago Created relaxed_darwin
fa841e2abff2 6fb0f2b0d779 "/bin/sh -c '#(nop) …" 19 months ago Created epic_mestorf
071f40154a3e d1812c00c8e4 "/bin/sh" 20 months ago Created phpstorm_helpers_PS-212.5080.71
a0320f32eab6 hello-world "/hello" 2 years ago Exited (0) 2 years ago nostalgic_bhaskara
648700e3bf3b boondoggle/i1 "/sbin/my_init --ena…" 2 years ago Exited (2) 2 years ago boondoggle-c1
ae2fba0a774c hello-world "/hello" 2 years ago Exited (0) 2 years ago xenodochial_chaplygin
Network ddev_default created
Starting tryddevproject-2670...
Container ddev-ssh-agent Created
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.22.3: Pulling from ddev/ddev-dbserver-mariadb-10.4
7007490126ef: Pull complete
4d07cf421114: Pull complete
7f49892c3e51: Pull complete
c5daef2619c3: Pull complete
fb2dc274d0f1: Pull complete
bc1a03f7b532: Pull complete
18dcca1e7900: Pull complete
1444ac5266ea: Pull complete
72858cd9e827: Pull complete
4f4fb700ef54: Pull complete
b4ec44e36f91: Pull complete
bcd5bd2a4196: Pull complete
a38dac471b4a: Pull complete
08100e9717a8: Pull complete
f01779c3b84d: Pull complete
3ed473dfd3a2: Pull complete
46048ce9b087: Pull complete
83df8fe67f0e: Pull complete
932f0d6282ae: Pull complete
be7c70da71e8: Pull complete
9a8820e946e2: Pull complete
f9a11cc95c4d: Pull complete
05450d2ed3e9: Pull complete
13e4afdd47a7: Pull complete
Digest: sha256:3f00e76757856beacd2f88e2564d12c95d56ad5a90ffc11aac181c91d3fe96f0
Status: Downloaded newer image for ddev/ddev-dbserver-mariadb-10.4:v1.22.3
docker.io/ddev/ddev-dbserver-mariadb-10.4:v1.22.3
Network ddev-tryddevproject-2670_default Created
Container ddev-tryddevproject-2670-db Created
Container ddev-tryddevproject-2670-web Created
Container ddev-tryddevproject-2670-web Started
Container ddev-tryddevproject-2670-db Started
Container ddev-router Created
Container ddev-router Started
Successfully started tryddevproject-2670
Project can be reached at https://tryddevproject-2670.ddev.site https://127.0.0.1:32775
======== Curl of site from inside container:
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 27 Sep 2023 10:26:57 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Vary: Accept-Encoding
======== curl -I of http://tryddevproject-2670.ddev.site from outside:
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Date: Wed, 27 Sep 2023 10:26:57 GMT
Server: nginx
Vary: Accept-Encoding
======== full curl of http://tryddevproject-2670.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-2670'
======== Project ownership on host:
drwxr-xr-x 4 chub chub 4096 sept. 27 12:26 ../tryddevproject-2670
======== Project ownership in container:
drwxr-xr-x 4 chub chub 4096 Sep 27 10:26 /var/www/html
======== In-container filesystem:
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/nvme0n1p2 ext4 479079112 405254380 49415340 90% /var/www/html
======== curl again of tryddevproject-2670 from host:
Success accessing database... db via TCP/IP
ddev is working. You will want to delete this project with 'ddev delete -Oy tryddevproject-2670'
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
Please run cleanup after debugging with 'ddev debug testcleanup'
➜ stacy-frontend git:(M0152364_resolution_des_photos) Gtk-Message: 12:27:03.452: Not loading module "atk-bridge": The functionality is provided by GTK natively. Please try to not load it.
(firefox:40336): Gtk-WARNING **: 12:27:03.502: GTK+ module /snap/firefox/3131/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 12:27:03.502: Failed to load module "canberra-gtk-module"
(firefox:40336): Gtk-WARNING **: 12:27:03.503: GTK+ module /snap/firefox/3131/gnome-platform/usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so cannot be loaded.
GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported.
Gtk-Message: 12:27:03.503: Failed to load module "canberra-gtk-module"
Expected Behavior
When i launch ddev get xyz , for example :
ddev get ddev/ddev-adminer
I expect the add-ons to be downloaded, the installed in the .ddev folder of the project.
Actual Behavior
The add on archive is well dowloaded, but the install failed
ddev get ddev/ddev-adminer --verbose Installing ddev/ddev-adminer:v0.2.2 Downloading https://api.github.com/repos/ddev/ddev-adminer/tarball/v0.2.2 v0.2.2_2887042928.tar.gz 7.94 KiB / ? [–=-------------------------------------------------------------------------------------------------------] 81.29% 0s Unable to YamlToDict: yamlToDict: type string not handled (post-start)
Steps To Reproduce
- on ubuntu 23
- create a ddev project
ddev get ddev/ddev-adminer --verbose
Anything else?
I search google , duck duck go, the githib ddev issues, i have found anything about this error.
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Comments: 27 (16 by maintainers)
Commits related to this issue
- fix: make yamlToDict give useful information instead of error in invalid config, fixes #5385 — committed to rfay/ddev by rfay 9 months ago
Thanks @christophe-hubert - that helps me a lot.
Your config.yaml has the obsolete usage from a very old DDEV version:
and
ddev get
seems to die on that, even thoughddev config
handles it fine.❤️
I will share it on discord a bit later today
I tried moving “.ddev/addon-metadata” directlry first that didn’t fix it but after running ddev config --auto I was abled to install 2 add-ons with no issues. Thanks