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.

Huge number of "Host configuration has changed. Signaling restart" logs on functionapp publish

See original GitHub issue

Similar to https://github.com/Azure/azure-functions-host/issues/2095

Investigative information

Please provide the following:

  • Timestamp: NA
  • Function App version (1.0 or 2.0-beta): 1.0.11612.0 (latest)
  • Function App name: GifSliceApi
  • Function name(s) (as appropriate): NA
  • Invocation ID: NA
  • Region: West US

Repro steps

Ran $ func azure functionapp publish GifSliceApi

This kicked off a huge number of these log events:

...
018-03-26T05:09:22.361 [Info] Watched directory change of type 'Changed' detected for 'D:\home\site\wwwroot\node_modules\azure\Tools\autorest.gen.cmd'
2018-03-26T05:09:22.361 [Info] Host configuration has changed. Signaling restart
2018-03-26T05:09:22.470 [Info] Watched directory change of type 'Changed' detected for 'D:\home\site\wwwroot\node_modules\azure\Tools\autorest.gen.cmd'
2018-03-26T05:09:22.470 [Info] Host configuration has changed. Signaling restart
2018-03-26T05:09:22.470 [Info] Watched directory change of type 'Changed' detected for 'D:\home\site\wwwroot\node_modules\azure\Tools\autorest.gen.cmd'
2018-03-26T05:09:22.470 [Info] Host configuration has changed. Signaling restart
2018-03-26T05:09:22.595 [Info] Watched directory change of type 'Changed' detected for 'D:\home\site\wwwroot\node_modules\azure\jsdocs\jsdoc.conf.json'
2018-03-26T05:09:22.595 [Info] Host configuration has changed. Signaling restart
2018-03-26T05:09:22.595 [Info] Watched directory change of type 'Changed' detected for 'D:\home\site\wwwroot\node_modules\azure\jsdocs\jsdoc.conf.json'
2018-03-26T05:09:22.595 [Info] Host configuration has changed. Signaling restart
2018-03-26T05:09:22.612 [Info] Watched directory change of type 'Changed' detected for 'D:\home\site\wwwroot\node_modules\azure\jsdocs\jsdoc.conf.json'
2018-03-26T05:09:22.612 [Info] Host configuration has changed. Signaling restart
2018-03-26T05:09:22.612 [Info] Watched directory change of type 'Changed' detected for 'D:\home\site\wwwroot\node_modules\azure\jsdocs\jsdoc.conf.json'
2018-03-26T05:09:22.612 [Info] Host configuration has changed. Signaling restart
2018-03-26T05:09:22.658 [Info] Watched directory change of type 'Changed' detected for 'D:\home\site\wwwroot\node_modules\azure\runtime\NodeJSClientRuntime.sln'
2018-03-26T05:09:22.658 [Info] Host configuration has changed. Signaling restart
2018-03-26T05:09:22.674 [Info] Watched directory change of type 'Changed' detected for 'D:\home\site\wwwroot\node_modules\azure\runtime\NodeJSClientRuntime.sln'
2018-03-26T05:09:22.674 [Info] Host configuration has changed. Signaling restart
2018-03-26T05:09:22.674 [Info] Watched directory change of type 'Changed' detected for 'D:\home\site\wwwroot\node_modules\azure\runtime\NodeJSClientRuntime.sln'
2018-03-26T05:09:22.674 [Info] Host configuration has changed. Signaling restart
2018-03-26T05:09:22.705 [Info] Watched directory change of type 'Changed' detected for 'D:\home\site\wwwroot\node_modules\azure\runtime\NodeJSClientRuntime.sln'
2018-03-26T05:09:22.705 [Info] Host configuration has changed. Signaling restart
2018-03-26T05:09:22.720 [Info] Watched directory change of type 'Changed' detected for 'D:\home\site\wwwroot\node_modules\azure\runtime\.jshintrc'
2018-03-26T05:09:22.720 [Info] Host configuration has changed. Signaling restart
2018-03-26T05:09:22.720 [Info] Watched directory change of type 'Changed' detected for 'D:\home\site\wwwroot\node_modules\azure\runtime\.jshintrc'
2018-03-26T05:09:22.720 [Info] Host configuration has changed. Signaling restart
...

Which used up my entire AI quota in like five minutes

I actually don’t even want to deploy node_modules at all as my functions are webpacked into single files. I have a .funcignore file with node_modules, but this did not seem to prevent node_modules files from being uploaded

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Robulacommented, Apr 10, 2018

Thank you @ahmelsayed, those switches helped me discover where I was going wrong. All working now!

1reaction
ahmelsayedcommented, Mar 26, 2018

.funcignore support hasn’t been released yet in the cli. adding */node_modules to .funcignore should exclude all node_modules folder from deployment. We’ll be releasing a new cli this week

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to avoid hosting restart when deploying Azure ...
I was able to achieve zero downtime deployment setting variable WEBSITE_ADD_SITENAME_BINDINGS_IN_APPHOST_CONFIG to 1 .
Read more >
Azure function host restarting : r/AZURE
What I am trying to understand is, what is causing the host to restart? Certain events, that can cause it to restart are...
Read more >
Use dynamic configuration in an Azure Functions app
In this tutorial, you learn how to dynamically update the configuration data for Azure Functions apps.
Read more >
Shut Down Unused Session Hosts in a Windows Virtual ...
Click Save and go back to the Function App Overview. From the overview page, restart the function app. This will apply configuration changes...
Read more >
Azure functions. Limiting throughput and scalability of a ...
How to set Azure functions applications incoming limits and match external constraints with scale-out limit.
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