You are not logged in.
I was tweaking my routing settings using
ip route
while troubleshooting my openvpn setup and somehow broke my WiFi configuration.
All netctl commands give the following error:
Failed to connect to non-global ctrl_ifname: wlp3s0 error: No such file or directory
Profile 'profile name' does not exist or is not available
Network Manager also fails.
I tried running wpa_supplicant but it does not seem to be working either.
The following occurs when connecting:
[ 4894.251226] wlp3s0: authenticate with 00:25:9c:d8:d7:91
[ 4894.254573] wlp3s0: send auth to 00:25:9c:d8:d7:91 (try 1/3)
[ 4894.257485] wlp3s0: authenticated
[ 4894.257970] wlp3s0: associate with 00:25:9c:d8:d7:91 (try 1/3)
[ 4894.361435] wlp3s0: associate with 00:25:9c:d8:d7:91 (try 2/3)
[ 4894.366611] wlp3s0: RX AssocResp from 00:25:9c:d8:d7:91 (capab=0x411 status=0 aid=1)
[ 4894.369127] wlp3s0: associated
[ 4894.369264] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready
[ 4895.997374] wlp3s0: deauthenticating from 00:25:9c:d8:d7:91 by local choice (Reason: 3=DEAUTH_LEAVING)
[ 4896.002923] iwlwifi 0000:03:00.0: Failed to find station
[ 4896.002943] wlp3s0: failed to remove key (2, ff:ff:ff:ff:ff:ff) from hardware (-22)
This occurs across multiple networks.
SOLVED:
The issue seems to have been bad systemd calls in /etc/netctl/hooks which caused the underlying netctl-auto service to auto-disconnect. I'm now able to connect over wifi.
Last edited by thoss (2017-06-04 21:57:20)
Offline
I tried running wpa_supplicant but it does not seem to be working either.
^ This is useless, please provide (much) more information — we need to know the *exact* command(s) used and the full content of any error messages returned.
https://bbs.archlinux.org/viewtopic.php?id=57855
The output of this command would probably also be useful:
systemctl list-unit-files --state=enabled
Jin, Jîyan, Azadî
Offline
Sure.
I'm not running NetworkManager, wicd, connman, dhcpcd, or anything else. I use netctl, netctl-auto, and ifplugd.
% systemctl list-unit-files --state=enabled :(
UNIT FILE STATE
acpid.service enabled
autovt@.service enabled
avahi-daemon.service enabled
bluetooth.service enabled
cronie.service enabled
cups-browsed.service enabled
dbus-org.bluez.service enabled
dbus-org.freedesktop.Avahi.service enabled
getty@.service enabled
haveged.service enabled
icecast.service enabled
lm_sensors.service enabled
mcelog.service enabled
netctl-auto@.service enabled
netctl-ifplugd@.service enabled
netctl.service enabled
netctl@ethernet\x2ddhcp.service enabled
ntpd.service enabled
openvpn-client@.service enabled
preload.service enabled
smartd.service enabled
sshd.service enabled
tor.service enabled
avahi-daemon.socket enabled
remote-fs.target enabled
fstrim.timer enabled
26 unit files listed.
Running wpa_supplicant in foreground mode:
sudo wpa_supplicant -i wlp3s0 -p /run/wpa_supplicant -c /etc/wpa_supplicant/wpa.conf
[sudo] password for tom:
Successfully initialized wpa_supplicant
And wpa_cli:
sudo wpa_cli
wpa_cli v2.6
Copyright (c) 2004-2016, Jouni Malinen <j@w1.fi> and contributors
This software may be distributed under the terms of the BSD license.
See README for more details.
Selected interface 'p2p-dev-wlp3s0'
Interactive mode
> scan
OK
> scan
scan scan_interval scan_results
> scan_results
bssid / frequency / signal level / flags / ssid
>
I have seen this now across more wireless networks. No wireless networks work.
Something has happened that seems to cause spontaneous, immediate deauth.
It occurred after issuing various ip route commands, including commands to replace the default, yesterday, regarding my other topic on openvpn. I also would have manually brought up and down the tun0 interface using ip link. Looking at my history I never issued an ip link set command to my wireless interface until the problem had already manifested.
Offline
sudo wpa_supplicant -i wlp3s0 -p /run/wpa_supplicant -c /etc/wpa_supplicant/wpa.conf [sudo] password for tom: Successfully initialized wpa_supplicant
Looks like that worked, did you check `iwconfig` to see if the interface had associated with the access point?
EDIT: sorry, the error messages already posted are from that command aren't they?
How did you create the configuration file?
What is your hardware?
lspci -knn | grep -iA2 net
Last edited by Head_on_a_Stick (2017-05-31 07:58:08)
Jin, Jîyan, Azadî
Offline
% lspci -knn | grep -iA2 net :(
00:19.0 Ethernet controller [0200]: Intel Corporation 82579LM Gigabit Network Connection [8086:1502] (rev 04)
Subsystem: Lenovo Device [17aa:21ce]
Kernel driver in use: e1000e
--
03:00.0 Network controller [0280]: Intel Corporation Wireless 7260 [8086:08b1] (rev 73)
Subsystem: Intel Corporation Dual Band Wireless-AC 7260 [8086:4070]
Kernel driver in use: iwlwifi
,,, but it also fails in the same ways (instant deauth) on a usb adapter using an atheros chipset.
wpa_supplicant followed by wpa_cli doesn't turn up anything when I scan (scan_results is blank). I set it up according to the wiki instructions.
Last edited by thoss (2017-06-01 19:53:38)
Offline
Looks like the issue was that I had the old systemd unit file, openvpn@client.service, instead of the newer, openvpn-client@.service, being called by my /etc/netctl/hooks directory. Since there was no config in /etc/openvpn, having been moved to /etc/openvpn/client, the service would fail, and then netctl-auto would disconnect. I'm not entirely sure why the issue only manifested in the past week. Or why an issue also came up in NetworkManager (which I briefly switched over to for testing), or why wpa_supplicant doesn't seem to work, or why there still seems to be a problem with netctl-ifplugd...
Last edited by thoss (2017-06-04 21:55:22)
Offline