Function failed indexing and will be disabled
See original GitHub issueSince the update to version 2.0.12050.0 of Azure Functions Apps, two of my functions are not indexed anymore. Unfortunately, the logging is not verbose enough to understand why the functions are not indexed.
Investigative information
- Function App version (1.0 or 2.0-beta): 2.0.12050.0
- Invocation ID: a51831a8-50f3-4139-bdfe-7d770c3ea75e (a previous one since the function isn’t available because of an indexing error)
- Region: France Central
Repro steps
Start my Function App
Expected behavior
My function app starts properly with all functions are indexed or I have enough information (startup logs) to understand why some functions are not indexed.
Actual behavior
My function app starts but two functions are not indexed and the logs are not providing enough information to understand why it’s not indexed:
2018-09-04T22:49:52.754 [Information] Starting Host (HostId=cpglane-ical, InstanceId=919b8d9d-834c-4717-9c4a-31465f335b87, Version=2.0.12050.0, ProcessId=8896, AppDomainId=1, Debug=True, FunctionsExtensionVersion=beta)
2018-09-04T22:49:52.757 [Information] Initializing Azure Function proxies
2018-09-04T22:49:50.267 [Information] Stopping JobHost
2018-09-04T22:49:53.797 [Information] Generating 4 job function(s)
2018-09-04T22:49:53.808 [Error] Error indexing method 'App.ManualUpdateCalendars'
2018-09-04T22:49:53.848 [Warning] Function 'App.ManualUpdateCalendars' failed indexing and will be disabled.
2018-09-04T22:49:53.848 [Error] Error indexing method 'App.ScheduledUpdateCalendars'
2018-09-04T22:49:53.865 [Warning] Function 'App.ScheduledUpdateCalendars' failed indexing and will be disabled.
Known workarounds
None
Related information
After looking at the source code responsible for logging the error, it’s clear that the FunctionIndexingException’s inner exception should also be logged for us to have a chance to understand the root cause of the indexing error.
Issue Analytics
- State:
- Created 5 years ago
- Comments:17 (1 by maintainers)
Top GitHub Comments
We were using Boris Willhelms DI and solved the issue with following the solution in https://github.com/Azure/azure-functions-host/issues/3386#issuecomment-419565714
It has also been documented in the readme of Boris Willhelms DI repo.
I’m running a lot of functions using ~2 and my latest one has hit this. All the other functions have been fine. Everything I’ve tweaked hasn’t worked. It would certainly be nice to have more information to work with to get through this issue.
Edit: My issue was that particular function was failing to start because a startup extension was throwing an exception. I agree with the OP, this would have been far easier to debug if the exception was logged.