wpa_supplicant instead of connman

538 views
Skip to first unread message

Davide Aguiari

unread,
Feb 10, 2017, 5:01:00 PM2/10/17
to BeagleBoard
Hi guys,
I'm starting with BBGW today and I need to connect to some networks with wpa_supplicant.
I've already had the wpa_supplicant confs with eduroam, freeWifi (eap-sim auth) and wpa network and I'd like to use it without using connman.

So I disabled it with 
systemctl disable connman.service


but now npm and nodejs take almost 100% CPU and the journal is full of:

feb 10 21:58:25 beaglebone systemd[1]: Started wifidog gateway Service.
feb
10 21:58:25 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:25 2017][24590](conf.c:651) Reading configuration file '/etc/wifidog.conf'
feb
10 21:58:25 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:25 2017][24590](gateway.c:362) Setting started_time
feb
10 21:58:25 beaglebone wifidog_server[24588]: [5][Fri Feb 10 21:58:25 2017][24590](gateway.c:395) Creating web server on 192.168.8.1:2060
feb
10 21:58:25 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:25 2017][24590](util.c:313) Closing ICMP socket
feb
10 21:58:25 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:25 2017][24590](firewall.c:248) Removing Firewall rules
feb
10 21:58:26 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:26 2017][24590](util.c:297) Creating ICMP socket
feb
10 21:58:26 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:26 2017][24590](firewall.c:203) Initializing Firewall
feb
10 21:58:26 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:26 2017][24590](util.c:258) get_ext_iface(): Detected wlan0 as the default interface after trying 1
feb
10 21:58:28 beaglebone wifidog_server[24588]: [5][Fri Feb 10 21:58:28 2017][24590](gateway.c:444) Waiting for connections
feb
10 21:58:28 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:28 2017][24590](wd_util.c:69) ONLINE status became ON
feb
10 21:58:28 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:28 2017][24590](firewall.c:227) Clearing the authservers list
feb
10 21:58:28 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:28 2017][24590](firewall.c:236) Setting the authservers list
feb
10 21:58:28 beaglebone wifidog_server[24588]: [3][Fri Feb 10 21:58:28 2017][24590](centralserver.c:161) Failed to connect to any of the auth servers
feb
10 21:58:32 beaglebone wificonfig[24586]: > wificonfig@0.1.5 start /usr/local/lib/node_modules/wificonfig
feb
10 21:58:32 beaglebone wificonfig[24586]: > NODE_ENV=production nodejs ./bin/www
feb
10 21:58:45 beaglebone wificonfig[24586]: info: Starting bonescript autorun service
feb
10 21:58:46 beaglebone wificonfig[24586]: info: startWifiDog
feb
10 21:58:46 beaglebone wifidog_server[24588]: [5][Fri Feb 10 21:58:46 2017][24590](wdctl_thread.c:280) Will restart myself
feb
10 21:58:46 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:46 2017][24795](util.c:313) Closing ICMP socket
feb
10 21:58:46 beaglebone wifidog_server[24588]: [5][Fri Feb 10 21:58:46 2017][24795](wdctl_thread.c:345) Re-executing myself (/usr/bin/wifidog)
feb
10 21:58:46 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:46 2017][24795](conf.c:651) Reading configuration file '/etc/wifidog.conf'
feb
10 21:58:46 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:46 2017][24795](gateway.c:116) Connecting to parent to download clients
feb
10 21:58:46 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:46 2017][24590](wdctl_thread.c:331) Sent all existing clients to child.  Committing suicide!
feb
10 21:58:46 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:46 2017][24590](gateway.c:264) Handler for termination caught signal 2
feb
10 21:58:46 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:46 2017][24590](gateway.c:271) Cleaning up and exiting
feb
10 21:58:46 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:46 2017][24590](gateway.c:274) Flushing firewall rules...
feb
10 21:58:46 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:46 2017][24590](util.c:313) Closing ICMP socket
feb
10 21:58:46 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:46 2017][24590](firewall.c:248) Removing Firewall rules
feb
10 21:58:46 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:46 2017][24795](gateway.c:138) Connected to parent.  Downloading clients
feb
10 21:58:46 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:46 2017][24795](gateway.c:229) Client list downloaded successfully from parent
feb
10 21:58:46 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:46 2017][24795](gateway.c:522) Waiting for parent PID 24590 to die before continuing loading
feb
10 21:58:47 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:47 2017][24590](gateway.c:283) Explicitly killing the fw_counter thread
feb
10 21:58:47 beaglebone wifidog_server[24588]: /usr/bin/wifidog_server: riga 3: 24590 Ucciso                  /usr/bin/wifidog -f
feb
10 21:58:47 beaglebone systemd[1]: wifidog-gateway.service: Main process exited, code=exited, status=137/n/a
feb
10 21:58:47 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:47 2017][24795](gateway.c:264) Handler for termination caught signal 2
feb
10 21:58:47 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:47 2017][24795](gateway.c:271) Cleaning up and exiting
feb
10 21:58:47 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:47 2017][24795](gateway.c:274) Flushing firewall rules...
feb
10 21:58:47 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:47 2017][24795](util.c:313) Closing ICMP socket
feb
10 21:58:47 beaglebone wifidog_server[24588]: [6][Fri Feb 10 21:58:47 2017][24795](firewall.c:248) Removing Firewall rules
feb
10 21:58:47 beaglebone wificonfig[24586]: info: last pid:24918
feb
10 21:58:47 beaglebone wificonfig[24586]: info: pid:24918
feb
10 21:58:47 beaglebone wificonfig[24586]: info: hostapd start
feb
10 21:58:47 beaglebone wificonfig[24586]: hostapd start
feb
10 21:58:47 beaglebone wificonfig[24586]: info:
feb
10 21:58:47 beaglebone kernel: wlcore: down
feb
10 21:58:47 beaglebone wificonfig[24586]: Configuration file: SoftAp0-hostapd.conf
feb
10 21:58:47 beaglebone wificonfig[24586]: SoftAp0: interface state UNINITIALIZED->COUNTRY_UPDATE
feb
10 21:58:48 beaglebone wifidog_server[24588]: [5][Fri Feb 10 21:58:48 2017][24795](gateway.c:291) Exiting...
feb
10 21:58:48 beaglebone systemd[1]: wifidog-gateway.service: Unit entered failed state.
feb
10 21:58:48 beaglebone systemd[1]: wifidog-gateway.service: Failed with result 'exit-code'.
feb
10 21:58:48 beaglebone wificonfig[24586]: info: ConnMan init ....
feb
10 21:58:48 beaglebone wificonfig[24586]: info: scanWifi ...
feb
10 21:58:48 beaglebone wificonfig[24586]: /usr/local/lib/node_modules/wificonfig/node_modules/connman-simplified/lib/WiFi.js:140
feb
10 21:58:48 beaglebone wificonfig[24586]:     self.iface.scan(function(err) {
feb
10 21:58:48 beaglebone wificonfig[24586]:               ^
feb
10 21:58:48 beaglebone wificonfig[24586]: TypeError: Cannot read property 'scan' of null
feb
10 21:58:48 beaglebone wificonfig[24586]:   at WiFi.scan (/usr/local/lib/node_modules/wificonfig/node_modules/connman-simplified/lib/WiFi.js:140:15)
feb
10 21:58:48 beaglebone wificonfig[24586]:   at WiFi.getNetworks (/usr/local/lib/node_modules/wificonfig/node_modules/connman-simplified/lib/WiFi.js:93:8)
feb
10 21:58:48 beaglebone wificonfig[24586]:   at Object.exports.on (/usr/local/lib/node_modules/wificonfig/lib/connman.js:27:18)
feb
10 21:58:48 beaglebone wificonfig[24586]:   at EventEmitter.<anonymous> (/usr/local/lib/node_modules/wificonfig/lib/wifi.js:60:17)
feb
10 21:58:48 beaglebone wificonfig[24586]:   at EventEmitter.emit (events.js:104:17)
feb
10 21:58:48 beaglebone wificonfig[24586]:   at /usr/local/lib/node_modules/wificonfig/lib/wifi.js:89:19
feb
10 21:58:48 beaglebone wificonfig[24586]:   at /usr/local/lib/node_modules/wificonfig/lib/connman.js:14:17
feb
10 21:58:48 beaglebone wificonfig[24586]:   at /usr/local/lib/node_modules/wificonfig/node_modules/connman-simplified/lib/index.js:50:5
feb
10 21:58:48 beaglebone wificonfig[24586]:   at WiFi.init (/usr/local/lib/node_modules/wificonfig/node_modules/connman-simplified/lib/WiFi.js:58:19)
feb
10 21:58:48 beaglebone wificonfig[24586]:   at ConnmanSimplified.initWiFi (/usr/local/lib/node_modules/wificonfig/node_modules/connman-simplified/lib/index.js:49:9)
feb
10 21:58:48 beaglebone wificonfig[24586]:   at /usr/local/lib/node_modules/wificonfig/lib/connman.js:12:21
feb
10 21:58:48 beaglebone wificonfig[24586]:   at /usr/local/lib/node_modules/wificonfig/node_modules/connman-simplified/lib/index.js:39:20
feb
10 21:58:48 beaglebone wificonfig[24586]:   at /usr/local/lib/node_modules/wificonfig/node_modules/connman-api/lib/connman.js:41:21
feb
10 21:58:48 beaglebone wificonfig[24586]:   at /usr/local/lib/node_modules/wificonfig/node_modules/connman-api/node_modules/dbus/lib/bus.js:126:5
feb
10 21:58:48 beaglebone wificonfig[24586]:   at /usr/local/lib/node_modules/wificonfig/node_modules/connman-api/node_modules/dbus/lib/bus.js:101:6
feb
10 21:58:48 beaglebone wificonfig[24586]: npm ERR! Linux 4.4.30-ti-r64
feb
10 21:58:48 beaglebone wificonfig[24586]: npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
feb
10 21:58:48 beaglebone wificonfig[24586]: npm ERR! node v0.12.18
feb
10 21:58:48 beaglebone wificonfig[24586]: npm ERR! npm  v2.15.11
feb
10 21:58:48 beaglebone wificonfig[24586]: npm ERR! code ELIFECYCLE
feb
10 21:58:48 beaglebone wificonfig[24586]: npm ERR! wificonfig@0.1.5 start: `NODE_ENV=production nodejs ./bin/www`
feb
10 21:58:48 beaglebone wificonfig[24586]: npm ERR! Exit status 1
feb
10 21:58:48 beaglebone wificonfig[24586]: npm ERR!
feb
10 21:58:48 beaglebone wificonfig[24586]: npm ERR! Failed at the wificonfig@0.1.5 start script 'NODE_ENV=production nodejs ./bin/www'.
feb
10 21:58:48 beaglebone wificonfig[24586]: npm ERR! This is most likely a problem with the wificonfig package,
feb
10 21:58:48 beaglebone wificonfig[24586]: npm ERR! not with npm itself.
feb
10 21:58:48 beaglebone wificonfig[24586]: npm ERR! Tell the author that this fails on your system:
feb
10 21:58:48 beaglebone wificonfig[24586]: npm ERR!     NODE_ENV=production nodejs ./bin/www
feb
10 21:58:48 beaglebone wificonfig[24586]: npm ERR! You can get information on how to open an issue for this project with:
feb
10 21:58:48 beaglebone wificonfig[24586]: npm ERR!     npm bugs wificonfig
feb
10 21:58:48 beaglebone wificonfig[24586]: npm ERR! Or if that isn't available, you can get their info via:
feb 10 21:58:48 beaglebone wificonfig[24586]: npm ERR!
feb 10 21:58:48 beaglebone wificonfig[24586]: npm ERR!     npm owner ls wificonfig
feb 10 21:58:48 beaglebone wificonfig[24586]: npm ERR! There is likely additional logging output above.
feb 10 21:58:48 beaglebone wificonfig[24586]: npm ERR! Please include the following file with any support request:
feb 10 21:58:48 beaglebone wificonfig[24586]: npm ERR!     /usr/local/lib/node_modules/wificonfig/npm-debug.log
feb 10 21:58:48 beaglebone systemd[1]: wificonfig.service: Main process exited, code=exited, status=1/FAILURE
feb 10 21:58:48 beaglebone kernel: wlcore: down
feb 10 21:58:48 beaglebone systemd[1]: wificonfig.service: Unit entered failed state.
feb 10 21:58:48 beaglebone systemd[1]: wificonfig.service: Failed with result '
exit-code'.


How to fix it?

Thank you :)

Robert Nelson

unread,
Feb 10, 2017, 5:09:45 PM2/10/17
to Beagle Board
On Fri, Feb 10, 2017 at 4:01 PM, Davide Aguiari <gorg...@gmail.com> wrote:
> Hi guys,
> I'm starting with BBGW today and I need to connect to some networks with
> wpa_supplicant.
> I've already had the wpa_supplicant confs with eduroam, freeWifi (eap-sim
> auth) and wpa network and I'd like to use it without using connman.
>
> So I disabled it with
> systemctl disable connman.service


Just reflash with the latest base iot image:

http://www.rcn-ee.net/rootfs/bb.org/testing/2017-02-05/iot/

The default Seeed BeagleBone Green Wireless image has everything tied
up to the wifidog captilve portal..

Regards,

--
Robert Nelson
https://rcn-ee.com/

woody...@yahoo.com

unread,
Feb 10, 2017, 5:24:46 PM2/10/17
to beagl...@googlegroups.com

--------------------------------------------
On Sat, 2/11/17, Robert Nelson <robert...@gmail.com> wrote:

Subject: Re: [beagleboard] wpa_supplicant instead of connman
To: "Beagle Board" <beagl...@googlegroups.com>
Date: Saturday, February 11, 2017, 12:09 AM
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the
Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails
from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/CAOCHtYjLX7YfokaQ-SaKQpVch8d-Q6FCo5C7PXuricwTP9kYDw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
oiitica interna a guvernului antonescian. in conditii exceptional guvernul Antonescu a intensificat reprimarea vietii politice prin arestari deporta si impunerea unor masuri antipopulare. S-au infiintat lagare de munca si s- militarizat intreprinderile si institutiile.

roberts...@yahoo.com

unread,
Feb 10, 2017, 5:41:15 PM2/10/17
to beagl...@googlegroups.com

--------------------------------------------
On Sat, 2/11/17, woody.lois via BeagleBoard <beagl...@googlegroups.com> wrote:

Subject: Re: [beagleboard] wpa_supplicant instead of connman
To: beagl...@googlegroups.com
Date: Saturday, February 11, 2017, 12:20 AM
https://groups.google.com/d/msgid/beagleboard/1854743897.2248202.1486765232402%40mail.yahoo.com.
For more options, visit
https://groups.google.com/d/optout.aca putea fi considerata incheiata constituirea sistemului politic de la Paris-Versailles o data cu semnarea celui de-al doilea tratat cu Turcia 1923 inainte inca de aceasta data se produsesera semnificative polarizari in viata politica internationala care primejduiau grav opera politica savarsita in capitala Frantei.

Davide Aguiari

unread,
Feb 11, 2017, 1:41:21 PM2/11/17
to BeagleBoard
Thank you! It worked!
Reply all
Reply to author
Forward
0 new messages