Open jmbrunskill opened 2 years ago
I'm also getting this, except it's been many times in a row, this is now stopping us releasing our SWA website. @anthonychu would appreciate it you could check out what's going on? Here is what I get:
---End of Oryx build logs--- Finished building app with Oryx Using 'staticwebapp.config.json' file for configuration information, 'routes.json' will be ignored. Copying 'staticwebapp.config.json' to build output Either no Api directory was specified, or the specified directory was not found. Azure Functions will not be created. Zipping App Artifacts Done Zipping App Artifacts Uploading build artifacts. Failed to upload build artifacts.
@derekvantonder can you provide some of the logs (i.e. deployment Id) or the default hostname of the site? Additionally, what is the CI/CD setup for this? Is it running on self-hosted runners?
Hi @miwebst, the site's default hostname is https://delightful-forest-02a74151e.azurestaticapps.net.
This has happened intermittently but a couple of days ago it was like every build. Just a mysterious error about failing to upload build artifacts, no more info than that.
Thank you!
@miwebst this happens a lot with my deployments too. I use SWA to publish MSIX package, it's a static website with index.html and a couple of binary files. Here are the logs
DeploymentId: af702596-4caa-4023-8def-ad19c4bdd6f0
App Directory Location: '...Package' was found.
Looking for event info
Starting to build app with Oryx
Azure Static Web Apps utilizes Oryx to build both static applications and Azure Functions. You can find more details on Oryx here: https://github.com/microsoft/Oryx
---Oryx build logs---
Operation performed by Microsoft Oryx, https://github.com/Microsoft/Oryx
You can report issues at https://github.com/Microsoft/Oryx/issues
Oryx Version: 0.2.20221103.1, Commit: a2c65dde152b749fea395f4d1242ea9350942258, ReleaseTagName: 20221103.1
Build Operation ID: |rM8Q6/Gn0SM=.16023641_
Detecting platforms...
Could not detect any platform in the source directory.
Error: Could not detect the language from repo.
---End of Oryx build logs---
Oryx was unable to determine the build steps. Continuing assuming the assets in this folder are already built. If this is an unexpected behavior please contact support.
Finished building app with Oryx
No Api directory specified. Azure Functions will not be created.
Either no Api directory was specified, or the specified directory was not found. Azure Functions will not be created.
Zipping App Artifacts
Done Zipping App Artifacts
Uploading build artifacts.
Failed to upload build artifacts.
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
Describe the bug
Frequent Static Web Pages Deployment failures from Azure Dev Ops Pipeline. Using continuous integration on commits to a target branch to trigger this workflow. The website content is generated via a custom static page generation tool, so doesn't use a Static Generation Framework.
To Reproduce Create a Azure Dev Ops pipeline to deploy to static web apps (We are deploying every 15minutes) Observe intermittent pipeline failures
Pipeline yaml is about as simple as it gets
Expected behavior Deployment failures should be very rare .
Additional context Deployment from Azure Dev Ops Pipeline