You are not logged in.

#1 2013-02-09 22:54:24

trthatch
Member
Registered: 2013-02-09
Posts: 3

[SOLVED] Wireless auto-connect not working

Hi!

I'm really new to Linux in general, so I've spent a few hours trying to figure this out (searching the forums, etc) but haven't had any success.

When I first installed Arch, everything seemed to work fine. It would automatically connect to my home wireless (after enabling net-auto-wireless in sytemctl). I went to a local library, and connected to their wifi. After rebooting at the library I noticed that it didn't connect automatically to the library network. I wasn't sure if I had done something wrong or if I had just failed to set something up... but then it also would not automatically connect at home now.

I have to use wifi-menu every time I reboot. I ran systemctl and saw this:

systemctl failed list:

UNIT                      LOAD   ACTIVE SUB    DESCRIPTION
net-auto-wireless.service loaded failed failed Provides automatic netcfg wireless connection
netcfg.service            loaded failed failed Netcfg multi-profile daemon

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.

2 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

netcfg status:

netcfg.service - Netcfg multi-profile daemon
	  Loaded: loaded (/usr/lib/systemd/system/netcfg.service; enabled)
	  Active: failed (Result: exit-code) since Sat 2013-02-09 17:33:33 EST; 4min 53s ago
	 Process: 253 ExecStart=/usr/bin/netcfg-daemon start (code=exited, status=1/FAILURE)

Feb 09 17:33:33 arch netcfg-daemon[253]: No recorded netcfg state to restore

net-auto-wireless status:

net-auto-wireless.service - Provides automatic netcfg wireless connection
	  Loaded: loaded (/usr/lib/systemd/system/net-auto-wireless.service; enabled)
	  Active: failed (Result: exit-code) since Sat 2013-02-09 17:33:34 EST; 4min 56s ago
	 Process: 252 ExecStart=/usr/bin/netcfg-wpa_actiond $WIRELESS_INTERFACE (code=exited, status=1/FAILURE)

Feb 09 17:33:33 arch netcfg-wpa_actiond[252]: wlan0-
Feb 09 17:33:33 arch netcfg-wpa_actiond[252]: wlan0-BELL369
Feb 09 17:33:33 arch netcfg-wpa_actiond[252]: Successfully initialized wpa_supplicant
Feb 09 17:33:33 arch netcfg-wpa_actiond[252]: Line 11: Invalid passphrase length 0 (expected: 8..63) '"'.
Feb 09 17:33:33 arch netcfg-wpa_actiond[252]: Line 11: failed to parse psk '""'.
Feb 09 17:33:33 arch netcfg-wpa_actiond[252]: Line 13: failed to parse network block.
Feb 09 17:33:33 arch netcfg-wpa_actiond[252]: Failed to read or parse configuration '/run/network/wpa.wlan0/wpa.conf'.
Feb 09 17:33:34 arch systemd[1]: net-auto-wireless.service: control process exited, code=exited status=1
Feb 09 17:33:34 arch systemd[1]: Failed to start Provides automatic netcfg wireless connection.
Feb 09 17:33:34 arch systemd[1]: Unit net-auto-wireless.service entered failed state

Any idea what I might have done or what's happening? I hate feeling helpless, but I'm not sure what to look into to resolve my problem.

Thanks!

Last edited by trthatch (2013-02-10 02:09:41)

Offline

#2 2013-02-09 23:20:16

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [SOLVED] Wireless auto-connect not working

Feb 09 17:33:33 arch netcfg-wpa_actiond[252]: Line 11: Invalid passphrase length 0 (expected: 8..63) '"'.
Feb 09 17:33:33 arch netcfg-wpa_actiond[252]: Line 11: failed to parse psk '""'.
Feb 09 17:33:33 arch netcfg-wpa_actiond[252]: Line 13: failed to parse network block.
Feb 09 17:33:33 arch netcfg-wpa_actiond[252]: Failed to read or parse configuration '/run/network/wpa.wlan0/wpa.conf'.
Feb 09 17:33:34 arch systemd[1]: net-auto-wireless.service: control process exited, code=exited status=1
Feb 09 17:33:34 arch systemd[1]: Failed to start Provides automatic netcfg wireless connection.
Feb 09 17:33:34 arch systemd[1]: Unit net-auto-wireless.service entered failed state

Seems like your config file(s) is corrupted somehow... Assuming you have a default netcfg profile to be loaded at system startup, what happens if you try and load it manually? Do you get similar error messages?


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#3 2013-02-10 00:00:34

trthatch
Member
Registered: 2013-02-09
Posts: 3

Re: [SOLVED] Wireless auto-connect not working

bohoomil wrote:

Seems like your config file(s) is corrupted somehow... Assuming you have a default netcfg profile to be loaded at system startup, what happens if you try and load it manually? Do you get similar error messages?

Everything should be pretty standard. All I've done is follow instructions in the (complete) beginners guide.


I haven't added any default profiles... so I'm not sure about my default profile. There's a "wlan0-" entry in addition to the library network and home network profiles... but it's empty.

When I use

netcfg wlan0-

it says WPA Authentication/Association failed... but it's an empty profile so I wouldn't expect it to do anything.

My local network is BELL369. When I used

netcfg wlan0-BELL369

it gave no errors and my wireless worked fine.

If the configuration files are corrupted, how would I replace them?

This is the contents of my netcfg conf file:

# Enable these netcfg profiles at boot time.
#   - prefix an entry with a '@' to background its startup
#   - set to 'last' to restore the profiles running at the last shutdown
#   - set to 'menu' to present a menu (requires the dialog package)
# Network profiles are found in /etc/network.d
NETWORKS=(last)

# Specify the name of your wired interface for net-auto-wired
WIRED_INTERFACE="eth0"

# Specify the name of your wireless interface for net-auto-wireless
WIRELESS_INTERFACE="wlan0"

# Array of profiles that may be started by net-auto-wireless.
# When not specified, all wireless profiles are considered.
#AUTO_PROFILES=("profile1" "profile2")

Offline

#4 2013-02-10 00:38:48

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [SOLVED] Wireless auto-connect not working

Try adding 'wlan0-BELL369' to

# Array of profiles that may be started by net-auto-wireless.
# When not specified, all wireless profiles are considered.
#AUTO_PROFILES=("profile1" "profile2")
AUTO_PROFILES=("wlan0-BELL369")

-- and see if you get connected automatically.


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#5 2013-02-10 01:05:10

trthatch
Member
Registered: 2013-02-09
Posts: 3

Re: [SOLVED] Wireless auto-connect not working

Strange. It seems to work when the network profile is specified in the auto list. I didn't change it earlier because the description lead me to believe that since my wireless profiles already existed, it would automatically connect to them as per the description.

Is something getting in the way that prevents it from trying all the profiles?

Thanks by the way, bohoomil.

Offline

#6 2013-02-10 01:53:23

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [SOLVED] Wireless auto-connect not working

I'm glad you've got it working.

I believe netcfg won't do anything automatically if it is not instructed so... (As far as I can tell, this is a common behaviour shared by majority of network management applications.) You can use, however, the 'last' variable in /etc/conf.d/netcfg (NETWORKS array) that should let you reconnect to the network that has been most recently used. You may want to test such an option as well.


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

Board footer

Powered by FluxBB