-
Notifications
You must be signed in to change notification settings - Fork 126
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
swa deploy fails after 31 minutes due to failure to upload #837
Comments
Im having exactly the same issue with SWA CLI's latest version. Want to manually deploy a Blazor WASM Standalone app using SWA CLI and I'm getting: Welcome to Azure Static Web Apps CLI (2.0.1)
Getting config file options from "swa-cli.config.json"...
Config file does not exist at "swa-cli.config.json"
Resolving outputLocation=public full path...
Deploying front-end files from folder:
C:\Users\Jorge\Documents\Dev\***\Ui\***.***\***.***.UI\bin\Release\net9.0\browser-wasm\publish\wwwroot\public
Consider providing api-language and version using --api-language and --api-version flags,
otherwise default values apiLanguage: node and apiVersion: 16 will apply
Deployment token provided via flag
- --deployment-token: <hidden>
Deploying to environment: production
Trying to read workflow config with values:
- appLocation: C:\Users\Jorge\Documents\Dev\***\Ui\***.***\***.***.UI\bin\Release\net9.0\browser-wasm\publish\wwwroot
- outputLocation: C:\Users\Jorge\Documents\Dev\***\Ui\***.***\***.***.UI\bin\Release\net9.0\browser-wasm\publish\wwwroot\public
- apiLocation: <undefined>
- dataApiLocation: <undefined>
No workflow config folder found at C:\Users\Jorge\Documents\Dev\***\Ui\***.***\***.***.UI\bin\Release\net9.0\browser-wasm\publish\wwwroot\.github\workflows
Validating user workflow config (BEFORE):
- appLocation: C:\Users\Jorge\Documents\Dev\***\Ui\***.***\***.***.UI\bin\Release\net9.0\browser-wasm\publish\wwwroot
- outputLocation: C:\Users\Jorge\Documents\Dev\***\Ui\***.***\***.***.UI\bin\Release\net9.0\browser-wasm\publish\wwwroot\public
- apiLocation: <undefined>
- dataApiLocation: <undefined>
Validating user workflow config (AFTER):
- appLocation: C:\Users\Jorge\Documents\Dev\***\Ui\***.***\***.***.UI\bin\Release\net9.0\browser-wasm\publish\wwwroot
- apiLocation: <undefined>
- outputLocation: C:\Users\Jorge\Documents\Dev\***\Ui\***.***\***.***.UI\bin\Release\net9.0\browser-wasm\publish\wwwroot\public
- dataApiLocation: <undefined>
No staticwebapp.config.json found in current project
Deploying project to Azure Static Web Apps...
Fetching release metadata for version: stable. Please wait...
GET https://swalocaldeploy.azureedge.net/downloads/versions.json
Decode JSON: [
{
"version": "latest",
"buildId": "53b7d0e07fe5c34bf68929fab92f87ce910288dc",
"publishDate": "2024-10-24T20:43:23.5850191Z",
"files": {
"linux-x64": {
"url": "https://swalocaldeploy.azureedge.net/downloads/53b7d0e07fe5c34bf68929fab92f87ce910288dc/linux/StaticSitesClient",
"sha": "66fca4b42cbc64d451097931ca4ed75649233bd818f97f0c3f6d1d75cff61413"
},
"win-x64": {
"url": "https://swalocaldeploy.azureedge.net/downloads/53b7d0e07fe5c34bf68929fab92f87ce910288dc/windows/StaticSitesClient.exe",
"sha": "fc949fb19d29cce1e8b74cf1e2c31706426d46b3e03d830d601524cee63faa0b"
},
"osx-x64": {
"url": "https://swalocaldeploy.azureedge.net/downloads/53b7d0e07fe5c34bf68929fab92f87ce910288dc/macOS/StaticSitesClient",
"sha": "89ec4fe61217325e89ed849a564ffe4cc51b61c325abdca82e8e441a4959ec92"
}
}
},
{
"version": "stable",
"buildId": "53b7d0e07fe5c34bf68929fab92f87ce910288dc",
"publishDate": "2024-10-24T20:43:23.5850191Z",
"files": {
"linux-x64": {
"url": "https://swalocaldeploy.azureedge.net/downloads/53b7d0e07fe5c34bf68929fab92f87ce910288dc/linux/StaticSitesClient",
"sha": "66fca4b42cbc64d451097931ca4ed75649233bd818f97f0c3f6d1d75cff61413"
},
"win-x64": {
"url": "https://swalocaldeploy.azureedge.net/downloads/53b7d0e07fe5c34bf68929fab92f87ce910288dc/windows/StaticSitesClient.exe",
"sha": "fc949fb19d29cce1e8b74cf1e2c31706426d46b3e03d830d601524cee63faa0b"
},
"osx-x64": {
"url": "https://swalocaldeploy.azureedge.net/downloads/53b7d0e07fe5c34bf68929fab92f87ce910288dc/macOS/StaticSitesClient",
"sha": "89ec4fe61217325e89ed849a564ffe4cc51b61c325abdca82e8e441a4959ec92"
}
}
},
{
"version": "backup",
"buildId": "c25b033e400580829b0fea1fc7fb566139ab61c0",
"publishDate": "2024-10-16T22:53:44.2035066Z",
"files": {
"linux-x64": {
"url": "https://swalocaldeploy.azureedge.net/downloads/c25b033e400580829b0fea1fc7fb566139ab61c0/linux/StaticSitesClient",
"sha": "25a33db34c0647e1225755fb65a441c3ccfe523523f54a38f85c3ff6531aa475"
},
"win-x64": {
"url": "https://swalocaldeploy.azureedge.net/downloads/c25b033e400580829b0fea1fc7fb566139ab61c0/windows/StaticSitesClient.exe",
"sha": "40e9339b57c2df7fafdddb73cee5f5ed10ad03841bd25796b3ea81b793b4bf66"
},
"osx-x64": {
"url": "https://swalocaldeploy.azureedge.net/downloads/c25b033e400580829b0fea1fc7fb566139ab61c0/macOS/StaticSitesClient",
"sha": "aac8b80f43a40714f1d38a0c8c23752aaec5fc4cb32e05cd2c38ff9ef0a60f32"
}
}
}
]
Release Metadata for stable: {
"version": "stable",
"buildId": "53b7d0e07fe5c34bf68929fab92f87ce910288dc",
"publishDate": "2024-10-24T20:43:23.5850191Z",
"files": {
"linux-x64": {
"url": "https://swalocaldeploy.azureedge.net/downloads/53b7d0e07fe5c34bf68929fab92f87ce910288dc/linux/StaticSitesClient",
"sha": "66fca4b42cbc64d451097931ca4ed75649233bd818f97f0c3f6d1d75cff61413"
},
"win-x64": {
"url": "https://swalocaldeploy.azureedge.net/downloads/53b7d0e07fe5c34bf68929fab92f87ce910288dc/windows/StaticSitesClient.exe",
"sha": "fc949fb19d29cce1e8b74cf1e2c31706426d46b3e03d830d601524cee63faa0b"
},
"osx-x64": {
"url": "https://swalocaldeploy.azureedge.net/downloads/53b7d0e07fe5c34bf68929fab92f87ce910288dc/macOS/StaticSitesClient",
"sha": "89ec4fe61217325e89ed849a564ffe4cc51b61c325abdca82e8e441a4959ec92"
}
}
}
Local client binary is up to date. Skipping download.
Deploying using C:\Users\Jorge\.swa\deploy\53b7d0e07fe5c34bf68929fab92f87ce910288dc\StaticSitesClient.exe@53b7d0e07fe5c34bf68929fab92f87ce910288dc
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: 2.0.1
- SWA_CLI_DEPLOY_DRY_RUN: false
- SWA_CLI_DEPLOY_BINARY: C:\Users\Jorge\.swa\deploy\53b7d0e07fe5c34bf68929fab92f87ce910288dc\StaticSitesClient.exe@53b7d0e07fe5c34bf68929fab92f87ce910288dc
- DEPLOYMENT_ACTION: upload
- DEPLOYMENT_PROVIDER: SwaCli
- REPOSITORY_BASE: C:\Users\Jorge\Documents\Dev\***\Ui\***.***\***.***.UI\bin\Release\net9.0\browser-wasm\publish\wwwroot
- SKIP_APP_BUILD: true
- SKIP_API_BUILD: true
- DEPLOYMENT_TOKEN: <hidden>
- APP_LOCATION: C:\Users\Jorge\Documents\Dev\***\Ui\***.***\***.***.UI\bin\Release\net9.0\browser-wasm\publish\wwwroot\public
- API_LOCATION: <undefined>
- DATA_API_LOCATION: <undefined>
- CONFIG_FILE_LOCATION: <undefined>
- VERBOSE: true
- FUNCTION_LANGUAGE: node
- FUNCTION_LANGUAGE_VERSION: 16
i DeploymentId: 6b2c73c0-e47a-4b9b-917b-00f83861a712
i Verbose logging enabled
i Try to validate location at: 'C:\Users\Jorge\Documents\Dev\***\Ui\***.***\***.***.UI\bin\Release\net9.0\browser-wasm\publish\wwwroot\C:\Users\Jorge\Documents\Dev\***\Ui\***.***\***.***.UI\bin\Release\net9.0\browser-wasm\publish\wwwroot\public'.
i Build timeout not specified, defaulting to 15 minutes
i App Directory Location: 'C:\Users\Jorge\Documents\Dev\***\Ui\***.***\***.***.UI\bin\Release\net9.0\browser-wasm\publish\wwwroot\public' was found.
i Try to validate location at: 'C:\Users\Jorge\Documents\Dev\***\Ui\***.***\***.***.UI\bin\Release\net9.0\browser-wasm\publish\wwwroot\swa-db-connections'.
i Looking for event info
i Could not get event info. Proceeding
i Skipping step to build C:\Users\Jorge\Documents\Dev\***\Ui\***.***\***.***.UI\bin\Release\net9.0\browser-wasm\publish\wwwroot\public with Oryx
i Could not find staticwebapp.config.json file.
i Didn't find Oryx manifest file under location: C:\Users\Jorge\Documents\Dev\***\Ui\***.***\***.***.UI\bin\Release\net9.0\browser-wasm\publish\wwwroot\6b2c73c0-e47a-4b9b-917b-00f83861a712-swa-oryx\app-manifest\oryx-manifest.toml
i Determined default file to be: index.html
i Calculating the size of app artifacts: 53249102 B
i No Api directory specified. Azure Functions will not be created.
i Either no Api directory was specified, or the specified directory was not found. Azure Functions will not be created.
i Zipping App Artifacts
i App Zip will be created from directory: C:\Users\Jorge\Documents\Dev\***\Ui\***.***\***.***.UI\bin\Release\net9.0\browser-wasm\publish\wwwroot\public
i Done Zipping App Artifacts
i Uploading build artifacts.
i Failed to upload app zip, retrying...
i Failed to upload app zip, retrying...
i Uploading failed. Error message: Retry failed after 6 tries. Retry settings can be adjusted in ClientOptions.Retry. (The operation was cancelled because it exceeded the configured timeout of 0:01:40. Network timeout can be adjusted in ClientOptions.Retry.NetworkTimeout.) (The operation was cancelled because it exceeded the configured timeout of 0:01:40. Network timeout can be adjusted in ClientOptions.Retry.NetworkTimeout.) (The operation was cancelled because it exceeded the configured timeout of 0:01:40. Network timeout can be adjusted in ClientOptions.Retry.NetworkTimeout.) (The operation was cancelled because it exceeded the configured timeout of 0:01:40. Network timeout can be adjusted in ClientOptions.Retry.NetworkTimeout.) (The operation was cancelled because it exceeded the configured timeout of 0:01:40. Network timeout can be adjusted in ClientOptions.Retry.NetworkTimeout.) (The operation was cancelled because it exceeded the configured timeout of 0:01:40. Network timeout can be adjusted in ClientOptions.Retry.NetworkTimeout.)
i Failed to upload build artifacts.
i For further information, please visit the Azure Static Web Apps documentation at https://docs.microsoft.com/en-us/azure/static-web-apps/
i If you believe this behavior is unexpected, please raise a GitHub issue at https://github.com/azure/static-web-apps/issues/
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using swa version 1.1.8, which is the latest at the moment.
Describe the bug
swa deploy
fails to deploy due to "Failed to upload app zip" ... "Uploading failed ... retry failed after 6 tries.".To Reproduce
Steps to reproduce the behavior:
Expected behavior
Successful deploy (this command worked in the past, nothing on my side changed).
Screenshots
The full log:
Desktop (please complete the following information):
Additional context
The zip created is kept. It is just 19M:
.rw-r--r-- 19M nick 24 May 20:08 .\d2d543f0-6c6c-43b6-b788-0f480ca9f7fa-app.zip
The information regarding timeouts is difficult to interpret, there is 2 times "Failed to upload app zip", but then the messages says "Retry failed after 6 tries" with a detail "The operation was cancelled because it exceeded the configured timeout of 00:01:40" (100 seconds), but the whole thing takes slightly over 31 minutes, so why doesn't it time out after 6*100 seconds then?
The text was updated successfully, but these errors were encountered: