HI Guys
I recently encountered this issue with nm-openconnect plugin, jessie on
amd64.
I had a working version at first, then did a dist-upgrade and
nm-openconnec failed, here are some version changes between upgrades:
Start-Date: 2014-09-11 23:52:51
Commandline: apt-get dist-upgrade
Install: ....
.....
network-manager:amd64 (0.9.10.0-1, 0.9.10.0-2),
gir1.2-networkmanager-1.0:amd64 (0.9.10.0-1, 0.9.10.0-2),
.....
Openconnect was able to setup a VPN session by hand, and
network-manager-openconnect-gnome was installed.
A strace on nm indicated that the nm-openconnect-ui plugin was not being
discovered:
see attached, nm-oc-missing-lib.strace
Moving the ui lib into the x86_64-linux-gnu path or adding a symlink did
not resolve the problem even after a reboot.
This morning I completed:
- another dist-upgrade, see attached, 2nd-dist-upgarde-history.log,
- an, apt-get purge network-manager-openconnect
- an, apt-get install network-manager-openconnect-gnome, this was
originally installed
- Added a symlink in the library path:
-- ln -sf /usr/lib/NetworkManager/libnm-openconnect-properties.so
/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-openconnect-properties.so
After this the UI for network-manager-openconnect was available.
=== A Shorter Version ===
On my laptop which is also running Jessie amd64 at the update level
without the 2nd dist-upgrade, I did the following:
- an, apt-get purge network-manager-openconnect
- an, apt-get install network-manager-openconnect-gnome, this was
originally installed
- tested network-manager-openconnect-gnome, not working
- Added a symlink in the library path:
-- ln -sf /usr/lib/NetworkManager/libnm-openconnect-properties.so
/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-openconnect-properties.so
- network-manager-openconnect-gnome, working
Regards
Darren
# Strace showing Openconnect properties library not in search path
# Library actually located in /usr/lib/NetworkManager/
#
....
[pid 2432] read(17, "[VPN
Connection]\nname=openvpn\nservice=org.freedesktop.NetworkManager.openvpn\nprogram=/usr/lib/NetworkManager/nm-openvpn-s
ervice\n\n[GNOME]\nauth-dialog=/usr/lib/NetworkManager/nm-openvpn-auth-dialog\nproperties=/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-openvpn-p
roperties\nsupports-external-ui-mode=true\nsupports-hints=true\n\n", 4096) = 325
[pid 2432] read(17, "", 4096) = 0
[pid 2432] close(17) = 0
[pid 2432]
stat("/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-openvpn-properties",
0x7fff69191910) = -1 ENOENT (No such file or directory)
[pid 2432]
stat("/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-openvpn-properties.so",
{st_mode=S_IFREG|0644, st_size=81704, ...}) = 0
[pid 2432]
open("/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-openvpn-properties.so",
O_RDONLY|O_CLOEXEC) = 17
[pid 2432] read(17,
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\200O\0\0\0\0\0\0@\0\0\0\0\0\0\0\2508\1\0\0\0\0\0\0\0\0\0@\0008\0\7\0@\0\32\0\
31\0\1\0\0\0\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0L)\1\0\0\0\0\0L)\1\0\0\0\0\0\0\0
\0\0\0\0\0\1\0\0\0\6\0\0\0\300+\1\0\0\0\0\0\3
00+!\0\0\0\0\0\300+!\0\0\0\0\0\0\f\0\0\0\0\0\0H\f\0\0\0\0\0\0\0\0
\0\0\0\0\0\2\0\0\0\6\0\0\0\250,\1\0\0\0\0\0\250,!\0\0\0\0\0\250,!\0\0\0\0\0\340\
2\0\0\0\0\0\0\340\2\0\0\0\0\0\0\10\0\0\0\0\0\0\0\4\0\0\0\4\0\0\0\310\1\0\0\0\0\0\0\310\1\0\0\0\0\0\0\310\1\0\0\0\0\0\0$\0\0\0\0\0\0\0$\0\0\0\0\0\0
\0\4\0\0\0\0\0\0\0P\345td\4\0\0\0\334\23\1\0\0\0\0\0\334\23\1\0\0\0\0\0\334\23\1\0\0\0\0\0$\2\0\0\0\0\0\0$\2\0\0\0\0\0\0\4\0\0\0\0\0\0\0Q\345td\6\
0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\20\0\0\0\0\0\0\0R\345td\4\0\0\0\300+\1\0\0\0\0\0\300+!\0\0\0
\0\0\300+!\0\0\0\0\0@\4\0\0\0\0\0\0@\4\0\0\0\0\0\0\1\0\0\0\0\0\0\0\4\0\0\0\24\0\0\0\3\0\0\0GNU\0\n\276\237\232\310\233\363\216\352\21\274\"\235\36
7\354]\243\340\245\205\0\0\0\0\21\0\0\0\274\0\0\0\2\0\0\0\7\0\0\0\246\4l\36\0\0\230\211\210\0348\221\250DDK\274\0\0\0\277\0\0\0\302\0\0\0\305\0\0\
0\307\0\0\0\312\0\0\0\0\0\0\0\313\0\0\0\0\0\0\0\314\0\0\0\315\0\0\0\316\0\0\0\0\0\0\0\317\0\0\0\320\0\0\0\321\0\0\0\322\0\0\0TN\240x\2\311*N\235\2
00\216\334\30\205\5\324\370]th\353\323\357\16\276\tQ\222\312CO\n\271\215\361\16\362\362\1q\331qX\34\202\352\256\3476-\222@\273\343\222|S.
\353CE\3
25\354y;\34\237\227\371\334\255o\367\345%\325/B\347Y\6\17:k\377+\23\5z\276k\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\3\0\t\0\10C\0\
0\0\0\0\0\0\0\0\0\0\0\0\0\322\5\0\0\22\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\24\6\0\0\22\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0h\20\0\0\22\0\0\0\0\
0\0\0\0\0\0\0\0\0\0\0\0\0\0\0l\f\0\0\22\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",
832) = 832
[pid 2432] fstat(17, {st_mode=S_IFREG|0644, st_size=81704, ...}) = 0
[pid 2432] mmap(NULL, 2177032, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE,
17, 0) = 0x7f05a0139000
[pid 2432] mprotect(0x7f05a014c000, 2093056, PROT_NONE) = 0
[pid 2432] mmap(0x7f05a034b000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 17, 0x12000) = 0x7f05a034b000
[pid 2432] close(17) = 0
[pid 2432] mprotect(0x7f05a034b000, 4096, PROT_READ) = 0
[pid 2432]
open("/usr/share/locale/en_AU/LC_MESSAGES/NetworkManager-openvpn.mo", O_RDONLY)
= -1 ENOENT (No such file or directory)
[pid 2432] open("/usr/share/locale/en/LC_MESSAGES/NetworkManager-openvpn.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
[pid 2432] open("/etc/NetworkManager/VPN/nm-openconnect-service.name",
O_RDONLY) = 17
[pid 2432] fstat(17, {st_mode=S_IFREG|0644, st_size=294, ...}) = 0
[pid 2432] read(17, "[VPN
Connection]\nname=openconnect\nservice=org.freedesktop.NetworkManager.openconnect\nprogram=/usr/lib/NetworkManager/nm-openconnect-service\n\n[GNOME]\nauth-dialog=/usr/lib/NetworkManager/nm-openconnect-auth-dialog\nproperties=/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-openconnect-properties\n\n",
4096) = 294
[pid 2432] read(17, "", 4096) = 0
[pid 2432] close(17) = 0
[pid 2432]
stat("/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-openconnect-properties",
0x7fff69191910) = -1 ENOENT (No such file or directory)
[pid 2432]
stat("/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-openconnect-properties.so",
0x7fff69191910) = -1 ENOENT (No such file or directory)
[pid 2432]
stat("/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-openconnect-properties.la",
0x7fff69191910) = -1 ENOENT (No such file or directory)
[pid 2432]
open("/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-openconnect-properties.so",
O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
[pid 2432] getdents(16, /* 0 entries */, 32768) = 0
[pid 2432] close(16) = 0
....