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

Severe error when ddev start #5987

Closed
claudiu-cristea opened this issue May 6, 2024 · 0 comments · Fixed by #5988 or #6001
Closed

Severe error when ddev start #5987

claudiu-cristea opened this issue May 6, 2024 · 0 comments · Fixed by #5988 or #6001

Comments

@claudiu-cristea
Copy link
Member

claudiu-cristea commented May 6, 2024

Describe the bug

Trying to contribute to Drush by using DDEV, I've cloned a fresh Drush codebase (branch 13.x) and I started with ddev start but I got this error:

Starting drush...
Building project images...
..failed to solve: process "/bin/bash -c pip3 install asciinema" did not complete successfully: exit code: 1
See the whole logged error...
```
..failed to solve: process "/bin/bash -c pip3 install asciinema" did not complete successfully: exit code: 1
Failed to start drush: docker-compose build failed: composeCmd failed to run 'COMPOSE_PROJECT_NAME=ddev-drush docker-compose -f /Users/clau/development/drush/.ddev/.ddev-docker-compose-full.yaml --progress=plain build', action='[--progress=plain build]', err='exit status 17', stdout='#0 building with "default" instance using docker driver

#1 [db internal] load build definition from Dockerfile
#1 transferring dockerfile:
#1 transferring dockerfile: 638B done
#1 DONE 0.2s

#2 [web internal] load build definition from Dockerfile
#2 transferring dockerfile: 2.07kB done
#2 DONE 0.1s

#3 [web internal] load metadata for docker.io/ddev/ddev-webserver:v1.23.0-1
#3 DONE 0.0s

#4 [db internal] load metadata for docker.io/ddev/ddev-dbserver-mariadb-10.11:v1.23.0
#4 DONE 0.0s

#5 [web internal] load .dockerignore
#5 transferring context: 2B done
#5 DONE 0.0s

#6 [db internal] load .dockerignore
#6 transferring context: 2B done
#6 DONE 0.0s

#7 [web  1/10] FROM docker.io/ddev/ddev-webserver:v1.23.0-1
#7 DONE 0.0s

#8 [db 1/2] FROM docker.io/ddev/ddev-dbserver-mariadb-10.11:v1.23.0
#8 DONE 0.0s

#9 [db 2/2] RUN (groupadd --gid 20 "clau" || groupadd "clau" || true) && (useradd  -l -m -s "/bin/bash" --gid "clau" --comment '' --uid 501 "clau" || useradd  -l -m -s "/bin/bash" --gid "clau" --comment '' "clau" || useradd  -l -m -s "/bin/bash" --gid "20" --comment '' "clau" || useradd -l -m -s "/bin/bash" --comment '' clau )
#9 CACHED

#10 [db] exporting to image
#10 exporting layers done
#10 writing image sha256:ec9d7647dad9214d66ac1aaeb9ca3ae1fccc4e521cde1904453b3851ac2c7d6a done
#10 naming to docker.io/ddev/ddev-dbserver-mariadb-10.11:v1.23.0-drush-built done
#10 DONE 0.0s

#11 [web  4/10] RUN export XDEBUG_MODE=off; composer self-update --stable || composer self-update --stable || true; composer self-update --2 || composer self-update --2 || true
#11 CACHED

#12 [web  3/10] RUN (apt-get -qq update || true) && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y -o Dpkg::Options::="--force-confold" --no-install-recommends --no-install-suggests bash-completion
#12 CACHED

#13 [web  2/10] RUN (groupadd --gid 20 "clau" || groupadd "clau" || true) && (useradd  -l -m -s "/bin/bash" --gid "clau" --comment '' --uid 501 "clau" || useradd  -l -m -s "/bin/bash" --gid "clau" --comment '' "clau" || useradd  -l -m -s "/bin/bash" --gid "20" --comment '' "clau" || useradd -l -m -s "/bin/bash" --comment '' clau )
#13 CACHED

#14 [web  5/10] RUN mkdir -p /home/clau && chown clau /home/clau && chmod 600 /home/clau/.pgpass
#14 CACHED

#15 [web  6/10] RUN chmod 777 /run/php
#15 CACHED

#16 [web  7/10] RUN pip3 install asciinema
#16 0.452 error: externally-managed-environment
#16 0.452
#16 0.452 × This environment is externally managed
#16 0.452 ╰─> To install Python packages system-wide, try apt install
#16 0.452     python3-xyz, where xyz is the package you are trying to
#16 0.452     install.
#16 0.452
#16 0.452     If you wish to install a non-Debian-packaged Python package,
#16 0.452     create a virtual environment using python3 -m venv path/to/venv.
#16 0.452     Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
#16 0.452     sure you have python3-full installed.
#16 0.452
#16 0.452     If you wish to install a non-Debian packaged Python application,
#16 0.452     it may be easiest to use pipx install xyz, which will manage a
#16 0.452     virtual environment for you. Make sure you have pipx installed.
#16 0.452
#16 0.452     See /usr/share/doc/python3.11/README.venv for more information.
#16 0.452
#16 0.452 note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
#16 0.452 hint: See PEP 668 for the detailed specification.
#16 ERROR: process "/bin/bash -c pip3 install asciinema" did not complete successfully: exit code: 1
------
 > [web  7/10] RUN pip3 install asciinema:
0.452     sure you have python3-full installed.
0.452
0.452     If you wish to install a non-Debian packaged Python application,
0.452     it may be easiest to use pipx install xyz, which will manage a
0.452     virtual environment for you. Make sure you have pipx installed.
0.452
0.452     See /usr/share/doc/python3.11/README.venv for more information.
0.452
0.452 note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
0.452 hint: See PEP 668 for the detailed specification.
------
', stderr='failed to solve: process "/bin/bash -c pip3 install asciinema" did not complete successfully: exit code: 1', output='#0 building with "default" instance using docker driver

#1 [db internal] load build definition from Dockerfile
#1 transferring dockerfile:
#1 transferring dockerfile: 638B done
#1 DONE 0.2s

#2 [web internal] load build definition from Dockerfile
#2 transferring dockerfile: 2.07kB done
#2 DONE 0.1s

#3 [web internal] load metadata for docker.io/ddev/ddev-webserver:v1.23.0-1
#3 DONE 0.0s

#4 [db internal] load metadata for docker.io/ddev/ddev-dbserver-mariadb-10.11:v1.23.0
#4 DONE 0.0s

#5 [web internal] load .dockerignore
#5 transferring context: 2B done
#5 DONE 0.0s

#6 [db internal] load .dockerignore
#6 transferring context: 2B done
#6 DONE 0.0s

#7 [web  1/10] FROM docker.io/ddev/ddev-webserver:v1.23.0-1
#7 DONE 0.0s

#8 [db 1/2] FROM docker.io/ddev/ddev-dbserver-mariadb-10.11:v1.23.0
#8 DONE 0.0s

#9 [db 2/2] RUN (groupadd --gid 20 "clau" || groupadd "clau" || true) && (useradd  -l -m -s "/bin/bash" --gid "clau" --comment '' --uid 501 "clau" || useradd  -l -m -s "/bin/bash" --gid "clau" --comment '' "clau" || useradd  -l -m -s "/bin/bash" --gid "20" --comment '' "clau" || useradd -l -m -s "/bin/bash" --comment '' clau )
#9 CACHED

#10 [db] exporting to image
#10 exporting layers done
#10 writing image sha256:ec9d7647dad9214d66ac1aaeb9ca3ae1fccc4e521cde1904453b3851ac2c7d6a done
#10 naming to docker.io/ddev/ddev-dbserver-mariadb-10.11:v1.23.0-drush-built done
#10 DONE 0.0s

#11 [web  4/10] RUN export XDEBUG_MODE=off; composer self-update --stable || composer self-update --stable || true; composer self-update --2 || composer self-update --2 || true
#11 CACHED

#12 [web  3/10] RUN (apt-get -qq update || true) && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y -o Dpkg::Options::="--force-confold" --no-install-recommends --no-install-suggests bash-completion
#12 CACHED

#13 [web  2/10] RUN (groupadd --gid 20 "clau" || groupadd "clau" || true) && (useradd  -l -m -s "/bin/bash" --gid "clau" --comment '' --uid 501 "clau" || useradd  -l -m -s "/bin/bash" --gid "clau" --comment '' "clau" || useradd  -l -m -s "/bin/bash" --gid "20" --comment '' "clau" || useradd -l -m -s "/bin/bash" --comment '' clau )
#13 CACHED

#14 [web  5/10] RUN mkdir -p /home/clau && chown clau /home/clau && chmod 600 /home/clau/.pgpass
#14 CACHED

#15 [web  6/10] RUN chmod 777 /run/php
#15 CACHED

#16 [web  7/10] RUN pip3 install asciinema
#16 0.452 error: externally-managed-environment
#16 0.452
#16 0.452 × This environment is externally managed
#16 0.452 ╰─> To install Python packages system-wide, try apt install
#16 0.452     python3-xyz, where xyz is the package you are trying to
#16 0.452     install.
#16 0.452
#16 0.452     If you wish to install a non-Debian-packaged Python package,
#16 0.452     create a virtual environment using python3 -m venv path/to/venv.
#16 0.452     Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
#16 0.452     sure you have python3-full installed.
#16 0.452
#16 0.452     If you wish to install a non-Debian packaged Python application,
#16 0.452     it may be easiest to use pipx install xyz, which will manage a
#16 0.452     virtual environment for you. Make sure you have pipx installed.
#16 0.452
#16 0.452     See /usr/share/doc/python3.11/README.venv for more information.
#16 0.452
#16 0.452 note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
#16 0.452 hint: See PEP 668 for the detailed specification.
#16 ERROR: process "/bin/bash -c pip3 install asciinema" did not complete successfully: exit code: 1
------
 > [web  7/10] RUN pip3 install asciinema:
0.452     sure you have python3-full installed.
0.452
0.452     If you wish to install a non-Debian packaged Python application,
0.452     it may be easiest to use pipx install xyz, which will manage a
0.452     virtual environment for you. Make sure you have pipx installed.
0.452
0.452     See /usr/share/doc/python3.11/README.venv for more information.
0.452
0.452 note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
0.452 hint: See PEP 668 for the detailed specification.
------
', stderr='failed to solve: process "/bin/bash -c pip3 install asciinema" did not complete successfully: exit code: 1'
```

To Reproduce

$ git clone git@github.com:drush-ops/drush.git # Checked out 13.x at 4dd517032
$ cd drush
$ ddev start

Expected behavior

No errors, containers are up.

Actual behavior

Error described above.

Workaround

Not found any yet.

System Configuration

Q A
Drush version? 13.x
Drupal version? 11x/10.x
PHP version 8.3
OS? Mac

Additional information
N/A

claudiu-cristea added a commit that referenced this issue May 6, 2024
weitzman pushed a commit that referenced this issue May 6, 2024
weitzman pushed a commit that referenced this issue May 6, 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
1 participant