You are not logged in.

#1 2014-04-05 15:44:18

c0dehunter
Member
Registered: 2014-02-27
Posts: 6

netctl-auto failing - must enable WiFi via wifi-menu

I would like to auto connect to my wifi on startup (wlp2s0-NSA4). However, the service fails and I must run sudo wifi-menu and select the profile by hand and then it starts to work. Why?

Some clues:

[primoz@c0debox-arch ~]$ systemctl --type=service
UNIT                                  LOAD   ACTIVE   SUB     JOB   DESCRIPTION
...
netctl-auto@wlan0.service             loaded inactive dead    start Automatic wireless network connection using netctl profiles
netctl-auto@wlp2s0.service            loaded failed   failed        Automatic wireless network connection using netctl profiles
...
[primoz@c0debox-arch ~]$ netctl list
  wlp2s0-eduroam
  wlp2s0-NSA4
  wlp2s0-c0de-spot
[primoz@c0debox-arch ~]$ sudo netctl-auto list
** returns nothing **
[primoz@c0debox-arch ~]$ systemctl status netctl-auto@wlp2s0.service 
netctl-auto@wlp2s0.service - Automatic wireless network connection using netctl profiles
   Loaded: loaded (/usr/lib/systemd/system/netctl-auto@.service; enabled)
   Active: failed (Result: exit-code) since Sat 2014-04-05 17:59:13 CEST; 1min 41s ago
     Docs: man:netctl.special(7)
  Process: 349 ExecStart=/usr/bin/netctl-auto start %I (code=exited, status=1/FAILURE)

Apr 05 17:59:12 c0debox-arch netctl-auto[349]: Included profile 'wlp2s0-NSA4'
Apr 05 17:59:12 c0debox-arch netctl-auto[349]: Included profile 'wlp2s0-c0de-spot'
Apr 05 17:59:12 c0debox-arch netctl-auto[349]: Successfully initialized wpa_supplicant
Apr 05 17:59:12 c0debox-arch netctl-auto[349]: Line 5: Invalid passphrase length 0 (expected: 8..63) '"'.
Apr 05 17:59:12 c0debox-arch netctl-auto[349]: Line 5: failed to parse psk '""'.
Apr 05 17:59:12 c0debox-arch netctl-auto[349]: Line 8: failed to parse network block.
Apr 05 17:59:12 c0debox-arch netctl-auto[349]: Failed to read or parse configuration '/run/network/wpa_supplicant_wlp2s0.conf'.
Apr 05 17:59:13 c0debox-arch systemd[1]: netctl-auto@wlp2s0.service: control process exited, code=exited status=1
Apr 05 17:59:13 c0debox-arch systemd[1]: Failed to start Automatic wireless network connection using netctl profiles.
Apr 05 17:59:13 c0debox-arch systemd[1]: Unit netctl-auto@wlp2s0.service entered failed state.
[primoz@c0debox-arch ~]$ sudo cat /etc/netctl/wlp2s0-NSA4 
Description='Automatically generated profile by wifi-menu'
Interface=wlp2s0
Connection=wireless
Security=wpa
ESSID=NSA4
IP=dhcp
Key=herewasmykey

Last edited by c0dehunter (2014-04-05 16:06:36)

Offline

#2 2014-04-06 06:26:02

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: netctl-auto failing - must enable WiFi via wifi-menu

See the "SPECIAL QUOTING RULES" in netctl.profile(5).


1000

Offline

Board footer

Powered by FluxBB