Hi,
We have connected our Cloud DataMiner systems to Skyline's cloud but we see the "Link Account" button next to the system in our DCP Dashboard.
We see the following issue when I try to link my account to that system!
Is there anything we are missing or we need to do?
Note that this issue did not happen with some other systems that have been successfully connected.
Hi
It seems that the DataMiner Cloud Platform cannot reach the DataMiner System, which could have a few causes.
We would love to help you further but need some extra information.
First of all, can you take a zip of the folder "C:\ProgramData\SkylineCommunications"? This will give us the logging of all the processes that are necessary for the Cloud Services.
Next to this, we would need to know which DxM versions you are running. You can find those at https://admin.dataminer.services. From here you can find your Cloud Connected system in the menu on the left and click on the Nodes subpage. This will present you with an overview of all the installed DxMs and their versions.
Please send all this information via email to support.cloud.ecosystem@skyline.be. We will then try to help you asap.
If you would like to already do some checks for yourself you could go to the folder "C:\ProgramData\SkylineCommunications\DataMiner CloudGateway\Logs" and take a look at the most recent log file. In your case I would expect the logging to show the following:
- "Unable to connect to the Tunnelservice"
- "Failed to connect to the tunnel"
If you find any of these errors it might be a good idea to restart the DataMiner CloudGateway service through the task manager.
Depending on the version of the DataMiner CloudGateway that you are running you might find a ConnectionTester.exe file in the following folder: "C:\Program Files\Skyline Communications\DataMiner CloudGateway". Running this tool will show you if the DataMiner system is able to reach the cloud. Please let us know if you would see any errors in the output of this exe.
Do not hesitate to contact us as we will be happy to help you.
Wkr,
Baptiste Pattyn
Hi Baptiste,
Thanks for your reply.
I have emailed you the required files.
Checking this, I found teh following errors in the logs, which is kind of weird as the DMA is accessible and running!
[2022-11-03 13:11:53.636 INF]Connecting to NATS…[]
[2022-11-03 13:11:53.741 INF]Connected to NATS.[]
[2022-11-03 13:11:53.742 INF]Starting web host[]
[2022-11-03 13:11:53.856 INF]Running version 2.7.0.25743-fc2bc7cc at C:Program FilesSkyline CommunicationsDataMiner CloudGatewayDataMiner CloudGateway.exe[SLCcaGatewayService.Services.GeneralServices.Impl.GatewayVersionProvider]
[2022-11-03 13:11:53.866 INF]Not using a proxy for internet access.[SLCcaGatewayService.Services.GeneralServices.Impl.HttpClientProvider]
[2022-11-03 13:11:53.903 INF]Starting initial DMS token refresh timer at interval 00:05:00 (expire 1/1/0001 12:00:00 AM +00:00)[SLCcaGatewayService.Services.HostedServices.RefreshDmsTokenHostedService]
[2022-11-03 13:11:53.908 DBG]DisposeBrokerHostedService is starting.[SLCcaGatewayService.Services.HostedServices.DisposeBrokerHostedService]
[2022-11-03 13:11:54.092 INF]Dma State change from Unknown to Offline was detected.[SLCcaGatewayService.Services.GeneralServices.Impl.DmaStateManager]
[2022-11-03 13:11:54.420 INF]Enabled HTTPS url to: https://aws*************.com/ and WSS url to: wss://aws***********.com/ws[SLCcaGatewayService.Services.EndpointDetection.WebApiEndpointService]
[2022-11-03 13:11:54.544 INF]Updated the DMS secret refresh timestamp because of access token change. Next refresh: 11/05/2022 15:19:22 +00:00 (expire 11/08/2022 14:50:58 +00:00)[SLCcaGatewayService.Services.HostedServices.RefreshDmsSpCredentialsHostedService]
[2022-11-03 13:11:54.545 INF]Updated the DMS secret refresh timestamp because of expiration change. Next refresh: 11/06/2022 15:23:18 +00:00 (expire 11/08/2022 14:50:58 +00:00)[SLCcaGatewayService.Services.HostedServices.RefreshDmsSpCredentialsHostedService]
[2022-11-03 13:11:54.545 INF]Updating DMS refresh token timer because of expiration change 3.01:32:06.3965775 (expire 11/8/2022 2:47:57 PM +00:00)[SLCcaGatewayService.Services.HostedServices.RefreshDmsTokenHostedService]
[2022-11-03 13:11:54.546 INF]Connection no longer valid. Trying to reconnect to wss://tunnel.dataminer.services/ws/ccaconn[SLCcaGatewayService.Services.TunnelService.TunnelConnection.Impl.TunnelConnection]
[2022-11-03 13:11:54.562 ERR]Unable to connect to the TunnelService.[SLCcaGatewayService.Services.TunnelService.TunnelConnection.Impl.TunnelConnection]
System.Threading.Tasks.TaskCanceledException: The operation was canceled.
at System.Net.Http.ConnectHelper.ConnectAsync(Func`3 callback, DnsEndPoint endPoint, HttpRequestMessage requestMessage, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.EstablishProxyTunnel(Boolean async, HttpRequestHeaders headers, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.WebSockets.WebSocketHandle.ConnectAsync(Uri uri, CancellationToken cancellationToken, ClientWebSocketOptions options)
at SLCcaGatewayService.Services.TunnelService.TunnelConnection.Impl.TunnelConnection.TryConnectIfNeededAsync()
[2022-11-03 13:12:03.932 INF]Connection no longer valid. Trying to reconnect to wss://tunnel.dataminer.services/ws/ccaconn[SLCcaGatewayService.Services.TunnelService.TunnelConnection.Impl.TunnelConnection]
[2022-11-03 13:12:05.171 INF]WebSocket connect accepted by CcaTunnel. Setting up binding…[SLCcaGatewayService.Services.TunnelService.TunnelConnection.Impl.TunnelConnection]
[2022-11-03 13:12:05.174 INF]Forwarding all tunnel traffic to 127.0.0.1:53321[SLCcaGatewayService.Services.TunnelService.TunnelConnection.Impl.WsToTcpLocalBehavior]
[2022-11-03 13:12:05.181 INF]A message to notify the Tunnel about the Dma State Offline was sent.[SLCcaGatewayService.Services.TunnelService.TunnelConnection.Impl.TunnelConnection]