ddev: Cant start ddev : Service 'web' failed to build (corrupted docker on linux/btrfs)
I’m facing a error at ddev start
and cant start the ddev machine - Drupal 9 project.
Without succes, I’ve tried different version of docker-compose and I’ve tried to clean everything with
ddev poweroff && docker rm -f $(docker ps -a -q) && docker rmi $(docker images --filter "dangling=true" -q --no-trunc) && docker rmi -f $(docker images -q) && docker volume rm ddev-ssh-agent_dot_ssh ddev-ssh-agent_socket_dir
Error at ddev start
Service 'web' failed to build : The command '/bin/sh -c (groupadd --gid $gid "$username" ||
groupadd "$username" ||
true) && (useradd -l -m -s "/bin/bash" --gid "$username" --comment '' --uid $uid "$username" ||
useradd -l -m -s "/bin/bash" --gid "$username" --comment '' "$username" ||
useradd -l -m -s "/bin/bash" --gid "$gid" --comment '' "$username")' returned a non-zero code: 9
OS: Linux Mint 20.2 (BTRFS)
Docker version 20.10.9, build c2ea9bc
docker-compose version 1.29.2, build 5becea4
Composer version 2.1.9 2021-10-05 09:47:38
ddev version v1.18.0
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 26 (13 by maintainers)
docker-compose 2.1.1 seems to work OK from my testing.
Oh, I see @rfay already posted on this issue and opened this one.
So:
I have had the same problem. In my case the “drud/ddev-ssh-agent” image was not being built. It took me 2 days to get back up and running 😦 My problem occurred after doing distribution updates (not ddev) and reboot.
At first the errors I saw was the following:
and
I removed all images and containers and the errors appeared:
and
groupadd: invalid group ID 'drud/ddev-ssh-agent:v1.18.0'
Finally I was able to find this thread and this reply was very useful to me, however, I made several attempts to find the right solution for my case.
I exported all the databases with a mariadb docker image (10.3 the same version used by ddev)
ddev poweroff
docker system prune -a
docker rm -f $(docker ps -a -q)
docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
docker rmi -f $(docker images -q)
ddev
anddocker-compose
docker-ce
and related packagesudo rm -rf /var/lib/docker
sudo rm -rf /etc/docker
.ddev
and.docker
folder in/home/<username>
docker-compose
from apt repository)ddev start
in ddev machine folderddev import-db
…I solved it thanks to this tread, thanks.
OS POP_OS 21.04 last update Composer 2.0.9 2021-01-27 16:09:27 DDEV
NOTE: I don’t use btrfs.
@felmab yes, after a clean install everything works with docker-compose 1.25, but I had to install docker-compose from the ubuntu repository (installing from homebrew didn’t work).
Maybe, the upgrade doesn’t work? From a clean installation, everything is fine.