Open c01o opened 1 year ago
Hello, did you found out why ?
I am encounting the same issue:
when I try to rebuild the codespace with the mysql-homebrew feature, it failed to build the image and crushed:
2024-02-07 05:04:00.979Z: #16 197.6 ==> Installing mysql dependency: systemd
2024-02-07 05:04:00.995Z:
#16 197.6 ==> Downloading https://ghcr.io/v2/homebrew/core/systemd/manifests/255.3
#16 197.6 Already downloaded: /home/vscode/.cache/Homebrew/downloads/0197c3269b38c869b3ebaa0c581c42f03013dd2daa9f24c3e5af14f376e2fd09--systemd-255.3.bottle_manifest.json
2024-02-07 05:04:01.281Z: #16 198.0 ==> Pouring systemd--255.3.x86_64_linux.bottle.tar.gz
2024-02-07 05:04:10.923Z: #16 207.6 Error: Too many open files
2024-02-07 05:04:11.224Z: #16 207.9 + clean_up
#16 207.9 + ARG=1
#16 207.9 + rm -rf /tmp/nanolayer-8cVfMiu1CV
#16 207.9 + exit 1
2024-02-07 05:04:11.227Z:
2024-02-07 05:04:11.346Z: #16 208.1 Traceback (most recent call last):
2024-02-07 05:04:11.455Z: #16 208.1 File "<string>", line 1, in <module>
#16 208.1 File "nanolayer.__main__", line 50, in main
#16 208.1 File "typer.main", line 328, in __call__
#16 208.1 File "typer.main", line 311, in __call__
#16 208.1 File "click.core", line 1130, in __call__
#16 208.1 File "typer.core", line 778, in main
#16 208.1 File "typer.core", line 216, in _main
#16 208.1 File "click.core", line 1657, in invoke
#16 208.1 File "click.core", line 1657, in invoke
#16 208.1 File "click.core", line 1404, in invoke
#16 208.1 File "click.core", line 760, in invoke
#16 208.1 File "typer.main", line 683, in wrapper
#16 208.1 File "nanolayer.cli.install", line 65, in install_devcontainer_feature
#16 208.1 File "nanolayer.installers.devcontainer_feature.oci_feature_installer", line 134, in install
#16 208.1 File "nanolayer.utils.invoker", line 56, in invoke
#16 208.1 nanolayer.utils.invoker.Invoker.InvokerException: The command 'cd /tmp/tmp8zm0ckf0 && chmod +x -R . && _REMOTE_USER="vscode" _REMOTE_USER_HOME="/home/vscode" PACKAGE="mysql" VERSION="latest" INSTALLATION_FLAGS="" NANOLAYER_VERBOSE="" NANOLAYER_FORCE_CLI_INSTALLATION="" NANOLAYER_PROPAGATE_CLI_LOCATION="1" NANOLAYER_CLI_LOCATION="/tmp/nanolayer-uLhoNWjwxZ/nanolayer" bash -i +H ./install.sh' failed. error: Return Code: 1. see logs for details.
#16 208.2 Sentry is attempting to send 2 pending error messages
#16 208.2 Waiting up to 2 seconds
#16 208.2 Press Ctrl-C to quit
2024-02-07 05:04:11.609Z: #16 208.3 ERROR: Feature "MySQL (via Homebrew)" (ghcr.io/devcontainers-contrib/features/mysql-homebrew) failed to install! Look at the documentation at http://github.com/devcontainers-contrib/features/tree/main/src/mysql-homebrew for help troubleshooting this error.
2024-02-07 05:04:12.184Z: #16 ERROR: process "/bin/sh -c cp -ar /tmp/build-features-src/mysql-homebrew_0 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/mysql-homebrew_0 && cd /tmp/dev-container-features/mysql-homebrew_0 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/mysql-homebrew_0" did not complete successfully: exit code: 1
2024-02-07 05:04:12.394Z: ------
> [app dev_containers_target_stage 4/7] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=mysql-homebrew_0,target=/tmp/build-features-src/mysql-homebrew_0 cp -ar /tmp/build-features-src/mysql-homebrew_0 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/mysql-homebrew_0 && cd /tmp/dev-container-features/mysql-homebrew_0 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/mysql-homebrew_0:
208.1 File "click.core", line 760, in invoke
208.1 File "typer.main", line 683, in wrapper2024-02-07 05:04:12.411Z:
208.1 File "nanolayer.cli.install", line 65, in install_devcontainer_feature
208.1 File "nanolayer.installers.devcontainer_feature.oci_feature_installer", line 134, in install
208.1 File "nanolayer.utils.invoker", line 56, in invoke
208.1 nanolayer.utils.invoker.Invoker.InvokerException: The command 'cd /tmp/tmp8zm0ckf0 && chmod +x -R . && _REMOTE_USER="vscode" _REMOTE_USER_HOME="/home/vscode" PACKAGE="mysql" VERSION="latest" INSTALLATION_FLAGS="" NANOLAYER_VERBOSE="" NANOLAYER_FORCE_CLI_INSTALLATION="" NANOLAYER_PROPAGATE_CLI_LOCATION="1" NANOLAYER_CLI_LOCATION="/tmp/nanolayer-uLhoNWjwxZ/nanolayer" bash -i +H ./install.sh' failed. error: Return Code: 1. see logs for details.
208.2 Sentry is attempting to send 2 pending error messages2024-02-07 05:04:12.424Z:
208.2 Waiting up to 2 seconds
208.2 Press Ctrl-C to quit
208.3 ERROR: Feature "MySQL (via Homebrew)" (ghcr.io/devcontainers-contrib/features/mysql-homebrew) failed to install! Look at the documentation at http://github.com/devcontainers-contrib/features/tree/main/src/mysql-homebrew for help troubleshooting this error.
------
edit: Seems to be the same issue as #394
The defect remains.
This project is not associated with the devcontainer project and appears to have been abandoned https://github.com/devcontainers-contrib/features/issues/628 . The official project has removed all devcontainer-contrib features from their listing. https://github.com/devcontainers/devcontainers.github.io/issues/451. There is a fork that is being worked on to update and maintain the features https://github.com/devcontainers-extra/features
Feature id and version
ghcr.io/devcontainers-contrib/features/mysql-homebrew:1
Devcontainer base Image
mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye
What happened?
Installation of
curl
somehow fails.I confirmed the latest linuxbrew (4.1.10) installed on a brand new
ubuntu:latest
container successfully runbrew install mysql
without any error.Relevant log output