Open dfberry opened 5 months ago
I'm seeing this as well after a fresh rebuild without cache.
Same problem on a freshly built dev container on Mac M1.
@danieljurek can you take a look?
What is the image
of the devcontainer? This can typically be found in the .devcontainer/devcontainer.json
file.
{
"name": "Azure Developer CLI",
"image": "mcr.microsoft.com/devcontainers/javascript-node:20-bullseye",
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
},
"ghcr.io/azure/azure-dev/azd:latest": {}
},
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"GitHub.vscode-github-actions",
"ms-azuretools.azure-dev",
"ms-azuretools.vscode-azurefunctions",
"ms-azuretools.vscode-bicep",
"ms-azuretools.vscode-docker",
"ms-vscode.js-debug",
"ms-vscode.vscode-node-azure-pack"
]
}
},
"forwardPorts": [
3000,
3100
],
"postCreateCommand": "",
"remoteUser": "node",
"hostRequirements": {
"memory": "8gb"
}
}
@pamelafox can you share yours as well?
I was able to reproduce the issue on an Apple Silicon mac. Previous releases (e.g. 1.7.0) did run successfully in this container but the current version is failing. I expect it to run properly.
Also, the current version does successfully run in other aarch64 containers (e.g. ubuntu:latest
).
I suspect that this kind of error is related to a CGO
compiler configuration and it's possible that this error is coming from a regression in the compile configs for ARM64 Linux owing to a recent migration of our engsys.
@dfberry -- I have a PR with a fix... You can try running this in your devcontainer as well.
I just verified that azd version
works as expected using this build from the mcr.microsoft.com/devcontainers/javascript-node:20-bullseye
container on an apple silicon mac.
curl -fsSL https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/3748/install-azd.sh | bash -s -- --base-url https://azuresdkreleasepreview.blob.core.windows.net/azd/standalone/pr/3748 --version '' --verbose --skip-verify
@danieljurek Works for me. Thank you for the quick fix.
@danieljurek This is appearing again.
1) New clone of https://github.com/Azure-Samples/todo-nodejs-mongo-aca 2) Azd auth login fails
Reopening. This seems like a caching issue as installing azd directly int the devcontainer succeeds. I'm able to reproduce locally.
Ok - an easy fix while waiting is to just install azd yourself.
curl -fsSL https://aka.ms/install-azd.sh | bash
Azd doesn't work in dev container - this worked a week or two ago. It works if I run in on mac without dev container.
Output from
azd version
Runazd version
and copy and paste the output here:Describe the bug
To Reproduce
Expected behavior A clear and concise description of what you expected to happen.
Environment Information on your environment:
Additional context