View previous topic :: View next topic |
Author |
Message |
adimanav n00b

Joined: 14 Jan 2011 Posts: 25
|
Posted: Sun Nov 03, 2013 4:30 am Post subject: Unable to add new Wifi networks after migration to systemd |
|
|
I'm using KDE and I recently switched to systemd. Everything's working except I lost the existing Wifi connections set up using networkmanagement. And when I try to connect to a network I get the error popup "Error adding connection: Insufficient privileges". After doing some research on the internet I see that the output of the command Code: | loginctl session-status 1 | does not show NetworkManager. Maybe this is the reason and I don't know how to fix it. Can anyone help out? Thanks in advance. |
|
Back to top |
|
 |
croutch n00b

Joined: 04 Aug 2012 Posts: 32 Location: göteborg
|
Posted: Sun Nov 03, 2013 5:37 am Post subject: |
|
|
Hello.
Have you started networkmanager?
systemctl enable NetworkManager
systemctl start NetworkManager
Sheck if your usersession is active with.
loginctl show-session $XDG_SESSION_ID |
|
Back to top |
|
 |
adimanav n00b

Joined: 14 Jan 2011 Posts: 25
|
Posted: Sun Nov 03, 2013 5:54 am Post subject: |
|
|
Yes I enabled and started NetworkManager. Networkmanagement widget even shows the available WiFi networks. Just errors out on trying to connect to one. Loginctl show-session tells me that the session is active. |
|
Back to top |
|
 |
TomWij Retired Dev


Joined: 04 Jul 2012 Posts: 1553
|
Posted: Sun Nov 03, 2013 6:01 am Post subject: |
|
|
Is your user in the wheel group? Does `journalctl -rb` after trying to connect to a network yield more details? |
|
Back to top |
|
 |
adimanav n00b

Joined: 14 Jan 2011 Posts: 25
|
Posted: Sun Nov 03, 2013 6:32 am Post subject: |
|
|
Yes my user is in the wheel group. Journalctl does not show any info. |
|
Back to top |
|
 |
adimanav n00b

Joined: 14 Jan 2011 Posts: 25
|
Posted: Sun Nov 03, 2013 6:57 am Post subject: |
|
|
I reemerged kde-misc/networkmanagement with debug useflag but no useful info from there. The error is being thrown from the NetworkManager backend. |
|
Back to top |
|
 |
croutch n00b

Joined: 04 Aug 2012 Posts: 32 Location: göteborg
|
|
Back to top |
|
 |
TomWij Retired Dev


Joined: 04 Jul 2012 Posts: 1553
|
Posted: Sun Nov 03, 2013 11:27 am Post subject: |
|
|
Ah, made a wrong guess, though I remember the wheel group being important for other parts; you'll want the plugdev group as well.
See /usr/share/polkit-1/rules.d/01-org.freedesktop.NetworkManager.settings.modify.system.rules as to why that is. |
|
Back to top |
|
 |
adimanav n00b

Joined: 14 Jan 2011 Posts: 25
|
Posted: Sun Nov 03, 2013 11:57 am Post subject: |
|
|
The user is in the plugdev group as well. Things were working fine when I had consolekit. All I did was disable consolekit and add the systemd useflag and update. Then I enabled the various services. Except for WiFi everything else is working. I tried a LAN cable and that works too. So here am I typing from my tablet. I'm emerging gnome to see if that changes anything though I doubt it. I hope I don't have to revert back from systemd. |
|
Back to top |
|
 |
croutch n00b

Joined: 04 Aug 2012 Posts: 32 Location: göteborg
|
|
Back to top |
|
 |
adimanav n00b

Joined: 14 Jan 2011 Posts: 25
|
Posted: Sun Nov 03, 2013 2:31 pm Post subject: |
|
|
Thanks for the info. The user is already in wheel (as recommended by the article) and plugdev group so that should not be the issue. Thing is since NetworkManager was working fine without systemd, should there be any need to mess around with Polkit settings?
For the time being I'm using the wpa_supplicant@ service and manually entered info in the conf file. Of course would be awesome to get NetworkManager working with systemd.
As an aside I see that I'm not able to shutdown or restart the machine from the Gnome menu. Another systemd related issue? |
|
Back to top |
|
 |
TomWij Retired Dev


Joined: 04 Jul 2012 Posts: 1553
|
|
Back to top |
|
 |
croutch n00b

Joined: 04 Aug 2012 Posts: 32 Location: göteborg
|
|
Back to top |
|
 |
adimanav n00b

Joined: 14 Jan 2011 Posts: 25
|
Posted: Mon Nov 04, 2013 5:52 am Post subject: |
|
|
@TomWij, Yes I followed the systemd and Gnome 3.8 upgrade guide. I already had the policykit useflag enabled. Just removed the consolekit useflag and enabled systemd useflag globally.
@croutch, wifi is working with dhcpcd and wpa_supplicant. On using NetworkManager it picks up the available wifi connections but does not let me connect/add any.
With Gnome 3.8 I'm seeing the following error in the logs when I try to connect to a wifi network using nm-applet, "gnome-session[3826]: Window manager warning: Log level 16: Device activation failed: (32) Not authorized to control networking." |
|
Back to top |
|
 |
adimanav n00b

Joined: 14 Jan 2011 Posts: 25
|
Posted: Mon Nov 04, 2013 10:52 am Post subject: |
|
|
I think I found the reason. I'm running hardened Gentoo with CONFIG_GRKERNSEC_PROC set in the kernel. It apparently interferes with systemd. Someone had opened a bug for that https://bugs.freedesktop.org/show_bug.cgi?id=65575
Let me see if things work fine after unselecting that kernel option... |
|
Back to top |
|
 |
adimanav n00b

Joined: 14 Jan 2011 Posts: 25
|
Posted: Mon Nov 04, 2013 11:00 am Post subject: |
|
|
Yup, that solved it!
Thanks folks for your help! |
|
Back to top |
|
 |
TomWij Retired Dev


Joined: 04 Jul 2012 Posts: 1553
|
|
Back to top |
|
 |
TomWij Retired Dev


Joined: 04 Jul 2012 Posts: 1553
|
Posted: Mon Nov 04, 2013 12:50 pm Post subject: |
|
|
Change has been committed by mgorny; the sys-apps/systemd package now checks for it to be disabled, thanks again. |
|
Back to top |
|
 |
|