Error starting when deployed to Azure Function App

See original GitHub issue

I have a timer triggered function app running on Azure which seems to have a problem starting.

Some other points to note:

  • WEBSITE_RUN_FROM_PACKAGE = 1
  • FUNCTIONS_WORKER_RUNTIME = dotnet-isolated
  • “Azure Functions runtime is unreachable”
  • Trigger column is empty

image

2/17/2021, 11:06:52 AM - TRACE
FUNCTIONS_WORKER_RUNTIME set to dotnet-isolated. Skipping WorkerConfig for language:java
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
FUNCTIONS_WORKER_RUNTIME set to dotnet-isolated. Skipping WorkerConfig for language:node
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
FUNCTIONS_WORKER_RUNTIME set to dotnet-isolated. Skipping WorkerConfig for language:powershell
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
Initializing Warmup Extension.
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
Initializing Host. OperationId: '0f237d85-99ac-4790-8735-9e7dc9cd05b1'.
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
Host initialization: ConsecutiveErrors=0, StartupCount=3, OperationId=0f237d85-99ac-4790-8735-9e7dc9cd05b1
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
ApplicationInsightsLoggerOptions { "SamplingSettings": { "EvaluationInterval": "00:00:15", "InitialSamplingPercentage": 100.0, "MaxSamplingPercentage": 100.0, "MaxTelemetryItemsPerSecond": 20.0, "MinSamplingPercentage": 0.1, "MovingAverageRatio": 0.25, "SamplingPercentageDecreaseTimeout": "00:02:00", "SamplingPercentageIncreaseTimeout": "00:15:00" }, "SamplingExcludedTypes": null, "SamplingIncludedTypes": null, "SnapshotConfiguration": null, "EnablePerformanceCountersCollection": true, "HttpAutoCollectionOptions": { "EnableHttpTriggerExtendedInfoCollection": true, "EnableW3CDistributedTracing": true, "EnableResponseHeaderInjection": true }, "LiveMetricsInitializationDelay": "00:00:15", "EnableLiveMetrics": true, "EnableDependencyTracking": true, "DependencyTrackingOptions": null }
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
LoggerFilterOptions { "MinLevel": "None", "Rules": [ { "ProviderName": null, "CategoryName": null, "LogLevel": null, "Filter": "<AddFilter>b__0" }, { "ProviderName": "Microsoft.Azure.WebJobs.Script.WebHost.Diagnostics.SystemLoggerProvider", "CategoryName": null, "LogLevel": "None", "Filter": null }, { "ProviderName": "Microsoft.Azure.WebJobs.Script.WebHost.Diagnostics.SystemLoggerProvider", "CategoryName": null, "LogLevel": null, "Filter": "<AddFilter>b__0" }, { "ProviderName": "Microsoft.Azure.WebJobs.Logging.ApplicationInsights.ApplicationInsightsLoggerProvider", "CategoryName": null, "LogLevel": "Trace", "Filter": null } ] }
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
LoggerFilterOptions { "MinLevel": "None", "Rules": [ { "ProviderName": null, "CategoryName": null, "LogLevel": null, "Filter": "<AddFilter>b__0" }, { "ProviderName": "Microsoft.Azure.WebJobs.Script.WebHost.Diagnostics.SystemLoggerProvider", "CategoryName": null, "LogLevel": "None", "Filter": null }, { "ProviderName": "Microsoft.Azure.WebJobs.Script.WebHost.Diagnostics.SystemLoggerProvider", "CategoryName": null, "LogLevel": null, "Filter": "<AddFilter>b__0" }, { "ProviderName": "Microsoft.Azure.WebJobs.Logging.ApplicationInsights.ApplicationInsightsLoggerProvider", "CategoryName": null, "LogLevel": "Trace", "Filter": null } ] }
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
FunctionResultAggregatorOptions { "BatchSize": 1000, "FlushTimeout": "00:00:30", "IsEnabled": true }
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
SingletonOptions { "LockPeriod": "00:00:15", "ListenerLockPeriod": "00:01:00", "LockAcquisitionTimeout": "10675199.02:48:05.4775807", "LockAcquisitionPollingInterval": "00:00:05", "ListenerLockRecoveryPollingInterval": "00:01:00" }
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
BlobsOptions { "MaxDegreeOfParallelism": 8 }
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
QueuesOptions { "BatchSize": 16, "NewBatchThreshold": 8, "MaxPollingInterval": "00:01:00", "MaxDequeueCount": 5, "VisibilityTimeout": "00:00:00" }
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
HttpOptions { "DynamicThrottlesEnabled": true, "MaxConcurrentRequests": 100, "MaxOutstandingRequests": 200, "RoutePrefix": "api" }
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
Starting JobHost
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
Starting Host (HostId=<omitted>, InstanceId=be22fb9b-73fb-41d7-bdc7-0aba6d6e5687, Version=3.0.15371.0, ProcessId=1748, AppDomainId=1, InDebugMode=False, InDiagnosticMode=False, FunctionsExtensionVersion=~3)
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
Loading functions metadata
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
FUNCTIONS_WORKER_RUNTIME set to dotnet-isolated. Skipping WorkerConfig for language:java
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
FUNCTIONS_WORKER_RUNTIME set to dotnet-isolated. Skipping WorkerConfig for language:node
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
FUNCTIONS_WORKER_RUNTIME set to dotnet-isolated. Skipping WorkerConfig for language:powershell
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
1 functions loaded
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
Generating 1 job function(s)
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
Found the following functions: Host.Functions.<omitted>
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
Initializing function HTTP routes No HTTP routes mapped
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
Host initialized (68ms)
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
Executing 'Functions.<omitted>' (Reason='Timer fired at 2021-02-16T22:06:52.6641724+00:00', Id=5a92a194-de30-4c3d-828f-49001b460935)
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
Trigger Details: UnscheduledInvocationReason: IsPastDue, OriginalSchedule: 2021-02-16T21:05:00.0000000+00:00
Severity level: Information
2/17/2021, 11:06:52 AM - TRACE
Exceeded language worker restart retry count for runtime:dotnet-isolated. Shutting down and proactively recycling the Functions Host to recover
Severity level: Error

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
bryandhcommented, Mar 11, 2021

Some screenshots of my publish process and Azure environment to further illustrate the problem I’m experiencing:

Config in Azure: Screenshot 2021-03-11 at 13 01 49

Publish to Azure Function App result: func azure functionapp publish temp-net50-function-app

Screenshot 2021-03-11 at 13 00 49

Azure Function App functions listing: Note that the ‘Azure Functions runtime is unreachable’ and the Trigger column completely empty as the triggers don’t seem to be recognized.

Screenshot 2021-03-11 at 13 02 14
1reaction
louisoftokyocommented, Mar 7, 2021

Getting the same issue - TimerTriggers not working with the same symptoms as above. I’m also getting the following output when I publish from the command line, seemingly saying that it can’t find my trigger:

Getting site publishing info...
Creating archive for current directory...
Uploading 13.91 MB [##############################################################################]
Upload completed successfully.
Deployment completed successfully.
Syncing triggers...
Syncing triggers...
Functions in myfunctionapplication:
    UpdateData - [No Trigger Found]

It works as expected when run locally.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Function App deployment error - Microsoft Q&A
In the Azure portal, it says 'Azure Functions runtime is unreachable', but all common causes of this (no access to storage account) are...
Read more >
Azure Function not triggering when deployed, but works ...
I have an Azure Function that is triggered by an Event Hub and pushes data to a PostgreSQL database. The function works correctly...
Read more >
Errors while deploying Azure function in Function App
1 Answer 1 · Generally, this error occurs if there is anything wrong with the code or if the functionapp is not getting...
Read more >
Azure function App 500 errors after few minutes of being ...
Hello, We are currently experiencing 500 internal server errors after deploying our function app. The app will work fine for ~10 minutes but ......
Read more >
Application error while deploying Azure function app.
I am trying to deploy Azure function app using Bicep template. I have integrated the Function app with Private end point and DNS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found