Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Jul 17, 2024 5:34:01 AM
Sep 3, 2018 2:42:49 AM
For Qlik Sense Enterprise for Business (Cloud), see Loading of an app is hanging when using Qlik Cloud.
Working in a Qlik Sense app after remaining inactive causes fails with the error:
Connection to the Qlik Sense engine failed for unspecified reasons. Refresh your browser or contact our system administrator
The issue specifically affects external users who have been inactive until a network device's (Firewall, Router, etc.) idle timeout was reached. This is followed by a connection reset for the TCP WebSocket session.
TCP WebSocket connection is terminated by the firewall because the firewall is not receiving any TCP traffic such as keep-alive packets from client browser (e.g. Firefox, older Chrome versions). Specific web browsers have their own tcp keep-alive behavior.
This issue may be found with less frequency with IE because it sends the TCP Websocket keep-alive more frequent than any other main stream browser. Here are the default intervals for the three main browsers latest releases as of September 2020:
Default TCP-Keep-Alive intervals:
This functionality is by default switched off not to affect any existing customers. Customers who do not experience any issues with web sockets terminated by the network due to inactive SHOULD NOT switch this feature ON since it will send unnecessary traffic on the network. See How are WebSockets used in QlikSense ? for more information.
<add key="WebSocketPingInterval" value="0"/> <!-- Interval in seconds for the web socket ping to the client (a value of "0" is disabling the ping)–>
Where value is a suitable positive number depending on the inactive web socket timeout setting in the network. The effective interval that the Qlik Sense Proxy server will send keep-alive messages towards the client my oscillate between 2 x value and 1 x value, since it also takes into account backend inter-process socket activity. Eg: setting the value of WebSocketPingInterval to 30 may lead to keep-alive messages sent to the client every 30 or 60 seconds.Hi,
Setting up 7th AMI Aug/2023 BYOL server Windows 2019 on AWS.
I have installed 6 previous qlik ami's(2020-2022) all the same on AWS networks. As client managed cloud servers.
Have never had a disconnection every 60 seconds.
Set the client TO-300 as usual. Even opened other ports 4747, etc. Tried both Chrome and FF. Still no change.
Set WS ping to 30s. Now working as expected, that is TO is 5 minutes.
Network appliances I use NAT and LB's are default to 350s by AWS, 6 mins.
This AMI also still had the incorrect postgres dir in the ps1's. Had to change all to 14.
This seems to be a Qlik problem as I've done this 6 servers all actively running on the same AWS networks and this never happened before. Also not sure what I would do when AWS is defaulted to 350s already.
Any ideas?
Thanks
Hi all,
We had the problem with these kind of disconnections with some users and had to apply this functionaly in order to sessions lasting longer than five minutes, even with the Virtual Proxy settings at a higher time, this continued to happen. Any ideas of why this could be happening. Never had happened before and its just for some users.
Thanks.
Hello @willtech93
If only specific users are affected, we recommend reviewing the Qlik Sense log files for additional information and investigating the differences in the setup these users have (different browsers, different network devices, VPNs used and so on).
All the best,
Sonja
Hi @Andre_Sostizzo @Sonja_Bauernfeind,
<add key="WebSocketPingInterval" value="5"/>
We did add the above entry in proxy config file and interval was initially set at 90 seconds (considering the recommendation 60 to 300) and still the issue did appear and hence we tested with different values i.e. 60, 30, 15, 10 and lastly with 5 seconds. For all the cases we noticed the issue did not get solved.
We have used Wireshark to understand if Qlik Sense server is sending any tcp keep alive. To our surprise, it did not show any such tcp keep alive. However if we run from client side (my machine) I did notice such tcp keep alive. We do not understand why server/instance
Client side: wireshark shows tcp keep alive messages almost for 45 seconds
Server side (AWS EC2 windows server 2016): we do not notice any tcp keep alive messages being sent
is not sending such tcp keep alives ?
Windows server registry editor has the below settings for the tcp keep alive.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\: KeepAliveTime: 30000 KeepAliveInterval: 1000 TcpMaxDataRetransmissions: 10 These settings use the DWORD data type
Hello @sanrout
This question would require direct investigation. I either recommend posting about your challenges in the appropriate forum (Deployment and Management), or investigating the possibility of contacting support.
All the best,
Sonja