FS#23738 - [networkmanager] daemon crashes when selecting wifi (gnome3)

Attached to Project: Arch Linux
Opened by hans (kryo) - Wednesday, 13 April 2011, 01:51 GMT
Last edited by Allan McRae (Allan) - Saturday, 02 June 2012, 12:09 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Ionut Biru (wonder)
Jan Alexander Steffens (heftig)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: networkmanager daemon crashes when selecting wifi access point. wired ethernet connection works fine. This is on a Gnome3 installation.


Additional info:

package versions:
networkmanager-0.8.998-2
network-manager-applet-0.8.998-1

config and/or log files etc.
relevant errors.log info:
Apr 13 08:58:00 localhost NetworkManager[3008]: <error> [1302656280.972695] [nm-session-monitor.c:326] nm_session_monitor_init(): Error loading /var/run/ConsoleKit/database: Error statting file /var/run/ConsoleKit/database: No such file or directory
Apr 13 08:58:00 localhost NetworkManager[3008]: <error> [1302656280.972800] [nm-session-monitor.c:326] nm_session_monitor_init(): Error loading /var/run/ConsoleKit/database: Error statting file /var/run/ConsoleKit/database: No such file or directory
Apr 13 08:58:00 localhost NetworkManager[3008]: <error> [1302656280.994575] [nm-session-monitor.c:326] nm_session_monitor_init(): Error loading /var/run/ConsoleKit/database: Error statting file /var/run/ConsoleKit/database: No such file or directory
Apr 13 08:58:01 localhost NetworkManager[3008]: <error> [1302656281.44684] [nm-session-monitor.c:326] nm_session_monitor_init(): Error loading /var/run/ConsoleKit/database: Error statting file /var/run/ConsoleKit/database: No such file or directory

Steps to reproduce:
Click on nm-applet icon. Select any wifi network. Icon crashes, and daemon isn't running anymore.
This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 02 June 2012, 12:09 GMT
Reason for closing:  No response
Comment by Ionut Biru (wonder) - Wednesday, 13 April 2011, 05:56 GMT
this may be related with removing /var/run from consolekit.

what's your login method? do you use some graphical login manager, startx...
Comment by hans (kryo) - Wednesday, 13 April 2011, 07:12 GMT
I'm using gdm to login. gdm-3.0.0-2 from testing.
Comment by Ionut Biru (wonder) - Wednesday, 13 April 2011, 09:37 GMT
have you rebooted since upgrade or is a new installation?
Comment by hans (kryo) - Wednesday, 13 April 2011, 09:47 GMT
I've upgraded my gnome2 install to gnome3 in testing. Networkmanager didn't work with wifi then, even after rebooting.

I've since done a clean install of arch/gnome3_testing, same experience. NM still doesn't work with wifi.
Comment by Ionut Biru (wonder) - Wednesday, 13 April 2011, 13:37 GMT
do ps aux | grep console-kit-daemon
Comment by hans (kryo) - Wednesday, 13 April 2011, 14:03 GMT
$ ps aux | grep console-kit-daemon
root 3066 0.0 0.0 125156 3636 ? Sl 13:03 0:00 /usr/sbin/console-kit-daemon --no-daemon
hans 8374 0.0 0.0 10400 976 pts/1 S+ 22:00 0:00 grep console-kit-daemon
$
Comment by Ionut Biru (wonder) - Wednesday, 13 April 2011, 14:25 GMT
ok, so everything is fine.

do a ls /var/run/ConsoleKit as root

then paste DAEMONS list. i wonder if networkmanager starts before consolekit and the directory is not there
Comment by hans (kryo) - Wednesday, 13 April 2011, 14:38 GMT
$ sudo ls /var/run/ConsoleKit/
Password:
database pid
$

I'm sorry, what do you mean by DAEMONS list? How do I get that list?
Comment by Ionut Biru (wonder) - Wednesday, 13 April 2011, 14:40 GMT
rc.conf, last line
Comment by hans (kryo) - Wednesday, 13 April 2011, 14:45 GMT
DAEMONS=(syslog-ng @crond dbus hal @networkmanager bluetooth @cpufreq cups @samba)
Comment by Ionut Biru (wonder) - Wednesday, 13 April 2011, 14:49 GMT
i guess this happens because networkmanager starts faster than consolekit creates the directories. A simple /etc/rc.d/networkmanager will fix your issue.

i'll talk with upstream and come up with a fix
Comment by hans (kryo) - Wednesday, 13 April 2011, 14:53 GMT
Ok. Thanks for the help.
Really appreciate it! :)
Comment by Ionut Biru (wonder) - Wednesday, 13 April 2011, 15:05 GMT
i did managed to get the errors but not the crash and connecting to wireless work. Can you provide the crash log please?

/var/log/daemons.log

~/.xsession-errors
Comment by hans (kryo) - Wednesday, 13 April 2011, 15:17 GMT
Please see attached files.
Comment by gianluca mazza (homen3) - Tuesday, 19 April 2011, 09:24 GMT
I've a problem with nm too, my nm daemon doesn't crash, but i can't enter a new wifi connection using the applet menu (it closes) but daemon is still up. Any idea? (gnome3 testing here too)
Comment by hans (kryo) - Wednesday, 20 April 2011, 01:43 GMT
It seems that I was wrong.

Gianluca is right, the daemon is indeed still running. Only the applet crashes.
Comment by Ionut Biru (wonder) - Sunday, 01 May 2011, 11:40 GMT
check out and let me know

networkmanager-0.8.998-3
network-manager-applet-0.8.998-2
Comment by Liberty (helloworld1) - Sunday, 01 May 2011, 23:00 GMT
It happens to me too. I am using xmonad with networkmanager. I got error:
Failed to add/activate connection (32) insufficient permission even upgrading nmto 0.8998-3 and nmapplet to 0.8998-2.
When I click the newly discovered connection, nothing happens. Everything is grayed out when adding connection.
Comment by hans (kryo) - Monday, 02 May 2011, 02:34 GMT
Just updated to networkmanager-0.8.998-3 & network-manager-applet-0.8.998-2

Works beautifully now, on my end.

Thanks! :)
Comment by David Fajardo (davirrirri) - Monday, 02 May 2011, 22:23 GMT
I have the same issue, I have networkmanager-0.8.998-3 & network-manager-applet-0.8.998-2 but don't work for me, and I have NM into Daemons too. Yesterday (1/05/2011) update GNOME 2 to 3 and NM don't let me select my wifi conection: NM open a window asking my password root, I wrote the password but the window crash, the window open again for 1 seg with the message "try again later" and close again. Eth0 works fine.

¿What is the solution?
This is my daemon list: DAEMONS=(syslog-ng dbus hal !network networkmanager netfs crond @cups alsa)
Thanks

Edit: The temporaly solution I found was downgrade networkmanager and network-manager-applet to before version. The appareance is not good but works fine.
Comment by hans (kryo) - Tuesday, 03 May 2011, 04:56 GMT
It seems that this bug isn't entirely solved. Networkmanager applet doesn't seem to detect known accesspoints listed in nm-connection editor. Clicking on the applet will initially list "<unknown>" accesspoint. Clicking on this will cause the applet to crash like before.

To connect to my wifi access point, I need to go to system settigs -> network -> wireless -> Network Name -> "Other...(dropdown list)". This opens "Connect to a hidden wireless network" dialog. This dialog has a "connection" dropdown list, which contains known accesspoints fron nm-connection-editor. Clicking on my accesspoint is how I connect with wifi. After I connect, my accesspoint also gets listed in the network applet.
Comment by David Fajardo (davirrirri) - Tuesday, 03 May 2011, 14:57 GMT
hans: thanks for your answer. Updated again NM and NM-aplet 0.8.9... and follow your steps but I found out the nm-connection-edtitor hasn't my old wifi connection that worked fine in GNOME 2. Update to GNOME 3 removed the GNOME 2 wifi connections, but the others connections like internet broadband, ethernet, vpn are there.

The strange is my wifi conection is shown in the NM applet wifi list, but is the only one doesn't let me connect, I can select other wifi connection and doesn't crash. This issue seems be a bug of NM for the wifi connections that were in GNOME 2: https://bugs.archlinux.org/task/24006

¿What other solution can I try besides to downgrade NM?
Thanks.
Comment by hans (kryo) - Wednesday, 04 May 2011, 07:06 GMT
Sorry man, can't help you as well.

We'll have to wait for the devs...
Comment by David Fajardo (davirrirri) - Wednesday, 04 May 2011, 15:18 GMT
Ok kyro, thanks for your help. I will be attentive to any news about devs.
Comment by Ionut Biru (wonder) - Wednesday, 19 October 2011, 14:16 GMT
is there anything else to do here?

Loading...