Deployment fails randomly: Deployment Failure Reason: Failure during content distribution.
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
The deployment job sometimes fails with the error `Deployment Failure Reason: Failure during content distribution`. If I retry the GitHub job a few minutes / hours later, it succeeds. It happened a few times this week. The following job succeeds at the 4th attempt.
````
Run Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ***
repo_token: ***
action: upload
app_location: azure-swa
skip_app_build: true
env:
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_NOLOGO: true
DOTNET_TieredPGO: 1
ArtifactStagingDirectory: /home/runner/work/project/project/artifacts
NodeJSVersion: 16
/usr/bin/docker run --name e2849036e93e424f3b45859a9548680c5990b7_f254ff --label e28490 --workdir /github/workspace --rm -e DOTNET_SKIP_FIRST_TIME_EXPERIENCE -e DOTNET_NOLOGO -e DOTNET_TieredPGO -e ArtifactStagingDirectory -e NodeJSVersion -e INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN -e INPUT_REPO_TOKEN -e INPUT_ACTION -e INPUT_APP_LOCATION -e INPUT_OUTPUT_LOCATION -e INPUT_SKIP_APP_BUILD -e INPUT_API_BUILD_COMMAND -e INPUT_API_LOCATION -e INPUT_APP_ARTIFACT_LOCATION -e INPUT_APP_BUILD_COMMAND -e INPUT_ROUTES_LOCATION -e INPUT_CONFIG_FILE_LOCATION -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_RETENTION_DAYS -e GITHUB_RUN_ATTEMPT -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_SERVER_URL -e GITHUB_API_URL -e GITHUB_GRAPHQL_URL -e GITHUB_REF_NAME -e GITHUB_REF_PROTECTED -e GITHUB_REF_TYPE -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e GITHUB_ACTION_REPOSITORY -e GITHUB_ACTION_REF -e GITHUB_PATH -e GITHUB_ENV -e RUNNER_OS -e RUNNER_ARCH -e RUNNER_NAME -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/project/project":"/github/workspace" e28490:36e93e424f3b45859a9548680c5990b7
DeploymentId: 18676749-2e13-4bf7-a959-a36c86618d04
App Directory Location: 'azure-swa' was found.
No Api directory specified. Azure Functions will not be created.
Looking for event info
Failed to parse GitHub Event Json (/github/workflow/event.json). Proceeding
Could not get event info. Proceeding
Skipping step to build /github/workspace/azure-swa with Oryx
Using 'staticwebapp.config.json' file for configuration information, 'routes.json' will be ignored.
Either no Api directory was specified, or the specified directory was not found. Azure Functions will not be created.
Zipping App Artifacts
Done Zipping App Artifacts
Uploading build artifacts.
Finished Upload. Polling on deployment.
Status: InProgress. Time: 0.0989484(s)
Status: InProgress. Time: 15.2882766(s)
Status: InProgress. Time: 30.4238533(s)
Status: InProgress. Time: 47.2068267(s)
Status: InProgress. Time: 62.6592872(s)
Status: InProgress. Time: 77.91025(s)
Status: InProgress. Time: 93.2929964(s)
Status: InProgress. Time: 108.4562858(s)
Status: InProgress. Time: 123.6240022(s)
Status: InProgress. Time: 138.8958045(s)
Status: InProgress. Time: 154.0757933(s)
Status: InProgress. Time: 169.1921353(s)
Status: InProgress. Time: 184.3383472(s)
Status: InProgress. Time: 199.4665996(s)
Status: Failed. Time: 214.5293545(s)
Deployment Failed :(
Deployment Failure Reason: Failure during content distribution.
For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/
If you believe this behavior is unexpected, please raise a GitHub issue at https://github.com/azure/static-web-apps/issues/
Exiting
````
**Expected behavior**
The deployment works every time
**Screenshots**

Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.