VPN Constantly Disconnecting Unexpectedly

Got a problem with Viscosity or need help? Ask here!

jxp05j

Posts: 4
Joined: Tue Aug 11, 2015 1:12 pm

Post by jxp05j » Wed May 18, 2016 8:52 am
I am having trouble keeping a connection to my VPN open when I am not actively using the computer. If I stop actively using the computer, the connection will drop after about 20 minutes. I have tried preventing the computer from sleeping in the energy saver preference pane and using a program called amphetamine to keep the computer awake, but it still disconnects after about 20 minutes. I am not sure where to begin troubleshooting this problem. Here are the logs from viscosity:
May 16 20:38:10: Viscosity Mac 1.6.4 (1348)
May 16 20:38:10: Viscosity OpenVPN Engine Started
May 16 20:38:10: Running on Mac OS X 10.11.5
May 16 20:38:10: ---------
May 16 20:38:10: Checking reachability status of connection...
May 16 20:38:10: Connection is reachable. Starting connection attempt.
May 16 20:38:12: OpenVPN 2.3.11 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on May 10 2016
May 16 20:38:12: library versions: OpenSSL 1.0.2h 3 May 2016, LZO 2.09
May 16 20:38:15: UDPv4 link local: [undef]
May 16 20:38:15: UDPv4 link remote: [AF_INET]162.216.46.52:1194
May 16 20:38:15: WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
May 16 20:38:15: [Private Internet Access] Peer Connection Initiated with [AF_INET]162.216.46.52:1194
May 16 20:38:17: Opened utun device utun0
May 16 20:38:17: do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
May 16 20:38:17: /sbin/ifconfig utun0 delete
May 16 20:38:17: NOTE: Tried to delete pre-existing tun/tap instance -- No Problem if failure
May 16 20:38:17: /sbin/ifconfig utun0 10.184.1.6 10.184.1.5 mtu 1500 netmask 255.255.255.255 up
May 16 20:38:17: Initialization Sequence Completed
May 16 20:38:17: DNS mode set to: Full
May 16 20:55:08: SIGTERM[hard,] received, process exiting
And here are the corresponding system logs from around the time the connection dropped:
5/16/16 8:55:08.916 PM configd[59]: *** Non-configd process (pid=900) attempting to modify "Setup:/Network/Service/com.sparklabs.Viscosity.utun0" ***
5/16/16 8:55:08.917 PM configd[59]: *** Non-configd process (pid=900) attempting to modify "Setup:/Network/Service/com.sparklabs.Viscosity.utun0/IPv4" ***
5/16/16 8:55:08.917 PM configd[59]: *** Non-configd process (pid=900) attempting to modify "Setup:/Network/Service/com.sparklabs.Viscosity.utun0/IPv6" ***
5/16/16 8:55:08.917 PM configd[59]: *** Non-configd process (pid=900) attempting to modify "Setup:/Network/Service/com.sparklabs.Viscosity.utun0/Interface" ***
5/16/16 8:55:08.917 PM configd[59]: *** Non-configd process (pid=900) attempting to modify "Setup:/Network/Service/com.sparklabs.Viscosity.utun0/DNS" ***
5/16/16 8:55:08.918 PM configd[59]: *** Non-configd process (pid=900) attempting to modify "Setup:/Network/Service/com.sparklabs.Viscosity.utun0/Proxies" ***
5/16/16 8:55:08.918 PM configd[59]: *** Non-configd process (pid=900) attempting to modify "Setup:/Network/Global/IPv4" ***
5/16/16 8:55:08.920 PM configd[59]: network changed: v4(en0:192.168.1.9) DNS! Proxy+ SMB
5/16/16 8:55:08.924 PM configd[59]: network changed: v4(en0/:192.168.1.9) DNS Proxy SMB
5/16/16 8:55:08.000 PM kernel[0]: SIOCPROTODETACH_IN6: utun0 error=6
5/16/16 8:55:08.929 PM mDNSResponder[100]: getExtendedFlags: SIOCGIFEFLAGS failed, errno = 6 (Device not configured)
5/16/16 8:55:09.044 PM symptomsd[224]: nw_interface_create_with_name netutil_ifname_to_ifindex(utun0) failed, dumping backtrace:
[x86_64] libnetcore-583.50.1
0 libsystem_network.dylib 0x00007fff94178de9 __nw_create_backtrace_string + 123
1 libsystem_network.dylib 0x00007fff9419b1f3 nw_interface_create_with_name + 179
2 Network 0x00007fff89a61edc -[NWInterface initWithInterfaceName:] + 120
3 SymptomEvaluator 0x000000010e39d2fc config_callback + 874
4 SystemConfiguration 0x00007fff8fb35faf rlsPerform + 184
5 SystemConfiguration 0x00007fff8fb493ab __SCDynamicStoreSetDispatchQueue_block_invoke_2 + 52
6 libdispatch.dylib 0x00007fff8dac093d _dispatch_call_block_and_release + 12
7 libdispatch.dylib 0x00007fff8dab540b _dispatch_client_callout + 8
8 libdispatch.dylib 0x00007fff8daba03b _dispatch_queue_drain + 754
9 libdispatch.dylib 0x00007fff8dac0707 _dispatch_queue_invoke + 549
10 libdispatch.dylib 0x00007fff8dab8d53 _dispatch_root_queue_drain + 538
11 libdispatch.dylib 0x00007fff8dab8b00 _dispatch_worker_thread3 + 91
12 libsystem_pthread.dylib 0x00007fff98a954de _pthread_wqthread + 1129
13 libsystem_pthread.dylib 0x00007fff98a93341 start_wqthread + 13
5/16/16 8:55:09.044 PM symptomsd[224]: -[NWInterface initWithInterfaceName:] nw_interface_create_with_name(utun0) failed, dumping backtrace:
[x86_64] libnetcore-583.50.1
0 libsystem_network.dylib 0x00007fff94178de9 __nw_create_backtrace_string + 123
1 Network 0x00007fff89a61f46 -[NWInterface initWithInterfaceName:] + 226
2 SymptomEvaluator 0x000000010e39d2fc config_callback + 874
3 SystemConfiguration 0x00007fff8fb35faf rlsPerform + 184
4 SystemConfiguration 0x00007fff8fb493ab __SCDynamicStoreSetDispatchQueue_block_invoke_2 + 52
5 libdispatch.dylib 0x00007fff8dac093d _dispatch_call_block_and_release + 12
6 libdispatch.dylib 0x00007fff8dab540b _dispatch_client_callout + 8
7 libdispatch.dylib 0x00007fff8daba03b _dispatch_queue_drain + 754
8 libdispatch.dylib 0x00007fff8dac0707 _dispatch_queue_invoke + 549
9 libdispatch.dylib 0x00007fff8dab8d53 _dispatch_root_queue_drain + 538
10 libdispatch.dylib 0x00007fff8dab8b00 _dispatch_worker_thread3 + 91
11 libsystem_pthread.dylib 0x00007fff98a954de _pthread_wqthread + 1129
12 libsystem_pthread.dylib 0x00007fff98a93341 start_wqthread + 13
5/16/16 8:55:09.044 PM symptomsd[224]: nw_interface_create_with_name netutil_ifname_to_ifindex(utun0) failed, dumping backtrace:
[x86_64] libnetcore-583.50.1
0 libsystem_network.dylib 0x00007fff94178de9 __nw_create_backtrace_string + 123
1 libsystem_network.dylib 0x00007fff9419b1f3 nw_interface_create_with_name + 179
2 Network 0x00007fff89a61edc -[NWInterface initWithInterfaceName:] + 120
3 SymptomEvaluator 0x000000010e39d2fc config_callback + 874
4 SystemConfiguration 0x00007fff8fb35faf rlsPerform + 184
5 SystemConfiguration 0x00007fff8fb493ab __SCDynamicStoreSetDispatchQueue_block_invoke_2 + 52
6 libdispatch.dylib 0x00007fff8dac093d _dispatch_call_block_and_release + 12
7 libdispatch.dylib 0x00007fff8dab540b _dispatch_client_callout + 8
8 libdispatch.dylib 0x00007fff8daba03b _dispatch_queue_drain + 754
9 libdispatch.dylib 0x00007fff8dac0707 _dispatch_queue_invoke + 549
10 libdispatch.dylib 0x00007fff8dab8d53 _dispatch_root_queue_drain + 538
11 libdispatch.dylib 0x00007fff8dab8b00 _dispatch_worker_thread3 + 91
12 libsystem_pthread.dylib 0x00007fff98a954de _pthread_wqthread + 1129
13 libsystem_pthread.dylib 0x00007fff98a93341 start_wqthread + 13
5/16/16 8:55:09.044 PM symptomsd[224]: -[NWInterface initWithInterfaceName:] nw_interface_create_with_name(utun0) failed, dumping backtrace:
[x86_64] libnetcore-583.50.1
0 libsystem_network.dylib 0x00007fff94178de9 __nw_create_backtrace_string + 123
1 Network 0x00007fff89a61f46 -[NWInterface initWithInterfaceName:] + 226
2 SymptomEvaluator 0x000000010e39d2fc config_callback + 874
3 SystemConfiguration 0x00007fff8fb35faf rlsPerform + 184
4 SystemConfiguration 0x00007fff8fb493ab __SCDynamicStoreSetDispatchQueue_block_invoke_2 + 52
5 libdispatch.dylib 0x00007fff8dac093d _dispatch_call_block_and_release + 12
6 libdispatch.dylib 0x00007fff8dab540b _dispatch_client_callout + 8
7 libdispatch.dylib 0x00007fff8daba03b _dispatch_queue_drain + 754
8 libdispatch.dylib 0x00007fff8dac0707 _dispatch_queue_invoke + 549
9 libdispatch.dylib 0x00007fff8dab8d53 _dispatch_root_queue_drain + 538
10 libdispatch.dylib 0x00007fff8dab8b00 _dispatch_worker_thread3 + 91
11 libsystem_pthread.dylib 0x00007fff98a954de _pthread_wqthread + 1129
12 libsystem_pthread.dylib 0x00007fff98a93341 start_wqthread + 13
5/16/16 8:55:09.124 PM mDNSResponder[100]: SIGHUP: Purge cache
5/16/16 8:55:09.216 PM networkd[191]: nw_interface_get_agents SIOCGIFAGENTIDS failed for interface "" (index 11, type other): [6] Device not configured
5/16/16 8:55:09.216 PM networkd[191]: nw_interface_get_agents SIOCGIFAGENTIDS failed for interface "" (index 11, type other): [6] Device not configured
5/16/16 8:55:09.216 PM networkd[191]: nw_interface_get_agents SIOCGIFAGENTIDS failed for interface "" (index 11, type other): [6] Device not configured
5/16/16 8:55:09.217 PM networkd[191]: nw_interface_get_agents SIOCGIFAGENTIDS failed for interface "" (index 11, type other): [6] Device not configured
5/16/16 8:55:09.217 PM networkd[191]: nw_interface_get_agents SIOCGIFAGENTIDS failed for interface "" (index 11, type other): [6] Device not configured
5/16/16 8:55:09.217 PM networkd[191]: nw_interface_get_agents SIOCGIFAGENTIDS failed for interface "" (index 11, type other): [6] Device not configured
5/16/16 8:55:09.217 PM networkd[191]: nw_interface_get_agents SIOCGIFAGENTIDS failed for interface "" (index 11, type other): [6] Device not configured
5/16/16 8:55:09.396 PM com.apple.xpc.launchd[1]: (org.m0k.transmission.96032[1074]) Service exited due to signal: Terminated: 15
5/16/16 8:55:09.417 PM cdpd[445]: Saw change in network reachability (isReachable=2)
5/16/16 8:55:09.419 PM symptomsd[224]: __73-[NetworkAnalyticsEngine observeValueForKeyPath:ofObject:change:context:]_block_invoke unexpected switch value 2
5/16/16 8:55:09.000 PM kernel[0]: Limiting icmp unreach response from 338 to 250 packets per second
Any help or advice would be appreciated.

James

User avatar
Posts: 2313
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Thu May 19, 2016 2:35 am
Hi jxp05j,

Here are some things to check:

1. If you're using a wireless connection check that it isn't disconnecting when the screensaver comes on. See the following page for information: http://apple.stackexchange.com/question ... ck-the-mac

2. Make sure Viscosity "Disconnect connections are x minutes of inactivity" option isn't on under Preferences->General.

3. Check that the "inactive" OpenVPN command isn't being pushed by the OpenVPN server and that it isn't set in the advanced commands section for your connection. For more information please see:
http://www.sparklabs.com/support/kb/art ... /#inactive

Cheers,
James
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs

jxp05j

Posts: 4
Joined: Tue Aug 11, 2015 1:12 pm

Post by jxp05j » Thu May 19, 2016 11:42 am
2. Make sure Viscosity "Disconnect connections are x minutes of inactivity" option isn't on under Preferences->General.
Well I feel like an idiot. I must have passed over that setting a dozen times trying to figure out what was going on. Thank you for the reply and the help. The support you provide for your app is awesome. Thank you for all the time you put in to it.
3 posts Page 1 of 1