Closed LukePWilkins closed 2 months ago
I have found the same behaviour. Here is my log:
[2024-03-20T05:33:53.606Z] ERROR: failed to solve: process "/bin/sh -c cp -ar /tmp/build-features-src/azure-functions-core-tools_4 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/azure-functions-core-tools_4 && cd /tmp/dev-container-features/azure-functions-core-tools_4 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/azure-functions-core-tools_4" did not complete successfully: exit code: 1 [2024-03-20T05:33:53.616Z] Stop (5596 ms): Run: docker buildx build --load --build-context dev_containers_feature_content_source=/var/folders/nr/3xfqgn_92zg2gqms4k1wk5cw0000gn/T/devcontainercli/container-features/0.56.2-1710912820126 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/python:1-3.11-bullseye --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -t vsc-chat-with-your-data-solution-accelerator-c59a77fba0046f046f7ff326f34726e4ed656e5f8badfc60e2a7dab1952f7d35-features -f /var/folders/nr/3xfqgn_92zg2gqms4k1wk5cw0000gn/T/devcontainercli/container-features/0.56.2-1710912820126/Dockerfile.extended /Users/rensilva/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/empty-folder [2024-03-20T05:33:53.616Z] Error: Command failed: docker buildx build --load --build-context dev_containers_feature_content_source=/var/folders/nr/3xfqgn_92zg2gqms4k1wk5cw0000gn/T/devcontainercli/container-features/0.56.2-1710912820126 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/python:1-3.11-bullseye --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -t vsc-chat-with-your-data-solution-accelerator-c59a77fba0046f046f7ff326f34726e4ed656e5f8badfc60e2a7dab1952f7d35-features -f /var/folders/nr/3xfqgn_92zg2gqms4k1wk5cw0000gn/T/devcontainercli/container-features/0.56.2-1710912820126/Dockerfile.extended /Users/rensilva/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/empty-folder [2024-03-20T05:33:53.617Z] at atA (/Users/rensilva/.vscode/extensions/ms-vscode-remote.remote-containers-0.348.0/dist/spec-node/devContainersSpecCLI.js:464:1260) [2024-03-20T05:33:53.617Z] at yH (/Users/rensilva/.vscode/extensions/ms-vscode-remote.remote-containers-0.348.0/dist/spec-node/devContainersSpecCLI.js:464:1002) [2024-03-20T05:33:53.617Z] at process.processTicksAndRejections (node:internal/process/task_queues:95:5) [2024-03-20T05:33:53.617Z] at async StA (/Users/rensilva/.vscode/extensions/ms-vscode-remote.remote-containers-0.348.0/dist/spec-node/devContainersSpecCLI.js:481:3660) [2024-03-20T05:33:53.617Z] at async ZC (/Users/rensilva/.vscode/extensions/ms-vscode-remote.remote-containers-0.348.0/dist/spec-node/devContainersSpecCLI.js:481:4775) [2024-03-20T05:33:53.617Z] at async trA (/Users/rensilva/.vscode/extensions/ms-vscode-remote.remote-containers-0.348.0/dist/spec-node/devContainersSpecCLI.js:614:11269) [2024-03-20T05:33:53.617Z] at async erA (/Users/rensilva/.vscode/extensions/ms-vscode-remote.remote-containers-0.348.0/dist/spec-node/devContainersSpecCLI.js:614:11010) [2024-03-20T05:33:53.619Z] Stop (13899 ms): Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Users/rensilva/.vscode/extensions/ms-vscode-remote.remote-containers-0.348.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /Users/rensilva/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-6a8cd707-84d1-4425-a4ab-2ba5acc1947e1710912818604 --workspace-folder /Users/rensilva/projects/current/chat-with-your-data-solution-accelerator --workspace-mount-consistency cached --id-label devcontainer.local_folder=/Users/rensilva/projects/current/chat-with-your-data-solution-accelerator --id-label devcontainer.config_file=/Users/rensilva/projects/current/chat-with-your-data-solution-accelerator/.devcontainer/devcontainer.json --log-level debug --log-format json --config /Users/rensilva/projects/current/chat-with-your-data-solution-accelerator/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root [2024-03-20T05:33:53.619Z] Exit code 1 [2024-03-20T05:33:53.621Z] Command failed: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Users/rensilva/.vscode/extensions/ms-vscode-remote.remote-containers-0.348.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /Users/rensilva/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-6a8cd707-84d1-4425-a4ab-2ba5acc1947e1710912818604 --workspace-folder /Users/rensilva/projects/current/chat-with-your-data-solution-accelerator --workspace-mount-consistency cached --id-label devcontainer.local_folder=/Users/rensilva/projects/current/chat-with-your-data-solution-accelerator --id-label devcontainer.config_file=/Users/rensilva/projects/current/chat-with-your-data-solution-accelerator/.devcontainer/devcontainer.json --log-level debug --log-format json --config /Users/rensilva/projects/current/chat-with-your-data-solution-accelerator/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root [2024-03-20T05:33:53.622Z] Exit code 1
Hi @RenSilvaAU and @LukePWilkins - I have seen this before on a MAC - the vscode Functions extension doesn't work on a mac.
Comment out line 8 of
/workspaces/chat-with-your-data-solution-accelerator/.devcontainer/devcontainer.json
"ghcr.io/jlaundry/devcontainer-features/azure-functions-core-tools:1": {},
I have raised an issue here: - https://github.com/jlaundry/devcontainer-features/issues/14
@RenSilvaAU - I'm not sure if the merged fix above will work on a Mac (any chance you can pull and retry?) @LukePWilkins - This should be fixed for Windows now.
The root cause is : - https://github.com/Azure/azure-functions-core-tools/issues/3626
@ross-p-smith , @LukePWilkins ,
Unfortunately the change did not correct the Mac build.
The solution that I've found was to force the devcontainer to build for amd64 then run it in a Mac with Rosetta.
I've implemented that solution in my fork, and created a pull request into the main repository.
I've tested with both Mac and PC, and the repo builds correctly for both cases.
Pull Request: https://github.com/Azure-Samples/chat-with-your-data-solution-accelerator/pull/506
Thank you for looking into this.
Describe the bug
At point of container build, the process fails
Expected behavior
No container is built
How does this bug make you feel?
Share a gif from giphy to tells us how you'd feel
Debugging information
Steps to reproduce
Steps to reproduce the behavior:
Screenshots
If applicable, add screenshots to help explain your problem.
Logs
Tasks
To be filled in by the engineer picking up the issue