Production environment stuck in UPLOADING — StaticSitesClient exits with code 1

Aperta
#1,817 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
azure
Ambito
cloud

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Nessun dato sulla lingua
Stelle
347
Fork
68
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/static-web-apps

Tutte le issue di Azure/static-web-apps

Issue simili

Altre issue su Cloud

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.