How to fix static web apps deployment error spawn: ETXTBSY
Tamer Fakhouri
0
Reputation points
We are intermittently seeing build failures when we try to deploy our code with azure static web apps. Often, the deployment fails with the following message:
npm warn exec The following package was not found and will be installed: @azure/static-web-apps-cli@2.0.4 npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated sudo-prompt@8.2.5: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. Welcome to Azure Static Web Apps CLI (2.0.4) Deploying front-end files from folder: /home/runner/work/frontend/build Consider providing api-language and version using --api-language and --api-version flags, otherwise default values apiLanguage: node and apiVersion: 16 will apply Deploying to environment: Production Found configuration file: /home/runner/work/frontend/staticwebapp.config.json Deploying project to Azure Static Web Apps... Could not find StaticSitesClient local binary - Downloading ... [swa] ✔ Downloading ... - Preparing deployment. Please wait... ✖ ✖ Deployment Failed :( ✖ Deployment Failure Reason: spawn ETXTBSY ✖ For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/azure/static-web-apps/ ✖ If you believe this behavior is unexpected, please raise a GitHub issue at: https://github.com/Azure/static-web-apps-cli/issues/new/choose Error: Process completed with exit code 1.
Sign in to answer