You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SWA CLI commands fail with Cannot spawn a message bus without a machine-id when executing in a debian (mcr.microsoft.com/devcontainers/base:bullseye) devcontainer.
$ npx swa login
Welcome to Azure Static Web Apps CLI (1.1.7)
Checking Azure session...
✖ Failed to setup project: Cannot spawn a message bus without a machine-id: Unable to load /var/lib/dbus/machine-id or /etc/machine-id: Failed to open file “/var/lib/dbus/machine-id”: No such file or directory
✖ If you believe this behavior is unexpected, please raise a GitHub issue at:
https://github.com/Azure/static-web-apps-cli/issues/new/choose
$ npx swa deploy
Welcome to Azure Static Web Apps CLI (1.1.7)
Deploying front-end files from folder:
/workspace/out
Consider providing api-language and version using --api-language and --api-version flags,
otherwise default values apiLanguage: node and apiVersion: 16 will apply
Checking Azure session...
✖ Cannot spawn a message bus without a machine-id: Unable to load /var/lib/dbus/machine-id or /etc/machine-id: Failed to open file “/var/lib/dbus/machine-id”: No such file or directory
To Reproduce
Steps to reproduce the behavior:
Set up a devcontainer based on mcr.microsoft.com/devcontainers/base:bullseye
Install swa cli from npm
run swa login or swa deploy (note: you may need to install libsecret-1-dev)
Expected behavior
Successful operation; no error.
Desktop (please complete the following information):
Host
OS: Ubuntu 20.04.6 LTS (focal) (64-bit)
Docker: Docker version 25.0.4, build 1a576c5
Devcontainer
OS: Debian 11
Node: v18.19.1
NPM: 10.2.4
SWA: 1.1.7
Additional context
Some solutions suggest exposing the host computer's /var/lib/dbus/machine-id to the devcontainer. I would prefer not doing so as that does not seem like a cross-platform solution.
The text was updated successfully, but these errors were encountered:
Describe the bug
SWA CLI commands fail with
Cannot spawn a message bus without a machine-id
when executing in a debian (mcr.microsoft.com/devcontainers/base:bullseye
) devcontainer.To Reproduce
Steps to reproduce the behavior:
mcr.microsoft.com/devcontainers/base:bullseye
swa login
orswa deploy
(note: you may need to installlibsecret-1-dev
)Expected behavior
Successful operation; no error.
Desktop (please complete the following information):
Additional context
Some solutions suggest exposing the host computer's
/var/lib/dbus/machine-id
to the devcontainer. I would prefer not doing so as that does not seem like a cross-platform solution.The text was updated successfully, but these errors were encountered: