"Failed to request VPN secrets #3: No agents were available for this request"
I tried reinstalling openvpn and network manager, and tried different ovpn profiles and made sure I entered the correct login information...
elementary OS Stack Exchange is a question and answer site for developers and users of elementary OS and applications. It only takes a minute to sign up.
Sign up to join this communityFinally got the VPN working after finding the answer in the following link:
https://bugzilla.redhat.com/show_bug.cgi?id=1394977
The network manager somehow uses nm-applet (which does not run by default) to access the VPN secrets.
You can add nm-applet in the System Settings > Applications > Startup by adding the custom command /usr/bin/nm-applet
/usr/bin/nm-applet > /dev/null 2>&1 &
from a shell. If you run it as it is, you'll get no end of bitching from Gtk. You can kill it as soon as you've connected to your VPN.
~/.config/autostart/nm-applet.deskop
with the key NotShowIn=KDE;GNOME;Pantheon
. I probably thought "hmm, probably don't need that." Yeah, no. It is what makes the openconnect VPN able to prompt you for your password. Delete this file, log out and back in, and the applet will autostart by virtue of there being a /etc/xdg/autostart/nm-applet.desktop
that comes with the network-manager-gnome package.
Nov 11 at 3:13
openvpn seems to have some troubles getting the things right, I managed to log in to vpn service with pptp protocol ( seems it's doing the right setup )
I always install software-properties-gtk after installing Elementary OS and encounter this issue everytime with PPTP.
After reinstalling ElementaryOS the last time, I decided to skip installing software-properties-gtk and never encountered the issue since. Even after multiple restarts.
I think the software-properties-gtk package breaks the VPN configuration tool since I was able to connect to a VPN (PPTP) using a fresh live USB of Elementary OS without issues. The software-properties-gtk has been removed from Ubuntu 16.04 and might be causing issues with the newer packages of Ubuntu.
sudo apt install --reinstall network-manager-gnome
. Log out and back in, or reboot. This should create an/etc/xdg/autostart/nm-applet.desktop
that will autostart the necessary service for this. See Carlo's answer below, and this Bugzilla bug.