You are not logged in.

#1 2015-06-02 00:04:33

nick7td
Member
Registered: 2015-06-01
Posts: 4

Can't Connect to Wifi with wpa_supplicant

I am trying to connect to wifi but keep receiving the same error. I was able to use wifi after my install, but now am no longer able to connect.

Output of lspci -k:

 03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 96)
	Subsystem: Intel Corporation Device c220
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi 

Output of iw dev :

 phy#0
	Interface wlp3s0
		ifindex 2
		wdev 0x1
		addr 84:3a:4b:c9:ab:98
		type managed 

Command that I keep getting an error with:

 sudo wpa_supplicant -B -i wlp3s0 -c <(wpa_passphrase "HOME-6AA7" "MyPassword")  

Error :

 Successfully initialized wpa_supplicant
Failed to open config file '/dev/fd/63', error: No such file or directory
Failed to read or parse configuration '/dev/fd/63'. 

Also running :

 systemctl status wpa_supplicant@wlp3s0 

gives the following error:

 * wpa_supplicant@wlp3s0.service - WPA supplicant daemon (interface-specific version)
   Loaded: loaded (/usr/lib/systemd/system/wpa_supplicant@.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2015-06-01 19:26:56 UTC; 2s ago
  Process: 4903 ExecStart=/usr/bin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-%I.conf -i%I (code=exited, status=255)
 Main PID: 4903 (code=exited, status=255)

Jun 01 19:26:56 HOST systemd[1]: Started WPA supplicant daemon (interface-specific version).
Jun 01 19:26:56 HOST systemd[1]: Starting WPA supplicant daemon (interface-specific version)...
Jun 01 19:26:56 HOST wpa_supplicant[4903]: Successfully initialized wpa_supplicant
Jun 01 19:26:56 HOST wpa_supplicant[4903]: Failed to open config file '/etc/wpa_supplicant...ory
Jun 01 19:26:56 HOST wpa_supplicant[4903]: Failed to read or parse configuration '/etc/wpa...f'.
Jun 01 19:26:56 HOST systemd[1]: wpa_supplicant@wlp3s0.service: main process exited, code.../n/a
Jun 01 19:26:56 HOST systemd[1]: Unit wpa_supplicant@wlp3s0.service entered failed state.
Jun 01 19:26:56 HOST systemd[1]: wpa_supplicant@wlp3s0.service failed.
Hint: Some lines were ellipsized, use -l to show in full. 

I have already tried following the wiki and searching the forum but cannot seem to find a fix that works for me.

Offline

#2 2015-06-02 03:01:30

Tutti
Member
Registered: 2015-02-26
Posts: 117

Re: Can't Connect to Wifi with wpa_supplicant

nick7td wrote:

Command that I keep getting an error with:

 sudo wpa_supplicant -B -i wlp3s0 -c <(wpa_passphrase "HOME-6AA7" "MyPassword")

That should be run as root, not sudo.

Offline

#3 2015-06-02 03:06:17

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Can't Connect to Wifi with wpa_supplicant

Tutti is right.  What exactly did you search for?

EDIT: the link above is only for a shorthand reference to the bundle of links I collected the last time this issue arose.  The direct tone I took in that thread was for that thread only so don't read anything into that here.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2015-06-02 04:16:05

nick7td
Member
Registered: 2015-06-01
Posts: 4

Re: Can't Connect to Wifi with wpa_supplicant

Great. Ran the command as root and it works now. Thanks for the help.

However, still have the same error for :

 systemctl status wpa_supplicant@wlp3s0 

Any ideas here?

Offline

#5 2015-06-02 04:19:41

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: Can't Connect to Wifi with wpa_supplicant

nick7td wrote:

However, still have the same error for :

 systemctl status wpa_supplicant@wlp3s0 

Any ideas here?

Write the output of wpa_passphrase to /etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#6 2015-06-02 10:49:59

nick7td
Member
Registered: 2015-06-01
Posts: 4

Re: Can't Connect to Wifi with wpa_supplicant

After I copied that output, and I ran 

 systemctl daemon-reload 

the output of

 systemctl status wpa_supplicant@wlp3s0 

changed to

 * wpa_supplicant@wlp3s0.service - WPA supplicant daemon (interface-specific version)
   Loaded: loaded (/usr/lib/systemd/system/wpa_supplicant@.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2015-06-02 06:13:22 UTC; 26min ago
 Main PID: 301 (code=exited, status=255)

Jun 02 06:13:22 HOST systemd[1]: Started WPA supplicant daemon (interface-specific version).
Jun 02 06:13:22 HOST systemd[1]: Starting WPA supplicant daemon (interface-specific version)...
Jun 02 06:13:22 HOST wpa_supplicant[301]: Successfully initialized wpa_supplicant
Jun 02 06:13:22 HOST wpa_supplicant[301]: Failed to open config file '/etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf', error: No such file or directory
Jun 02 06:13:22 HOST wpa_supplicant[301]: Failed to read or parse configuration '/etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf'.
Jun 02 06:13:22 HOST systemd[1]: wpa_supplicant@wlp3s0.service: main process exited, code=exited, status=255/n/a
Jun 02 06:13:22 HOST systemd[1]: Unit wpa_supplicant@wlp3s0.service entered failed state.
Jun 02 06:13:22 HOST systemd[1]: wpa_supplicant@wlp3s0.service failed. 

It seems that /etc/wpa_supplicant/wpa_supplicant-wlp3s0.conf is not found as a file. But it clearly exists in my directory.

Offline

#7 2015-06-02 11:28:34

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: Can't Connect to Wifi with wpa_supplicant

I'm confused, are you running wpa_supplicant manually or as a systemd service?  You've only posted here about using it manually.  I've ignored your systemctl output as it seemed irrelevant.  You should *either* run wpa_supplicant manually or as a service, if you try to do both at least one will fail.  If you start it manually, you cannot see the status from systemctl.

EDIT: I just read the last couple of posts - now I'm a bit less confused, but the above notes still stand.  Did you kill the manually started wpa_supplicant process and/or reboot after configuring the systemd service?

Last edited by Trilby (2015-06-02 11:32:19)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#8 2015-06-02 21:15:50

nick7td
Member
Registered: 2015-06-01
Posts: 4

Re: Can't Connect to Wifi with wpa_supplicant

I'm sorry for the confusion. I have tried setting it up both ways since I haven't been able to get it working either way and must have gotten them mixed up.

Offline

Board footer

Powered by FluxBB