Skip to content

Suddenly getting 'Deployment Failure Reason: spawn ETXTBSY' on Github Actions #916

@dvasdekis

Description

@dvasdekis

Are you accessing the CLI from the default port :4280 ?

  • No, I am using a different port number (--port) and accessing the CLI from that port
  • Yes, I am accessing the CLI from port :4280

Make sure you are accessing the URL printed in the console when running swa start!

ℹ️ NOTE: Make sure to enable debug logs when running any swa commands using --verbose=silly

Describe the bug
Intermittently during deployment on Github Actions, we get an error out with the output "Deployment Failure Reason: spawn ETXTBSY"

To Reproduce
Our script is:

npm install -g @azure/static-web-apps-cli
az login
npm ci
npm run build
$swakey = az staticwebapp secrets list --name "$webAppName" --query "properties.apiKey" --output tsv
swa deploy --subscription-id $subscriptionId --resource-group $resourceGroup --app-name "$webAppName" --app-location "./out" --deployment-token $swakey --env production --api-language "node" --api-version "20" --verbose "silly"

Script has been working fine for months.

Expected behavior
Deploys app

Screenshots
Output from swa deploy below:

Welcome to Azure Static Web Apps CLI (2.0.2)
Getting config file options from "swa-cli.config.json"...
Config file does not exist at "swa-cli.config.json"
Resolving outputLocation=. full path...
Deploying front-end files from folder:
  /home/runner/work/platform/platform/platform/staticwebapp/ui/out
Deployment token provided via flag
 - --deployment-token: <hidden>
Deploying to environment: production
Trying to read workflow config with values:
 - appLocation: /home/runner/work/platform/platform/platform/staticwebapp/ui/out
 - outputLocation: /home/runner/work/platform/platform/platform/staticwebapp/ui/out
 - apiLocation: <undefined>
 - dataApiLocation: <undefined>
No workflow config folder found at /home/runner/work/platform/platform/platform/staticwebapp/ui/out/.github/workflows
Validating user workflow config (BEFORE):
 - appLocation: /home/runner/work/platform/platform/platform/staticwebapp/ui/out
 - outputLocation: /home/runner/work/platform/platform/platform/staticwebapp/ui/out
 - apiLocation: <undefined>
 - dataApiLocation: <undefined>
Validating user workflow config (AFTER):
 - appLocation: /home/runner/work/platform/platform/platform/staticwebapp/ui/out
 - apiLocation: <undefined>
 - outputLocation: /home/runner/work/platform/platform/platform/staticwebapp/ui/out
 - dataApiLocation: <undefined>
No staticwebapp.config.json found in current project
Deploying project to Azure Static Web Apps...
Could not find StaticSitesClient local binary
Fetching release metadata for version: stable. Please wait...
GET https://aka.ms/swalocaldeploy
Decode JSON: [
  {
    "version": "latest",
    "buildId": "53b7d0e07fe5c34bf68929fab92f87ce910[288](https://github.com/[REDACTED]/platform/actions/runs/12920432105/job/36035810699?pr=3214#step:9:289)dc",
    "publishDate": "2024-10-24T20:43:23.5850191Z",
    "files": {
      "linux-x64": {
        "url": "https://swalocaldeployv2-bndtgugjgqc3dhdx.b01.azurefd.net/downloads/53b7d0e07fe5c34bf68929fab92f87ce910288dc/linux/StaticSitesClient",
        "sha": "66fca4b42cbc64d451097931ca4ed75649233bd818f97f0c3f6d1d75cff61413"
      },
      "win-x64": {
        "url": "https://swalocaldeployv2-bndtgugjgqc3dhdx.b01.azurefd.net/downloads/53b7d0e07fe5c34bf68929fab92f87ce910288dc/windows/StaticSitesClient.exe",
        "sha": "fc949fb19d29cce1e8b74cf1e2c31706426d46b3e03d830d601524cee63faa0b"
      },
      "osx-x64": {
        "url": "https://swalocaldeployv2-bndtgugjgqc3dhdx.b01.azurefd.net/downloads/53b7d0e07fe5c34bf68929fab92f87ce910288dc/macOS/StaticSitesClient",
        "sha": "89ec4fe61217325e89ed849a564ffe4cc51b61c325abdca82e8e441a4959ec92"
      }
    }
  },
  {
    "version": "stable",
    "buildId": "53b7d0e07fe5c34bf68929fab92f87ce910288dc",
    "publishDate": "2024-10-24T20:43:23.5850191Z",
    "files": {
      "linux-x64": {
        "url": "https://swalocaldeployv2-bndtgugjgqc3dhdx.b01.azurefd.net/downloads/53b7d0e07fe5c34bf68929fab92f87ce910288dc/linux/StaticSitesClient",
        "sha": "66fca4b42cbc64d451097931ca4ed75649233bd818f97f0c3f6d1d75cff61413"
      },
      "win-x64": {
        "url": "https://swalocaldeployv2-bndtgugjgqc3dhdx.b01.azurefd.net/downloads/53b7d0e07fe5c34bf68929fab92f87ce910288dc/windows/StaticSitesClient.exe",
        "sha": "fc949fb19d29cce1e8b74cf1e2c31706426d46b3e03d830d601524cee63faa0b"
      },
      "osx-x64": {
        "url": "https://swalocaldeployv2-bndtgugjgqc3dhdx.b01.azurefd.net/downloads/53b7d0e07fe5c34bf68929fab92f87ce910288dc/macOS/StaticSitesClient",
        "sha": "89ec4fe61217325e89ed849a564ffe4cc51b61c325abdca82e8e441a4959ec92"
      }
    }
  },
  {
    "version": "backup",
    "buildId": "c25b033e400580829b0fea1fc7fb566139ab61c0",
    "publishDate": "2024-10-16T22:53:44.2035066Z",
    "files": {
      "linux-x64": {
        "url": "https://swalocaldeployv2-bndtgugjgqc3dhdx.b01.azurefd.net/downloads/c25b033e400580829b0fea1fc7fb566139ab61c0/linux/StaticSitesClient",
        "sha": "25a33db34c0647e1225755fb65a441c3ccfe523523f54a38f85c3ff6531aa475"
      },
      "win-x64": {
        "url": "https://swalocaldeployv2-bndtgugjgqc3dhdx.b01.azurefd.net/downloads/c25b033e400580829b0fea1fc7fb566139ab61c0/windows/StaticSitesClient.exe",
        "sha": "40e9339b57c2df7fafdddb73cee5f5ed10ad03841bd25796b3ea81b793b4bf66"
      },
      "osx-x64": {
        "url": "https://swalocaldeployv2-bndtgugjgqc3dhdx.b01.azurefd.net/downloads/c25b033e400580829b0fea1fc7fb566139ab61c0/macOS/StaticSitesClient",
        "sha": "aac8b80f43a40714f1d38a0c8c23752aaec5fc4cb32e05cd2c38ff9ef0a60f32"
      }
    }
  }
]
Release Metadata for stable: {
  "version": "stable",
  "buildId": "53b7d0e07fe5c34bf68929fab92f87ce910288dc",
  "publishDate": "2024-10-24T20:43:23.5850191Z",
  "files": {
    "linux-x64": {
      "url": "https://swalocaldeployv2-bndtgugjgqc3dhdx.b01.azurefd.net/downloads/53b7d0e07fe5c34bf68929fab92f87ce910288dc/linux/StaticSitesClient",
      "sha": "66fca4b42cbc64d451097931ca4ed75649233bd818f97f0c3f6d1d75cff61413"
    },
    "win-x64": {
      "url": "https://swalocaldeployv2-bndtgugjgqc3dhdx.b01.azurefd.net/downloads/53b7d0e07fe5c34bf68929fab92f87ce910288dc/windows/StaticSitesClient.exe",
      "sha": "fc949fb19d29cce1e8b74cf1e2c[317](https://github.com/[REDACTED]/platform/actions/runs/12920432105/job/36035810699?pr=3214#step:9:318)06426d46b3e03d830d601524cee63faa0b"
    },
    "osx-x64": {
      "url": "https://swalocaldeployv2-bndtgugjgqc3dhdx.b01.azurefd.net/downloads/53b7d0e07fe5c34bf68929fab92f87ce910288dc/macOS/StaticSitesClient",
      "sha": "89ec4fe61217[325](https://github.com/[REDACTED]/platform/actions/runs/12920432105/job/36035810699?pr=3214#step:9:326)e89ed849a564ffe4cc51b61c325abdca82e8e441a4959ec92"
    }
  }
}
- Downloading https://swalocaldeployv2-bndtgugjgqc3dhdx.b01.azurefd.net/downloads/53b7d0e07fe5c34bf68929fab92f87ce910288dc/linux/StaticSitesClient@53b7d0e07fe5c34bf68929fab92f87ce910288dc
[swa] ✔ Downloading https://swalocaldeployv2-bndtgugjgqc3dhdx.b01.azurefd.net/downloads/53b7d0e07fe5c34bf68929fab92f87ce910288dc/linux/StaticSitesClient@53b7d0e07fe5c34bf68929fab92f87ce910288dc
Checksum match: 66fca4b42cbc64d451097931ca4ed75649233bd818f97f0c3f6d1d75cff61413
Saved binary to /home/runner/.swa/deploy/53b7d0e07fe5c34bf68929fab92f87ce910288dc/StaticSitesClient
Saved metadata to /home/runner/.swa/deploy/StaticSitesClient.json
Deploying using /home/runner/.swa/deploy/53b7d0e07fe5c34bf68929fab92f87ce910288dc/StaticSitesClient@53b7d0e07fe5c34bf68929fab92f87ce910288dc
Deploying using the following options:
- env:
  - SWA_CLI_DEBUG: silly
  - SWA_RUNTIME_WORKFLOW_LOCATION: <undefined>
  - SWA_RUNTIME_CONFIG_LOCATION: <undefined>
  - SWA_RUNTIME_CONFIG: <undefined>
  - SWA_CLI_VERSION: 2.0.2
  - SWA_CLI_DEPLOY_DRY_RUN: false
  - SWA_CLI_DEPLOY_BINARY: /home/runner/.swa/deploy/53b7d0e07fe5c34bf68929fab92f87ce910288dc/StaticSitesClient@53b7d0e07fe5c34bf68929fab92f87ce910288dc
  - DEPLOYMENT_ACTION: upload
  - DEPLOYMENT_PROVIDER: SwaCli
  - REPOSITORY_BASE: /home/runner/work/platform/platform/platform/staticwebapp/ui/out
  - SKIP_APP_BUILD: true
  - SKIP_API_BUILD: true
  - DEPLOYMENT_TOKEN: <hidden>
  - APP_LOCATION: /home/runner/work/platform/platform/platform/staticwebapp/ui/out
  - API_LOCATION: <undefined>
  - DATA_API_LOCATION: <undefined>
  - CONFIG_FILE_LOCATION: <undefined>
  - VERBOSE: true
  - FUNCTION_LANGUAGE: node
  - FUNCTION_LANGUAGE_VERSION: 20
- 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/

Desktop (please complete the following information):

Additional context
Not sure what else to add! Let me know if there's anything I can help with.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions