microsoft / RTVS

R Tools for Visual Studio.
MIT License
388 stars 118 forks source link

Failed to connect to remote R server #4355

Open SQLServerDBA1986 opened 5 years ago

SQLServerDBA1986 commented 5 years ago

Users are unable to connect from Visual studio 2015 to R Server. Version of R interpreter: Microsoft R open 3.5.1. I have a certificate and Network services has access to it. I would appreciate it if anyone can help please. Thanks. here is the error in R host broker log

[2019-01-25 14:01:29Z] (I): Failed to authenticate HTTPS connection. Exception: System.IO.IOException: Authentication failed because the remote party has closed the transport stream. at System.Net.Security.SslState.InternalEndProcessAuthentication(LazyAsyncResult lazyResult) at System.Net.Security.SslState.EndProcessAuthentication(IAsyncResult result) at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.AspNetCore.Server.Kestrel.Https.HttpsConnectionFilter.d__6.MoveNext()

SQLServerDBA1986 commented 5 years ago

users tried again, by putting the fully qualified name of the server when trying to connect to R , I get different errors in the log:

[2019-01-25 14:28:12Z] (D): Request did not match any routes.

[2019-01-25 14:28:12Z] (I): Basic was not authenticated. Failure message: No authorization header.

[2019-01-25 14:28:12Z] (I): AuthenticationScheme: Basic was challenged.

[2019-01-25 14:28:12Z] (D): Connection id "0HLK2PMDA55M1" completed keep alive response.

[2019-01-25 14:28:12Z] (I): Request finished in 28.0974ms 401