WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: connman doesn't work on xenial  (Read 1053 times)

Offline jls

  • Hero Member
  • *****
  • Posts: 1997
    • Core17
connman doesn't work on xenial
« on: June 13, 2016, 06:48:08 AM »
Hi
the error can be seen starting connmand with the -n option.
Sorry but I'm not on the pc right now.
thanks
dCore user

Offline jls

  • Hero Member
  • *****
  • Posts: 1997
    • Core17
Re: connman doesn't work on xenial
« Reply #1 on: June 13, 2016, 09:12:53 AM »
Hi
This is the connmand -n output:
Code: [Select]
Config file /var/lib/connman/econnman.config does not contain any configuration that can be provisioned!
connmand[7202]: iptables support missing error 2 (No such file or directory)
connmand[7202]: Failed to flush table 'mangle': Invalid argument
connmand[7202]: iptables support missing error 2 (No such file or directory)
connmand[7202]: Failed to flush table 'nat': Invalid argument
connmand[7202]: No IPv6 support
connmand[7202]: No IPv6 support
connmand[7202]: iptables support missing error 2 (No such file or directory)
connmand[7202]: Failed to install iptables rules: Invalid argument
connmand[7202]: Checking loopback interface settings
connmand[7202]: System hostname is box
connmand[7202]: The name net.connman.vpn was not provided by any .service files
connmand[7202]: lo {newlink} index 1 operstate 0 <UNKNOWN>

dCore user

Offline jls

  • Hero Member
  • *****
  • Posts: 1997
    • Core17
Re: connman doesn't work on xenial
« Reply #2 on: June 13, 2016, 12:08:51 PM »
Hi
importing iptables alone with no deps, I see that neither iptables nor libxtables11 tce.installed are being created.
debextra:
Code: [Select]
http://ppa.launchpad.net/enlightenment-git/ppa/ubuntu xenial main
http://dl.google.com/linux/talkplugin/deb/ stable main
http://archive.canonical.com/ubuntu/ xenial partner
http://giano.com.dist.unige.it/ubuntu xenial-updates main
http://giano.com.dist.unige.it/ubuntu xenial-updates multiverse
http://giano.com.dist.unige.it/ubuntu xenial-updates restricted
http://giano.com.dist.unige.it/ubuntu xenial-updates universe
http://giano.com.dist.unige.it/ubuntu xenial-backports main
http://giano.com.dist.unige.it/ubuntu xenial-backports multiverse
http://giano.com.dist.unige.it/ubuntu xenial-backports restricted
http://giano.com.dist.unige.it/ubuntu xenial-backports universe
thanks
dCore user

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9252
Re: connman doesn't work on xenial
« Reply #3 on: June 13, 2016, 06:09:40 PM »
I am on dCore-xenial and have imported connman with the repos you listed above. 

If I issue "pgrep connmand" get a pid for it with no other action.

Code: [Select]
jason@box:~$ pgrep connmand
3570
jason@box:~$

And if as a user I try "connmand -n" I get the following though it is running:

Code: [Select]
jason@box:~$ connmand -n
Connection ":1.4" is not allowed to own the service "net.connman" due to security policies in the configuration file
jason@box:~$

As for a startup script in /usr/local/tce.installed, if a package has no postinst file  in it's control.tar.gz, it does not creat a /usr/local/postinst or /usr/local/tce.installed entry, such is the case with iptables.


Offline jls

  • Hero Member
  • *****
  • Posts: 1997
    • Core17
Re: connman doesn't work on xenial
« Reply #4 on: June 13, 2016, 11:22:04 PM »
Hi
connmand needs to be launched with sudo, but since it's autostarted, first kill it.

PS. Sorry for not being aware, or forgot about the tce.installed policy after so many years.
dCore user

Offline Jason W

  • Administrator
  • Hero Member
  • *****
  • Posts: 9252
Re: connman doesn't work on xenial
« Reply #5 on: June 14, 2016, 07:06:50 PM »
After installing netfilter-4.2.9-tinycore on dCore-xenial and killing connmand first then running with root the error changed a git.

If you don't have that package installed, install it and please test.

Thanks.

JW

Offline jls

  • Hero Member
  • *****
  • Posts: 1997
    • Core17
Re: connman doesn't work on xenial
« Reply #6 on: June 15, 2016, 12:28:23 AM »
Hi
I was using the wrong kernel version.
Sorry
dCore user

Offline jls

  • Hero Member
  • *****
  • Posts: 1997
    • Core17
Re: connman doesn't work on xenial
« Reply #7 on: June 15, 2016, 01:49:15 PM »
Code: [Select]
jls@box:~$ pgrep connmand
jls@box:~$ sudo connmand -n
connmand[9363]: Connection Manager version 1.21
connmand[9363]: Adding configuration econnman
connmand[9363]: Config file /var/lib/connman/econnman.config does not contain any configuration that can be provisioned!
connmand[9363]: Aborting (signal 11) [connmand]
connmand[9363]: ++++++++ backtrace ++++++++
connmand[9363]: +++++++++++++++++++++++++++
jls@box:~$
dCore user

Offline jls

  • Hero Member
  • *****
  • Posts: 1997
    • Core17
Re: connman doesn't work on xenial
« Reply #8 on: March 31, 2017, 05:46:13 AM »
Hi
connman on xenial works using the ppa written on the extra repositories section of the forum
dCore user