Closed ABrizmohun closed 9 months ago
I am also facing same issue while deploying .net 6 azure function on Linux os
We're also seeing this issue across our dotnet and node application deployments
@ABrizmohun a workaround we found for now is to set these application settings on your azure app:
"ENABLE_ORYX_BUILD" : "false", "SCM_DO_BUILD_DURING_DEPLOYMENT" : "false",
This disables oryx and reverts to the previous build tool. Hopefully this helps while we wait for official advice from the Oryx team.
I've switched to running the App Service from a Zip package for now
az webapp deployment source config-zip --id $AZURE_APPSERVICE_ID --src $PUBLISH_ZIP
I am not sure if this is related, but I had the same error log in the Azure Function deploy in DevOps Pipelines. It appeared that setting the correct application type has fixed it:
appType: functionAppLinux
After that the deploy was setting WEBSITE_RUN_FROM_PACKAGE not to 1 (which is not supported on linux on consumption plan), but to a url
This randomly is affecting our function apps; both new function apps and some older ones that have recently upgraded to dotnet6 runtime. Why is this randomly appearing?
The workaround proposed by @nudejustin worked for our deployments. Oddly enough this is happening with Azure DevOps deployments. This application appears to be intended for use by source code deployments.
Is there any update on this issue that can be provided from the Oryx team? Although the workaround I proposed above works for our AppService instances, it does not work whatsoever for any of our Azure Functions instances. This means we have to manually deploy for all of our function apps, which is really really not ideal from an operational standpoint.
I have been through the issue with Microsoft Support and they have advised that this is a known issue and that the team is working on it. It would be good to understand some kinda time frame on when we could expect a fix however?
Hey Guys , Really stuck since past three days and no resolution yet , I tried all solution but one and another issue I am getting after trying all this. Will appreciate the help for resolution of the issue. Thank you
@nudejustin @sanjaysagore Sorry for the very late reply. Would one of you be willing to share with us a .NET project where we can reproduce the issue?
Given the logs shared above, we should mostly interested in the .csproj
file so it might not be needed to give us the whole code. I'm happy to give a separate email address if your projects are not public.
Thank you @daniv-msft Yet my application is of Python Web App using Flask framework, I have reported the issue through the bug https://github.com/microsoft/Oryx/issues/1915. Would you please help in resolution through the mention bug. Thank you sanjaysagore@gmail.com
@ABrizmohun a workaround we found for now is to set these application settings on your azure app:
"ENABLE_ORYX_BUILD" : "false", "SCM_DO_BUILD_DURING_DEPLOYMENT" : "false",
This disables oryx and reverts to the previous build tool. Hopefully this helps while we wait for official advice from the Oryx team.
If you are deploying .Net Core web apps from VSCode or Visual Studio, ensure SCM_DO_BUILD_DURING_DEPLOYMENT
is set to false
or removed from the app settings.
Because VSCode and Visual Studio use OneDeploy instead of Oryx build, using both methods at the same time trigger this issue.
These recommendations are accurate to fix the problem in VSCode or Visual Studio.
SCM_DO_BUILD_DURING_DEPLOYMENT
works in scenarios where the code is deployed from Azure CLI, Local Git and GitHub repos using ZIPDEPLOY method - https://learn.microsoft.com/en-us/azure/app-service/reference-app-settings?tabs=kudu%2Cdotnet#build-automation
For deploying functions I got the same error when using
az functionapp deploy --resource-group $RESOURCE_GROUP_NAME --name $APPSERVICE_NAME --src-path package.zip --type zip
After some investigations into the official documentation the error is gone using next command:
az functionapp deployment source config-zip -g $RESOURCE_GROUP_NAME -n $APPSERVICE_NAME --src package.zip
This issue seems resolved. Will be closing this issue. If this is still relevant and impacting you please open a new issue and link back to this issue for reference.
I am not sure if this is related, but I had the same error log in the Azure Function deploy in DevOps Pipelines. It appeared that setting the correct application type has fixed it:
appType: functionAppLinux
After that the deploy was setting WEBSITE_RUN_FROM_PACKAGE not to 1 (which is not supported on linux on consumption plan), but to a url
Thank you @ilya-git this helped me with my issue.
Bug Report
At what date and time did you most recently experience the problem? Started on 17th Feb 2022
Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use. Azure Web App (App Service)
If your repo is publicly available please share its URL: Repo is private
What happened? Deployments suddenly stopped working. It was working fine for a few months before.
Deployment is done using Azure CLI
What did you expect or want to happen? Deployment succeeds and Azure Web app restarts
How can we reproduce it?
Additional Details I have tried deleting and recreating the App Service. It did not work
App Service Details
SKU: Basic B1
OS: Linux
Stack: .NET
Major Version: .NET 6
Do you have log output? Please include between the backticks: OneDeploy.log
Oryx Log