wicd unable to reconnect, although I can do it "by hand"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wicd |
New
|
Undecided
|
Unassigned |
Bug Description
wicd 1.7.0 on Slackware-64 13.0, 2.6.32.4
Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
On initial boot, and some otherr times, wicd connects to my wireless router very reliably.
Other times, particularly (but not always) after a resume from suspend to RAM, it will not reconnect.
Looking at the logs, it tries pinging the router and after 10 failures it gives up. I can press the "connect" button in the wicd-client gui as many times as I like, but repetition does not seem to help.
However (and this is the weird thing), if I run the wpa_supplicant, ifconfig and route commands 'by hand" in
a terminal window, the connection is successful.
I am at a bit of a loss as to why running the commands myself works, and yet wicd fails; the only thing that comes to mind is a race condition, but...
Any ideas? A portion of a wicd when this happened is shown below
Thanks.
-------------------
2010/03/05 20:55:24 :: Connecting to wireless network abcde
2010/03/05 20:55:24 :: /sbin/dhcpcd -k wlan0
err, wlan0: dhcpcd not running
2010/03/05 20:55:24 :: ifconfig wlan0 0.0.0.0
2010/03/05 20:55:24 :: /sbin/ip route flush dev wlan0
2010/03/05 20:55:24 :: ifconfig wlan0 down
2010/03/05 20:55:24 :: ifconfig wlan0 up
2010/03/05 20:55:24 :: wpa_cli -i wlan0 terminate
2010/03/05 20:55:24 :: /sbin/dhcpcd -k eth0
err, eth0: dhcpcd not running
2010/03/05 20:55:24 :: ifconfig eth0 0.0.0.0
2010/03/05 20:55:24 :: /sbin/ip route flush dev eth0
2010/03/05 20:55:24 :: ifconfig eth0 down
2010/03/05 20:55:24 :: ifconfig eth0 up
2010/03/05 20:55:24 :: Putting interface down
2010/03/05 20:55:24 :: ifconfig wlan0 down
2010/03/05 20:55:24 :: Releasing DHCP leases...
2010/03/05 20:55:24 :: /sbin/dhcpcd -k wlan0
err, wlan0: dhcpcd not running
2010/03/05 20:55:24 :: Setting false IP...
2010/03/05 20:55:24 :: ifconfig wlan0 0.0.0.0
2010/03/05 20:55:24 :: Stopping wpa_supplicant
2010/03/05 20:55:24 :: wpa_cli -i wlan0 terminate
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
2010/03/05 20:55:24 :: Flushing the routing table...
2010/03/05 20:55:24 :: /sbin/ip route flush dev wlan0
2010/03/05 20:55:24 :: iwconfig wlan0 mode managed
2010/03/05 20:55:24 :: Putting interface up...
2010/03/05 20:55:24 :: ifconfig wlan0 up
2010/03/05 20:55:26 :: enctype is wep-hex
2010/03/05 20:55:26 :: Attempting to authenticate...
2010/03/05 20:55:26 :: ['wpa_supplicant', '-B', '-i', 'wlan0', '-c', '/var/lib/w
icd/configurati
2010/03/05 20:55:26 :: ['iwconfig', 'wlan0', 'essid', 'abcde']
2010/03/05 20:55:26 :: iwconfig wlan0 channel 8
2010/03/05 20:55:26 :: iwconfig wlan0 ap 00:24:01:2C:5B:16
2010/03/05 20:55:26 :: WPA_CLI RESULT IS COMPLETED
2010/03/05 20:55:26 :: Setting static IP : 192.168.1.3
2010/03/05 20:55:26 :: ifconfig wlan0 192.168.1.3 netmask 255.255.255.0
2010/03/05 20:55:26 :: Setting default gateway : 192.168.1.1
2010/03/05 20:55:26 :: route add default gw 192.168.1.1 dev wlan0
2010/03/05 20:55:26 :: Setting DNS : 142.177.2.130
2010/03/05 20:55:26 :: Setting DNS : 142.166.145.137
2010/03/05 20:55:26 :: Setting DNS : 142.177.129.11
2010/03/05 20:55:26 :: Verifying AP association...
2010/03/05 20:55:26 :: Attempt 1 of 10...
2010/03/05 20:55:26 :: ping -q -w 3 -c 1 192.168.1.1
2010/03/05 20:55:30 :: Attempt 2 of 10...
2010/03/05 20:55:30 :: ping -q -w 3 -c 1 192.168.1.1
2010/03/05 20:55:34 :: Attempt 3 of 10...
2010/03/05 20:55:34 :: ping -q -w 3 -c 1 192.168.1.1
2010/03/05 20:55:37 :: Attempt 4 of 10...
2010/03/05 20:55:37 :: ping -q -w 3 -c 1 192.168.1.1
2010/03/05 20:55:41 :: Attempt 5 of 10...
2010/03/05 20:55:41 :: ping -q -w 3 -c 1 192.168.1.1
2010/03/05 20:55:45 :: Attempt 6 of 10...
2010/03/05 20:55:45 :: ping -q -w 3 -c 1 192.168.1.1
2010/03/05 20:55:49 :: Attempt 7 of 10...
2010/03/05 20:55:49 :: ping -q -w 3 -c 1 192.168.1.1
2010/03/05 20:55:53 :: Attempt 8 of 10...
2010/03/05 20:55:53 :: ping -q -w 3 -c 1 192.168.1.1
2010/03/05 20:55:57 :: Attempt 9 of 10...
2010/03/05 20:55:57 :: ping -q -w 3 -c 1 192.168.1.1
2010/03/05 20:56:01 :: Attempt 10 of 10...
2010/03/05 20:56:01 :: ping -q -w 3 -c 1 192.168.1.1
2010/03/05 20:56:05 :: Connection Failed: Failed to ping the access point!
2010/03/05 20:56:05 :: ifconfig wlan0 0.0.0.0
2010/03/05 20:56:05 :: /sbin/ip route flush dev wlan0
2010/03/05 20:56:05 :: wpa_cli -i wlan0 terminate
2010/03/05 20:56:05 :: exiting connection thread
2010/03/05 20:56:06 :: canceling connection attempt
2010/03/05 20:56:06 :: /sbin/dhcpcd -k wlan0
err, wlan0: dhcpcd not running
2010/03/05 20:56:06 :: running kill dhcp.
2010/03/05 20:56:06 :: wpa_cli -i wlan0 terminate
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
2010/03/05 20:56:06 :: Forced disconnect on
2010/03/05 20:56:06 :: Sending connection attempt result aborted
2010/03/05 20:56:06 :: ifconfig eth0
2010/03/05 20:56:06 :: ifconfig wlan0
2010/03/05 20:56:06 :: iwconfig wlan0
2010/03/05 20:56:08 :: ifconfig eth0
2010/03/05 20:56:08 :: ifconfig wlan0
2010/03/05 20:56:10 :: ifconfig eth0
Similar issue here... wicd 1.7.0 on Kubuntu 10.04, Actiontec DSL wireless router (with an internal dd-wrt "bridged" router as well; connecting to either produces the same result, described below:)
For me, almost every time I boot (I never sleep or hibernate) it goes through 2 or 3 cycles like this:
2010/08/23 23:12:46 :: trying to automatically connect to...MYESSID
2010/08/23 23:12:46 :: Connecting to wireless network MYESSID
2010/08/23 23:12:46 :: Putting interface down
2010/08/23 23:12:46 :: Releasing DHCP leases...
2010/08/23 23:12:46 :: Setting false IP...
2010/08/23 23:12:46 :: Stopping wpa_supplicant
2010/08/23 23:12:46 :: Flushing the routing table...
2010/08/23 23:12:46 :: Putting interface up...
2010/08/23 23:12:48 :: Attempting to authenticate...
2010/08/23 23:12:49 :: Setting static IP : 192.168.1.252
2010/08/23 23:12:49 :: Setting default gateway : 192.168.1.1
2010/08/23 23:12:49 :: Verifying AP association...
2010/08/23 23:12:49 :: Attempt 1 of 10...
2010/08/23 23:12:53 :: Attempt 2 of 10...
2010/08/23 23:12:57 :: Attempt 3 of 10...
2010/08/23 23:13:01 :: Attempt 4 of 10...
2010/08/23 23:13:05 :: Attempt 5 of 10...
2010/08/23 23:13:08 :: Attempt 6 of 10...
2010/08/23 23:13:12 :: Attempt 7 of 10...
2010/08/23 23:13:16 :: Attempt 8 of 10...
2010/08/23 23:13:19 :: Attempt 9 of 10...
2010/08/23 23:13:22 :: Attempt 10 of 10...
2010/08/23 23:13:26 :: Connection Failed: Failed to ping the access point!
2010/08/23 23:13:26 :: exiting connection thread
2010/08/23 23:13:28 :: Sending connection attempt result association_failed
Eventually it will connect, usually on the third attempt, though sometimes not, and I have to open up wicd and click "connect" and then it will usually work. Whenever it does connect, it's always on the first try, i.e. never after "Attempt 4" or any other...:
2010/08/23 23:13:53 :: Connecting to wireless network MYESSID
2010/08/23 23:13:54 :: Putting interface down
2010/08/23 23:13:54 :: Releasing DHCP leases...
2010/08/23 23:13:54 :: Setting false IP...
2010/08/23 23:13:54 :: Stopping wpa_supplicant
2010/08/23 23:13:54 :: Flushing the routing table...
2010/08/23 23:13:54 :: Putting interface up...
2010/08/23 23:13:56 :: Attempting to authenticate...
2010/08/23 23:13:57 :: Setting static IP : 192.168.1.252
2010/08/23 23:13:57 :: Setting default gateway : 192.168.1.1
2010/08/23 23:13:57 :: Verifying AP association...
2010/08/23 23:13:57 :: Attempt 1 of 10...
2010/08/23 23:13:57 :: Successfully associated.
2010/08/23 23:13:57 :: Connecting thread exiting.
2010/08/23 23:13:57 :: Sending connection attempt result Success
I've used wicd with this router unchanged for a couple of years without trouble. I think it was the 10.04 update that started the issues. This happens with dhcpd or dhclient, and with "external" or ioctl backend. If I deselect "ping static gateways after connecting", the Attempts go away and it looks as if it's connected (in the log, also the icon shows green) but no data goes through.
Very happy to pursue any debugging if anyone has any ideas, as it's pretty annoying to have to wait an extra couple minutes on every boot until connecting.
Thanks!