3

This is the second time I've ran into the "Function host is not running." error. Rather than just knowing a solution, I'd like to know the process for troubleshooting such a problem, in particular knowing where to go to obtain the underlying error.

The application has been redeployed today, and a HTTP trigger function has been tested. I've looked in the following places for error details (feel free to ask me to double check any of these if you know an error should be there, I'm only human!):

Diagnose and solve problems / Function App Down or Reporting Errors:

  • Seems to be reporting a stale error, I even wrote code to terminate earlier with an exception and the original error still won't budge.

AppInsights:

  • "Your app is offline or the Application Insights SDK needs updating."

Kudu:

  • D:\home\LogFiles\eventlog.xml - Can't see anything meaningful here
  • D:\home\LogFiles\Application\Functions\Function\FunctionName\*.log - No files for today
  • D:\home\LogFiles\Application\Functions\Host\*.log - No files for today

Storage account file shares:

  • One modified with today's date
    • /LogFiles/ - Empty
    • /site/wwwroot/ - Empty
Lee
  • 1,591
  • 1
  • 14
  • 28

2 Answers2

3

There error should show in

Diagnose and solve problems / Function App Down or Reporting Errors

See answer to this question for more information.

Lee
  • 1,591
  • 1
  • 14
  • 28
-1

Usually this error is caused by the invalid host.json file or an invalid proxies.json file.

Reference:

Function host is not running

host.json reference for Azure Functions 2.x and later.

Tony Ju
  • 14,891
  • 3
  • 17
  • 31
  • Thanks for taking the time to message, however it's answering a slightly different question. I want to know where the error details are logged, it's no fun to stab in the dark looking for possible invalid configurations. I've since fixed the bug, in my case it was neither a host.json or proxies.json issue, but I still don't know where the errors are logged. – Lee May 29 '20 at 16:35