You are not logged in.

#1 2012-06-10 14:14:41

alexmat
Member
Registered: 2004-12-31
Posts: 100

netcfg fails on boot, but works if restarted

netcfg used to work fine, but now I have to reconnect after a fresh boot.

$ netcfg -r wlan0 
 > Profile not connected
:: wlan0 up                                                                               [BUSY] 
ctrl_iface exists and seems to be in use - cannot override it
Delete '/run/wpa_supplicant/wlan0' manually if it is not used anymore
Failed to initialize control interface '/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

 > wpa_supplicant did not start, possible configuration error
                                                                                                   [FAIL] 
$ netcfg -r wlan0 
 > Profile not connected
:: wlan0 up                                                                               [DONE] 

Any idea what could be causing this? I have net-auto-wireless in my daemons list.

Last edited by alexmat (2012-06-10 14:15:28)

Offline

#2 2012-06-11 05:32:56

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: netcfg fails on boot, but works if restarted

show us your DAEMONS array. You probably are trying to start a network related daemon before the network is up


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2012-06-11 05:35:32

alexmat
Member
Registered: 2004-12-31
Posts: 100

Re: netcfg fails on boot, but works if restarted

DAEMONS=(syslog-ng !network crond dbus net-auto-wired net-auto-wireless @acpid @alsa @openntpd)

Offline

#4 2012-06-12 10:03:24

Firestone
Member
From: Amsterdam
Registered: 2009-07-26
Posts: 20

Re: netcfg fails on boot, but works if restarted

Do you have multiple profiles that use the same interface? I experienced similar problems as of last week(see https://bbs.archlinux.org/viewtopic.php?pid=1111884). In my case, the backgrounding of both profiles caused race conditions, leading the to issue you described.

---EDIT---
Wait, auto-wireless does not use profiles, right... Never mind me then.
Can you provide a dmesg grep on your driver and on your interface?

Last edited by Firestone (2012-06-12 14:01:18)

Offline

#5 2012-06-12 13:32:10

punkeroso
Member
From: Rome, Italy
Registered: 2007-01-19
Posts: 105

Re: netcfg fails on boot, but works if restarted

I'm experiencing this since I use arch on my notebook https://bbs.archlinux.org/viewtopic.php?id=128871
My only solution is to delete manually /var/run/wpa_supplicant/wlan0 and start the deamon.

Offline

#6 2012-07-03 17:43:56

spikeh
Member
Registered: 2012-04-14
Posts: 33

Re: netcfg fails on boot, but works if restarted

I'm experiencing the same problem using net-auto-wireless in my DAEMONS array. Once booted into GNOME, netcfg doesn't think it's connected to anything. First manual attempt will give the wpa_supplicant error and second manual attempt will work.

This seems to be periodic; some boots work fine while others don't. Could this be related to the AP?


Thinkpad T420

Offline

#7 2012-07-10 21:24:07

chibby
Member
Registered: 2012-07-10
Posts: 19

Re: netcfg fails on boot, but works if restarted

Firestone wrote:

...
---EDIT---
Wait, auto-wireless does not use profiles, right... Never mind me then.
Can you provide a dmesg grep on your driver and on your interface?

where else does it get network details and passwords from? my netcfg auto-wl just tries my profiles i guess..

@topic: (only if i'm not wrong - otherwise: nevermind) please post your profile and /etc/conf.d/netcfg smile

Offline

#8 2012-10-31 00:35:25

gdea73
Member
Registered: 2012-07-16
Posts: 34

Re: netcfg fails on boot, but works if restarted

I have the same problem, but using systemd instead of rc.conf.
How do I fix this?

Offline

#9 2012-10-31 01:22:28

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,679

Re: netcfg fails on boot, but works if restarted

Offline

Board footer

Powered by FluxBB