You are not logged in.

#1 2013-09-30 06:06:56

farseerfc
Member
From: Osaka
Registered: 2013-01-29
Posts: 20
Website

netctl failed but wpa_supplicant success

I used to connect wifi in my office with wifi-menu normallly with the config file created by wifi-menu (password is coverred):

Description='Automatically generated profile by wifi-menu'
Interface=wlp2s0
Connection=wireless
Security=wpa
ESSID=<network ssid>
IP=dhcp
Key=<password>

But recently I can not connect to the wifi any more.

netctl status shows the following report.

netctl@wlp2s0\x2d<ssid>.service - Networking for netctl profile wlp2s0-<ssid>
   Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
   Active: failed (Result: exit-code) since Mon 2013-09-30 15:00:02 JST; 2min 34s ago
     Docs: man:netctl.profile(5)
  Process: 4783 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)
 Main PID: 4783 (code=exited, status=1/FAILURE)

Sep 30 15:00:01 farseerfc-vaio-arch network[4783]: Starting network profile 'wlp2s0-<ssid>'...
Sep 30 15:00:01 farseerfc-vaio-arch network[4783]: Successfully initialized wpa_supplicant
Sep 30 15:00:01 farseerfc-vaio-arch network[4783]: Line 4: Invalid SSID line 'Unsupported security setting: 'wpa2''.
Sep 30 15:00:01 farseerfc-vaio-arch network[4783]: Line 5: failed to parse network block.
Sep 30 15:00:01 farseerfc-vaio-arch network[4783]: Failed to read or parse configuration '/run/network/wpa_supplicant_wlp2s0.conf'.
Sep 30 15:00:02 farseerfc-vaio-arch network[4783]: The WPA supplicant did not start for interface 'wlp2s0'
Sep 30 15:00:02 farseerfc-vaio-arch network[4783]: Failed to bring the network up for profile 'wlp2s0-<ssid>'
Sep 30 15:00:02 farseerfc-vaio-arch systemd[1]: netctl@wlp2s0\x2d<ssid>.service: main process exited, code=exited, status=1/FAILURE
Sep 30 15:00:02 farseerfc-vaio-arch systemd[1]: Failed to start Networking for netctl profile wlp2s0-<ssid>.
Sep 30 15:00:02 farseerfc-vaio-arch systemd[1]: Unit netctl@wlp2s0\x2d<ssid>.service entered failed state.

But I can successfully connect the wifi with following commands:

sudo bash -c "wpa_passphrase <ssid> <password> | wpa_supplicant -Dwext -iwlp2s0 -c/dev/stdin &"
sudo dhcpcd wlp2s0

How should I diagnose this problem?

Offline

#2 2014-03-30 09:04:25

zaebawski
Member
Registered: 2014-03-30
Posts: 1

Re: netctl failed but wpa_supplicant success

Hello. Is there any updates about the issue? I've faced with the similar problem on arch for ARM (raspberry pi B). I'm using netctl as network manager and it worked well --- connected wi-fi net on boot. But in some moment it just stopped working on boot. But if to do it manually after booting via

netctl start wlan0-sw

it connects and working.
nectl report after the booting:

[root@alarmpi ~]# netctl status wlan0-sw
netctl@wlan0\x2dsw.service - Automatically generated profile by wifi-menu
   Loaded: loaded (/etc/systemd/system/netctl@wlan0\x2dsw.service; enabled)
   Active: failed (Result: exit-code) since Thu 1970-01-01 03:00:17 MSK; 44 years 2 months ago
     Docs: man:netctl.profile(5)
  Process: 235 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)
Main PID: 235 (code=exited, status=1/FAILURE)

Jan 01 03:00:13 alarmpi network[235]: Starting network profile 'wlan0-sw'...
Jan 01 03:00:15 alarmpi network[235]: ioctl[SIOCSIWAP]: Operation not permitted
Jan 01 03:00:15 alarmpi network[235]: ioctl[SIOCSIWENCODEEXT]: Invalid argument
Jan 01 03:00:16 alarmpi network[235]: ioctl[SIOCSIWENCODEEXT]: Invalid argument
Jan 01 03:00:17 alarmpi network[235]: The WPA supplicant did not start for interface 'wlan0'
Jan 01 03:00:17 alarmpi systemd[1]: netctl@wlan0\x2dsw.service: main process exited, code=exited, status=1/FAILURE
Jan 01 03:00:17 alarmpi systemd[1]: Failed to start Automatically generated profile by wifi-menu.
Jan 01 03:00:17 alarmpi systemd[1]: Unit netctl@wlan0\x2dsw.service entered failed state.
Jan 01 03:00:17 alarmpi network[235]: Failed to bring the network up for profile 'wlan0-sw'

Offline

#3 2014-03-30 21:50:30

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: netctl failed but wpa_supplicant success

ARM is a separate distro, please see: https://bbs.archlinux.org/viewtopic.php?id=153431


Closing.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB