Fix completely broken Juniper VPN on Mac OS Lion

My Juniper VPN was utterly screwed. After a connection failure I was no longer able to reach the login page for the Juniper and I would have to reboot to get my network working again. I had this log event in the log viewer (but not much else):

2012-06-16 11:33:30.130 ncproxyd-admintool[p12223.t4355] adminsession.error Failed to add route: Invalid argument (AdminPrivilegedSession.cpp:831)

To fix it I had to uninstall and completly scrub all trace of the Network Connect client, and then reinstall. For added chances of success, I did the installation using sudo to ensure I was not going to run into any permissions errors. Instructions:

  1. Open Finder – Applications, drag Network Connect to the Trash.
  2. Open up a terminal:
    sudo rm -rf /usr/local/juniper
    find ~ -iname “*juniper*”
  3. Delete all of the files found providing none of these belong to your Parallels VM, using
    find ~ -iname “*juniper*” -exec rm -fr “{}” “;”
  4. Open Finder – Applications – Utilities – Java Preferences
    Note: in recent java updates, this item has moved to System Preferences – Java 
  5. Under security, delete references to the Juniper connection
  6. Under Network, click “Delete files …” to remove all cached files
  7. If you have Safari open, quit the application.
  8. Open Safari with admin privilege. From a terminal:
    sudo open /Applications/Safari.app
  9. Try and connect to the Juniper VPN again. The app will reinstall, hopefully successfully!

4 thoughts on “Fix completely broken Juniper VPN on Mac OS Lion”

  1. This is exactly what I needed to do. Thanks for the excellent write up, better than anything i found within Apple Support Forums or Juniper Network Forums.

  2. Thanks! Use Network Connect for work and ran into problems with it. You detailed notes on how to resolve proved most helpful (though, I didn’t need to use sudo to open safari and reinstall). Much appreciated.

Got a comment? Don't be shy: