[yocto] Strange behaviour with stripped connman + openvpn

Jukka Rissanen jukka.rissanen at linux.intel.com
Fri May 15 04:12:49 PDT 2015


Hi Alex,

On ti, 2015-05-12 at 13:59 +0200, Alex J Lennon wrote:
> Hi,
> 
> I've been looking at some strange behaviour with connman in dizzy (1.25)
> 
> With OpenVPN configured and a connman configuration file defining a VPN,
> for some reason the service doesn't appear, e.g. connmanctl services
> 
> In trying to track down why this is I found that if I use a connmand
> daemon binary which is not stripped then all works as it should.

This is very strange indeed. Please note that actually it is
connman-vpnd that is managing the actual VPN connections. The
connman-vpnd just tells connmand what VPN services exists so that
connmand will be able to create suitable service for it that end-user
can connect to.

> 
> So for those who see this issue, an interim workaround is to inhibit
> package stripping in a connman_%.bbappend
> 
> e.g. INHIBIT_PACKAGE_STRIP = "1"

This is a really dirty workaround :)


Couple of things you to verify:

* make sure connman-vpnd is running (without it you will not see any VPN
services in connmanctl listing)
* make sure you have vpn provision file in /var/lib/connman-vpn
directory
* make sure /usr/lib/connman/scripts directory has openvpn-script plugin
installed
* make sure that openvpn support is compiled in so you need to have set
PACKAGECONFIG_append_pn-connman = " openvpn" in your distro config or
local.conf file
* do you have all the openvpn binaries in your system (only required if
you try to connect to a openvpn service), so can you manually connect to
your openvpn server from command line?


Cheers,
Jukka





More information about the yocto mailing list