Closed gabrielmdesidera closed 7 months ago
+1 also getting this error when deploying from a Linux agent.
+1 Also getting the same error when deploying from Linux runner (using Octopus deploy, although I don't think that's relevant)
Also getting the same error on both MacOS and Linux and no way of running an older version (!).
To be clear it seems like it's StaticSitesClient@1.0.024941 that's causing the error - in our logs I can see StaticSitesClient@1.0.024841 was working.
for anyone needing a workaround I published my repo locally, created a new gitrepo and pushed the static build to that, created a new static web app and used this git repo, got a deployment token for my actual static web app using swa deploy --print-token
and then switched the repo secret to this new key and re-ran the github action.
Did this in a bit of a rush so there's hopefully a less convoluted way to deploy with the broken swa cli out there. Directly using the docker container in https://github.com/Azure/static-web-apps-deploy was on the list as well.
@jimmystridh Earlier today I managed to downgrade to version 1.1.4 by running npm install -g @azure/static-web-apps-cli@1.1.4
. Then the swa deploy
command worked.
@jimmystridh Earlier today I managed to downgrade to version 1.1.4 by running
npm install -g @azure/static-web-apps-cli@1.1.4
. Then theswa deploy
command worked.
interesting, will give that a try in case I need to deploy again before this is fixed, thanks!
Thanks for the temp fix @gabrielmdesidera
Seeing this too on Ubuntu 22.04.3. Can confirm downgrading to 1.1.4 is a valid workaround, thanks @gabrielmdesidera
I confirm the same issue on MacOS 14 (Sonoma) with 1.1.5, rollback to 1.1.4 fixed the issue. thanks @gabrielmdesidera
Worse, the swa
cli exits 0
(success) after printing this error 🤦
Worse, the
swa
cli exits0
(success) after printing this error 🤦
Yup, our CI builds were passing so this went unnoticed for a while until it was noticed the frontend wasn't up-to-date, not great.
Hello all, We have identified and confirmed the issue on Linux. It is caused by the child_process.spawn() function, which swa-cli uses to execute the StaticSiteClient binary. This function behaves differently on Windows and Linux. We are working on a fix and will update as soon as possible. Thank you for your advices and apologise for the inconvenience.
Hello all, We have identified and confirmed the issue on Linux. It is caused by the child_process.spawn() function, which swa-cli uses to execute the StaticSiteClient binary. This function behaves differently on Windows and Linux. We are working on a fix and will update as soon as possible. Thank you for your advices and apologise for the inconvenience.
We have released version 1.1.6. Thanks for your patience and support, and please let me know if there are any other problems.
Describe the bug When running the command
swa deploy
, an error occurs during the deploy. This error occurs only in version 1.1.5 in Linux/WSL. The same SWA CLI version works fine in Windows, and versions 1.1.4 and below work fine in Linux/WSL.To Reproduce Steps to reproduce the behavior:
npm install -g @azure/static-web-apps-cli@1.1.5
Expected behavior
Screenshots Azure Pipelines:![image (7)](https://github.com/Azure/static-web-apps-cli/assets/98892170/f3f39d12-1eff-480a-9cad-f23c959abf91)
Desktop (please complete the following information):