[1.7.2.4 -> 1.7.3] WEP Connecting fails

Bug #1419464 reported by Cem Aydin
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
wicd
Fix Released
Critical
Unassigned
wicd (Debian)
Fix Released
Unknown

Bug Description

After update from 1.7.2.4-10 to 1.7.3-1 on Arch Linux connecting using WEP encryption fails.

Downgrading to the previous version solves the issue.

Using wicd and wicd-gtk.

/var/log/wicd/wicd.log output when using HEX
After clicking connect in wicd-client.
(This used to work.)
(debug mode enabled):

~~~
2015/02/08 16:23:08 :: ifconfig eth0
2015/02/08 16:23:08 :: ifconfig wlan0
2015/02/08 16:23:10 :: ifconfig eth0
2015/02/08 16:23:10 :: ifconfig wlan0
2015/02/08 16:23:12 :: Connecting to wireless network WG-WLAN
2015/02/08 16:23:12 :: iwconfig wlan0
2015/02/08 16:23:12 :: /usr/sbin/dhcpcd -k wlan0
2015/02/08 16:23:12 :: ifconfig wlan0 0.0.0.0
2015/02/08 16:23:12 :: /usr/sbin/ip route flush dev wlan0
2015/02/08 16:23:12 :: ['/usr/sbin/resolvconf', '-d', 'wlan0.wicd']
2015/02/08 16:23:12 :: ifconfig wlan0 down
2015/02/08 16:23:12 :: ifconfig wlan0 up
2015/02/08 16:23:12 :: wpa_cli -i wlan0 terminate
2015/02/08 16:23:12 :: /usr/sbin/dhcpcd -k eth0
2015/02/08 16:23:12 :: ifconfig eth0 0.0.0.0
2015/02/08 16:23:12 :: /usr/sbin/ip route flush dev eth0
2015/02/08 16:23:12 :: ['/usr/sbin/resolvconf', '-d', 'eth0.wicd']
2015/02/08 16:23:12 :: ifconfig eth0 down
2015/02/08 16:23:12 :: ifconfig eth0 up
2015/02/08 16:23:12 :: wpa_cli -i eth0 terminate
2015/02/08 16:23:12 :: Putting interface down
2015/02/08 16:23:12 :: ifconfig wlan0 down
2015/02/08 16:23:12 :: Releasing DHCP leases...
2015/02/08 16:23:12 :: /usr/sbin/dhcpcd -k wlan0
2015/02/08 16:23:12 :: Setting false IP...
2015/02/08 16:23:12 :: ifconfig wlan0 0.0.0.0
2015/02/08 16:23:12 :: Stopping wpa_supplicant
2015/02/08 16:23:12 :: wpa_cli -i wlan0 terminate
2015/02/08 16:23:12 :: Flushing the routing table...
2015/02/08 16:23:12 :: /usr/sbin/ip route flush dev wlan0
2015/02/08 16:23:12 :: ['/usr/sbin/resolvconf', '-d', 'wlan0.wicd']
2015/02/08 16:23:12 :: iwconfig wlan0 mode managed
2015/02/08 16:23:12 :: Putting interface up...
2015/02/08 16:23:12 :: ifconfig wlan0 up
2015/02/08 16:23:14 :: enctype is wep-hex
2015/02/08 16:23:14 :: Attempting to authenticate...
2015/02/08 16:23:14 :: ['wpa_supplicant', '-B', '-i', 'wlan0', '-c', '/var/lib/wicd/configurations/e091f5787cf0', '-Dwext']
2015/02/08 16:23:14 :: ['iwconfig', 'wlan0', 'essid', '--', 'WG-WLAN']
2015/02/08 16:23:14 :: iwconfig wlan0 channel 6
2015/02/08 16:23:14 :: iwconfig wlan0 ap E0:91:F5:78:7C:F0
2015/02/08 16:23:14 :: WPA_CLI RESULT IS None
2015/02/08 16:23:14 :: connect result is failed
2015/02/08 16:23:14 :: exiting connection thread
2015/02/08 16:23:15 :: Sending connection attempt result bad_pass
2015/02/08 16:23:15 :: ifconfig eth0
2015/02/08 16:23:15 :: ifconfig wlan0
2015/02/08 16:23:15 :: Forced disconnect on
2015/02/08 16:23:15 :: iwconfig wlan0
2015/02/08 16:23:15 :: /usr/sbin/dhcpcd -k wlan0
2015/02/08 16:23:15 :: ifconfig wlan0 0.0.0.0
2015/02/08 16:23:15 :: /usr/sbin/ip route flush dev wlan0
2015/02/08 16:23:15 :: ['/usr/sbin/resolvconf', '-d', 'wlan0.wicd']
2015/02/08 16:23:15 :: ifconfig wlan0 down
2015/02/08 16:23:15 :: ifconfig wlan0 up
2015/02/08 16:23:15 :: wpa_cli -i wlan0 terminate
2015/02/08 16:23:15 :: /usr/sbin/dhcpcd -k eth0
2015/02/08 16:23:15 :: ifconfig eth0 0.0.0.0
2015/02/08 16:23:15 :: /usr/sbin/ip route flush dev eth0
2015/02/08 16:23:15 :: ['/usr/sbin/resolvconf', '-d', 'eth0.wicd']
2015/02/08 16:23:15 :: ifconfig eth0 down
2015/02/08 16:23:15 :: ifconfig eth0 up
2015/02/08 16:23:15 :: wpa_cli -i eth0 terminate
2015/02/08 16:23:17 :: ifconfig eth0
2015/02/08 16:23:17 :: ifconfig wlan0
~~~

It says bad_pass but I double/triple-checked it. It's the correct pass + it used to work before...

When I start the client from terminal I get:

~~~
/usr/share/wicd/gtk/gui.py:583: Warning: Source ID 665 was not found when attempting to remove it
  gobject.source_remove(self.update_cb)
ERROR:dbus.connection:Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 230, in maybe_handle_message
    self._handler(*args, **kwargs)
  File "/usr/share/wicd/gtk/gui.py", line 281, in handle_connection_results
    error(self.window, language[results], block=False)
KeyError: dbus.String(u'bad_pass')
~~~

journalctl -b |grep wicd:
~~~
[ ... ]
Feb 08 16:23:12 hplaptop wicd[328]: dhcpcd[1139]: dhcpcd not running
Feb 08 16:23:12 hplaptop wicd[328]: Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory
Feb 08 16:23:12 hplaptop wicd[328]: dhcpcd[1147]: dhcpcd not running
Feb 08 16:23:12 hplaptop wicd[328]: Failed to connect to non-global ctrl_ifname: eth0 error: No such file or directory
Feb 08 16:23:12 hplaptop wicd[328]: dhcpcd[1157]: dhcpcd not running
Feb 08 16:23:12 hplaptop wicd[328]: Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory
Feb 08 16:23:12 hplaptop wicd[328]: Error for wireless request "Set Bit Rate" (8B20) :
Feb 08 16:23:12 hplaptop wicd[328]: SET failed on device %s ; No such device.
Feb 08 16:23:14 hplaptop wicd[328]: Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory
Feb 08 16:23:15 hplaptop wicd[328]: dhcpcd[1178]: dhcpcd not running
Feb 08 16:23:15 hplaptop wicd[328]: Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory
Feb 08 16:23:15 hplaptop wicd[328]: dhcpcd[1186]: dhcpcd not running
Feb 08 16:23:15 hplaptop wicd[328]: Failed to connect to non-global ctrl_ifname: eth0 error: No such file or directory
[ ... ]
~~~

When using passphrase:

~~~
2015/02/08 16:27:24 :: ifconfig wlan0
2015/02/08 16:27:26 :: ifconfig eth0
2015/02/08 16:27:26 :: ifconfig wlan0
2015/02/08 16:27:27 :: Connecting to wireless network WG-WLAN
2015/02/08 16:27:27 :: iwconfig wlan0
2015/02/08 16:27:27 :: /usr/sbin/dhcpcd -k wlan0
2015/02/08 16:27:27 :: ifconfig wlan0 0.0.0.0
2015/02/08 16:27:27 :: /usr/sbin/ip route flush dev wlan0
2015/02/08 16:27:27 :: ['/usr/sbin/resolvconf', '-d', 'wlan0.wicd']
2015/02/08 16:27:27 :: ifconfig wlan0 down
2015/02/08 16:27:27 :: ifconfig wlan0 up
2015/02/08 16:27:27 :: wpa_cli -i wlan0 terminate
2015/02/08 16:27:27 :: /usr/sbin/dhcpcd -k eth0
2015/02/08 16:27:27 :: ifconfig eth0 0.0.0.0
2015/02/08 16:27:27 :: /usr/sbin/ip route flush dev eth0
2015/02/08 16:27:27 :: ['/usr/sbin/resolvconf', '-d', 'eth0.wicd']
2015/02/08 16:27:27 :: ifconfig eth0 down
2015/02/08 16:27:27 :: ifconfig eth0 up
2015/02/08 16:27:27 :: wpa_cli -i eth0 terminate
2015/02/08 16:27:27 :: Putting interface down
2015/02/08 16:27:27 :: ifconfig wlan0 down
2015/02/08 16:27:27 :: Releasing DHCP leases...
2015/02/08 16:27:27 :: /usr/sbin/dhcpcd -k wlan0
2015/02/08 16:27:27 :: Setting false IP...
2015/02/08 16:27:27 :: ifconfig wlan0 0.0.0.0
2015/02/08 16:27:27 :: Stopping wpa_supplicant
2015/02/08 16:27:27 :: wpa_cli -i wlan0 terminate
2015/02/08 16:27:27 :: Flushing the routing table...
2015/02/08 16:27:27 :: /usr/sbin/ip route flush dev wlan0
2015/02/08 16:27:27 :: ['/usr/sbin/resolvconf', '-d', 'wlan0.wicd']
2015/02/08 16:27:27 :: iwconfig wlan0 mode managed
2015/02/08 16:27:27 :: Putting interface up...
2015/02/08 16:27:27 :: ifconfig wlan0 up
2015/02/08 16:27:29 :: enctype is wep-passphrase
2015/02/08 16:27:29 :: Attempting to authenticate...
2015/02/08 16:27:29 :: ['wpa_supplicant', '-B', '-i', 'wlan0', '-c', '/var/lib/wicd/configurations/e091f5787cf0', '-Dwext']
2015/02/08 16:27:30 :: ['iwconfig', 'wlan0', 'essid', '--', 'WG-WLAN']
2015/02/08 16:27:30 :: iwconfig wlan0 channel 6
2015/02/08 16:27:30 :: iwconfig wlan0 ap E0:91:F5:78:7C:F0
2015/02/08 16:27:30 :: WPA_CLI RESULT IS COMPLETED
2015/02/08 16:27:30 :: Running DHCP with NO hostname
2015/02/08 16:27:30 :: /usr/sbin/dhcpcd --noipv4ll wlan0
2015/02/08 16:27:30 :: dhcpcd[1481]: version 6.7.1 starting
2015/02/08 16:27:30 ::
2015/02/08 16:27:30 :: dhcpcd[1481]: wlan0: adding address fe80::cb8:f5e0:14e9:f8e5
2015/02/08 16:27:30 ::
2015/02/08 16:27:30 :: dhcpcd[1481]: DUID 00:01:00:01:19:94:4c:99:10:1f:74:19:79:2f
2015/02/08 16:27:30 ::
2015/02/08 16:27:30 :: dhcpcd[1481]: wlan0: IAID e5:50:23:5f
2015/02/08 16:27:30 ::
2015/02/08 16:27:30 :: dhcpcd[1481]: wlan0: soliciting a DHCP lease
2015/02/08 16:27:30 ::
2015/02/08 16:27:30 :: dhcpcd[1481]: wlan0: soliciting an IPv6 router
2015/02/08 16:27:30 ::
2015/02/08 16:27:43 :: dhcpcd[1481]: wlan0: no IPv6 Routers available
2015/02/08 16:27:43 ::
2015/02/08 16:28:00 :: dhcpcd[1481]: timed out
2015/02/08 16:28:00 ::
2015/02/08 16:28:00 :: DHCP connection failed
2015/02/08 16:28:00 :: exiting connection thread
2015/02/08 16:28:00 :: Sending connection attempt result dhcp_failed
2015/02/08 16:28:00 :: ifconfig eth0
2015/02/08 16:28:00 :: ifconfig wlan0
2015/02/08 16:28:00 :: Forced disconnect on
2015/02/08 16:28:00 :: iwconfig wlan0
2015/02/08 16:28:00 :: /usr/sbin/dhcpcd -k wlan0
2015/02/08 16:28:00 :: ifconfig wlan0 0.0.0.0
2015/02/08 16:28:00 :: /usr/sbin/ip route flush dev wlan0
2015/02/08 16:28:00 :: ['/usr/sbin/resolvconf', '-d', 'wlan0.wicd']
2015/02/08 16:28:00 :: ifconfig wlan0 down
2015/02/08 16:28:00 :: ifconfig wlan0 up
2015/02/08 16:28:00 :: wpa_cli -i wlan0 terminate
2015/02/08 16:28:00 :: /usr/sbin/dhcpcd -k eth0
2015/02/08 16:28:00 :: ifconfig eth0 0.0.0.0
2015/02/08 16:28:00 :: /usr/sbin/ip route flush dev eth0
2015/02/08 16:28:00 :: ['/usr/sbin/resolvconf', '-d', 'eth0.wicd']
2015/02/08 16:28:00 :: ifconfig eth0 down
2015/02/08 16:28:00 :: ifconfig eth0 up
2015/02/08 16:28:00 :: wpa_cli -i eth0 terminate
2015/02/08 16:28:03 :: ifconfig eth0
2015/02/08 16:28:03 :: ifconfig wlan0
~~~

I don't know why its talking about IPv6, I don't use it.

journalctl -b |grep wicd:

~~~
[ ... ]
Feb 08 16:27:27 hplaptop wicd[328]: dhcpcd[1438]: dhcpcd not running
Feb 08 16:27:27 hplaptop wicd[328]: Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory
Feb 08 16:27:27 hplaptop wicd[328]: dhcpcd[1446]: dhcpcd not running
Feb 08 16:27:27 hplaptop wicd[328]: Failed to connect to non-global ctrl_ifname: eth0 error: No such file or directory
Feb 08 16:27:27 hplaptop wicd[328]: dhcpcd[1456]: dhcpcd not running
Feb 08 16:27:27 hplaptop wicd[328]: Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory
Feb 08 16:27:27 hplaptop wicd[328]: Error for wireless request "Set Bit Rate" (8B20) :
Feb 08 16:27:27 hplaptop wicd[328]: SET failed on device %s ; No such device.
Feb 08 16:27:30 hplaptop wicd[328]: ioctl[SIOCSIWENCODEEXT]: Invalid argument
Feb 08 16:27:30 hplaptop wicd[328]: ioctl[SIOCSIWENCODEEXT]: Invalid argument
[ ... ]
Feb 08 16:28:00 hplaptop wicd[328]: dhcpcd[1492]: dhcpcd not running
Feb 08 16:28:00 hplaptop wicd[328]: dhcpcd[1501]: dhcpcd not running
Feb 08 16:28:00 hplaptop wicd[328]: Failed to connect to non-global ctrl_ifname: eth0 error: No such file or directory
[ ... ]
~~~

systemctl status wicd -l:

~~~
● wicd.service - Wicd a wireless and wired network manager for Linux
   Loaded: loaded (/usr/lib/systemd/system/wicd.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2015-02-08 16:14:22 CET; 40min ago
 Main PID: 328 (wicd)
   CGroup: /system.slice/wicd.service
           ├─ 328 /usr/bin/python2 -O /usr/share/wicd/daemon/wicd-daemon.py --no-daemon
           ├─ 380 /usr/bin/python2 -O /usr/share/wicd/daemon/monitor.py
           └─2649 /usr/sbin/dhcpcd --noipv4ll eth0

Feb 08 16:48:08 hplaptop dhcpcd[2607]: eth0: IAID 74:19:79:2f
Feb 08 16:48:09 hplaptop dhcpcd[2607]: eth0: soliciting a DHCP lease
Feb 08 16:48:09 hplaptop dhcpcd[2607]: eth0: soliciting an IPv6 router
Feb 08 16:48:09 hplaptop dhcpcd[2607]: eth0: offered 192.168.0.107 from 192.168.0.1
Feb 08 16:48:09 hplaptop dhcpcd[2607]: eth0: ignoring offer of 192.168.0.107 from 192.168.0.1
Feb 08 16:48:14 hplaptop dhcpcd[2607]: eth0: leased 192.168.0.107 for 86400 seconds
Feb 08 16:48:14 hplaptop dhcpcd[2607]: eth0: adding route to 192.168.0.0/24
Feb 08 16:48:14 hplaptop dhcpcd[2607]: eth0: adding default route via 192.168.0.1
Feb 08 16:48:14 hplaptop dhcpcd[2607]: forked to background, child pid 2649
Feb 08 16:48:22 hplaptop dhcpcd[2649]: eth0: no IPv6 Routers available
~~~

Thanks

Tags: patch
Revision history for this message
Pieter Leclerc (pieterleclerc-deactivatedaccount) wrote :

It seems to be using wlan0 and eth0 but also gets these errors:

ctrl_ifname: wlan0 error: No such file or directory
ctrl_ifname: eth0 error: No such file or directory

Can you attach the output of "ifconfig -a" and also ensure the names of the wired and wireless interfaces in your WICD settings are correct? Thanks!

Revision history for this message
Cem Aydin (cem-aydin) wrote :
Download full text (3.7 KiB)

Yes that's correct.

wlan0 and eth0 are the correct names and they are also set in wicd-client settings.

The other settings are at their defaults (Automatic etc.)

I don't know why it's giving these errors...

I'd be glad to do more testing or provide information, upon instructions.

I also tried to uninstall, remove all the config files, and reinstall, but it had no effect.
Though I'm not absolutely sure if I got all the configs... I could try that again.

Connecting to the wired network does work. Log:

~~~
2015/02/09 19:33:03 :: ifconfig wlan0
2015/02/09 19:33:03 :: iwconfig wlan0
2015/02/09 19:33:03 :: /usr/sbin/dhcpcd -k wlan0
2015/02/09 19:33:03 :: ifconfig wlan0 0.0.0.0
2015/02/09 19:33:03 :: /usr/sbin/ip route flush dev wlan0
2015/02/09 19:33:03 :: ['/usr/sbin/resolvconf', '-d', 'wlan0.wicd']
2015/02/09 19:33:03 :: ifconfig wlan0 down
2015/02/09 19:33:04 :: ifconfig wlan0 up
2015/02/09 19:33:04 :: wpa_cli -i wlan0 terminate
2015/02/09 19:33:04 :: /usr/sbin/dhcpcd -k eth0
2015/02/09 19:33:04 :: ifconfig eth0 0.0.0.0
2015/02/09 19:33:04 :: /usr/sbin/ip route flush dev eth0
2015/02/09 19:33:04 :: ['/usr/sbin/resolvconf', '-d', 'eth0.wicd']
2015/02/09 19:33:04 :: ifconfig eth0 down
2015/02/09 19:33:04 :: ifconfig eth0 up
2015/02/09 19:33:04 :: wpa_cli -i eth0 terminate
2015/02/09 19:33:04 :: found lastused in configuration True
2015/02/09 19:33:04 :: Putting interface down
2015/02/09 19:33:04 :: ifconfig eth0 down
2015/02/09 19:33:04 :: Releasing DHCP leases...
2015/02/09 19:33:04 :: /usr/sbin/dhcpcd -k eth0
2015/02/09 19:33:04 :: Setting false IP...
2015/02/09 19:33:04 :: ifconfig eth0 0.0.0.0
2015/02/09 19:33:04 :: Stopping wpa_supplicant
2015/02/09 19:33:04 :: wpa_cli -i eth0 terminate
2015/02/09 19:33:04 :: Flushing the routing table...
2015/02/09 19:33:04 :: /usr/sbin/ip route flush dev eth0
2015/02/09 19:33:04 :: ['/usr/sbin/resolvconf', '-d', 'eth0.wicd']
2015/02/09 19:33:04 :: Putting interface up...
2015/02/09 19:33:04 :: ifconfig eth0 up
2015/02/09 19:33:06 :: Running DHCP with NO hostname
2015/02/09 19:33:06 :: /usr/sbin/dhcpcd --noipv4ll eth0
2015/02/09 19:33:06 :: dhcpcd[11430]: version 6.7.1 starting
2015/02/09 19:33:06 ::
2015/02/09 19:33:06 :: dhcpcd[11430]: eth0: adding address fe80::de41:8686:9412:b82e
2015/02/09 19:33:06 ::
2015/02/09 19:33:06 :: dhcpcd[11430]: DUID 00:01:00:01:19:94:4c:99:10:1f:74:19:79:2f
2015/02/09 19:33:06 ::
2015/02/09 19:33:06 :: dhcpcd[11430]: eth0: IAID 74:19:79:2f
2015/02/09 19:33:06 ::
2015/02/09 19:33:06 :: dhcpcd[11430]: eth0: soliciting an IPv6 router
2015/02/09 19:33:06 ::
2015/02/09 19:33:07 :: dhcpcd[11430]: eth0: soliciting a DHCP lease
2015/02/09 19:33:07 ::
2015/02/09 19:33:07 :: dhcpcd[11430]: eth0: offered 192.168.0.107 from 192.168.0.1
2015/02/09 19:33:07 ::
2015/02/09 19:33:07 :: dhcpcd[11430]: eth0: ignoring offer of 192.168.0.107 from 192.168.0.1
2015/02/09 19:33:07 ::
2015/02/09 19:33:11 :: dhcpcd[11430]: eth0: leased 192.168.0.107 for 86400 seconds
2015/02/09 19:33:11 ::
2015/02/09 19:33:11 :: dhcpcd[11430]: eth0: adding route to 192.168.0.0/24
2015/02/09 19:33:11 ::
2015/02/09 19:33:11 :: dhcpcd[11430]: eth0: adding default route via 192.168.0.1
2015/02/09 19:33...

Read more...

Revision history for this message
Pieter Leclerc (pieterleclerc-deactivatedaccount) wrote :

Thanks for the help. The current primary suspect is that "2015/02/08 16:23:14 :: WPA_CLI RESULT IS None" message.

This can happen for various reasons (https://bbs.archlinux.org/viewtopic.php?id=70158 which refers to https://bugs.launchpad.net/ubuntu/+source/linux/+bug/344022 etc...)

Anyway, you can do this manually with:

sudo wpa_cli -i wlan0 status

Which, in my case, outputs something like:

bssid=b5:76:0e:aa:99:b9
ssid=lkajzeakzje
id=0
mode=station
pairwise_cipher=CCMP
group_cipher=CCMP
key_mgmt=WPA2-PSK
wpa_state=COMPLETED
ip_address=192.168.20.180
address=c8:f7:33:c9:ee:c4
uuid=472c20d3-2d19-564a-807a-1b4a7b5165e9

Can you try this as well and attach the output? Also, if this works, can you make the connection fail again and attach the output of "dmesg" to see any kernel error messages and "sudo lsusb -vvv" to see the hardware you have? Thanks!

Revision history for this message
Cem Aydin (cem-aydin) wrote :

Ok, I get an error with this:

~~~
$ sudo wpa_cli -i wlan0 status
Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory
~~~

dmesg when clicking "connect":

~~~
[165004.525433] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[165004.923570] r8169 0000:07:00.0 eth0: link down
[165004.923582] r8169 0000:07:00.0 eth0: link down
[165004.923624] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[165004.991989] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[165006.479760] r8169 0000:07:00.0 eth0: link up
[165006.479783] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[165007.570763] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[165007.762224] r8169 0000:07:00.0 eth0: link down
[165007.762269] r8169 0000:07:00.0 eth0: link down
[165007.762273] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[165009.326754] r8169 0000:07:00.0 eth0: link up
[165009.326777] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
~~~

Revision history for this message
Cem Aydin (cem-aydin) wrote :
Revision history for this message
Cem Aydin (cem-aydin) wrote :

When it's because of wpa_cli, I don't understand why it works with the previous wicd version.
Additionally I don't even use wpa but wep...

But thanks anyways so far.

Revision history for this message
Cem Aydin (cem-aydin) wrote :

But I can understand that it might have to do with my hardware and router combination, or so... Since I think this is a common problem (the combination of different "clients" and routers etc.).

Revision history for this message
Pieter Leclerc (pieterleclerc-deactivatedaccount) wrote :

wpa_supplicant is used for all types of encryption, including WEP, WPA,...

In your "sudo ifconfig -a" it seemed wlan0 was up. But in the "sudo wpa_cli -i wlan0 status", it seems down. Perhaps because some time had passed, and perhaps this points to the problem...

Can you do "sudo ifconfig wlan0 up" and right after that a "sudo wpa_cli -i wlan0 status; echo $?" to be sure? Thx :-)

summary: - [1.7.2.4 -> 1.7.3] WEP Connecting fails !
+ [1.7.2.4 -> 1.7.3] WEP Connecting fails
Changed in wicd:
importance: Undecided → High
Revision history for this message
Cem Aydin (cem-aydin) wrote :

> wpa_supplicant is used for all types of encryption, including WEP, WPA,...

Ah, okay then.

> Can you do "sudo ifconfig wlan0 up" and right after that a "sudo wpa_cli -i wlan0 status; echo $?" to be sure? Thx :-)

Yes, of course:

~~~
$ sudo ifconfig wlan0 up
$ sudo wpa_cli -i wlan0 status;echo $?
Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory
255
$ sudo ifconfig wlan0
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
        ether 94:39:e5:50:23:5f txqueuelen 1000 (Ethernet)
        RX packets 49 bytes 16863 (16.4 KiB)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 102 bytes 17153 (16.7 KiB)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
~~~

I tried it with wicd service stopped and running, both times the same.
I tried what happens when the downgraded wicd is installed and when the wlan is not connected, I get the same:

~~~
$ sudo ifconfig wlan0
wlan0: flags=4098<BROADCAST,MULTICAST> mtu 1500
        ether 94:39:e5:50:23:5f txqueuelen 1000 (Ethernet)
        RX packets 313 bytes 105306 (102.8 KiB)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 396 bytes 59979 (58.5 KiB)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

$ sudo ifconfig wlan0 up
$ sudo ifconfig wlan0
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
        ether 94:39:e5:50:23:5f txqueuelen 1000 (Ethernet)
        RX packets 313 bytes 105306 (102.8 KiB)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 396 bytes 59979 (58.5 KiB)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

$ sudo wpa_cli -i wlan0 status;echo $?
Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory
255
~~~

However, when the wlan is connected, by clicking "Connect" in wicd-client first (which works with the downgraded version), I get:

~~~
$ sudo ifconfig wlan0
wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
        inet 192.168.0.126 netmask 255.255.255.0 broadcast 192.168.0.255
        inet6 fe80::cb8:f5e0:14e9:f8e5 prefixlen 64 scopeid 0x20<link>
        ether 94:39:e5:50:23:5f txqueuelen 1000 (Ethernet)
        RX packets 323 bytes 108098 (105.5 KiB)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 417 bytes 62385 (60.9 KiB)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

$ sudo wpa_cli -i wlan0 status;echo $?
bssid=e0:91:f5:78:7c:f0
freq=0
ssid=WG-WLAN
id=0
mode=station
pairwise_cipher=WEP-40
group_cipher=WEP-40
key_mgmt=NONE
wpa_state=COMPLETED
ip_address=192.168.0.126
address=94:39:e5:50:23:5f
uuid=554f2c74-3abb-5580-80ad-3da1e1e3b3d5
0
~~~

So the error before connecting is basically the same...

Changed in wicd:
status: New → Confirmed
status: Confirmed → Triaged
Changed in wicd:
assignee: nobody → Tom Van Braeckel (tomvanbraeckel)
Revision history for this message
Ron Coit (ron-coit) wrote :

I can confirm I have the same problem with 1.7.3-1 on Arch Linux, but I would like to add that I can connect to WPA/WAP2 connection without problem. It only fails on WEP connections. It seems to connect and then reports bad password and fails, but a WPA/WPA2 connection will connect everytime.

Changed in wicd:
importance: High → Critical
Revision history for this message
CarloSalvatore (carlosalvatore) wrote :

Hi, I use Gentoo and can confirm what Ron Coit says. Yet, when connecting, wicd complains of bad password if it were WPA not WEP. I have tried setting Key Index in [0,4] without success.

Revision history for this message
Pieter Leclerc (pieterleclerc-deactivatedaccount) wrote :

Do you feel like trying to do a "git bisect" between 1.7.2.4 and 1.7.3 to find the commit that breaks everything? It's like magic :-)
The "translation update" commits can be skipped ("git bisect skip") because I don't think they caused the regression...

Revision history for this message
Axel Beckert (xtaran) wrote :

Hi Tom,

I'm affected via Debian by that issue, too. You suggest to use "git bisect", but https://code.launchpad.net/~wicd-devel/wicd/experimental only seems to have a Bazaar, not a Git repo. And there's no wicd repository on https://github.com/tomvanbraeckel?tab=repositories

Revision history for this message
Axel Beckert (xtaran) wrote :

I think it has something to do with parsing and writing wpa_supplicant configurations.

One of my affected networks uses WEP and surely had a working configuration of type "wep-hex" before. Nevertheless the network showed up in wicd-curses as "wpa-hex" instead of "wep-hex". After fixing this via wicd-curses, I had the line "wep_key0=S_KEY" (literally, i.e. an unexpanded variable name inside the wpa_supplicant configuration file. Of course wpa_supplicant choked on it:

Successfully initialized wpa_supplicant
Line 7: Invalid WEP key 0 '$_KEY'.
Line 7: failed to parse wep_key0 '$_KEY'.
Line 11: failed to parse network block.
Failed to read or parse configuration '/var/lib/wicd/configurations/00…'.

Removing that aforementioned line (the correct key was still in line 8, also prefixed with "wep_key0="), wpa_supplicant can easily authenticate in that network again. Doesn't help for wicd as it seems to rewrite that file again before connecting and adds the" $_KEY" again.

Changed in wicd (Debian):
status: Unknown → Confirmed
Revision history for this message
Axel Beckert (xtaran) wrote :

https://bazaar.launchpad.net/~wicd-devel/wicd/experimental/revision/822 seems to be the culprit: It adds a loop over all matches and writes the line with the current match being replaced to the file. If there are two matches in the line, the line is written back twice: Once with only the first match being replaced and one line with both matches being replaced.

This didn't hurt in the initial case (https://launchpad.net/bugs/897399) where there is no syntax validation and the second line seems to simply overrule the first line. But wpa_supplicant seems to try to validate hex keys if they're really hex and that's probably the reason why only WEP cases are affected.

Should be easy to solve by moving the actual appending outside the loop. I'll try to come up with a patch.

Revision history for this message
Axel Beckert (xtaran) wrote : Re: [Bug 1419464] Re: [1.7.2.4 -> 1.7.3] WEP Connecting fails

Hi Tom,

Axel Beckert wrote:
> Should be easy to solve by moving the actual appending outside the loop.
> I'll try to come up with a patch.

Attached the patch as I plan to incorporate in the Debian package. See also
https://anonscm.debian.org/cgit/collab-maint/wicd.git/commit/?id=5011ee16899043e9cd19d2d30dcb3360d0884a59

  Regards, Axel
--
 ,''`. | Axel Beckert <email address hidden>, http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
  `- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE

Axel Beckert (xtaran)
tags: added: patch
Changed in wicd (Debian):
status: Confirmed → Fix Released
Changed in wicd:
milestone: none → 1.7.4
Changed in wicd:
status: Triaged → Fix Committed
Revision history for this message
Pieter Leclerc (pieterleclerc-deactivatedaccount) wrote :

Hi Axel, thanks a lot for the patch. It's been applied and released now in version 1.7.4 :-) Thanks again!

Changed in wicd:
status: Fix Committed → Fix Released
Revision history for this message
Emtone (tong--hui) wrote :

Hello
I have the same problem use wicd version of 1.7.4

Revision history for this message
Emtone (tong--hui) wrote :

The wicd log:
2018/09/07 01:22:57 :: Flushing the routing table...
Error for wireless request "Set Bit Rate" (8B20) :
    SET failed on device %s ; No such device.
2018/09/07 01:22:58 :: Putting interface up...
2018/09/07 01:23:00 :: Generating psk...
2018/09/07 01:23:00 :: Attempting to authenticate...
Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory
2018/09/07 01:23:01 :: connect result is failed
2018/09/07 01:23:01 :: exiting connection thread
2018/09/07 01:23:01 :: Sending connection attempt result bad_pass
dhcpcd not running
Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory
dhcpcd not running
Failed to connect to non-global ctrl_ifname: eth0 error: No such file or directory

Revision history for this message
Emtone (tong--hui) wrote :

yeeloong /var/log/wicd # wpa_cli -i wlan0 status
Failed to connect to non-global ctrl_ifname: wlan0 error: No such file or directory

Revision history for this message
Emtone (tong--hui) wrote :

yeeloong /var/log/wicd # ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
        inet 192.168.1.106 netmask 255.255.255.0 broadcast 192.168.1.255
        inet6 fe80::223:8bff:fef2:b812 prefixlen 64 scopeid 0x20<link>
        inet6 fec0::346e:a907:77c0:623e prefixlen 64 scopeid 0x40<site>
        ether 00:23:8b:f2:b8:12 txqueuelen 1000 (Ethernet)
        RX packets 31942 bytes 28502956 (27.1 MiB)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 17418 bytes 2709195 (2.5 MiB)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
        inet 127.0.0.1 netmask 255.0.0.0
        inet6 ::1 prefixlen 128 scopeid 0x10<host>
        loop txqueuelen 0 (Local Loopback)
        RX packets 392 bytes 30920 (30.1 KiB)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 392 bytes 30920 (30.1 KiB)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
        ether 00:17:c4:4e:06:a8 txqueuelen 1000 (Ethernet)
        RX packets 0 bytes 0 (0.0 B)
        RX errors 0 dropped 0 overruns 0 frame 0
        TX packets 0 bytes 0 (0.0 B)
        TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.