You are not logged in.

#1 2011-01-02 02:55:23

Buce
Member
From: Duluth, Minnesota, US
Registered: 2009-03-17
Posts: 23

[solved] netcfg issue -- wpa_ctrl_open: No such file or directory

I'm trying to get netcfg to work on a clean install of Arch on my Lenovo Thinkpad Edge 14"/E40. Here's my card:

# lshw -C network
  *-network               
       description: Wireless interface
       product: WiFi Link 1000 Series
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlan0
       version: 00
       serial: 00:26:c7:4b:5e:8a
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlagn driverversion=2.6.36-ARCH firmware=128.50.3.1 build 13488 latency=0 link=no multicast=yes wireless=IEEE 802.11bgn
       resources: irq:43 memory:f0500000-f0501fff

(output of lsmod is further down)

I can connect manually using iwconfig+wpa_supplicant+dhcpcd just fine, but if I try to connect using netcfg, it errors out. Everything in the troubleshooting section of the netcfg wiki page either pertains to misconfigured drivers (that can't be it if I can connect manually, can it?) or being out of range (I'm sitting right next to my router). So here I am.

Furthermore, after the failed attempt to connect via netcfg, doing a 'dhcpcd wlan0 -k' and connecting manually again gives me an intermittent network connection.

Here's a full attempt I made to reproduce the problem after a clean reboot:

# iwconfig wlan0
wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          
# ifconfig wlan0 up
# iwconfig wlan0
wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=14 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off

# wpa_supplicant -B -Dwext -i wlan0 -c /usr/local/etc/netman/matrix.wpa 
# iwconfig wlan0
wlan0     IEEE 802.11bgn  ESSID:"TheMatrix"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: 00:24:7B:F8:F9:58   
          Bit Rate=1 Mb/s   Tx-Power=14 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=70/70  Signal level=-24 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

# dhcpcd wlan0
dhcpcd[4465]: version 5.2.9 starting
dhcpcd[4465]: wlan0: rebinding lease of 192.168.0.3
dhcpcd[4465]: wlan0: acknowledged 192.168.0.3 from 192.168.0.1
dhcpcd[4465]: wlan0: checking for 192.168.0.3
dhcpcd[4465]: wlan0: leased 192.168.0.3 for 86400 seconds
dhcpcd[4465]: forked to background, child pid 4494
# ping google.com
PING google.com (209.85.225.99) 56(84) bytes of data.
64 bytes from iy-in-f99.1e100.net (209.85.225.99): icmp_seq=1 ttl=55 time=41.9 ms
64 bytes from iy-in-f99.1e100.net (209.85.225.99): icmp_seq=2 ttl=55 time=41.8 ms
64 bytes from iy-in-f99.1e100.net (209.85.225.99): icmp_seq=3 ttl=55 time=41.8 ms
64 bytes from iy-in-f99.1e100.net (209.85.225.99): icmp_seq=4 ttl=55 time=42.6 ms
64 bytes from iy-in-f99.1e100.net (209.85.225.99): icmp_seq=5 ttl=55 time=41.8 ms
64 bytes from iy-in-f99.1e100.net (209.85.225.99): icmp_seq=6 ttl=55 time=42.1 ms
64 bytes from iy-in-f99.1e100.net (209.85.225.99): icmp_seq=7 ttl=55 time=42.8 ms
64 bytes from iy-in-f99.1e100.net (209.85.225.99): icmp_seq=8 ttl=55 time=41.8 ms
64 bytes from iy-in-f99.1e100.net (209.85.225.99): icmp_seq=9 ttl=55 time=41.8 ms
64 bytes from iy-in-f99.1e100.net (209.85.225.99): icmp_seq=10 ttl=55 time=41.8 ms
^C
--- google.com ping statistics ---
10 packets transmitted, 10 received, 0% packet loss, time 9012ms
rtt min/avg/max/mdev = 41.819/42.071/42.865/0.349 ms
# # so wireless works...
# cat /etc/network.d/matrix
CONNECTION='wireless'
DESCRIPTION='The Matrix'
INTERFACE='wlan0'
SECURITY='wpa-config'
WPA_CONF='/usr/local/etc/netman/matrix.wpa'
IP='dhcp'
# netcfg -v
netcfg v2.5.4
# NETCFG_DEBUG=yes netcfg matrix
DEBUG: Loading profile matrix
DEBUG: Configuring interface wlan0
:: matrix up                                                             [BUSY] DEBUG: status reported to profile_up as: 
DEBUG: Loading profile matrix
DEBUG: Configuring interface wlan0
DEBUG: wireless_up stop_wpa wlan0
DEBUG: wireless_up ifup
DEBUG: wireless_up Configuration generated at /usr/local/etc/netman/matrix.wpa
DEBUG: wireless_up start_wpa wlan0 /usr/local/etc/netman/matrix.wpa wext 
DEBUG: wireless_up wpa_check
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or directory
 > WPA Authentication/Association Failed 
DEBUG: profile_up connect failed
                                                                         [FAIL] 
# dmesg | tail -n 30
lo: Disabled Privacy Extensions
eth0: no IPv6 routers present
ADDRCONF(NETDEV_UP): wlan0: link is not ready
wlan0: authenticate with 00:24:7b:f8:f9:58 (try 1)
wlan0: authenticated
wlan0: associate with 00:24:7b:f8:f9:58 (try 1)
wlan0: RX AssocResp from 00:24:7b:f8:f9:58 (capab=0x411 status=0 aid=1)
wlan0: associated
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Intel AES-NI instructions are not detected.
padlock: VIA PadLock not detected.
wlan0: no IPv6 routers present
wlan0: deauthenticating from 00:24:7b:f8:f9:58 by local choice (reason=3)
cfg80211: Calling CRDA to update world regulatory domain
wlan0: authenticate with 00:24:7b:f8:f9:58 (try 1)
wlan0: authenticated
wlan0: associate with 00:24:7b:f8:f9:58 (try 1)
wlan0: RX AssocResp from 00:24:7b:f8:f9:58 (capab=0x411 status=0 aid=1)
wlan0: associated
wlan0: deauthenticating from 00:24:7b:f8:f9:58 by local choice (reason=3)
cfg80211: Calling CRDA to update world regulatory domain
wlan0: authenticate with 00:24:7b:f8:f9:58 (try 1)
wlan0: deauthenticating from 00:24:7b:f8:f9:58 by local choice (reason=3)
wlan0: authenticate with 00:24:7b:f8:f9:58 (try 1)
wlan0: authenticated
wlan0: associate with 00:24:7b:f8:f9:58 (try 1)
wlan0: RX AssocResp from 00:24:7b:f8:f9:58 (capab=0x411 status=0 aid=1)
wlan0: associated
wlan0: deauthenticating from 00:24:7b:f8:f9:58 by local choice (reason=3)
cfg80211: Calling CRDA to update world regulatory domain
# ping google.com
ping: unknown host google.com
# ping 192.168.0.1
connect: Network is unreachable
# ps aux | grep dhc
root      4218  0.0  0.0   8204   592 ?        Ss   19:47   0:00 /sbin/dhcpcd -q eth0
root      4494  0.0  0.0   8204   592 ?        Ss   20:09   0:00 dhcpcd wlan0
root      5169  0.0  0.0   8152   952 pts/1    S+   20:37   0:00 grep dhc
# dhcpcd -k wlan0
dhcpcd[5254]: sending signal 1 to pid 4494
dhcpcd[5254]: waiting for pid 4494 to exit

Been paying attention so far? Here's where it gets weird. After failing with netcfg above, I'm going to reconnect manually, then type out 'ping google.com' as fast as I can. Then, after taking a few moments to copy that output to this post, I'll do "date;ping google.com" over and over so you can see how my connection is going in and out.

# wpa_supplicant -B -Dwext -i wlan0 -c /usr/local/etc/netman/matrix.wpa
# dhcpcd wlan0
dhcpcd[5297]: version 5.2.9 starting
dhcpcd[5297]: wlan0: broadcasting for a lease
dhcpcd[5297]: wlan0: offered 192.168.0.3 from 192.168.0.1
dhcpcd[5297]: wlan0: acknowledged 192.168.0.3 from 192.168.0.1
dhcpcd[5297]: wlan0: checking for 192.168.0.3
dhcpcd[5297]: wlan0: carrier lost
dhcpcd[5297]: wlan0: carrier acquired
dhcpcd[5297]: wlan0: broadcasting for a lease
dhcpcd[5297]: wlan0: offered 192.168.0.3 from 192.168.0.1
dhcpcd[5297]: wlan0: acknowledged 192.168.0.3 from 192.168.0.1
dhcpcd[5297]: wlan0: checking for 192.168.0.3
dhcpcd[5297]: wlan0: leased 192.168.0.3 for 86400 seconds
dhcpcd[5297]: forked to background, child pid 5335
# ping google.com
PING google.com (209.85.225.147) 56(84) bytes of data.
64 bytes from iy-in-f147.1e100.net (209.85.225.147): icmp_seq=1 ttl=55 time=45.1 ms
64 bytes from iy-in-f147.1e100.net (209.85.225.147): icmp_seq=2 ttl=55 time=44.3 ms
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
^C
--- google.com ping statistics ---
5 packets transmitted, 2 received, 60% packet loss, time 4011ms
rtt min/avg/max/mdev = 44.344/44.723/45.102/0.379 ms
# date;ping google.com
Sat Jan  1 20:39:10 CST 2011
PING google.com (209.85.225.147) 56(84) bytes of data.
64 bytes from iy-in-f147.1e100.net (209.85.225.147): icmp_seq=1 ttl=55 time=45.0 ms
64 bytes from iy-in-f147.1e100.net (209.85.225.147): icmp_seq=2 ttl=55 time=45.1 ms
64 bytes from iy-in-f147.1e100.net (209.85.225.147): icmp_seq=3 ttl=55 time=44.8 ms
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
^C
--- google.com ping statistics ---
6 packets transmitted, 3 received, 50% packet loss, time 5009ms
rtt min/avg/max/mdev = 44.878/45.000/45.111/0.095 ms
# date;ping google.com
Sat Jan  1 20:39:16 CST 2011
ping: unknown host google.com
# date;ping google.com
Sat Jan  1 20:39:17 CST 2011
ping: unknown host google.com
# date;ping google.com
Sat Jan  1 20:39:18 CST 2011
ping: unknown host google.com
# date;ping google.com
Sat Jan  1 20:39:19 CST 2011
PING google.com (209.85.225.106) 56(84) bytes of data.
64 bytes from iy-in-f106.1e100.net (209.85.225.106): icmp_seq=1 ttl=55 time=44.9 ms
64 bytes from iy-in-f106.1e100.net (209.85.225.106): icmp_seq=2 ttl=55 time=45.1 ms
64 bytes from iy-in-f106.1e100.net (209.85.225.106): icmp_seq=3 ttl=55 time=44.8 ms
64 bytes from iy-in-f106.1e100.net (209.85.225.106): icmp_seq=4 ttl=55 time=44.4 ms
64 bytes from iy-in-f106.1e100.net (209.85.225.106): icmp_seq=5 ttl=55 time=44.9 ms
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
^C
--- google.com ping statistics ---
8 packets transmitted, 5 received, 37% packet loss, time 7014ms
rtt min/avg/max/mdev = 44.410/44.857/45.128/0.275 ms
# date;ping google.com
Sat Jan  1 20:39:27 CST 2011
ping: unknown host google.com
# date;ping google.com
Sat Jan  1 20:39:28 CST 2011
ping: unknown host google.com
# date;ping google.com
Sat Jan  1 20:39:29 CST 2011
ping: unknown host google.com
# date;ping google.com
Sat Jan  1 20:39:29 CST 2011
PING google.com (209.85.225.104) 56(84) bytes of data.
64 bytes from iy-in-f104.1e100.net (209.85.225.104): icmp_seq=1 ttl=55 time=45.2 ms
64 bytes from iy-in-f104.1e100.net (209.85.225.104): icmp_seq=2 ttl=55 time=44.5 ms
64 bytes from iy-in-f104.1e100.net (209.85.225.104): icmp_seq=3 ttl=55 time=45.4 ms
64 bytes from iy-in-f104.1e100.net (209.85.225.104): icmp_seq=4 ttl=55 time=44.4 ms
64 bytes from iy-in-f104.1e100.net (209.85.225.104): icmp_seq=5 ttl=55 time=44.3 ms
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
^C
--- google.com ping statistics ---
8 packets transmitted, 5 received, 37% packet loss, time 7011ms
rtt min/avg/max/mdev = 44.387/44.822/45.499/0.529 ms
# dmesg | tail -n 30
wlan0: associated
wlan0: deauthenticating from 00:24:7b:f8:f9:58 by local choice (reason=3)
cfg80211: Calling CRDA to update world regulatory domain
wlan0: authenticate with 00:24:7b:f8:f9:58 (try 1)
wlan0: deauthenticating from 00:24:7b:f8:f9:58 by local choice (reason=3)
wlan0: authenticate with 00:24:7b:f8:f9:58 (try 1)
wlan0: authenticated
wlan0: associate with 00:24:7b:f8:f9:58 (try 1)
wlan0: RX AssocResp from 00:24:7b:f8:f9:58 (capab=0x411 status=0 aid=1)
wlan0: associated
wlan0: deauthenticating from 00:24:7b:f8:f9:58 by local choice (reason=3)
cfg80211: Calling CRDA to update world regulatory domain
wlan0: authenticate with 00:24:7b:f8:f9:58 (try 1)
wlan0: deauthenticating from 00:24:7b:f8:f9:58 by local choice (reason=3)
wlan0: authenticate with 00:24:7b:f8:f9:58 (try 1)
wlan0: deauthenticating from 00:24:7b:f8:f9:58 by local choice (reason=3)
wlan0: authenticate with 00:24:7b:f8:f9:58 (try 1)
wlan0: authenticated
wlan0: associate with 00:24:7b:f8:f9:58 (try 1)
wlan0: RX AssocResp from 00:24:7b:f8:f9:58 (capab=0x411 status=0 aid=1)
wlan0: associated
wlan0: deauthenticating from 00:24:7b:f8:f9:58 by local choice (reason=3)
cfg80211: Calling CRDA to update world regulatory domain
wlan0: authenticate with 00:24:7b:f8:f9:58 (try 1)
wlan0: deauthenticating from 00:24:7b:f8:f9:58 by local choice (reason=3)
wlan0: authenticate with 00:24:7b:f8:f9:58 (try 1)
wlan0: authenticated
wlan0: associate with 00:24:7b:f8:f9:58 (try 1)
wlan0: RX AssocResp from 00:24:7b:f8:f9:58 (capab=0x411 status=0 aid=1)
wlan0: associated

All this output is foreign to me; I usually use a script I wrote to connect wirelessly. It uses the same low-level commands I'm familiar with, and supports profiles in a manner similar to netcfg, but it's horribly spaghetti-coded and it would be nice to use something I don't have to maintain wink. So, anybody got any ideas what my issue might be?

Oh yes, and because the wiki page recommends this:

# lsmod
Module                  Size  Used by
ipv6                  281833  20 
ext2                   63599  1 
arc4                    1378  2 
uvcvideo               61404  0 
ecb                     2041  2 
videodev               64318  1 uvcvideo
v4l1_compat            15578  2 uvcvideo,videodev
v4l2_compat_ioctl32    10212  1 videodev
snd_seq_dummy           1431  0 
snd_seq_oss            28760  0 
iwlagn                304281  0 
snd_seq_midi_event      5436  1 snd_seq_oss
snd_seq                50082  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          5297  3 snd_seq_dummy,snd_seq_oss,snd_seq
joydev                 10055  0 
snd_hda_codec_intelhdmi    10645  1 
iwlcore               110506  1 iwlagn
mac80211              196159  2 iwlagn,iwlcore
snd_hda_codec_realtek   275887  1 
snd_pcm_oss            39221  0 
i915                  321187  3 
usb_storage            42540  0 
cfg80211              143110  3 iwlagn,iwlcore,mac80211
snd_mixer_oss          17106  1 snd_pcm_oss
drm_kms_helper         25963  1 i915
drm                   175314  3 i915,drm_kms_helper
snd_hda_intel          22285  0 
snd_hda_codec          79384  3 snd_hda_codec_intelhdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               6110  1 snd_hda_codec
snd_pcm                71921  3 snd_pcm_oss,snd_hda_intel,snd_hda_codec
snd_timer              19265  2 snd_seq,snd_pcm
snd_page_alloc          7249  2 snd_hda_intel,snd_pcm
i2c_algo_bit            4911  1 i915
thinkpad_acpi          60039  0 
rfkill                 15882  2 cfg80211,thinkpad_acpi
snd                    57562  12 snd_seq_oss,snd_seq,snd_seq_device,snd_hda_codec_realtek,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer,thinkpad_acpi
soundcore               5969  1 snd
led_class               2331  1 thinkpad_acpi
nvram                   5805  1 thinkpad_acpi
processor              25936  0 
r8169                  35911  0 
mii                     3826  1 r8169
video                  19305  1 i915
output                  1940  1 video
iTCO_wdt               10669  0 
i2c_i801                8550  0 
thermal                12242  0 
ac                      3105  0 
i2c_core               18726  6 videodev,i915,drm_kms_helper,drm,i2c_algo_bit,i2c_i801
ehci_hcd               36988  0 
evdev                   8519  8 
iTCO_vendor_support     1801  1 iTCO_wdt
usbcore               137570  4 uvcvideo,usb_storage,ehci_hcd
intel_agp              29459  2 i915
shpchp                 26453  0 
pci_hotplug            24319  1 shpchp
intel_ips              11404  0 
battery                10231  0 
button                  4834  1 i915
sg                     25652  0 
psmouse                52592  0 
serio_raw               4486  0 
ext3                  125464  3 
jbd                    46640  1 ext3
mbcache                 5722  2 ext2,ext3
sr_mod                 14954  0 
cdrom                  35851  1 sr_mod
sd_mod                 25856  3 
ahci                   20353  2 
libahci                17982  1 ahci
libata                156316  2 ahci,libahci
scsi_mod              124891  5 usb_storage,sg,sr_mod,sd_mod,libata
dm_mod                 66662  12 

Last edited by Buce (2011-01-03 01:08:41)

Offline

#2 2011-01-02 23:51:11

Buce
Member
From: Duluth, Minnesota, US
Registered: 2009-03-17
Posts: 23

Re: [solved] netcfg issue -- wpa_ctrl_open: No such file or directory

Okay, some more googling pinpointed the source of the intermittent network connectivity: I haven't been killing off the old wpa_supplicant processes. But, I'm still getting the same netcfg errors when I start clean with no dhcpcd's or wpa_supplicant's running.

If I watch the processes that are running while netcfg tries to start, I see wpa_supplicant being called correctly (with just an extra -P /var/path/to/some/file.pid compared to what I'm running), but dhcpcd doesn't start at all. Does anone know what's going on between those two commands?

Offline

#3 2011-01-03 00:48:24

Buce
Member
From: Duluth, Minnesota, US
Registered: 2009-03-17
Posts: 23

Re: [solved] netcfg issue -- wpa_ctrl_open: No such file or directory

Got it! took a hint from https://bbs.archlinux.org/viewtopic.php?pid=620863 and added "ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel" to the file being supplied to wpa_supplicant.

Offline

Board footer

Powered by FluxBB