Production environment stuck in UPLOADING — StaticSitesClient exits with code 1

未关闭
#1,817 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
azure
领域
cloud

调研方向

Start by reviewing the Azure Static Web Apps deployment and content distribution workflow, then investigate the production upload that leaves the environment in Uploading after StaticSitesClient.exe exits with code 1. The report names no repository files or tests, so begin by tracing the backend deployment entry points and any available diagnostics for the failed upload. Done means identifying a safe way to complete or clear the stalled deployment while preserving the app and its credentials.

由索引模型根据 Issue 内容生成。

描述

Describe the bug

An Azure Static Web App production environment is stuck indefinitely in Uploading. New production deployments fail even though Azure authentication succeeds, the correct application is resolved, and the deployment configuration is found.

The production website remains accessible but continues serving the previously deployed frontend.

Azure's built-in deployment troubleshooter identifies a stalled deployment/content-distribution workflow.

Steps to reproduce

  1. Build a production frontend distribution successfully.
  2. Run Azure Static Web Apps CLI 2.0.9 on Windows, targeting the existing production environment.
  3. Observe successful Azure authentication, application resolution, and configuration discovery.
  4. Observe StaticSitesClient.exe exiting with code 1 during deployment.
  5. Query the production environment using Azure CLI. Its status remains Uploading.
  6. Fetch the production website. It continues serving the previous frontend JavaScript asset.

Actual behavior

  • Production remains in Uploading.
  • Native deployment client exits with code 1.
  • The deployment does not reach a confirmed successful state.
  • The old frontend remains live.
  • Subsequent attempts do not recover the stalled deployment.
  • The deployment client's help command executes successfully with exit code 0, indicating that the binary can launch on Windows.

A separate Azure diagnostic also identified an earlier Microsoft.Web/staticSites/zipdeploy/action failure with HTTP 405 MethodNotAllowed. This historical event predates the current failure, and its relationship to the stuck upload is unconfirmed.

Expected behavior

Production deployment should either complete successfully or enter a recoverable failed state. It should not remain indefinitely in Uploading while rejecting subsequent valid deployments.

Environment

  • Platform: Azure Static Web Apps
  • Environment: Production (default)
  • CLI: Azure Static Web Apps CLI 2.0.9
  • Operating system: Windows
  • Deployment method: SWA CLI using an existing production build
  • Azure authentication: Successful
  • Configuration discovery: Successful

Requested assistance

Please investigate the deployment/content-distribution backend and advise how to safely clear or complete the stalled production upload.

We need to preserve the existing Static Web App, production configuration, application identity, and deployment credentials. Deleting or recreating production is not an acceptable recovery method.

Additional resource-specific diagnostic evidence can be provided privately to Microsoft engineers if needed.

主要语言
没有语言数据
星标
347
派生
68
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Azure/static-web-apps 的其他 Issue

查看 Azure/static-web-apps 的全部 Issue

相似的 Issue

更多 Cloud Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。