You are not logged in.

#1 2013-03-28 15:41:03

mrtn
Member
Registered: 2013-03-25
Posts: 4

net-auto-wireless.service Fails to Start

Hi!

I've had this problem for a couple months now. I've searched, and looked in the forums for answers, but unsuccessfully. I found threads with people with similar problems, but they are either not the same problem, or their solutions don't work for me. net-auto-wireless.service worked just fine when I first installed Arch last December. But when I realized there was no GUI for it, I decided to switch to NetworkManager. When I failed at configuring (later I realized it was just a capitalization error) NetworkManager, I switched back to netcfg, which was when the issue started.

netcfg works just fine, but it kind of defeats it's purpose since net-auto-wireless does not automatically connect me to my wireless profiles when they're in range. so I run # netcfg <my profile> whenever I need to get online (wireless. I don't have a wired connection available). And yes, wlan0 is up.


Here's my output when I try start net-auto-wireless.service (after enabling netcfg.service and net-auto-wireless.service, of course):


# systemctl start net-auto-wireless.service
Job for net-auto-wireless.service failed. See 'systemctl status net-auto-wireless.service' and 'journalctl -xn' for details.

and when i try what the output suggested:

# systemctl status net-auto-wireless.service

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 Thu 2013-03-28 08:25:39 PDT; 5min ago
         Process: 1341 ExecStart=/usr/bin/netcfg-wpa_actiond $WIRELESS_INTERFACE (code=exited, status=1/FAILURE)

Mar 28 08:25:38 localhost netcfg-wpa_actiond[1341]: Successfully initialized wpa_supplicant
Mar 28 08:25:38 localhost netcfg-wpa_actiond[1341]: ctrl_iface exists and seems to be in use - cannot override it
Mar 28 08:25:38 localhost netcfg-wpa_actiond[1341]: Delete '/run/wpa_supplicant/wlan0' manually if it is not used anymore
Mar 28 08:25:38 localhost netcfg-wpa_actiond[1341]: Failed to initialize control interface '/run/wpa_supplicant'.
Mar 28 08:25:38 localhost netcfg-wpa_actiond[1341]: You may have another wpa_supplicant process already running or the file was
Mar 28 08:25:38 localhost netcfg-wpa_actiond[1341]: left by an unclean termination of wpa_supplicant in which case you will need
Mar 28 08:25:38 localhost netcfg-wpa_actiond[1341]: to manually remove this file before starting wpa_supplicant again.
Mar 28 08:25:39 localhost systemd[1]: net-auto-wireless.service: control process exited, code=exited status=1
Mar 28 08:25:39 localhost systemd[1]: Failed to start Provides automatic netcfg wireless connection.
Mar 28 08:25:39 localhost systemd[1]: Unit net-auto-wireless.service entered failed state

running journalctl didn't return anything that looked usefull, but here it is anyway.

#sudo journalctl -xn
-- Logs begin at Fri 2012-12-21 13:51:31 PST, end at Thu 2013-03-28 08:34:09 PDT. --
Mar 28 08:33:42 localhost ntpd[485]: 205.233.73.201 interface 192.168.2.6 -> (none)
Mar 28 08:33:42 localhost ntpd[485]: 65.49.70.244 interface 192.168.2.6 -> (none)
Mar 28 08:33:42 localhost ntpd[485]: 72.8.140.222 interface 192.168.2.6 -> (none)
Mar 28 08:33:42 localhost ntpd[485]: 169.229.70.95 interface 192.168.2.6 -> (none)
Mar 28 08:33:42 localhost ntpd[485]: Deleting interface #6 wlan0, fe80::21b:b1ff:fe40:df15#123, interface stats: received=0,
Mar 28 08:33:42 localhost ntpd[485]: peers refreshed
Mar 28 08:33:44 localhost sudo[1843]: mrtn : TTY=pts/1 ; PWD=/home/mrtn ; USER=root ; COMMAND=/usr/bin/journalctl -xn
Mar 28 08:33:44 localhost sudo[1843]: pam_unix(sudo:session): session opened for user root by mrtn(uid=0)
Mar 28 08:34:07 localhost sudo[1843]: pam_unix(sudo:session): session closed for user root
Mar 28 08:34:09 localhost sudo[1847]: mrtn : TTY=pts/1 ; PWD=/home/mrtn ; USER=root ; COMMAND=/usr/bin/journalctl -xn

I know my wireless profiles are set up right, since I can connect to them. This is all the info I could think of providing, but if anyone needs more, I'll gladly provide it.

Thanks big_smile

Offline

#2 2013-03-28 17:40:58

opt1mus
Member
From: UK
Registered: 2011-12-31
Posts: 212
Website

Re: net-auto-wireless.service Fails to Start

mrtn wrote:

[...] or their solutions don't work for me. [...]

Which ones would those be, so we're not stomping on trodden ground?

I had a similar problem, which was solved by adding the following line to netcfg;

DHCP_TIMEOUT=30

Offline

#3 2013-03-30 20:58:59

mrtn
Member
Registered: 2013-03-25
Posts: 4

Re: net-auto-wireless.service Fails to Start

Hi, sorry for the long delay in my response.

I tried this, which suggests replacing netcfg with NetworkManager. I tried installing network manager again last week, but It could not stay connected to my network. It would disconnect after a few minutes and I would have to reconnect manually (which would also fail at times).

I also tried this other solution, which suggests a replacement file for /etc/systemd/system/net-auto-wireless.service.
\

I've read on other solutions that tell me to fix configurations that may have been erroneously set up.

opt1mus wrote:

I had a similar problem, which was solved by adding the following line to netcfg;

DHCP_TIMEOUT=30

opt1mus, would I add that line at the very end of /etc/conf.d/netcfg ? I'm going to try that now.

Thanks for the response.

Offline

Board footer

Powered by FluxBB