Connman 1.9 won't attempt connecting to wifi service

Sameer Naik sameer.subscriptions at
Fri Nov 9 01:25:43 PST 2012

Hello Patrik,

Thanks for the quick response.

>From your responses there are 2 things i need to do
1. Read about /var/lib/connman/*.config files.
2. Figure out what wpa_supplicant-1.0 won't work for me.

There is one other issue i am seeing:
I have setup connman to start at boot up using init scripts and have
some saved wifi connection profiles to which an automatic connection
is expected. But almost always the connection fails at start up and
the line 'Failure=connect-failed' appears in the settings file. I have
to restart connman for the connection to happen or unplug and plug the
usb wifi device for the connection to occur (which frequently crashes,
reported earlier).

I have generated a log of this (please find attached). In the log the
service i should auto connect is located in
but for some reason the connection is not happening.

Please you please take a look at the log and advise.

Thanks and Regards
On Fri, Nov 9, 2012 at 1:38 PM, Patrik Flykt
<patrik.flykt at> wrote:
>         Hi,
> On Fri, 2012-11-09 at 11:38 +0530, Sameer Naik wrote:
>> I noticed that connman had appended
>> a line 'Failure=invalid-key' in the settings file of the saved wifi
>> profile due to which the connection was not happening even after
>> restarting connman multiple times.
> ConnMan won't autoconnect to a network that has been marked failed. One
> option is to successfully connect manually for example from the command
> line to get the failure mark removed.
>> I had to remove that line for it to
>> start working again.
> That works also. In general it is advisable not to edit any files
> in /var/lib/connman/*/* as their format can change without any notice.
> Any /var/lib/connman/*.config file is another matter, those are used for
> WiFi provisioning. If you had provisioned the WiFi network, simply
> removing the .config file and adding it back would make ConnMan first to
> remove the failed service and then to recreate a new service for it. The
> new service would not have the baggage of invalid keys failure attached.
>> I would have expected that connman would attempt connecting to the
>> service at least once and figure out whether the key was invalid or
>> not and then stop connection attempts to the service if the key was
>> found to be invalid.
> Yep, exactly this happened.
>> At the moment I don't have an agent registered,
>> so i don't know if there is something more that occurs in this case.
> The agent is needed should ConnMan need a passphrase or any other input
> from the user. If everything is preprovisioned
> in /var/lib/connman/*.config files, ConnMan needs nothing from the
> Agent.
>> The condition that occured in my case was purely a side effect of
>> being in developer mode. I am not sure if this could occur in
>> production mode.
> ConnMan does not know about the product being in developer of production
> mode, thus it thought the invalid key was a valid reason.
>> One last thing, Is connman compatible with wpa_supplicant-1.0?
> Yes, up and running here at the moment.
> Cheers,
>         Patrik
> _______________________________________________
> connman mailing list
> connman at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: connman.2.log
Type: application/octet-stream
Size: 111476 bytes
Desc: not available
URL: <>

More information about the connman mailing list