Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 609732 - =net-vpn/networkmanager-openconnect-1.2.4 not found by networkmanager
Summary: =net-vpn/networkmanager-openconnect-1.2.4 not found by networkmanager
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-18 14:56 UTC by m.manico
Modified: 2020-02-12 22:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description m.manico 2017-02-18 14:56:46 UTC
Maybe this bug has to be assigned to networkmanager or nm-applet. I am not sure but I suspect it is related to the bump of networkmanager to 1.2.4.

When trying to use a VPN connection from nm-applet nothing happens. Starting nm-applet in a terminal will only reveal the following line when I unsuccessfully try to use a VPN connection:

(nm-applet:5603): nm-applet-WARNING **: VPN Connection activation failed: (org.freedesktop.NetworkManager.ConnectionNotAvailable) The VPN service 'org.freedesktop.NetworkManager.openconnect' was not installed.

I have net-misc/networkmanager-openconnect installed (version 1.2.4).

Running
NM_SERIAL_DEBUG=1 NetworkManager --no-daemon 2>&1 | tee /tmp/nm-serial.txt
did not provide any additional insight either.
Comment 1 Pacho Ramos gentoo-dev 2017-02-20 14:26:12 UTC
This could be due to the --without-libnm-glib configure option as main NM is still built with nm-glib compat (as it is needed by many other reverse deps that are not NM plugins)

In summary, it would be helpful if you could try to recompile it without that option and test if that fixes this (and all the other 1.2.4 bugs)
Comment 2 Nick 2017-02-22 01:50:53 UTC
I tried compiling in a local overlay removing --without-libnm-glib from the ebuild (and even adding --with-libnm-glib), and this did not fix the issue.

I also tried putting installing =net-misc/networkmanager-openconnect-1.2.2 from a local overlay and this also did not fix the issue.

Regardless of whether or not --without-libnm-glib was present in the ebuild, the following appeared at the end of the build:

 * Removing unnecessary /usr/lib64/NetworkManager/libnm-openconnect-properties.la (no static archive)
 * Removing unnecessary /usr/lib64/NetworkManager/libnm-vpn-plugin-openconnect.la (no static archive)
>>> Completed installing networkmanager-openconnect-1.2.<2 or 4> into /var/tmp/portage/net-misc/networkmanager-openconnect-1.2.<2 or 4>/image/

 * Final size of build directory: 13992 KiB
 * Final size of installed tree: 2656 KiB

strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   usr/libexec/nm-openconnect-service
   usr/lib64/NetworkManager/libnm-vpn-plugin-openconnect.so
   usr/libexec/nm-openconnect-service-openconnect-helper
   usr/lib64/NetworkManager/libnm-openconnect-properties.so
   usr/libexec/nm-openconnect-auth-dialog
ecompressdir: bzip2 -9 /usr/share/doc
Comment 3 Nick 2017-02-22 02:06:39 UTC
To be clear, I can connect successfully using "nmcli --ask c u <VPN NAME>" with =net-misc/networkmanager-1.2.4 from the official tree, but toggling the VPN switch in any networkmanager GUI settings results in the VPN switching off immediately without showing any prompt.
Comment 4 Nick 2017-02-22 06:16:37 UTC
Update: (comment from https://bugs.gentoo.org/show_bug.cgi?id=610034) Installing =net-misc/networkmanager-openconnect-1.2.4 from a local overlay with the line

  --without-libnm-glib \

removed does not fix the problem (even after rebooting).

However, for me, everything worked again after installing =net-misc/networkmanager-openconnect-1.2.2 from a local overlay (by copying networkmanager-openconnect-1.2.4.ebuild and renaming it to networkmanager-openconnect-1.2.2.ebuild, removing the --without-libnm-glib line) and then rebooting.
Comment 5 Rüdiger 2018-01-20 22:05:42 UTC
I have a similar issue with et-misc/networkmanager-openconnect-1.2.4-r1

nmcli connects to my vpn, via gui it doesn't (reversed journalentry):

Jan 20 22:38:07 eg-server NetworkManager[17620]: <info>  [1516484287.7132] vpn-connection[0x...,"Name",0]: VPN service disappeared
Jan 20 22:38:07 eg-server NetworkManager[17620]: <info>  [1516484287.7123] vpn-connection[0x...,"Name",0]: VPN plugin: state changed: stopped (6)
Jan 20 22:38:07 eg-server NetworkManager[17620]: <error> [1516484287.7102] vpn-connection[0x....,"Name",0]: Failed to request VPN secrets #3: No agents were available for this request.
Jan 20 22:38:07 eg-server NetworkManager[17620]: <info>  [1516484287.6965] vpn-connection[0x...,"Name",0]: Saw the service appear; activating connection
Jan 20 22:38:07 eg-server NetworkManager[17620]: <info>  [1516484287.6840] vpn-connection[0x...,"Name",0]: Started the VPN service, PID 17671
Jan 20 22:38:07 eg-server NetworkManager[17620]: <info>  [1516484287.6763] audit: op="connection-activate" uuid="6f..." name="NAme" pid=17654 uid=1000 result="success"
Comment 6 Rüdiger 2018-01-21 16:01:10 UTC
Pls ignore, it works on anonther box so no bug...
Comment 7 Mart Raudsepp gentoo-dev 2019-02-26 01:08:14 UTC
Is this still a problem?
Comment 8 m.manico 2020-02-12 22:51:32 UTC
Hi,

I am now at version 1.2.6 and I do get a pop-up window asking me for a password when connecting to VPN. I don't have an account for that VPN anymore, so I can test for a successful connect/login to the VPN, but the pop-up window is certainly the fix to my initial report of "nothing happens".

I am marking this ticket RESOLVED & FIXED.

Thank you for your time and cooperation!