{"action":"created","issue":{"url":"https://api.github.com/repos/Tunnelblick/Tunnelblick/issues/284","labels_url":"https://api.github.com/repos/Tunnelblick/Tunnelblick/issues/284/labels{/name}","comments_url":"https://api.github.com/repos/Tunnelblick/Tunnelblick/issues/284/comments","events_url":"https://api.github.com/repos/Tunnelblick/Tunnelblick/issues/284/events","html_url":"https://github.com/Tunnelblick/Tunnelblick/issues/284","id":118019299,"number":284,"title":"Tunnelblick hangs when checking OpenVPN version","user":{"login":"borgand","id":103215,"avatar_url":"https://avatars.githubusercontent.com/u/103215?v=3","gravatar_id":"","url":"https://api.github.com/users/borgand","html_url":"https://github.com/borgand","followers_url":"https://api.github.com/users/borgand/followers","following_url":"https://api.github.com/users/borgand/following{/other_user}","gists_url":"https://api.github.com/users/borgand/gists{/gist_id}","starred_url":"https://api.github.com/users/borgand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borgand/subscriptions","organizations_url":"https://api.github.com/users/borgand/orgs","repos_url":"https://api.github.com/users/borgand/repos","events_url":"https://api.github.com/users/borgand/events{/privacy}","received_events_url":"https://api.github.com/users/borgand/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-11-20T11:17:22Z","updated_at":"2015-12-09T20:35:19Z","closed_at":null,"body":"A week or so ago, possibly after I upgraded to `OS X 10.11.1`, Tunnelblick stopped working. Considering the recent upgrace, I tried to install `3.6beta10` with no luck, but reinstalling `3.5.4` fixed it for a while. Yesterday the problem came back and no reinstall fixes it. Using bundled `openvpn` from commandline works and creates working tunnels.\r\n\r\nAffected versions: 3.5.4, 3.6beta10, 3.6beta12\r\n\r\n**The problem:**\r\n\r\nWhen I start Tunnelblick app, it shows splash screen with text \"Starting Tunnelblick...\" and stays that way forever. Also the spinning beach ball appears over both the splash screen and Menu Bar icon.\r\n\r\nWhen listing processes in the machine, I found that it waits for this process:\r\n\r\n    /Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.3.6/openvpn --version\r\n\r\nIt just sits there. Running this command from terminal outputs:\r\n\r\n```\r\n/Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.3.6/openvpn --version\r\nOpenVPN 2.3.6 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on Sep 19 2015\r\nlibrary versions: OpenSSL 1.0.1p 9 Jul 2015, LZO 2.08\r\nOriginally developed by James Yonan\r\nCopyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>\r\nCompile time defines: enable_crypto=yes enable_crypto_ofb_cfb=yes enable_debug=no enable_def_auth=yes enable_dependency_tracking=no enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown enable_fast_install=needless enable_fragment=yes enable_http_proxy=yes enable_iproute2=no enable_libtool_lock=yes enable_lzo=yes enable_lzo_stub=no enable_management=yes enable_multi=yes enable_multihome=yes enable_pam_dlopen=no enable_password_save=no enable_pedantic=no enable_pf=yes enable_pkcs11=yes enable_plugin_auth_pam=no enable_plugin_down_root=yes enable_plugins=yes enable_port_share=yes enable_selinux=no enable_server=yes enable_shared=yes enable_shared_with_static_runtimes=no enable_small=no enable_socks=yes enable_ssl=yes enable_static=yes enable_strict=no enable_strict_options=no enable_systemd=no enable_win32_dll=yes enable_x509_alt_username=no with_crypto_library=openssl with_gnu_ld=no with_mem_check=no with_plugindir='$(libdir)/openvpn/plugins' with_sysroot=no\r\n```\r\n\r\n**Exit status: 1**\r\n\r\n(I verified that Brew-installed `openvpn --version` gives the same exit status 1)\r\n\r\nNormal kill does not end the openvpn process, but `kill -9 <PID>` makes Tunnelblick log this into console and exit:\r\n\r\n```\r\n20.11.15 12:59.41,868 Tunnelblick[48635]: openvpnstart returned 9 trying to run '/Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.3.6/openvpn --version'; stderr was ''; stdout was 'OpenVPN 2.3.8 x86_64-apple-darwin15.0.0 [SSL (OpenSSL)] [LZO] [MH] [IPv6] built on Nov 20 2015\r\nlibrary versions: OpenSSL 1.0.2d 9 Jul 2015, LZO 2.09\r\nOriginally developed by James Yonan\r\nCopyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>\r\nCompile time defines: enable_crypto=yes enable_crypto_ofb_cfb=yes enable_debug=no enable_def_auth=yes enable_dependency_tracking=no enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown enable_fast_install=needless enable_fragment=yes enable_http_proxy=yes enable_iproute2=no enable_libtool_lock=yes enable_lzo=yes enable_'\r\n\r\n\r\n20.11.15 12:59.41,871 Tunnelblick[48635]: Terminating because of error; stack trace:\r\n(\r\n\t0   Tunnelblick                         0x000157f9 -[MenuController terminateBecause:] + 129\r\n\t1   Tunnelblick                         0x0002abad -[MenuController setUpOpenVPNNamesAndVersionInfo] + 783\r\n\t2   Tunnelblick                         0x0001e8eb -[MenuController applicationDidFinishLaunching:] + 230\r\n\t3   Foundation                          0x996908a2 __57-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_2 + 50\r\n\t4   CoreFoundation                      0x938535a4 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 20\r\n\t5   CoreFoundation                      0x9385352b ___CFXRegistrationPost_block_invoke + 75\r\n\t6   CoreFoundation                      0x9385349c _CFXRegistrationPost + 460\r\n\t7   CoreFoundation                      0x938531d6 ___CFXNotificationPost_block_invoke + 54\r\n\t8   CoreFoundation                      0x9380cb53 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1715\r\n\t9   CoreFoundation                      0x9380bd72 _CFXNotificationPost + 626\r\n\t10  Foundation                          0x99642954 -[NSNotificationCenter postNotificationName:object:userInfo:] + 92\r\n\t11  AppKit                              0x9bdca528 -[NSApplication _postDidFinishNotification] + 436\r\n\t12  AppKit                              0x9bdca1d6 -[NSApplication _sendFinishLaunchingNotification] + 249\r\n\t13  AppKit                              0x9bc74a2a -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 783\r\n\t14  AppKit                              0x9bc74380 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 291\r\n\t15  libobjc.A.dylib                     0x949cc5ac -[NSObject performSelector:withObject:withObject:] + 84\r\n\t16  Foundation                          0x99694180 __76-[NSAppleEventManager setEventHandler:andSelector:forEventClass:andEventID:]_block_invoke + 118\r\n\t17  Foundation                          0x99693cd7 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 451\r\n\t18  Foundation                          0x99693ad2 _NSAppleEventManagerGenericHandler + 211\r\n\t19  AE                                  0x92b54e54 _Z20aeDispatchAppleEventPK6AEDescPS_mPh + 595\r\n\t20  AE                                  0x92b51b75 _ZL25dispatchEventAndSendReplyPK6AEDescPS_ + 44\r\n\t21  AE                                  0x92b51a88 aeProcessAppleEvent + 299\r\n\t22  HIToolbox                           0x9643dc5a AEProcessAppleEvent + 55\r\n\t23  AppKit                              0x9bc6fca8 _DPSNextEvent + 2415\r\n\t24  AppKit                              0x9bc6ecd0 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1057\r\n\t25  AppKit                              0x9bc6e8a7 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 121\r\n\t26  AppKit                              0x9bc6201b -[NSApplication run] + 1063\r\n\t27  AppKit                              0x9bc286a4 NSApplicationMain + 1630\r\n\t28  Tunnelblick                         0x00002079 _start + 208\r\n\t29  Tunnelblick                         0x00001fa8 start + 40\r\n)\r\n\r\n20.11.15 12:59.41,871 Tunnelblick[48635]: applicationShouldTerminate: termination because of an error; delayed until 'shutdownTunnelblick' finishes\r\n\r\n20.11.15 12:59.45,599 Tunnelblick[48635]: Finished shutting down Tunnelblick; allowing termination\r\n\r\n\r\n```\r\n\r\nReplaced the `openvpn` binary with a shell script that just echoes the above version info and exits allows Tunnelblick to start up normally (with alert on checksum mismatch of course). If I replace the original `openvpn` binary after that, Connecting to a VPN logs this into Console:\r\n\r\n ```\r\n20.11.15 13:11.08,909 Tunnelblick[49295]: runTunnelblickd: no data available from tunnelblickd socket; sleeping 0.100000 seconds...\r\n\r\n```\r\n\r\nAnd the connection times out while Tunnelblick log window stays rather blank.\r\n\r\nIt seems as if Tunnelblick is uncapable of communicating with `openvpn` binary."},"comment":{"url":"https://api.github.com/repos/Tunnelblick/Tunnelblick/issues/comments/163384485","html_url":"https://github.com/Tunnelblick/Tunnelblick/issues/284#issuecomment-163384485","issue_url":"https://api.github.com/repos/Tunnelblick/Tunnelblick/issues/284","id":163384485,"user":{"login":"nw-wind","id":16117884,"avatar_url":"https://avatars.githubusercontent.com/u/16117884?v=3","gravatar_id":"","url":"https://api.github.com/users/nw-wind","html_url":"https://github.com/nw-wind","followers_url":"https://api.github.com/users/nw-wind/followers","following_url":"https://api.github.com/users/nw-wind/following{/other_user}","gists_url":"https://api.github.com/users/nw-wind/gists{/gist_id}","starred_url":"https://api.github.com/users/nw-wind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nw-wind/subscriptions","organizations_url":"https://api.github.com/users/nw-wind/orgs","repos_url":"https://api.github.com/users/nw-wind/repos","events_url":"https://api.github.com/users/nw-wind/events{/privacy}","received_events_url":"https://api.github.com/users/nw-wind/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T20:35:19Z","updated_at":"2015-12-09T20:35:19Z","body":"I have the same problem with 3.6.5, 3.6.6 and the 3.6beta16\r\n\r\nThe output of openvpn --version is:\r\n\r\nbash-3.2# /Applications/Tunnelblick.app/Contents/Resources/openvpn/openvpn-2.3.7/openvpn --version\r\nOpenVPN 2.3.7 x86_64-apple-darwin [SSL (OpenSSL)] [LZO] [PKCS11] [MH] [IPv6] built on Dec  4 2015\r\nlibrary versions: OpenSSL 1.0.2e 3 Dec 2015, LZO 2.09\r\nOriginally developed by James Yonan\r\nCopyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>\r\nCompile time defines: enable_crypto=yes enable_crypto_ofb_cfb=yes enable_debug=no enable_def_auth=yes enable_dependency_tracking=no enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown enable_fast_install=needless enable_fragment=yes enable_http_proxy=yes enable_iproute2=no enable_libtool_lock=yes enable_lzo=yes enable_lzo_stub=no enable_management=yes enable_multi=yes enable_multihome=yes enable_pam_dlopen=no enable_password_save=no enable_pedantic=no enable_pf=yes enable_pkcs11=yes enable_plugin_auth_pam=no enable_plugin_down_root=yes enable_plugins=yes enable_port_share=yes enable_selinux=no enable_server=yes enable_shared=yes enable_shared_with_static_runtimes=no enable_small=no enable_socks=yes enable_ssl=yes enable_static=yes enable_strict=no enable_strict_options=no enable_systemd=no enable_win32_dll=yes enable_x509_alt_username=no with_crypto_library=openssl with_gnu_ld=no with_mem_check=no with_plugindir='$(libdir)/openvpn/plugins' with_sysroot=no\r\n\r\nManual start in the Terminal shows:\r\n\r\nbash-3.2# /Applications/Tunnelblick.app/Contents/MacOS/Tunnelblick --version\r\n2015-12-09 23:07:19.482 Tunnelblick[5350:2554235] Tunnelblick: OS X 10.11.1; Tunnelblick 3.6beta16 (build 4461)\r\n2015-12-09 23:07:20.205 Tunnelblick[5350:2554235] Error returned from attributesOfItemAtPath: /var/root/Library/openvpn;\r\nError was Error Domain=NSCocoaErrorDomain Code=260 \"Не удалось открыть файл «openvpn», так как такого файла не существует.\" UserInfo={NSFilePath=/var/root/Library/openvpn, \r\n\r\nno such file, why Tunnelblibk search it here???\r\nWTF?\r\nbash-3.2# ls -l /var/root/Library/openvpn\r\nlrwxr-xr-x  1 root  wheel  64  9 дек 23:07 /var/root/Library/openvpn -> /var/root/Library/Application Support/Tunnelblick/Configurations\r\n\r\nNSUnderlyingError=0x25c550 {Error Domain=NSPOSIXErrorDomain Code=2 \"No such file or directory\"}}; stack trace: (\r\n\t0   Tunnelblick                         0x0003d06c fmCallStack + 66\r\n\t1   Tunnelblick                         0x0003d426 -[NSFileManager(TB) tbFileAttributesAtPath:traverseLink:] + 103\r\n\t2   Tunnelblick                         0x00018848 -[MenuController makeSymbolicLink] + 76\r\n\t3   Tunnelblick                         0x0002924e -[MenuController init] + 7302\r\n\t4   AppKit                              0x98a8ce54 -[NSCustomObject nibInstantiate] + 380\r\n\t5   AppKit                              0x98a8cc66 -[NSIBObjectData instantiateObject:] + 317\r\n\t6   AppKit                              0x98a8c1e7 -[NSIBObjectData nibInstantiateWithOwner:options:topLevelObjects:] + 450\r\n\t7   AppKit                              0x98a8c01f -[NSIBObjectData nibInstantiateWithOwner:topLevelObjects:] + 56\r\n\t8   AppKit                              0x98a828bb loadNib + 462\r\n\t9   AppKit                              0x98a81ca5 +[NSBundle(NSNibLoading) _loadNibFile:nameTable:options:withZone:ownerBundle:] + 328\r\n\t10  AppKit                              0x98d10bbc +[NSBundle(NSNibLoadingInternal) _loadNibFile:externalNameTable:options:withZone:] + 161\r\n\t11  AppKit                              0x98dd4a72 +[NSBundle(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 67\r\n\t12  AppKit                              0x98a81916 +[NSBundle(NSNibLoading) loadNibNamed:owner:] + 743\r\n\t13  AppKit                              0x98a7c2c5 NSApplicationMain + 639\r\n\t14  Tunnelblick                         0x000021d9 _start + 208\r\n\t15  Tunnelblick                         0x00002108 start + 40\r\n)\r\n2015-12-09 23:07:20.207 Tunnelblick[5350:2554235] Created a symbolic link to /var/root/Library/Application Support/Tunnelblick/Configurations at /var/root/Library/openvpn\r\n2015-12-09 23:07:23.836 Tunnelblick[5350:2554235] Set program update feedURL to https://www.tunnelblick.net/appcast-b.rss\r\n2015-12-09 23:07:24.034 Tunnelblick[5350:2554235] Launching a thread to remove the old login item (if any) so we can use the new mechanism that controls Tunnelblick's launch on login\r\n2015-12-09 23:07:24.164 Tunnelblick[5350:2554235] Copied our 'net.tunnelblick.tunnelblick.LaunchAtLogin.plist' into ~/Library/LaunchAgents\r\n2015-12-09 23:07:24.354 Tunnelblick[5350:2554469] No old login item to remove"}}