Huge number of "Host configuration has changed. Signaling restart" logs on functionapp publish
See original GitHub issueSimilar 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:
- Created 5 years ago
- Comments:10 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thank you @ahmelsayed, those switches helped me discover where I was going wrong. All working now!
.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