You are not logged in.

#1 2013-04-26 15:42:23

jgreen1tc
Member
From: St. Louis
Registered: 2011-05-16
Posts: 251

[SOLVED] netctl wont auto-connect

Yesterday, I was playing around with e4rat and some kernel line options in GRUB to make my system boot faster. I edited /boot/grub/grub.cfg added "init=/sbin/e4rat-preload", "libahci.ignore_sss=1" and "quiet" to my kernel line as per this and this. My system boot time seemed to speed up, but after a few minutes of operation, my internet connection over eth0 would drop. I couldn't seem to find what was going on so I removed everything I added to the kernel line (save "quiet") and it seemed to fix itself. It might not have even been related as my status bar still showed a connection but I couldn't ping any websites. It could have been an issue with my university's internet. I just figured I would cover all my bases.

The real issue came when I went to connect over wifi. The profile I had been using had worked until then, but all of a sudden it didn't auto-connect. I then removed "quiet" from my kernel parameters and saw that netctl-auto@wlan0.service was failing on boot. Running "sudo netctl start <profile>" gave me errors that basically said that the interface was already up so I ran "sudo ifconfig wlan0 down" followed by "sudo netctl start <profile>" and I got a connection. This did not persist over reboot though. Whenever I reboot, I have to run "sudo netctl start <profile>" in order to connect.

So far, I have checked to see if I have any profiles enabled as per the netctl wiki that would keep netctl-auto@wlan0.service from starting and I don't. That was my previous problem, but I had since disabled all my profiles in order to auto-connect. I know that without more detailed errors at this point it will be hard to help me figure out what's going on, but I won't get out of class for another hour or so. I will post more details when I get to my laptop. Until then, I hope I have been thorough enough to at least give some kind of clue.

Thanks for reading.

Edit: while I can give more detailed errors after I get my laptop, I can't test any suggestions until later today when I get back to my girlfriends house. My laptop has trouble enough trying to connect to wifi at my university which is a different issue. The wifi at my girlfriends house worked fine with netctl previously.

Edit2: Solved the problem by removing a faulty profile generated by wifi-menu. It seems the content in this post was irrelevant.

Last edited by jgreen1tc (2013-04-27 07:36:56)

Offline

#2 2013-04-27 07:08:08

jgreen1tc
Member
From: St. Louis
Registered: 2011-05-16
Posts: 251

Re: [SOLVED] netctl wont auto-connect

Some more info:

From 'dmesg':

...
[   17.015696] systemd[1]: netctl-auto@wlan0.service: control process exited, code=exited status=1
[   17.024807] systemd[1]: MESSAGE=Unit netctl-auto@wlan0.service entered failed state.
[   30.231607] fuse init (API version 7.20)
[  124.270816] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  125.419569] wlan0: authenticate with 64:0f:28:e5:29:b1
[  125.439251] wlan0: send auth to 64:0f:28:e5:29:b1 (try 1/3)
[  125.440708] wlan0: authenticated
[  125.440876] rtl8192se 0000:02:00.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
[  125.440883] rtl8192se 0000:02:00.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
[  125.442339] wlan0: associate with 64:0f:28:e5:29:b1 (try 1/3)
[  125.444286] wlan0: RX AssocResp from 64:0f:28:e5:29:b1 (capab=0x431 status=0 aid=1)
[  125.445305] wlan0: associated
[  125.445318] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

'systemctl status netctl-auto@wlan0.service'

netctl-auto@wlan0.service - Automatic wireless network connection using netctl profiles
   Loaded: loaded (/usr/lib/systemd/system/netctl-auto@.service; enabled)
   Active: failed (Result: exit-code) since Sat 2013-04-27 01:51:20 CDT; 4min 6s ago
     Docs: man:netctl.special(7)
  Process: 635 ExecStart=/usr/bin/netctl-auto start %I (code=exited, status=1/FAILURE)

Apr 27 01:51:26 HAL9000 netctl-auto[635]: Included profile 'wlan0-Lindenwood-Guest'
Apr 27 01:51:26 HAL9000 netctl-auto[635]: Included profile '2wire985'
Apr 27 01:51:26 HAL9000 netctl-auto[635]: Included profile 'wlan0-Lindenwood'
Apr 27 01:51:26 HAL9000 netctl-auto[635]: Included profile 'linksys'
Apr 27 01:51:26 HAL9000 netctl-auto[635]: Included profile 'TinyMonkey'
Apr 27 01:51:26 HAL9000 netctl-auto[635]: Successfully initialized wpa_supplicant
Apr 27 01:51:26 HAL9000 netctl-auto[635]: Line 17: Invalid passphrase length 0 (expected: 8..63) '"'.
Apr 27 01:51:26 HAL9000 netctl-auto[635]: Line 17: failed to parse psk '""'.
Apr 27 01:51:26 HAL9000 netctl-auto[635]: Line 19: failed to parse network block.
Apr 27 01:51:26 HAL9000 netctl-auto[635]: Failed to read or parse configuration '/run/network/wpa_supplicant_wlan0.conf'.

Offline

#3 2013-04-27 07:24:45

jgreen1tc
Member
From: St. Louis
Registered: 2011-05-16
Posts: 251

Re: [SOLVED] netctl wont auto-connect

I google'd the status errors of netctl-auto@wlan0.service and found this thread with the same error. As soon as I read it I realized that the error was coming from a faulty profile for my university's wifi generated by wifi-menu. Deleting the profile solved the issue for me as well.

Thank you, everyone, for reading. I am marking this as solved. Hopefully I gave enough info to help others who have this problem.

Offline

Board footer

Powered by FluxBB