-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
AzureFunctionApp@1: Deployment may fail to Azure Functions on Linux #16005
Comments
I filed PR #15983 in advance. |
Another request to bump this....as it blocking all of my deployments...just happened to clean/delete terraform environment this morning as well... |
Bump - our production environments are unable to deploy now either. We have a mix of Dedicated and Premium skus - and now both are problematic. Was surprised to find out that Dedicated and Premium skus are handled differently (premium defaults to package deployments) but there is no way to override/force Dedicated to do so as well. Is there any way to override the App Settings to change the behavior of the task at all? |
I just tried Linux for the first time an encountered this - back to Windows I guess |
Can someone let me know if they ate still running into this as we made changes in the v2 Task to ensure that both dedicated and Premium plans on Linux default to 1? |
It’s definitely working now! Thanks for resolving as we had several workarounds that sort of worked. No more deployment issues atm |
Thanks @runtimeware for the updates. I'll monitor this issue for another week and see if anyone else has feedback. |
Resolving this issue. |
Required Information
Entering this information will route you directly to the right team and expedite traction.
Question, Bug, or Feature?
Type: Bug
Enter Task Name:
list here (V# not needed): AzureFunctionApp@1
https://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/AzureFunctionAppV1/deploymentProvider/BuiltInLinuxWebAppDeploymentProvider.ts
Environment
Issue Description
Deployments to Azure Functions on Linux may fail with the following error.
Task logs
Snippet from log.
Troubleshooting
If we don't specify 'deploymentMethod' and the destination is Azure Function on Linux, Run From Package is selected as the deployment method. Then, the app setting WEBSITE_RUN_FROM_PACKAGE is set to true like this. (this is snippet from log.)
However, the correct value for WEBSITES_RUN_FROM_PACKAGE is 1 as follows.
Run your functions from a package file in Azure
If the value is set to true, the zip file is deployed to the file server for App Service and extracted to /home/site/wwwroot but not mounted. So, /home/site/wwwroot is not set to ReadOnly. This happens because true is not an expected value for WEBSITE_RUN_FROM_PACKAGE and it's ignored. If the value is set to 1, the zip file is mounted and /home/site/wwwroot is set to ReadOnly. (I got the information from App Services support.)
Error logs
We can see Deployment Lock Failure in a log file named yyyy-mm-ddThh-mm-ss_xxxxxx_xxx_GET_api-deployments-latest-pending.xml under LogFiles folder in Functions environment.
<step title="DeploymentService.GetResult" date="2022-03-02T02:19:08.339" > <step title="DeploymentService.GetLatestDeployment" date="2022-03-02T02:19:08.453" > <step title="DeploymentManager.GetResults" date="2022-03-02T02:19:08.556" > <step title="Deployment Lock Failure" date="2022-03-02T02:19:10.716" > <step title="Deployment Lock Failure" date="2022-03-02T02:19:14.383" >
The text was updated successfully, but these errors were encountered: