| Summary: | net-misc/networkmanager fails to connect to wifi due to multiple wpa_supplicant instances | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Pavel Stratil <pavel.stratil-jun> |
| Component: | New packages | Assignee: | Robert Piasek (RETIRED) <dagger> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | nirbheek, qiaomuf, steev |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Pavel Stratil
2011-03-25 10:23:52 UTC
I noticed that vrrr ~ # ps aux | grep wpa_supplicant root 5588 0.0 0.0 20320 656 ? Ss 08:56 0:00 /usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -C /var/run/wpa_supplicant -W -B -i wlan0 -P /var/run/wpa_supplicant-wlan0.pid root 5595 0.0 0.0 10656 356 ? Ss 08:56 0:00 /usr/bin/wpa_cli -a /etc/wpa_supplicant/wpa_cli.sh -p /var/run/wpa_supplicant -i wlan0 -P /var/run/wpa_cli-wlan0.pid -B root 5881 0.1 0.0 20320 1752 ? S 08:56 0:00 /usr/sbin/wpa_supplicant -u root 7034 0.0 0.0 8000 820 pts/1 S+ 08:59 0:00 grep --colour=auto wpa_supplicant vrrr ~ # kill -9 5588 does the magic. it seems that for some reason NM starts multiple wpa_supplicant instances and things mess up. Maybe you ought to look in /etc/wpa_supplicant/ for stale files? Jeroen: sorry for the late reply. actually there was a file that held nothing more then something like # Generated by NetworkManager ... except for the comment it was empty so I never considered it a problem. to my surprice, deleting this file helped! still this leaves me somewhat doubtful - a file with nothing but a comment and some blank lines causes nm to launch wpa_supplicant several times? my itch is scratched but i'm not sure if this shouldnt be kept open till nm can clean up after itself what does "rc-status | grep wpa_supplicant" tell you? NetworkManager does not start any wpa_supplicant by itself. It's relying on dbus service activation (if one program requests a services over dbus which is not running, dbus will start this service automatically). Dbus only starts "/usr/sbin/wpa_supplicant -u". Check /usr/share/dbus-1/system-services/fi* for more info. Whatever starts "/usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -C" has nothing to do with networkmanager. I presume it might be /etc/init.d/net.wlan0 or /etc/init.d/wpa_supplicant Based on log you posted - it seems NetworkManager is fighting with /etc/init.d/net.wlan0 or /etc/init.d/wpa_supplicant for access. To make it work, please make sure to rc-update del both net.eth0 and wpa_supplicant. If that won't fix your problem, please re-open this ticket. |