Production environment stuck in UPLOADING — StaticSitesClient exits with code 1

Đang mở
#1,817 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
azure
Lĩnh vực
cloud

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Không có dữ liệu ngôn ngữ
Star
347
Fork
68
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Azure/static-web-apps

Tất cả issue của Azure/static-web-apps

Issue tương tự

Thêm issue về Cloud

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.