swa deploy fails without error
See original GitHub issueThe swa deploy just fails with no error.
I can briefly see the StaticSitesClient process in ps aux
for like 0.5s.
15:22 $ swa deploy --no-use-keychain --verbose=silly -R theproject-dev --app-name theproject-dev --subscription-id abc123
Welcome to Azure Static Web Apps CLI (1.0.2)
Getting config file options from swa-cli.config.json...
Config file does not exist at /home/perosb/build/theproject/swa-cli.config.json
Deploying front-end files from folder:
/home/perosb/build/theproject
Deployment token found in Environment Variables:
- SWA_CLI_DEPLOYMENT_TOKEN: <hidden>
Deploying to environment: preview
Trying to read workflow config with values:
- appLocation: /home/perosb/build/theproject
- outputLocation: /home/perosb/build/theproject
- apiLocation: <undefined>
No workflow config folder found at /home/perosb/build/theproject/.github/workflows
Validating user workflow config (BEFORE):
- appLocation: /home/perosb/build/theproject
- outputLocation: /home/perosb/build/theproject
- apiLocation: <undefined>
Validating user workflow config (AFTER):
- appLocation: /home/perosb/build/theproject
- apiLocation: <undefined>
- outputLocation: /home/perosb/build/theproject
No staticwebapp.config.json found in current project
Deploying project to Azure Static Web Apps...
Fetching release metadata for version: stable. Please wait...
- version: stable
- buildId: 1.0.020391
- publishDate: 2022-08-01T17:11:02.6122551Z
- files:
- linux-x64:
- url: https://swalocaldeploy.azureedge.net/downloads/1.0.020391/linux/StaticSitesClient
- sha: 2f2accf69fbc9eb87c9ef35900f61771cfa7d449d177babe6534cc0f952ad993
- win-x64:
- url: https://swalocaldeploy.azureedge.net/downloads/1.0.020391/windows/StaticSitesClient.exe
- sha: 100cc717758ea6ef4af52957128fb0e6b0edd67b0d98b504eabbe7b708f0376e
- osx-x64:
- url: https://swalocaldeploy.azureedge.net/downloads/1.0.020391/macOS/StaticSitesClient
- sha: 34e91e8631e042839f50db6a78d87de62f57401d2a3f4ab616b6bb51264b9411
Local client binary is up to date. Skipping download.
Deploying using /home/perosb/.swa/deploy/1.0.020391/StaticSitesClient@1.0.020391
Deploying using the following options:
- env:
- SWA_CLI_DEBUG: silly
- SWA_RUNTIME_WORKFLOW_LOCATION: <undefined>
- SWA_RUNTIME_CONFIG_LOCATION: <undefined>
- SWA_RUNTIME_CONFIG: <undefined>
- SWA_CLI_VERSION: 1.0.2
- SWA_CLI_DEPLOY_DRY_RUN: false
- SWA_CLI_DEPLOY_BINARY: /home/perosb/.swa/deploy/1.0.020391/StaticSitesClient@1.0.020391
- DEPLOYMENT_ACTION: upload
- DEPLOYMENT_PROVIDER: swa-cli-1.0.2
- REPOSITORY_BASE: /home/perosb/build/theproject
- SKIP_APP_BUILD: true
- SKIP_API_BUILD: true
- DEPLOYMENT_TOKEN: <hidden>
- APP_LOCATION: /home/perosb/build/theproject
- API_LOCATION: <undefined>
- CONFIG_FILE_LOCATION: <undefined>
- VERBOSE: true
- DEPLOYMENT_ENVIRONMENT: preview
ℹ DeploymentId: 9396e4a3-79de-48cf-995f-3adc6399f517
ℹ
ℹ Verbose logging enabled
ℹ Build timeout not specified, defaulting to 15 minutes
ℹ App Directory Location: '/home/perosb/build/theproject' was found.
ℹ Looking for event info
ℹ Event info parsed from action options.
ℹ Could not get repository branch. Proceeding
ℹ Could not get repository url. Proceeding
Desktop (please complete the following information):
- OS: Fedora 36
Issue Analytics
- State:
- Created a year ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Troubleshooting | Static Web Apps CLI - Azure documentation
When a user tries to swa deploy from within the app-location , the deploy command currently fails with an unknown error. This is...
Read more >Azure Static Web Apps deploy from Github fails - Microsoft Learn
Hello, Our deployment from Github to SWA started failing after Oct 2. We have no clue what is causing it to fail. The...
Read more >azure - Visual Studio Team Services Release/Deploy fails
The "Deploy Website to Azure" step on my Release definition keeps failing with the error "No package found with specified pattern".
Read more >Troubleshooting - Dokku Documentation
I successfully deployed my application with no deployment errors and receiving Bad Gateway when attempting to access the application. Deployment fails because ...
Read more >Troubleshoot instances with failed status checks
If an instance status check fails, you can reboot the instance and retrieve the system logs. The logs may reveal an error that...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @sgollapudi77, I can confirm that this issue is fixed for me 👍. Thank you!
Is it an intended behavior that the CLI 1.0.3 doesn’t use the latest version of StaticSitesClient (1.0.021731) but the one with a stable tag (1.0.021671)?
Hi, yes we tried those workarounds but still no go. It’s a Gatsby app. Swa successfully detects and builds the app, but deploy doesn’t work . We have tried different combinations of supplying the output folder.