You are not logged in.

#1 2017-07-07 15:49:07

nmiculinic
Member
Registered: 2015-12-25
Posts: 63

i3, NetworkManager and nm-applet issues

I'm using i3 as my DE, and NetworkManager for internet setup. For GUI stuff I have nm-applet. I'm trying to connect to the network, but it fails without asking me for password. This is systemd log for NetworkManager.service:

Jul 07 17:41:55 protagonist NetworkManager[526]: <info>  [1499442115.0577] device (wlp1s0): Activation: starting connection 'dlink-A70F' (33262291-78a5-4b36-b1ad-e088c1a5002f)
Jul 07 17:41:55 protagonist NetworkManager[526]: <info>  [1499442115.0578] audit: op="connection-activate" uuid="33262291-78a5-4b36-b1ad-e088c1a5002f" name="dlink-A70F" pid=3785 uid=1000 resu
Jul 07 17:41:55 protagonist NetworkManager[526]: <info>  [1499442115.0579] device (wlp1s0): state change: disconnected -> prepare (reason 'none') [30 40 0]
Jul 07 17:41:55 protagonist NetworkManager[526]: <info>  [1499442115.0580] manager: NetworkManager state is now CONNECTING
Jul 07 17:41:55 protagonist NetworkManager[526]: <info>  [1499442115.0708] device (wlp1s0): set-hw-addr: reset MAC address to 18:A6:F7:F1:79:7A (preserve)
Jul 07 17:41:55 protagonist NetworkManager[526]: <info>  [1499442115.0885] device (wlp1s0): supplicant interface state: inactive -> disabled
Jul 07 17:41:55 protagonist NetworkManager[526]: <info>  [1499442115.0887] device (wlp1s0): state change: prepare -> config (reason 'none') [40 50 0]
Jul 07 17:41:55 protagonist NetworkManager[526]: <info>  [1499442115.0888] device (wlp1s0): Activation: (wifi) access point 'dlink-A70F' has security, but secrets are required.
Jul 07 17:41:55 protagonist NetworkManager[526]: <info>  [1499442115.0888] device (wlp1s0): state change: config -> need-auth (reason 'none') [50 60 0]
Jul 07 17:41:55 protagonist NetworkManager[526]: <warn>  [1499442115.0923] device (wlp1s0): No agents were available for this request.
Jul 07 17:41:55 protagonist NetworkManager[526]: <info>  [1499442115.0924] device (wlp1s0): state change: need-auth -> failed (reason 'no-secrets') [60 120 7]
Jul 07 17:41:55 protagonist NetworkManager[526]: <info>  [1499442115.0924] manager: NetworkManager state is now CONNECTED_LOCAL
Jul 07 17:41:55 protagonist NetworkManager[526]: <warn>  [1499442115.0926] device (wlp1s0): Activation: failed for connection 'dlink-A70F'
Jul 07 17:41:55 protagonist NetworkManager[526]: <info>  [1499442115.0929] device (wlp1s0): state change: failed -> disconnected (reason 'none') [120 30 0]
Jul 07 17:41:55 protagonist NetworkManager[526]: <info>  [1499442115.1027] device (wlp1s0): set-hw-addr: set MAC address to E6:E3:9B:A8:39:35 (scanning)
Jul 07 17:41:55 protagonist NetworkManager[526]: <info>  [1499442115.1466] device (wlp1s0): supplicant interface state: disabled -> inactive

I have a feeling I somehow misconfigured my i3 setup, or network manager or something, yet I'm am unsure where to proceed from this nor know what exactly to google. NetworkManagers works fine with another, already pre-setup wifi, but I cannot connect to this new one.

Offline

#2 2017-07-07 19:49:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,672

Re: i3, NetworkManager and nm-applet issues

Install a polkit agent

Offline

#3 2017-07-09 11:41:42

nmiculinic
Member
Registered: 2015-12-25
Posts: 63

Re: i3, NetworkManager and nm-applet issues

I've installed xfce-polkit, run it as both user and root, however, I see no difference compared to the original problem.

Offline

#4 2017-07-09 11:49:14

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: i3, NetworkManager and nm-applet issues

Can we please see the full output of:

systemctl list-unit-files --state=enabled

If NM works with other networks then this probably isn't relevant but it doesn't hurt to check.

Can you associate with the problematic access point using `wpa-supplicant` alone?

Offline

#5 2017-07-09 12:05:40

nmiculinic
Member
Registered: 2015-12-25
Posts: 63

Re: i3, NetworkManager and nm-applet issues

UNIT FILE                                   STATE  
autofs.service                              enabled
autovt@.service                             enabled
dbus-org.freedesktop.NetworkManager.service enabled
dbus-org.freedesktop.nm-dispatcher.service  enabled
docker.service                              enabled
getty@.service                              enabled
jackett.service                             enabled
NetworkManager-dispatcher.service           enabled
NetworkManager.service                      enabled
sonarr.service                              enabled
sshd.service                                enabled
transmission.service                        enabled
remote-fs.target                            enabled

13 unit files listed.

Can you associate with the problematic access point using `wpa-supplicant` alone?

Will do later and reply. I've manged to connect to it sometimes when using

sudo modprobe iwlwifi 11n_disable=1

but it's hit or miss. Yesterday I manage to get it working, today I sometimes could connect but had no internet.

The device in question is WiFi repeater.

Offline

#6 2017-07-09 18:44:21

nmiculinic
Member
Registered: 2015-12-25
Posts: 63

Re: i3, NetworkManager and nm-applet issues

Kinda solver (not sure should I mark it as solved).

I've managed to connect via network manager to wifi, but couldn't reach the internet. I did some inspecting, trying to ping google's DNS servers (8.8.8.8.) to no avail. After looking at wifi interface setup I've noticed inet6 setup, but no inet for IPv4. Thus I started poking more.

However, for some reasons I forgot exactly, I had /etc/resolv.conf marked as immutable (+i). My hypothesis was during DHCP phase DHCP client tried modifying /etc/resolv.conf, failed and didn't finish setting up wlan interface properly. When I marked it as mutable, things started working properly.

Nevertheless, the whole thing seems weird to me, that I haven't had problems before (with other wifi routers, and 802.1X ethernet&wlan in student dormitory) and no explicit errors regarding immutability of /etc/resolv.conf

As I said in the beginning, I'm not sure should I mark it as solved as I had no explicit error messages regarding /etc/resolv.conf immutability and it worked fine before. The only difference than before it's I'm connecting to wifi repeater which does network mumbo-jumbo for its function.

Offline

#7 2017-07-09 18:51:00

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,672

Re: i3, NetworkManager and nm-applet issues

Well your original issue was about the lack of a password prompt, which I assume you have solved (however might be nice to elaborate on how exactly) by that definition the original issue is solved any problem that has to do with keeping the existing connection alive, doesn't have anything to do with the original problem.

Offline

#8 2017-07-09 19:16:40

nmiculinic
Member
Registered: 2015-12-25
Posts: 63

Re: i3, NetworkManager and nm-applet issues

Well your original issue was about the lack of a password prompt, which I assume you have solved (however might be nice to elaborate on how exactly) by that definition the original issue is solved any problem that has to do with keeping the existing connection alive, doesn't have anything to do with the original problem.

Actually that one I haven't solved(but it takes lower precedence to having no internet). I've tried with xfce-polkit, but it had no effect.

Offline

#9 2017-09-30 23:43:21

dragon788
Member
Registered: 2017-09-30
Posts: 1

Re: i3, NetworkManager and nm-applet issues

The polkit agent might help, but for secure wireless networks I believe gnome-keyring usually holds the encrypted passphrases, so try adding `exec --no-startup-id gnome-keyring-daemon` before your `exec --no-startup-id nm-applet` and see if that helps? I'm actually looking to solve this same issue and from the various posts I read this seems like the most logical solution.

Offline

Board footer

Powered by FluxBB