static-web-apps-cli icon indicating copy to clipboard operation
static-web-apps-cli copied to clipboard

"Failure during content distribution" when deploying more than ~3000 files

Open asbjornu opened this issue 1 year ago • 0 comments

Describe the bug swa deploy times out after 300 seconds with the error message Failure during content distribution if the number of uploaded files surpasses ~3000 files.

To Reproduce Steps to reproduce the behavior:

  1. Produce more than 3000 files to upload to an SWA.
  2. Execute swa deploy to deploy the 3000+ files.
  3. Notice how Status: InProgress. Time: … is printed to the console 20 times.
  4. Notice how the deployment ends after 5 minutes with the error message Failure during content distribution.

Expected behavior I expect SWA to be able to upload more than ~3000 files. Either by allowing the timeout to be increased, or – preferably – by the SWA infrastructure simply working faster to distribute the files.

Screenshots Deployment Failure Reason: Failure during content distribution.

Desktop (please complete the following information):

  • OS: macOS
  • Version: 13.6.7

Additional context

  • I use version 1.1.9 of swa.
  • See the discussion in https://github.com/Azure/static-web-apps/issues/632#issuecomment-2179548456.

asbjornu avatar Jun 22 '24 23:06 asbjornu