Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267680 - net-misc/wicd-1.6.0_alpha2 cannot obtain IP address from DHCP
Summary: net-misc/wicd-1.6.0_alpha2 cannot obtain IP address from DHCP
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Jeremy Olexa (darkside) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-27 19:03 UTC by Tassilo Horn
Modified: 2009-06-26 20:09 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tassilo Horn 2009-04-27 19:03:39 UTC
After upgrading to wicd-1.6.0_alpha2 I cannot connect to mi wireless network anymore.  Validation of the WAP2 key seems to work, but then it says

  MY-ESSID: Obtaining IP address...

and the progress bar says connecting all the time.  As a workaround I can use "dhclient wlan0" in a terminal.  I tried setting the dhcp client to dhclient instead of Automatic, but that doesn't make a difference.

Reproducible: Always




root@thinkpad> paludis --info                             /home/horn
paludis 0.36.1
Paludis build information:
    Compiler:
        CXX:                   x86_64-pc-linux-gnu-g++ 4.3.3
        CXXFLAGS:               -march=core2 -O2 -pipe
        LDFLAGS:               -Wl,-O1 -Wl,--as-needed
        DATE:                  2009-04-23T23:29:40+0200

    Libraries:
        C++ Library:           GNU libstdc++ 20090124

    Reduced Privs:
        reduced_uid:           108
        reduced_uid->name:     paludisbuild
        reduced_uid->dir:      /var/tmp/paludis
        reduced_gid:           1009
        reduced_gid->name:     paludisbuild

    Paths:
        DATADIR:               /usr/share
        LIBDIR:                /usr/lib64
        LIBEXECDIR:            /usr/libexec
        SYSCONFDIR:            /etc
        PYTHONINSTALLDIR:      
        RUBYINSTALLDIR:        /usr/lib64/ruby/site_ruby/1.8/x86_64-linux

Environment:
    Format:                    paludis
    Config dir:                /etc/paludis
    World file:                /var/db/pkg/world
Comment 1 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-04-27 22:28:27 UTC
Anything in /var/log/wicd/wicd.log that could help debug this?

I solely use dhcpcd and I know that at least one of the upstream devs solely uses dhclient.
Comment 2 Tassilo Horn 2009-04-28 00:05:23 UTC
Here's everything that is logged in one connection attempt:

2009/04/28 02:02:45 :: Connecting to wireless network tsdhNET
2009/04/28 02:02:46 :: Putting interface down
2009/04/28 02:02:46 :: Releasing DHCP leases...
2009/04/28 02:02:46 :: ERROR:dbus.service:Unable to append ('g\xc6isQ\xffJ\xec)\xcd\xba\xab\xf2\xfb\xe3F|\xc2T\xf8\x1b\xe8\xe7\x8dvZ.c3\x9f\xc9\x9a',) to message with signature (s) (guessed): <type 'exceptions.UnicodeError'>: String parameters to be sent over D-Bus must be valid UTF-8
2009/04/28 02:02:46 :: ERROR:dbus.service:Unable to append ('g\xc6isQ\xffJ\xec)\xcd\xba\xab\xf2\xfb\xe3F|\xc2T\xf8\x1b\xe8\xe7\x8dvZ.c3\x9f\xc9\x9a',) to message with signature (s) (guessed): <type 'exceptions.UnicodeError'>: String parameters to be sent over D-Bus must be valid UTF-8
2009/04/28 02:02:46 :: ERROR:dbus.service:Unable to append ('g\xc6isQ\xffJ\xec)\xcd\xba\xab\xf2\xfb\xe3F|\xc2T\xf8\x1b\xe8\xe7\x8dvZ.c3\x9f\xc9\x9a',) to message with signature (s) (guessed): <type 'exceptions.UnicodeError'>: String parameters to be sent over D-Bus must be valid UTF-8
2009/04/28 02:02:46 :: ERROR:dbus.service:Unable to append ('g\xc6isQ\xffJ\xec)\xcd\xba\xab\xf2\xfb\xe3F|\xc2T\xf8\x1b\xe8\xe7\x8dvZ.c3\x9f\xc9\x9a',) to message with signature (s) (guessed): <type 'exceptions.UnicodeError'>: String parameters to be sent over D-Bus must be valid UTF-8
2009/04/28 02:02:47 :: Setting false IP...
2009/04/28 02:02:47 :: Stopping wpa_supplicant
2009/04/28 02:02:47 :: Flushing the routing table...
2009/04/28 02:02:47 :: Putting interface up...
2009/04/28 02:02:47 :: Generating psk...
2009/04/28 02:02:47 :: Attempting to authenticate...
2009/04/28 02:02:49 :: Running DHCP
2009/04/28 02:02:49 :: Internet Systems Consortium DHCP Client V3.1.1-Gentoo
2009/04/28 02:02:49 :: Copyright 2004-2008 Internet Systems Consortium.
2009/04/28 02:02:49 :: All rights reserved.
2009/04/28 02:02:49 :: For info, please visit http://www.isc.org/sw/dhcp/
2009/04/28 02:02:49 :: 
2009/04/28 02:02:49 :: wmaster0: unknown hardware address type 801
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-04-28 04:26:43 UTC
Alright, do you have any non-ASCII characters involved? (essid, passphrase, ?? )
Comment 4 Tassilo Horn 2009-04-28 10:29:49 UTC
No, both the ESSID and the WPA2 passphrase contains only ascii chars. Same for domain/hostname.
Comment 5 Tassilo Horn 2009-05-06 17:51:59 UTC
The problem persists with wicd-1.6.0_alpha3.
Comment 6 Tassilo Horn 2009-05-14 18:27:00 UTC
Still no luck with net-misc/wicd-1.6.0_beta1.
Comment 7 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-05-14 18:29:20 UTC
(In reply to comment #6)
> Still no luck with net-misc/wicd-1.6.0_beta1.
> 

Thanks for testing. I have poked upstream and they don't know the answer either. There is something different about your environment that we can't (yet) track down.
Comment 8 Svenne Krap 2009-05-19 20:18:17 UTC
btw. I got the same problem on any 1.6.0_xxxx.
Comment 9 Svenne Krap 2009-05-19 21:22:58 UTC
I worked with the nice ppl from #wicd. 

If I use dhcpcd instead of dhclient it works (after a custom fix that has been put into the wicd repo)

the wicd devs asked me to file a bug about it here.... i will just update the description...
Comment 10 Svenne Krap 2009-05-19 21:26:02 UTC
just to clarify...
the custom fix is unrelated to this bug, and was regarding bonding_masters in /sys/class/net killing wicd on startup ...
Comment 11 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-05-19 21:32:49 UTC
(In reply to comment #9)

> If I use dhcpcd instead of dhclient it works (after a custom fix that has been
> put into the wicd repo)

Tasslo,
Does using dhcpcd fix the issues for you too? (Or do we have to wait for the next release? - that is not clear to me)
Comment 12 Svenne Krap 2009-05-19 21:38:08 UTC
if Tasslo does not experience that wicd dies on startup (which he probably didn't or can fix it without the patch), the fix put in the next version is of NO consequence to the dhcp-issue.

The "next release fix" simply adds more condition checking that prevents wicd from dying because of the bonding_masters file (wicd expected only dirs in /sys/class/net/) ...

please note, if both dhclient and dhcpcd is available wicd chooses dhclient on automatic so one has to set it to dhcpcd manually in the preferences in wicd-client.
Comment 13 Tassilo Horn 2009-05-21 09:52:56 UTC
Hi Svenne & Jeremy, sorry for answering late, but I was on a trip. Anyway, now I've installed dhcpcd and use that for obtaining an IP address. It works just fine. :-)
Comment 14 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-05-26 14:53:56 UTC
(In reply to comment #13)
> Hi Svenne & Jeremy, sorry for answering late, but I was on a trip. Anyway, now
> I've installed dhcpcd and use that for obtaining an IP address. It works just
> fine. :-)


Ok, thx for testing. I just added beta2, let me know if there is any additional problems by reopening this bug. 

Thnaks!
Comment 15 Tassilo Horn 2009-05-26 19:44:04 UTC
Hi Jeremy,

I'm sorry, but 1.6.0_beta2 doesn't work for me at all.  It finds my wireless network, but when clicking on "Connect" nothing happens.  No GUI activity (no progress bar, no update in the status bar telling me that it tries to connect, ... nothing), and the connection isn't initiated either.  The log file only states only something like "trying to connect to MY_ESSID..." but nothing more.

Another problem I discovered lately with beta1 (using dhcpcd) was that it wouldn't connect to wired networks automatically.  And when connecting via wicd-client it said it tries to connect, but while "obtaining IP address" it would hang.  Unfortunately, it did get an IP and the wired network works just fine.  It's just that wicd didn't notice it...

So for now I'm back to 1.5.9 which just works right.
Comment 16 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-05-27 13:02:26 UTC
(In reply to comment #15)
> Hi Jeremy,
> 
> I'm sorry, but 1.6.0_beta2 doesn't work for me at all.  It finds my wireless
> network, but when clicking on "Connect" nothing happens.  No GUI activity (no
> progress bar, no update in the status bar telling me that it tries to connect,
> ... nothing), and the connection isn't initiated either.  The log file only
> states only something like "trying to connect to MY_ESSID..." but nothing more.

Works great for me. You restarted dbus, wicd, & wicd-client after upgrading?

> 
> Another problem I discovered lately with beta1 (using dhcpcd) was that it
> wouldn't connect to wired networks automatically.  And when connecting via
> wicd-client it said it tries to connect, but while "obtaining IP address" it
> would hang.  Unfortunately, it did get an IP and the wired network works just
> fine.  It's just that wicd didn't notice it...
> 
> So for now I'm back to 1.5.9 which just works right.
Comment 17 Tassilo Horn 2009-05-27 13:35:16 UTC
(In reply to comment #16)
> Works great for me. You restarted dbus, wicd, & wicd-client after upgrading?

No, only wicd and wicd-client, I think.  I'll try it later, hopefully this evening and report back.
Comment 18 Tassilo Horn 2009-05-30 21:39:13 UTC
Hi Jeremy, now I tried beta3 and it works for me as far as I can tell. Thanks for you help.
Comment 19 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-06-26 20:09:25 UTC
(In reply to comment #18)
> Hi Jeremy, now I tried beta3 and it works for me as far as I can tell. Thanks
> for you help.
> 

Great. slipped by for now, resolving.