Closed jlrosende closed 1 year ago
@jlrosende , Is it Linux Consumption plan? Can you share your GitHub workflow? Also, Workflows will change for node and java, and they will have different requirements.
we are currently deploy node and java funcitons.
The workflow is simple.
pre-steps:
Then
I share the code from the java app deployment pipeline.
- name: 🗒️ 'Apply Azure Function Config'
env:
FUNCTION_APP_NAME: ${{ inputs.AZURE_FUNCTIONAPP_NAME }}
run: |
az functionapp config appsettings set -o none --subscription ${{ env.AZURE_SUBSCRIPTION_ID }} --resource-group ${{ inputs.AZURE_FUNCTIONAPP_RESOURCEGROUP }} --name ${{ inputs.AZURE_FUNCTIONAPP_NAME }} --settings "${{ join(fromJson(steps.azf_settings.outputs.settings), '" "') }}"
# DEPLOY MVN
- name: 🚀 'Run Azure Functions Action'
uses: Azure/functions-action@v1
with:
app-name: ${{ inputs.AZURE_FUNCTIONAPP_NAME }}
package: ${{ inputs.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
Same problem here
@jlrosende If you are not using Linux consumption plan, then from azure portal set app setting WEBSITE_RUN_FROM_PACKAGE = 1 and redeploy. In your workflow, you are updating app setting right before deployment, which is not recommended as there should be a wait in between.
@patelchandni We have WEBSITE_RUN_FROM_PACKAGE = 1
set in all our functions.
We need update the configuration of the app before the deployment, because some of the configurations are required for the correct functioning.
I'm open to suggestion to other methods to automate the configuration update.
@jlrosende you can add a step before functions-action to add some wait time:
- name: Sleep for 60 seconds
run: sleep 60s
shell: bash
@patelchandni I try to remove the settings step and the error persist. So the timeout error is other. We saw, in the funtion, the code is deployed and the azure function is running with the new code. The timeout error is possibly caused by the kudu deployment response.
@jlrosende based on the logs you shared, it does not seem like you have WEBSITE_RUN_FROM_PACKAGE = 1 set for the app before deployment. Feel free to open a new support request from the Azure portal as this will need your app info. Thank you.
@patelchandni I said previously, "We have WEBSITE_RUN_FROM_PACKAGE = 1
set in all our functions.".
So the problem is other. I close this issue in lack of solutions, and have the same response two times.
When I try to deploy new code to an azure function. With Node or Java code I have a timeout issue.
This happens randomly, and I not able to replicate the error properly.
This is the output of the action. with the error