Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405775 - sys-apps/openrc-0.9.9{.1}: having a hard time to connect to wlan via wicd
Summary: sys-apps/openrc-0.9.9{.1}: having a hard time to connect to wlan via wicd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-25 15:30 UTC by Andreas Sturmlechner
Modified: 2013-04-26 18:46 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dmesg containing a few manual reconnects and lots of deauthentications (dmesg.log,61.08 KB, text/plain)
2012-02-25 15:30 UTC, Andreas Sturmlechner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Sturmlechner gentoo-dev 2012-02-25 15:30:27 UTC
Created attachment 303183 [details]
dmesg containing a few manual reconnects and lots of deauthentications

Since recent openrc update I have to reconnect several times to get a successful connection via wicd-1.7.1-r1. In dmesg I can watch how wlan0 deauthenticating after having had a connection for a second or two.
Comment 1 optiluca@gmail.com 2012-02-26 00:16:58 UTC
Ditto over here.  I can't get a wired connection at all either, I have to connect manually from terminal.
Comment 2 Andreas Sturmlechner gentoo-dev 2012-02-26 12:00:30 UTC
After the 5th or 6th retry my wicd client is able to connect.

So, are you CC people all wicd users?
Comment 3 Maciej Gierok 2012-02-26 12:22:32 UTC
Same here. I found that after connecting wire, I'm able to connect to wlan.
Comment 4 Jakub Caban 2012-02-26 13:42:56 UTC
For me it looks like problem with dhcpcd. It sends itself kill signal every time connection is established.

I had the same problem when trying to run wicd without dhcp daemon.

Also I found that dhcpcd takes like 10~15s to start - possibly not starting clearly than?

Problem exists in 0.9.9, 0.9.9.1 and in 0.9.9.2 so far.

Downgrading to 0.9.8* resolves the issue.
Comment 5 Christian Ruppert (idl0r) gentoo-dev 2012-02-26 16:39:35 UTC
This is for some reason caused through commit bc581530e5caa4e2c82d1c3deb9f0382a440e8ec.

We'll have to take a closer look at it as it shouldn't cause such issues actually...
Comment 6 William Hubbs gentoo-dev 2012-02-26 17:41:31 UTC
If wicd provides a network connection to the outside world, it should
probably provide net. There is nothing to fix in openrc.

I am the maintainer of dhcpcd, so I will check that script.
Comment 7 William Hubbs gentoo-dev 2012-02-26 17:47:47 UTC
dhcpcd does provide net, so please try the following:

In /etc/conf.d/wicd add the following line:

rc_provide="net"

Report back and let us know if that solves your issue.
Comment 8 Christian Ruppert (idl0r) gentoo-dev 2012-02-26 17:52:27 UTC
(In reply to comment #6)
> If wicd provides a network connection to the outside world, it should
> probably provide net. There is nothing to fix in openrc.
> 

We don't know if there is anything to fix in openrc yet.
The connection should not be dropped, dhcp* not been killed or whatever else just because a init script does not provide net.
So right now this sounds like a bug that needs to be fixed. No idea if it's a openrc, dhcp*, wpa_supplicant or wicd bug.
Comment 9 Christian Ruppert (idl0r) gentoo-dev 2012-02-26 17:56:14 UTC
Guys, is a wired connection affected as well?
I can't test it right now.
Comment 10 Andreas Sturmlechner gentoo-dev 2012-02-26 18:16:39 UTC
(In reply to comment #7)
> dhcpcd does provide net, so please try the following:
> 
> In /etc/conf.d/wicd add the following line:
> 
> rc_provide="net"
> 
> Report back and let us know if that solves your issue.

That fixed it for me, connection was there immediately at startup, also several successful manual reconnects.
Comment 11 William Hubbs gentoo-dev 2012-02-26 18:43:58 UTC
(In reply to comment #4)
> For me it looks like problem with dhcpcd. It sends itself kill signal every
> time connection is established.
> 
> I had the same problem when trying to run wicd without dhcp daemon.
> 
> Also I found that dhcpcd takes like 10~15s to start - possibly not starting
> clearly than?
> 
> Problem exists in 0.9.9, 0.9.9.1 and in 0.9.9.2 so far.
> 
> Downgrading to 0.9.8* resolves the issue.

Jakub,

Can you try the test in comment #7?

Thanks,

William
Comment 12 Jakub Caban 2012-02-26 18:54:21 UTC
(In reply to comment #11)
> (In reply to comment #4)
> > For me it looks like problem with dhcpcd. It sends itself kill signal every
> > time connection is established.
> > 
> > I had the same problem when trying to run wicd without dhcp daemon.
> > 
> > Also I found that dhcpcd takes like 10~15s to start - possibly not starting
> > clearly than?
> > 
> > Problem exists in 0.9.9, 0.9.9.1 and in 0.9.9.2 so far.
> > 
> > Downgrading to 0.9.8* resolves the issue.
> 
> Jakub,
> 
> Can you try the test in comment #7?
> 
> Thanks,
> 
> William

It solved problem for me too.

dhcpcd started immediately and wicd connected with no problems at all.
Comment 13 Andreas Sturmlechner gentoo-dev 2012-02-26 19:17:38 UTC
I was just going to write how I had rc_parallel="YES" and rc_depend_strict="NO" in my /etc/rc.conf but I just had a look at it and found it to be overwritten by some latest update, silly me. So this in fact happens all with a default config.
Comment 14 William Hubbs gentoo-dev 2012-02-26 21:28:47 UTC
All,

There are two things that should happen for this issue.

The first is that wicd should provide net. That could be fixed on this
bug.

On the OpenRC side, this is related to bug #293139.
I am testing a proposal for part of that bug that I will post
with  a patch shortly if it passes my testing.
Comment 15 Robert Cabrera 2012-02-27 19:26:52 UTC
To all, thank you for reporting this and posting the work-around.

I started having problem with wicd early last week. After successive openrc updates wlan connection became almost impossible. Finally had to log-in to my long unused Windows partition and found this thread.

'rc_provide="net" into /etc/conf.d/wicd' did the trick! I'm back online now.

Thanks again.
Comment 16 Thomas Kahle (RETIRED) gentoo-dev 2012-02-27 21:03:58 UTC
(In reply to comment #14)
> The first is that wicd should provide net. That could be fixed on this
> bug.

Alright, starting from wicd-1.7.1-r2 the init script provides net.  For the records, we did not provide net earlier has net.lo provided net already and there seemed no use (see also bug 289577).  I remember that 'provide net' was only meant as signalling that there is a network device (not necessarily a connection), but I may be wrong.  This bug was triggered because net.lo in newer versions of openrc doesn't provide net (but 'lo').  In any case, please test and reopen if there is more to do. Thanks.

+*wicd-1.7.1-r2 (27 Feb 2012)
+
+  27 Feb 2012; Thomas Kahle <tomka@gentoo.org> +wicd-1.7.1-r2.ebuild,
+  +files/wicd-1.7.1-provide-net.patch:
+  init script provides net per bug 405775