Author Topic: Your session term'd unexpectedly (Mac Network Connect)  (Read 21748 times)

itquantcast

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Your session term'd unexpectedly (Mac Network Connect)
« on: October 19, 2011, 02:11:28 pm »
Hello all,

First post to the site, hope I'm not alone in my issue.  We have ~150 users, half of which are Mac users.  About once a month we have a Mac user who was able to connect to their VPN client but suddenly stops working.  Message received after inputting credentials:

"Your session terminated unexpectedly.  A software error caused the tunneling service to terminate.  See the log viewer for more information." - nc.mac.app.1203

Generally we have them uninstall the application and delete all extra files from file system, hit our url from Safari, re-download the Network Connect application: currently we are at 7.1.0 (19243)

We've found this is related to user profiles.  I can login to another user profile on the system and connecting to VPN works.  We then migrate the user to a new profile on the Mac which is a pain but ends up solving the problem, that or migrating them to another system.  Generally nothing is changed on the system in terms of updates or new programs.

Juniper suggests only:
nc.mac.app.1203
System Log Message Your session terminated unexpectedly.
Cause A software error caused the Network Connect tunneling service to terminate. This
may have been the result of a non-zero exit code—usually indicative of a software
crash. (See the Log Viewer for more information.)
Action Try signing in to the secure gateway again. If you still cannot establish a connection
to the secure gateway, contact your system administrator

If anybody's seen this let me know, or if you have any ideas.  Thanks -Ben


bubum

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Your session term'd unexpectedly (Mac Network Connect)
« Reply #1 on: October 24, 2011, 09:33:58 pm »
I have the EXACT same problem.
Waiting for solution....

donu35

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Your session term'd unexpectedly (Mac Network Connect)
« Reply #2 on: November 10, 2011, 08:57:39 am »
I have the same problem too. Tried uninstalling Juniper and also tried a different user account, still no fix.

pjlennon

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Your session term'd unexpectedly (Mac Network Connect)
« Reply #3 on: November 29, 2011, 04:04:07 pm »
have iMac 3.1GHz running 10.6.8. Same here, it no longer works. I too have tried reinstalling, repairing permissions, ... still not working. I was hoping to find a solution before I do an archive install. I don't understand the errors in the log, but in case someone else does, I've attached them. Thanks

BGAllen

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Your session term'd unexpectedly (Mac Network Connect)
« Reply #4 on: December 13, 2011, 04:22:57 pm »
Same or similar problem. However, logging in from a different profile on the same computer fails whereas logging in from my profile on a different computer on the same LAN works.

OS10.7.2
Network Connect 7.1.0 (19243)

pjlennon

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Your session term'd unexpectedly (Mac Network Connect)
« Reply #5 on: December 13, 2011, 04:30:06 pm »
Tried archive install in 10.6.8. Didn't do the trick ... Grrrrrr... disappointing.

iamboo

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Your session term'd unexpectedly (Mac Network Connect)
« Reply #6 on: February 14, 2012, 02:12:15 pm »
Is anyone from Juniper looking into this?  I have tried every suggestion that I can find, re-install, new profile, black magic... still will not connect.  Please fix this Juniper?

steve_l

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Your session term'd unexpectedly (Mac Network Connect)
« Reply #7 on: March 19, 2012, 03:52:34 pm »
Ditto.

In my case, the error (nc.mac.app.1203) always occurs from a given machine (even after re-imaging it !), while the user can get things to work if they sit down at a different machine.
The OS is Mac OS X Lion 10.7.3 (11D50).
The Network Connect version is 7.1.0 (19757).

Enabling a different network interface (wireless vs. wired ethernet) does not make any difference in the observed symptoms.
Geting a new and different IP via DHCP does not help.
Other machines in the same office with the same hardware and OS are still working.

bcurry

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Your session term'd unexpectedly (Mac Network Connect)
« Reply #8 on: June 19, 2012, 10:19:28 am »
You can fix this by completely removing all Juniper files from your computer and reinstalling.

I've only done this on a Mac, but it should be similar on Windows/Linux. Be sure that Juniper is closed before trying this.

  • Go to Applications -> Utilities -> Terminal
[li]Type the following: [/li][/list]
Code: [Select]
sudo rm -Rf /usr/local/juniper /Applications/Network\ Connect.app ~/Library/Logs/Juniper\ Networks
    . This will remove all Juniper directories (at least the ones I could find)[/li]
  • Reinstall Juniper

This worked for me. Hope it helps.

mgbrake

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Your session term'd unexpectedly (Mac Network Connect)
« Reply #9 on: August 29, 2012, 01:26:59 pm »
I was having the same issue.  I finally found this:
http://richa.avasthi.name/blogs/tepumpkin/2009/09/30/snow-leopard-and-juniper-network-connect/

which led me to run this set of commands
Code: [Select]
sudo rm -Rf /Applications/Network\ Connect.app
sudo rm -Rf /Library/Frameworks/net.juniper.DSApplicationServices.framework
sudo rm -Rf /Library/Frameworks/net.juniper.DSCoreServices.framework
sudo rm -Rf /Library/Frameworks/net.juniper.DSNetworkDiagnostics.framework
sudo rm -Rf /Library/Internet\ Plug-ins/net.juniper.DSSafariExtensions.plugin
sudo rm -Rf /Library/Widgets/Network\ Connect.wdgt
sudo rm -Rf /usr/local/juniper
sudo rm -Rf /private/var/db/receipts/net.juniper.NetworkConnect.bom
sudo rm -Rf /private/var/db/receipts/net.juniper.NetworkConnect.plist
sudo rm -Rf ~/Library/Preferences/ncproxyd.plist*

Then visit the network connect connecting page and all is well!

Necessity

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Your session term'd unexpectedly (Mac Network Connect)
« Reply #10 on: September 05, 2012, 11:54:19 am »
Same issue here. I've attempted the following steps.
Uninstall application/ReInstall
Uninstall application/manually remove all folders and files listed in this thread/ReInstall

Still no luck and the identical error repeats.

Diag output is below.

Code: [Select]

2012-09-05 09:47:03.191 Network Connect[p2111.t6915] NCController.info -ipcAppletIVEParametersFinished: Cleaning up the IPC connection with the launcher applet (NCController+NCIPC.m:68)
2012-09-05 09:47:03.194 Network Connect[p2111.t6915] DSIPCConnection.info -fileHandleDidRead: Invalidating per current message (DSIPCConnection.mm:483)
2012-09-05 09:47:03.205 ncproxyd[p2130.t4355] ipsec.info New tunnel being created (tunnel.cpp:52)
2012-09-05 09:47:03.208 ncproxyd[p2130.t4355] routeutils.info Creating Desktop route table iterator (routeutils.cpp:289)

2012-09-05 09:47:03.403 Network Connect[p2111.t6915] separateserviceadapter.info Removing adapter as responder (NCSeparateServiceAdapter.mm:47)
2012-09-05 09:47:03.403 Network Connect[p2111.t6915] separateserviceadapter.info Removing adapter as responder (NCSeparateServiceAdapter.mm:47)
2012-09-05 09:47:03.403 Network Connect[p2111.t6915] NCController.info -proxyMonitor:taskDidTerminateWithStatus: /usr/local/juniper/nc/7.1.0/ncproxyd terminated with exit code 10; in state 3; last-signal 0 (NCController.m:1137)
2012-09-05 09:47:03.403 Network Connect[p2111.t6915] NCAdminFunctions.info calling ncproxyd to restore system configuration. (NCAdminFunctions.mm:52)
2012-09-05 09:47:03.417 ncproxyd-admintool[p2131.t4355] ncproxyd.info looking for ncproxyd in 115 processes (ncproxyd.cpp:241)
2012-09-05 09:47:03.418 ncproxyd-admintool[p2131.t4355] ipsec.info New tunnel being created (tunnel.cpp:52)
2012-09-05 09:47:03.420 ncproxyd-admintool[p2131.t4355] routeutils.info Creating Desktop route table iterator (routeutils.cpp:289)

2012-09-05 09:47:03.609 Network Connect[p2111.t6915] ds.mac.core.1000.error <DSError 0x8a1cdb0 domain=ds.mac.core code=1000 "netstat parse error: *** -[__NSArrayI objectAtIndex:]: index 3 beyond bounds [0 .. 0]" userInfo={
    DSErrorClassName = DSNetworkInfo;
    DSErrorMethodName = "_refreshCache";
    DSErrorStackBackTrace =     (
        "DSCreateStackBackTraceWithStack (in net.juniper.DSCoreServices) + 111",
        "DSFrameArrayWithStackBackTrace (in net.juniper.DSCoreServices) + 2567",
        "DSMakeMailToURL (in net.juniper.DSCoreServices) + 5723",
        "DSMakeMailToURL (in net.juniper.DSCoreServices) + 582",
        "start (in Network Connect) + 22622",
        "start (in Network Connect) + 14596",
        "DSSignalMaskWithSignal (in net.juniper.DSApplicationServices) + 44307",
        "start (in Network Connect) + 63920",
        "__invoking___ (in CoreFoundation) + 29",
        "-[NSInvocation invoke] (in CoreFoundation) + 137",
        "-[NSInvocation invokeWithTarget:] (in CoreFoundation) + 74",
        "_DSDelegatedIPC::call_function(void (*)(...), char const*, int*, int) (in net.juniper.DSCoreServices) + 750",
        "DSIPC::handle_message(DSIPCMessage*) (in net.juniper.DSCoreServices) + 672",
        "DSIPC::receive_message(unsigned char*, int) (in net.juniper.DSCoreServices) + 596",
        "NCCreateMessageFrameWithArray(NSArray*) (in net.juniper.DSCoreServices) + 4722",
        "__-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 (in Foundation) + 49",
        "___CFXNotificationPost_block_invoke_1 (in CoreFoundation) + 275",
        "_CFXNotificationPost (in CoreFoundation) + 2776",
        "-[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation) + 92",
        "_performFileHandleSource (in Foundation) + 1159",
        "__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ (in CoreFoundation) + 15",
        "__CFRunLoopDoSources0 (in CoreFoundation) + 246",
        "__CFRunLoopRun (in CoreFoundation) + 1112",
        "CFRunLoopRunSpecific (in CoreFoundation) + 332",
        "CFRunLoopRunInMode (in CoreFoundation) + 120",
        "RunCurrentEventLoopInMode (in HIToolbox) + 318",
        "ReceiveNextEventCommon (in HIToolbox) + 168",
        "BlockUntilNextEventMatchingListInMode (in HIToolbox) + 88",
        "_DPSNextEvent (in AppKit) + 678",
        "-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit) + 113",
        "-[NSApplication run] (in AppKit) + 911",
        "NSApplicationMain (in AppKit) + 1054",
        "start (in Network Connect) + 57362",
        "start (in Network Connect) + 270",
        "start (in Network Connect) + 41",
        "0x00000005 (in Network Connect)"
    );
} (DSNetworkInfo.m:296)>
2012-09-05 09:47:03.628 Network Connect[p2111.t6915] nc.mac.app.1203.error <DSError 0x28ac90 domain=nc.mac.app code=1203 "/usr/local/juniper/nc/7.1.0/ncproxyd terminated with nonzero exit code 10; in state 0" userInfo={
    DSErrorClassName = NCController;
    DSErrorLocalizedAlertText = "A software error caused the tunneling service to terminate. See the Log Viewer for more information.";
    DSErrorLocalizedAlertTitle = "Your session terminated unexpectedly.";
    DSErrorLocalizedFirstButtonTitle = Continue;
    DSErrorLocalizedSecondButtonTitle = DSOptions;
    DSErrorMethodName = "proxyMonitor:taskDidTerminateWithStatus:";
    DSErrorStackBackTrace =     (
        "DSCreateStackBackTraceWithStack (in net.juniper.DSCoreServices) + 111",
        "DSFrameArrayWithStackBackTrace (in net.juniper.DSCoreServices) + 2567",
        "start (in Network Connect) + 31244",
        "start (in Network Connect) + 59928",
        "__-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 (in Foundation) + 49",
        "___CFXNotificationPost_block_invoke_1 (in CoreFoundation) + 275",
        "_CFXNotificationPost (in CoreFoundation) + 2776",
        "-[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation) + 92",
        "__-[NSConcreteTask launchWithDictionary:]_block_invoke_4 (in Foundation) + 100",
        "__CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ (in CoreFoundation) + 16",
        "__CFRunLoopDoBlocks (in CoreFoundation) + 337",
        "__CFRunLoopRun (in CoreFoundation) + 2343",
        "CFRunLoopRunSpecific (in CoreFoundation) + 332",
        "CFRunLoopRunInMode (in CoreFoundation) + 120",
        "RunCurrentEventLoopInMode (in HIToolbox) + 318",
        "ReceiveNextEventCommon (in HIToolbox) + 381",
        "BlockUntilNextEventMatchingListInMode (in HIToolbox) + 88",
        "_DPSNextEvent (in AppKit) + 678",
        "-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit) + 113",
        "-[NSApplication run] (in AppKit) + 911",
        "NSApplicationMain (in AppKit) + 1054",
        "start (in Network Connect) + 57362",
        "start (in Network Connect) + 270",
        "start (in Network Connect) + 41",
        "0x00000005 (in Network Connect)"
    );
} (NCController.m:1148)>

Running NC 7.1.0 and I'm on OSX 10.7.4

mgbrake

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Your session term'd unexpectedly (Mac Network Connect)
« Reply #11 on: September 05, 2012, 01:05:48 pm »
I was having the same issue.  I finally found this:
http://richa.avasthi.name/blogs/tepumpkin/2009/09/30/snow-leopard-and-juniper-network-connect/

which led me to run this set of commands
Code: [Select]
sudo rm -Rf /Applications/Network\ Connect.app
sudo rm -Rf /Library/Frameworks/net.juniper.DSApplicationServices.framework
sudo rm -Rf /Library/Frameworks/net.juniper.DSCoreServices.framework
sudo rm -Rf /Library/Frameworks/net.juniper.DSNetworkDiagnostics.framework
sudo rm -Rf /Library/Internet\ Plug-ins/net.juniper.DSSafariExtensions.plugin
sudo rm -Rf /Library/Widgets/Network\ Connect.wdgt
sudo rm -Rf /usr/local/juniper
sudo rm -Rf /private/var/db/receipts/net.juniper.NetworkConnect.bom
sudo rm -Rf /private/var/db/receipts/net.juniper.NetworkConnect.plist
sudo rm -Rf ~/Library/Preferences/ncproxyd.plist*

Then visit the network connect connecting page and all is well!

mgbrake

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Your session term'd unexpectedly (Mac Network Connect)
« Reply #12 on: September 05, 2012, 01:16:15 pm »
Please excuse the double post.

I should also have stated that after running the sudo rm commands I reset the machine.

I also checked the java configuration under Applications -> Utilities, and made sure java was enabled and that caching was off.  Not sure if that made a difference.

The critical part for me was the
sudo rm -Rf ~/Library/Preferences/ncproxyd.plist

Bad router information had crept in.  Which might imply that you would have luck removing the files, restarting, then connecting from a different network.

Necessity

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Your session term'd unexpectedly (Mac Network Connect)
« Reply #13 on: September 05, 2012, 01:44:08 pm »

I should also have stated that after running the sudo rm commands I reset the machine.


Not sure why but this did it. Thanks for following up.

regis

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Your session term'd unexpectedly (Mac Network Connect)
« Reply #14 on: June 30, 2013, 07:58:47 pm »
Hi,
We are now on version 7.3.3. I had it working perfectly until I had to reinstall OSX after HD crash. I got error nc.mac.app.1203.
I still manage to connect using IE on parallel desktop.
I did all steps mentioned above without success. All browsers give the same issue.
Any update on how to solve this issue?
Cheers

victorbetran

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Your session term'd unexpectedly (Mac Network Connect)
« Reply #15 on: May 10, 2014, 09:30:32 am »
Hi,

I have the same problem (Error nc.mac.app.1203)

I tried reinstalling and didn't work. I also tried to downgrade the java version and I had the same issue.

I tried with this Java version:

victorbetran@Victors-MacBook-Pro:~$ java -version
java version "1.7.0_55"
Java(TM) SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.55-b03, mixed mode)

And this:

victorbetran@Victors-MacBook-Pro:~$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

I have Mac OS 10.9.2 and Network Connect 7.1.0 (17675).

Anyone could find the solution?

Regards,
Viko

ebarker

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Your session term'd unexpectedly (Mac Network Connect)
« Reply #16 on: July 24, 2014, 01:56:35 pm »
I did the install via the NetworkConnect menu, and that did not work.  I had to also do a find from the root of the filesystem on both ncproxyd and juniper, and delete these too.  Only then did my re-install work such that the problem went away.

So it appears that some data file within the turds left by the client became corrupt.  It would be nice if the un-install really did a full un-install, but perhaps there are reasons for that, like maybe some definitions or logs might be valuable.  However, one would think though that this could be an option on the un-install - more of a deep uninstall.

Also of interest is that while the problem was present, if I ran "netstat -r" from the command line, it produced the correct output but then crashed with an "Abort 6".  This only happened with the -r option, and only when run as my own user id - running as root did not have the issue.  So this makes me think that there was something in the Library cache for my user that was causing problems for netstat.


Chepech

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Your session term'd unexpectedly (Mac Network Connect)
« Reply #17 on: July 31, 2014, 12:23:47 pm »
This is the link with the files the installation generates, I removed them entirely and that did the trick for me after reinstalling.

http://www.juniper.net/techpubs/en_US/sa7.4/topics/reference/general/secure-access-csc-network-connect-mac.html