Open shashanksdixit opened 4 years ago
Hi @shashanksdixit can you share your debug log when you set the environment variable CLI_DEBUG to 1?
azure-functions-run-full-debug-log-cli-debug-1.txt I have attached the log after setting CLI_DEBUG=1
I observed an exception is added in the detailed log (apart from other things that might have been added)
[7/29/2020 10:29:00 AM] FUNCTIONS_WORKER_RUNTIME set to java. Skipping WorkerConfig for language:node
[7/29/2020 10:29:00 AM] FUNCTIONS_WORKER_RUNTIME set to java. Skipping WorkerConfig for language:powershell
[7/29/2020 10:29:00 AM] FUNCTIONS_WORKER_RUNTIME set to java. Skipping WorkerConfig for language:python
[7/29/2020 10:29:00 AM] Starting worker process:C:\Program Files\Java\jdk1.8.0_231\bin\java -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -noverify -Djava.net.preferIPv4Stack=true -jar "C:\Users\shashankdi\AppData\Roaming\npm\node_modules\azure-functions-core-tools\bin\workers\java\azure-functions-java-worker.jar" --host 127.0.0.1 --port 53544 --workerId 7597459c-738a-4f32-8b61-a15bdbaf168a --requestId 32f403fe-b5a1-40ad-a6f5-a711cfd67bb5 --grpcMaxMessageLength 2147483647
[7/29/2020 10:29:00 AM] C:\Program Files\Java\jdk1.8.0_231\bin\java process with Id=5312 started
[7/29/2020 10:29:01 AM] [INFO] {Application.main}: Azure Functions Java Worker version [ 1.5.3]
System.ArgumentNullException: Value cannot be null. (Parameter 'provider')
at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetRequiredService[T](IServiceProvider provider)
at Azure.Functions.Cli.Actions.HostActions.StartHostAction.RunAsync() in D:\a\1\s\src\Azure.Functions.Cli\Actions\HostActions\StartHostAction.cs:line 252
at Azure.Functions.Cli.ConsoleApp.RunAsync[T](String[] args, IContainer container) in D:\a\1\s\src\Azure.Functions.Cli\ConsoleApp.cs:line 66
Application is shutting down...
[7/29/2020 10:30:00 AM] Starting worker process failed
Hi @apawast Are there any further inputs.
Hi @apawast
Is there any further input from you after the log output I have sent by making CLI_DEBUG on. There is a detailed exception in the log.
Hi @apawast Is there any input. This is still blocker to me.
I am trying to run the example given here. I have installed the per-requisites. JDK-1.8 maven-3.6.3 Azure-function-core-tools - 2.7.2628 (Installed by giving command - npm install -g azure-functions-core-tools@3 ) When I run
mvn azure-functions:run
I get below error.[7/26/2020 2:29:48 AM] Starting worker process:C:\Program Files\Java\jdk1.8.0_231\bin\java -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -noverify -Djava.net.preferIPv4Stack=true -jar "C:\Users\shashankdi\AppData\Roaming\npm\node_modules\azure-functions-core-tools\bin\workers\java\azure-functions-java-worker.jar" --host 127.0.0.1 --port 50754 --workerId 35123fb0-6248-483c-996d-9aa2276a070a --requestId 46a18a34-2b99-45d3-b8c9-82cf7f496178 --grpcMaxMessageLength 2147483647
[7/26/2020 2:29:48 AM] C:\Program Files\Java\jdk1.8.0_231\bin\java process with Id=9264 started
[7/26/2020 2:29:49 AM] [INFO] {Application.main}: Azure Functions Java Worker version [ 1.5.3]
Value cannot be null. (Parameter 'provider')
Application is shutting down... [7/26/2020 2:30:48 AM] Starting worker process failed [7/26/2020 2:30:48 AM] The operation has timed out. [7/26/2020 2:30:48 AM] Failed to start language worker process for runtime: (null). workerId:35123fb0-6248-483c-996d-9aa2276a070a [7/26/2020 2:30:48 AM] Initialization cancellation requested by runtime. [7/26/2020 2:30:48 AM] Shutting down language worker channels for runtime:java [7/26/2020 2:30:48 AM] Stopping host... [7/26/2020 2:30:48 AM] Host shutdown completed. [DEBUG] Process exit value: 1 [ERROR] [ERROR] Failed to run Azure Functions. Please checkout console output. [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 04:41 min [INFO] Finished at: 2020-07-26T08:00:51+05:30 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.microsoft.azure:azure-functions-maven-plugin:1.5.0:run (default-cli) on project hello: Failed to run Azure Functions. Please checkout console output. -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.microsoft.azure:azure-functions-maven-plugin:1.5.0:run (default-cli) on project hello: Failed to run Azure Functions. Please checkout console output. at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
Following are the details to reproduce. Steps to reproduce the problem
I am running the example given in https://github.com/Azure-Samples/hello-spring-function-azure
Additional Info.
node --version v12.18.3
npm --version 6.14.6
npm search azure-functions-core-tools NAME | DESCRIPTION | AUTHOR | DATE | VERSION | KEYWORDS azure-functions-core-tool | Azure Functions… | =ahmelsayed… | 2020-06-23 | 2.7.2628 | s | | | | |
I have gone through the similar issues created earlier. But nothing applies to the issue I am facing. I have done no changes in the example provided and I am expecting it to run. What does it mean by provider value is null. Can somebody please guide me on what is missing here.
Full log with debug on is attached. azure-functions-run-full-debug-log.txt