Wayk Bastion Datasource disconnect

Wayk Bastion Datasource disconnect

avatar

I get an error and get disconnected after a few minutes when using Wayk Bastion as datasource with automatic refresh enabled. If i disable automatic refresh the connection with datasource is stable.

ds.png

RDM - Wayk.png

All Comments (6)

avatar

Hello,

A 5 seconds refresh time is very aggressive; could you try to increase it to 120 seconds and see if you still get disconnected?

You can also try the Wayk Bastion entry in a "regular" data source to view and connect to machines.

Best regards,

Richard Boisvert

avatar

It is set to 600 seconds and i still get disconnected.

avatar

Hello,

Could you confirm what version of Wayk Bastion you have (the latest version is 2021.1.6)? When you are logged in to the web interface, it is displayed in the bottom left corner. Could you also provide us with your RDM version?

Lastly, do you see any relevant error under Help > Application Logs in RDM after the disconnect occurs?

Best regards,

Richard Boisvert

avatar

Wayk Bastion : 2021.1.6
RDM : 2021.1.40.0

Lastest Application Log :
[2021-07-14 16:18:23 - 2021.1.40.0 - 64-bit] Erreur silencieuse: System.AggregateException: Une ou plusieurs erreurs se sont produites. ---> System.ArgumentNullException: La valeur ne peut pas être null.
Nom du paramètre : Token
à IdentityModel.Client.HttpClientUserInfoExtensions.<GetUserInfoAsync>d__0.MoveNext()
--- Fin de la trace de la pile d'exception interne ---
à System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
à Devolutions.WaykDen.Credentials.Credential.Init(Uri endpoint, String defaultUser)
à Devolutions.RemoteDesktopManager.Business.DataSources.Wayk.WaykWebAuthentication.Login()
---> (Exception interne #0) System.ArgumentNullException: La valeur ne peut pas être null.
Nom du paramètre : Token
à IdentityModel.Client.HttpClientUserInfoExtensions.<GetUserInfoAsync>d__0.MoveNext()<---
[2021-07-14 16:18:23 - 2021.1.40.0 - 64-bit] Erreur: System.AggregateException: Une ou plusieurs erreurs se sont produites. ---> System.ArgumentNullException: La valeur ne peut pas être null.
Nom du paramètre : Token
à IdentityModel.Client.HttpClientUserInfoExtensions.<GetUserInfoAsync>d__0.MoveNext()
--- Fin de la trace de la pile d'exception interne ---
à System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
à Devolutions.WaykDen.Credentials.Credential.Init(Uri endpoint, String defaultUser)
à Devolutions.RemoteDesktopManager.Business.DataSources.Wayk.WaykWebAuthentication.Login()
à Devolutions.RemoteDesktopManager.Business.DataSources.WaykConnectionDataSource.GetDataSourceSettings()
à Devolutions.RemoteDesktopManager.Managers.ConnectionManager.c29fbd34504079a3525ca4c390d5d4074(ConnectionEngine cb85976372b62c8c45ee9bbcc16483427)
à Devolutions.RemoteDesktopManager.Managers.ConnectionManager.c6d8a88b8f0abf3333cb0ceae55264d99(ConnectionEngine cb85976372b62c8c45ee9bbcc16483427, Boolean cfe205b02d73750f8fd14d199343fe545)
à Devolutions.RemoteDesktopManager.Managers.ConnectionManager.ca4799bebd8b706f34eea94a778843b55(ConnectionEngine cb85976372b62c8c45ee9bbcc16483427, Boolean cfe205b02d73750f8fd14d199343fe545)
à Devolutions.RemoteDesktopManager.Managers.ConnectionManager.LoadConnections(BaseConnectionDataSource dataSource)
---> (Exception interne #0) System.ArgumentNullException: La valeur ne peut pas être null.
Nom du paramètre : Token
à IdentityModel.Client.HttpClientUserInfoExtensions.<GetUserInfoAsync>d__0.MoveNext()<---


It took way longer but I've been disconnected today event if auto refresh was off. Wayk Bastion wont authenticate me until i did a Restart-WaykBastion on the server.

avatar

Hello,

I have been unable to replicate your issue, the engineering team is having a look, I will get back to you once I have more information.

Best regards,

Richard Boisvert

avatar

Hello

The connection to Wayk Bastion uses OAuth: once logged in, the authentication provider grants an access token with 2 minutes of validity. If the client makes a request and the access token is expired, or about to expire, a *new* access token will be requested.

It seems that at some point, the call to refresh the access token is failing and that causes a failure further on in the request.

I won't rule out a bug causing this on the client-side, but

It took way longer but I've been disconnected today event if auto refresh was off. Wayk Bastion wont authenticate me until i did a Restart-WaykBastion on the server.


It's really strange that you needed to restart your server to resolve this. I wonder if something is going on with the authentication provider.

When you say it won't authenticate you, how does that manifest? You try to login using the web UI and see an error message or something else?

Thanks and kind regards


Richard Markievicz