Azure/functions-action

Deployment Suddenly Stopped Working with "Failed to perform sync trigger on function app"

Closed this issue · 3 comments

Hi there
When attempting to deploy an azure function to our staging environment it failed.
The code changes were minimal.
Last week the deployment succeeded. So I retried deploying the version from last week.
The result is the same:

Execution Exception (state: PublishContent) (step: Invocation)
When request Azure resource at PublishContent, Sync Trigger Functionapp : Failed to perform sync trigger on function app. Function app may have malformed content. Please manually restart your function app and inspect the package from WEBSITE_RUN_FROM_PACKAGE.
Deployment Failed!

What's more, a colleague of mine from another team contacted me today and told me they are experiencing the same issue.
They ran a deployment attempt this morning around 07:30UTC. It failed. Then they retried, and it succeeded. Later they tried again and it failed again.
He also checked whether the GitHub Linux Runner has undergone any changes from the previously successful deployment: it hasn't.

GitHub Log

2024-09-16T12:55:43.0479605Z Running Azure CLI Login.
2024-09-16T12:55:43.4984664Z [command]/usr/bin/az cloud set -n azurecloud
2024-09-16T12:55:43.7525316Z Done setting cloud: "azurecloud"
2024-09-16T12:55:44.1259531Z Federated token details:
2024-09-16T12:55:44.1260505Z issuer - https://token.actions.githubusercontent.com
2024-09-16T12:55:44.1261953Z subject claim - repo:/
2024-09-16T12:55:44.1264445Z Attempting Azure CLI login by using OIDC...
2024-09-16T12:55:45.5388770Z Subscription is set successfully.
2024-09-16T12:55:45.5389863Z Azure CLI login succeeds by using OIDC.
2024-09-16T12:55:45.5586187Z ##[group]Run azure/webapps-deploy@v3
2024-09-16T12:55:45.5586938Z with:
2024-09-16T12:55:45.5587548Z app-name: tpi-stg-app
2024-09-16T12:55:45.5588087Z slot-name: Production
2024-09-16T12:55:45.5588665Z package: ./WebApp
2024-09-16T12:55:45.5589265Z env:
2024-09-16T12:55:45.5589697Z ARTIFACTS_NAME: Artifacts
2024-09-16T12:55:45.5590437Z ARTIFACTS_ARCHIVE_FILENAME: Artifacts.tar.gz
2024-09-16T12:55:45.5591155Z ARTIFACTS_WEBAPP_FOLDER: WebApp
2024-09-16T12:55:45.5591925Z ARTIFACTS_FUNCTIONAPP_FOLDER: FunctionApp
2024-09-16T12:55:45.5592835Z ##[endgroup]
2024-09-16T12:55:55.1527935Z Package deployment using OneDeploy initiated.
2024-09-16T12:57:44.3046911Z {
2024-09-16T12:57:44.3048108Z id: 'd6b8c71b-6284-4bb5-b95d-92e38481c291',
2024-09-16T12:57:44.3095297Z status: 4,
2024-09-16T12:57:44.3097163Z status_text: '',
2024-09-16T12:57:44.3097837Z author_email: 'N/A',
2024-09-16T12:57:44.3098607Z author: 'N/A',
2024-09-16T12:57:44.3099254Z deployer: 'OneDeploy',
2024-09-16T12:57:44.3100165Z message: 'OneDeploy',
2024-09-16T12:57:44.3100803Z progress: '',
2024-09-16T12:57:44.3101503Z received_time: '2024-09-16T12:56:08.2551835Z',
2024-09-16T12:57:44.3102430Z start_time: '2024-09-16T12:56:09.5054476Z',
2024-09-16T12:57:44.3103242Z end_time: '2024-09-16T12:57:41.1772125Z',
2024-09-16T12:57:44.3104107Z last_success_end_time: '2024-09-16T12:57:41.1772125Z',
2024-09-16T12:57:44.3104961Z complete: true,
2024-09-16T12:57:44.3105503Z active: true,
2024-09-16T12:57:44.3105965Z is_temp: false,
2024-09-16T12:57:44.3106594Z is_readonly: true,
2024-09-16T12:57:44.3107829Z url: 'https://tpi-stg-app.scm.azurewebsites.net/api/deployments/d6b8c71b-6284-4bb5-b95d-92e38481c291',
2024-09-16T12:57:44.3109825Z log_url: 'https://tpi-stg-app.scm.azurewebsites.net/api/deployments/d6b8c71b-6284-4bb5-b95d-92e38481c291/log',
2024-09-16T12:57:44.3111145Z site_name: 'tpi-stg-app',
2024-09-16T12:57:44.3111806Z build_summary: { errors: [], warnings: [] }
2024-09-16T12:57:44.3112618Z }
2024-09-16T12:57:44.5628580Z Deploy logs can be viewed at https://tpi-stg-app.scm.azurewebsites.net/api/deployments/d6b8c71b-6284-4bb5-b95d-92e38481c291/log
2024-09-16T12:57:44.5631056Z Successfully deployed web package to App Service.
2024-09-16T12:57:45.3689054Z App Service Application URL: http://tpi-stg-app.azurewebsites.net
2024-09-16T12:57:45.3882777Z ##[group]Run Azure/functions-action@v1
2024-09-16T12:57:45.3883249Z with:
2024-09-16T12:57:45.3883685Z app-name: tpi-stg-func
2024-09-16T12:57:45.3885014Z slot-name: Production
2024-09-16T12:57:45.3885427Z package: ./FunctionApp
2024-09-16T12:57:45.3885902Z respect-pom-xml: false
2024-09-16T12:57:45.3886277Z respect-funcignore: false
2024-09-16T12:57:45.3886783Z scm-do-build-during-deployment: false
2024-09-16T12:57:45.3887221Z enable-oryx-build: false
2024-09-16T12:57:45.3887604Z remote-build: false
2024-09-16T12:57:45.3888001Z env:
2024-09-16T12:57:45.3888272Z ARTIFACTS_NAME: Artifacts
2024-09-16T12:57:45.3888714Z ARTIFACTS_ARCHIVE_FILENAME: Artifacts.tar.gz
2024-09-16T12:57:45.3889248Z ARTIFACTS_WEBAPP_FOLDER: WebApp
2024-09-16T12:57:45.3889701Z ARTIFACTS_FUNCTIONAPP_FOLDER: FunctionApp
2024-09-16T12:57:45.3890163Z AZURE_HTTP_USER_AGENT:
2024-09-16T12:57:45.3890591Z ##[endgroup]
2024-09-16T12:57:45.7833753Z Using RBAC for authentication, GitHub Action will perform resource validation.
2024-09-16T12:57:49.5246707Z Successfully acquired site configs from function app!
2024-09-16T12:57:49.5249835Z Detected function app sku: Consumption
2024-09-16T12:57:50.0113344Z Successfully acquired app settings from function app (RBAC)!
2024-09-16T12:57:50.0131338Z Detected function app language: DotnetIsolated
2024-09-16T12:57:50.5103582Z Will archive ./FunctionApp into /home/runner/work/_temp/temp_web_package_38474025856037897.zip as function app content
2024-09-16T12:57:52.3339058Z Will use WEBSITE_RUN_FROM_PACKAGE to deploy since RBAC is detected and your function app is on Linux Consumption.
2024-09-16T12:58:47.9619730Z Using AzureWebJobsStorage for Blob access.
2024-09-16T12:58:51.3254850Z Package Url will use SAS.
2024-09-16T13:00:19.7907257Z ##[error]Execution Exception (state: PublishContent) (step: Invocation)
2024-09-16T13:00:19.7922314Z ##[error] When request Azure resource at PublishContent, Sync Trigger Functionapp : Failed to perform sync trigger on function app. Function app may have malformed content. Please manually restart your function app and inspect the package from WEBSITE_RUN_FROM_PACKAGE.
2024-09-16T13:00:19.7926045Z ##[error]Deployment Failed!

Deploy Log

[{"log_time":"2024-09-16T12:56:08.3596954Z","id":"af39d754-f49e-464b-a303-3ef24be87bfc","message":"Updating submodules.","type":0,"details_url":null},{"log_time":"2024-09-16T12:56:09.4794124Z","id":"d58ed10f-045b-490b-beec-735b66ce8788","message":"Preparing deployment for commit id 'd6b8c71b-6'.","type":0,"details_url":null},{"log_time":"2024-09-16T12:56:09.7094362Z","id":"0edbc2c9-bda4-4d79-ad9c-ca44350a5ab1","message":"PreDeployment: context.CleanOutputPath False","type":0,"details_url":null},{"log_time":"2024-09-16T12:56:09.84863Z","id":"c68506ee-a93e-402b-ba59-d9400928814e","message":"PreDeployment: context.OutputPath /home/site/wwwroot","type":0,"details_url":null},{"log_time":"2024-09-16T12:56:09.9223645Z","id":"d72e4063-36f2-4259-9f9f-67181e691546","message":"Running build. Project type: OneDeploy","type":0,"details_url":null},{"log_time":"2024-09-16T12:56:09.9800878Z","id":"d038e32b-1a1b-4ab2-801b-840df267e3f5","message":"Copying the manifest","type":0,"details_url":null},{"log_time":"2024-09-16T12:56:10.0751775Z","id":"1d12be67-6c48-4b7a-a859-d718befdcc9a","message":"Incrementally deploying to /home/site/wwwroot","type":0,"details_url":null},{"log_time":"2024-09-16T12:57:40.6315547Z","id":"9bb41aeb-dab9-45a2-a847-daa898c4d863","message":"Build completed succesfully.","type":0,"details_url":null},{"log_time":"2024-09-16T12:57:40.7351481Z","id":"e031690e-1d9c-4e63-882b-d9a660fa5ae6","message":"Running post deployment command(s)...","type":0,"details_url":null},{"log_time":"2024-09-16T12:57:40.8150244Z","id":"a3fb5d2d-ef93-4972-8e5b-bc4a6059ccc7","message":"Triggering container recycle for OneDeploy by adding/updating restartTrigger.txt to the site root path","type":0,"details_url":null},{"log_time":"2024-09-16T12:57:40.9512917Z","id":"de0384e4-8d98-4cd7-ba1d-f86c6393ee3f","message":"Deployment successful. deployer = OneDeploy deploymentPath = OneDeploy","type":0,"details_url":null}]

I just performed a deployment and this time it succeeded 👍

No changes in our code.. (or that of the action doing the deployment) so it looks like Azure is to blame.
Is there something like a public bug tracker for Azure,. or where would such bugs be reported, who should be contacted?

My colleague confirmed that it also works again for them.