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.

Can't connect to Kusto

See original GitHub issue

All good yesterday. Today I open an notebook and can’t connect to Kusto. Tried this on 2 different machines. Wondering what changed. Any pointers?

Error: System.InvalidOperationException: MicrosoftKustoServiceLayer failed to start properly. Exit code: 0. ---> StreamJsonRpc.ConnectionLostException: The JSON-RPC connection with the remote party was lost before the request could complete. at StreamJsonRpc.JsonRpc.InvokeCoreAsync(JsonRpcRequest request, Type expectedResultType, CancellationToken cancellationToken) at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](RequestId id, String targetName, IReadOnlyList1 arguments, IReadOnlyList1 positionalArgumentDeclaredTypes, IReadOnlyDictionary2 namedArgumentDeclaredTypes, CancellationToken cancellationToken, Boolean isParameterObject) at Microsoft.DotNet.Interactive.SqlServer.ToolsServiceClient.ConnectAsync(ConnectParams connectParams) --- End of inner exception stack trace --- at Microsoft.DotNet.Interactive.SqlServer.ToolsServiceClient.ConnectAsync(ConnectParams connectParams) at Microsoft.DotNet.Interactive.Kql.ToolsServiceClientExtensions.ConnectAsync(ToolsServiceClient serviceClient, Uri ownerUri, KqlConnectionDetails kqlDetails) at Microsoft.DotNet.Interactive.Kql.MsKqlKernel.ConnectAsync() at Microsoft.DotNet.Interactive.Kql.KqlKernelConnector.CreateKernelAsync(String kernelName) at Microsoft.DotNet.Interactive.Kql.ConnectKqlCommand.ConnectKernelAsync(KernelInvocationContext context, InvocationContext commandLineContext) at Microsoft.DotNet.Interactive.CompositeKernel.<>c__DisplayClass26_0.<<AddKernelConnector>b__0>d.MoveNext() in D:\a\_work\1\s\src\Microsoft.DotNet.Interactive\CompositeKernel.cs:line 329

Issue Analytics

  • State:closed
  • Created 8 months ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
brettfocommented, Feb 7, 2023

In the next few days we’ll publish a new version of the VS Code extension and packages that will have this fix.

1reaction
coriveracommented, Feb 3, 2023

Looks like I didn’t add a minimum version check when bumping the Kusto tool version, so if it was already previously installed it won’t be updated. We added some additional launch arguments for that Kusto tool in the latest update of the Kusto kernel’s nuget package, but the 1.0.0 version of the tool doesn’t recognize those args and exits immediately with a help message that gets swallowed by the RPC stream causing that JSON RPC error above.

The workaround for this issue while we wait to push up a new nuget package is to manually update tool with the following commands: dotnet tool uninstall -g microsoft.sqlserver.kustoservicelayer.tool dotnet tool install -g microsoft.sqlserver.kustoservicelayer.tool --version 1.1.0

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot Azure Data Explorer cluster connection failures
If you're not able to connect to a cluster in Azure Data Explorer, follow these steps. Ensure the connection string is correct.
Read more >
Troubleshoot common problems in Kusto.Explorer
Uninstall Kusto.Explorer using Programs and Features ( appwiz. · Try running CleanOnlineAppCache , and then try installing Kusto.Explorer again.
Read more >
Can't connect to Kusto cluster · Issue #14464
I use Kusto (ADX) all day everyday on my Microsoft machine with no problem. I cannot make a cluster connection to Kusto in...
Read more >
Azure Data Explorer - Could not connect to cluster
When Data Explorer window/tab was opened, I was not in the correct directory. I switched directory by clicking on profile icon on top...
Read more >
Unable to access Azure Data Explorer from Kusto ...
I am the Azure Data Explorer Admin in the portal. I am unable to connect the Azure Data Explorer from Kusto Explorer tool...
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