azure-functions-core-tools
azure-functions-core-tools copied to clipboard
The host is taking longer than expected to start
Getting this error/warning in the azure function CLI console when I tried to run the function in Visual Studio. The function is the exact same code as what is provided with the HttpTrigger template, no additional code was added. My azure function and webjob tools version is 15.0.40215 and my Visual Studio is 15.6.2 professional.
The local.settings.json file looks like this (have also tried putting the exact connection string copied from the portal):
{ "IsEncrypted": false, "Values": { "AzureWebJobsStorage": "UseDevelopmentStorage=true", "AzureWebJobsDashboard": "UseDevelopmentStorage=true" } }
Did you solve it? I'm having the same problem! Very frustrating
I am using Visual Studio Code . I get following Logs when doing "func host start --useHttps".It would be great if someone can help on this . It keeps giving 'host is taking longer than expected'.
%%%%%%
%%%%%%
@ %%%%%% @
@@ %%%%%% @@
@@@ %%%%%%%%%%% @@@
@@ %%%%%%%%%% @@
@@ %%%% @@
@@ %%% @@
@@ %% @@
%%
%
Skipping 'WEBSITE_HOSTNAME' from local settings as it's already defined in current environment variables. [20-Jun-19 12:17:33 PM] Created directory snapshot. [20-Jun-19 12:17:33 PM] Reading host configuration file 'c:\Projects\project-viewer\project-viewer-functions\host.json' [20-Jun-19 12:17:33 PM] Host configuration file read: [20-Jun-19 12:17:33 PM] { [20-Jun-19 12:17:33 PM] "id": "d883765543ghgf545646ds", [20-Jun-19 12:17:33 PM] "http": { [20-Jun-19 12:17:33 PM] "routePrefix": "api", [20-Jun-19 12:17:33 PM] "maxOutstandingRequests": 20, [20-Jun-19 12:17:33 PM] "maxConcurrentRequests": 10, [20-Jun-19 12:17:33 PM] "dynamicThrottlesEnabled": false [20-Jun-19 12:17:33 PM] }, [20-Jun-19 12:17:33 PM] "tracing": { [20-Jun-19 12:17:33 PM] "consoleLevel": "verbose", Listening on https://localhost:3000/ Hit CTRL-C to exit... [20-Jun-19 12:17:33 PM] "fileLoggingMode": "debugOnly" [20-Jun-19 12:17:33 PM] }, [20-Jun-19 12:17:33 PM] "logger": { [20-Jun-19 12:17:33 PM] "categoryFilter": { [20-Jun-19 12:17:33 PM] "defaultLevel": "Information", [20-Jun-19 12:17:33 PM] "categoryLevels": { [20-Jun-19 12:17:33 PM] "Host": "Error", [20-Jun-19 12:17:33 PM] "Function": "Error", [20-Jun-19 12:17:33 PM] "Host.Aggregator": "Information" [20-Jun-19 12:17:33 PM] } [20-Jun-19 12:17:33 PM] } [20-Jun-19 12:17:33 PM] }, [20-Jun-19 12:17:33 PM] "applicationInsights": { [20-Jun-19 12:17:33 PM] "sampling": { [20-Jun-19 12:17:33 PM] "isEnabled": true, [20-Jun-19 12:17:33 PM] "maxTelemetryItemsPerSecond": 1 [20-Jun-19 12:17:33 PM] } [20-Jun-19 12:17:33 PM] } [20-Jun-19 12:17:33 PM] } [20-Jun-19 12:17:33 PM] Host configuration applied. [20-Jun-19 12:17:33 PM] Starting Host (HostId=hgdydfgdsfgd546545646, Version=1.0, InstanceId=jch-68575hcfgdfg-jhgjhgu7-hjgjhgj, ProcessId=5646, AppDomainId=1, Debug=False, ConsecutiveErrors=0, StartupCount=1, FunctionsExtensionVersion=) [20-Jun-19 12:17:33 PM] Debug file watch initialized. [20-Jun-19 12:17:33 PM] File event source initialized. [20-Jun-19 12:17:34 PM] Function metadata read. [20-Jun-19 12:17:34 PM] Binding providers loaded. [20-Jun-19 12:17:34 PM] Binding providers initialized. [20-Jun-19 12:17:34 PM] Loaded custom extension 'BotFrameworkConfiguration' [20-Jun-19 12:17:34 PM] Loaded custom extension 'SendGridConfiguration' [20-Jun-19 12:17:34 PM] Loaded custom extension 'EventGridExtensionConfig' [20-Jun-19 12:17:34 PM] Extension loading complete. [20-Jun-19 12:17:34 PM] registered EventGrid Endpoint = http://localhost:3000/admin/extensions/EventGridExtensionConfig [20-Jun-19 12:17:35 PM] Metadata provider created. The host is taking longer than expected to start. [20-Jun-19 12:17:39 PM] Function descriptors read. [20-Jun-19 12:17:39 PM] Generating 18 job function(s) [20-Jun-19 12:17:40 PM] Found the following functions: [20-Jun-19 12:17:40 PM] Host.Functions.RootDocument [20-Jun-19 12:17:40 PM] Host.Functions.Ping [20-Jun-19 12:17:40 PM] Host.Functions.API [20-Jun-19 12:17:40 PM] Host.Functions.StaticFiles [20-Jun-19 12:17:40 PM] Host.Functions.Favicon [20-Jun-19 12:17:40 PM] Host.Functions.ng-ServiceWorker-Manifest [20-Jun-19 12:17:40 PM] Host.Functions.ng-ServiceWorker-Manifest-Apple [20-Jun-19 12:17:40 PM] Host.Functions.ng-ServiceWorker-Config [20-Jun-19 12:17:40 PM] Host.Functions.ng-ServiceWorker [20-Jun-19 12:17:40 PM] Host.Functions.ng-SafetyWorker [20-Jun-19 12:17:40 PM] Host.Functions.ng-Basic-ServiceWorker [20-Jun-19 12:17:40 PM] Host.Functions.SPA [20-Jun-19 12:17:40 PM] Host.Functions.after-auth [20-Jun-19 12:17:40 PM] Host.Functions.fhir-servers [20-Jun-19 12:17:40 PM] Host.Functions.pwa-manifest [20-Jun-19 12:17:40 PM] Host.Functions.registration [20-Jun-19 12:17:40 PM] Host.Functions.settings [20-Jun-19 12:17:40 PM] Host.Functions.token [20-Jun-19 12:17:40 PM] [20-Jun-19 12:17:40 PM] Host initialized (6809ms) [20-Jun-19 12:17:40 PM] Host started (6852ms) [20-Jun-19 12:17:40 PM] Job host started The host is taking longer than expected to start. The host is taking longer than expected to start. The host is taking longer than expected to start. The host is taking longer than expected to start. The host is taking longer than expected to start. The host is taking longer than expected to start. The host is taking longer than expected to start. The host is taking longer than expected to start.
Seeing this issue, too. Copying all c# code files to another Azure function solution on the same machine works fine.
Are there any files in AppData or wherever, that could cause this and need to be cleaned up? I am out of ideas otherwise.
For me this has been caused by having this in my local.settings.json "AzureWebJobsDisableHomepage" : "true" Removing it or setting to false worked around the issue.
The CLI probably expecting a 200 status code when waiting for the host, with "AzureWebJobsDisableHomepage" is set to True, it will return a 204 status code
Getting this error/warning in the azure function CLI console when I tried to run the function in Visual Studio. The function is the exact same code as what is provided with the HttpTrigger template, no additional code was added. My azure function and webjob tools version is 15.0.40215 and my Visual Studio is 15.6.2 professional.
The local.settings.json file looks like this (have also tried putting the exact connection string copied from the portal):
{ "IsEncrypted": false, "Values": { "AzureWebJobsStorage": "UseDevelopmentStorage=true", "AzureWebJobsDashboard": "UseDevelopmentStorage=true" } }
This configuration solved my problem!
Thank you