Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem With Deploy Static Web App #1533

Open
FarrudaGod opened this issue Aug 22, 2024 · 1 comment
Open

Problem With Deploy Static Web App #1533

FarrudaGod opened this issue Aug 22, 2024 · 1 comment

Comments

@FarrudaGod
Copy link

FarrudaGod commented Aug 22, 2024

I encountered an unknown exception during the deployment of an Azure Static Web App using Azure Pipelines. The deployment process downloads the mcr.microsoft.com/appsvc/staticappsclient:stable image and attempts to deploy the app, but it fails with an unknown exception.

Steps to reproduce the behavior:

  1. Run the Azure Pipeline configured to deploy an Azure Static Web App.
  2. The pipeline executes successfully until it reaches the deployment step.
  3. The process fails with an unknown exception and exits with code 1.

The Azure Static Web App should deploy successfully without any exceptions, completing the deployment process.

  • OS: Linux Ubuntu (Latest Version) (Azure Pipelines)
  • The pipeline had been working previously but suddenly stopped by itself. I attempted to resolve the issue by updating the deployment token for the Static Web App and changing the Node.js version to the latest, but the issue persists.
Status: Downloaded newer image for mcr.microsoft.com/appsvc/staticappsclient 
DeploymentId: 2f5abc4a-1f8b-4440-acce-70ed9962f582

An unknown exception has occurred


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 ##[error]Error: The process '/usr/bin/bash' failed with exit code 1

Any insights or suggestions on how to resolve this issue would be greatly appreciated. Thank you!

Taks:

                    - ${{ if releaseOp.value.staticWebAppKey }}:
                        - task: AzureStaticWebApp@0
                          displayName: "Deploy Static Web App"
                          inputs:
                            app_location: "$(Build.BuildId)/dist"
                            skip_app_build: false
                            skip_api_build: true
                            is_static_export: false
                            verbose: true
                            azure_static_web_apps_api_token: $(deployment_token)
@sebastianblesgen
Copy link

app_location is probably / and you need an output_location I guess. Here is what I have (using devops release pipeline)

steps:
- task: AzureStaticWebApp@0
  displayName: 'Static Web App: '
  inputs:
    workingDirectory: '$(System.DefaultWorkingDirectory)/$(build-artifacts-name)'
    app_location: /
    output_location: dist
    skip_app_build: false
    skip_api_build: true
    is_static_export: false
    verbose: false
    azure_static_web_apps_api_token: '$(APIToken)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants