question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Function failed indexing and will be disabled

See original GitHub issue

Since 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:open
  • Created 5 years ago
  • Comments:17 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
sandvescommented, Nov 23, 2018

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.

3reactions
roryprimrosecommented, Sep 21, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Function Error Indexing Method - Remote Debugger ...
Run' failed indexing and will be disabled. 2018-09-17T15:05:16.658 [Error] Error indexing method 'ChangeMaterialWeight.
Read more >
Receiving error while trying to run Azure Functions in VS ...
ReceiveGifMessagesSecondary ' failed indexing and will be disabled. Azure Functions.
Read more >
Error indexing method 'RemoveFromGroup'. Microsoft. ...
The 'RemoveFromGroup' function is in error: Microsoft.Azure.WebJobs. ... Function 'RemoveFromGroup' failed indexing and will be disabled. Microsoft.Azure.
Read more >
Developers - Function failed indexing and will be disabled -
Function failed indexing and will be disabled.
Read more >
Azure Function Error indexing method 'Store' : r/csharp
I have three Azure functions within the same project, StoreDB, Update, and GetDB. ... Host): Error indexing method 'FunctionName'.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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