You are not logged in.

#1 2015-07-14 14:15:58

nuksan
Member
Registered: 2014-03-30
Posts: 4

[SOLVED] netctl-auto service fails to start

Up until today I had been using netctl-auto with no trouble. When I encountered a new network, I'd run wifi-menu, input the password, and the profile would get added to /etc/netctl/, and netctl-auto would find it upon future boots and automatically reconnect. Today, though, I had to connect to WPA Enterprise network. This requires manual configuration (afaik), and I can never figure out exactly how to do it well, and it's always a massive pain finding the right settings for the manual config. In any case, I finally got the config file figured out and I can now connect to the network using netctl start wlp3s0-myssid.

However, upon reboots I now find that netctl-auto no longer works. I've tried various combinations of disabling, enabling, and restarting the daemon (systemctl restart netctl-auto@wlp3s0 and ip link set wlp3s0 down), but nothing seems to be working. All outputs shown below are directly taken directly after a reboot, with only the netctl-auto daemon enabled.

It's also worth noting that everything besides netctl-auto seems to be working perfectly, including wifi-menu and the netctl enable wlp3s0-ssid daemon. I also messed around with the ethernet daemon (ifplugd) awhile back, and as you can see it's still running, but it hasn't caused any problems before...

systemctl restart netctl-auto@wlp3s0

Job for netctl-auto@wlp3s0.service failed because the control process exited with error code. See "systemctl status netctl-auto@wlp3s0.service" and "journalctl -xe" for details.

journalctl -xe

Jul 14 08:59:32 technoch sudo[2585]:      nuk : TTY=pts/1 ; PWD=/home/nuk ; USER=root ; COMMAND=/usr/bin/systemctl restart netctl-auto@wlp3s0
Jul 14 08:59:32 technoch sudo[2585]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jul 14 08:59:32 technoch polkitd[1394]: Registered Authentication Agent for unix-process:2635:14292 (system bus name :1.13 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop
Jul 14 08:59:32 technoch systemd[1]: Starting Automatic wireless network connection using netctl profiles...
-- Subject: Unit netctl-auto@wlp3s0.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit netctl-auto@wlp3s0.service has begun starting up.
Jul 14 08:59:32 technoch netctl-auto[2640]: Included profile 'wlp3s0-myssid'
Jul 14 08:59:32 technoch netctl-auto[2640]: Included profile 'wlp3s0-vf300-35a9c6-g'
[[[Other profiles omitted for privacy]]]
Jul 14 08:59:32 technoch netctl-auto[2640]: Included profile 'wlp3s0-eduroam'
Jul 14 08:59:33 technoch systemd[1]: netctl-auto@wlp3s0.service: Control process exited, code=exited status=1
Jul 14 08:59:33 technoch systemd[1]: Failed to start Automatic wireless network connection using netctl profiles.
-- Subject: Unit netctl-auto@wlp3s0.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit netctl-auto@wlp3s0.service has failed.
-- 
-- The result is failed.
Jul 14 08:59:33 technoch systemd[1]: netctl-auto@wlp3s0.service: Unit entered failed state.
Jul 14 08:59:33 technoch systemd[1]: netctl-auto@wlp3s0.service: Failed with result 'exit-code'.
Jul 14 08:59:33 technoch polkitd[1394]: Unregistered Authentication Agent for unix-process:2635:14292 (system bus name :1.13, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US
Jul 14 08:59:33 technoch sudo[2585]: pam_unix(sudo:session): session closed for user root

systemctl status netctl-auto@wlp3s0.service

● netctl-auto@wlp3s0.service - Automatic wireless network connection using netctl profiles
   Loaded: loaded (/usr/lib/systemd/system/netctl-auto@.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2015-07-14 08:59:33 CDT; 3min 25s ago
     Docs: man:netctl.special(7)
  Process: 2640 ExecStart=/usr/bin/netctl-auto start %I (code=exited, status=1/FAILURE)

Jul 14 08:59:32 technoch netctl-auto[2640]: Included profile 'wlp3s0-myssid'
Jul 14 08:59:32 technoch netctl-auto[2640]: Included profile 'wlp3s0-vf300-35a9c6-g'
[[[Other profiles omitted for privacy]]]
Jul 14 08:59:32 technoch netctl-auto[2640]: Included profile 'wlp3s0-eduroam'
Jul 14 08:59:33 technoch systemd[1]: netctl-auto@wlp3s0.service: Control process exited, code=exited status=1
Jul 14 08:59:33 technoch systemd[1]: Failed to start Automatic wireless network connection using netctl profiles.
Jul 14 08:59:33 technoch systemd[1]: netctl-auto@wlp3s0.service: Unit entered failed state.
Jul 14 08:59:33 technoch systemd[1]: netctl-auto@wlp3s0.service: Failed with result 'exit-code'.

The new netctl profile I added (maybe I'm missing something, or have an extra line?):

Description='mydescription'
Interface=wlp3s0
Connection=wireless
Security=wpa-configsection
ESSID=myssid
IP=dhcp
WPAConfigSection=(
    'ssid="nuwnet1x"'
    'key_mgmt=WPA-EAP'
    'eap=PEAP'
    'group=TKIP'
    'pairwise=TKIP'
    'identity="username"'
    'password="password"'
    'phase2="auth=MSCHAPV2"'
)

systemctl --type=service (don't worry about the prey-tracker and systemd-remount-fs services, they've been failing since before netctl-auto stopped working and I just haven't gotten around to fixing them yet)

  UNIT                                                LOAD   ACTIVE SUB     DESCRIPTION
  dbus.service                                        loaded active running D-Bus System Message Bus
  getty@tty1.service                                  loaded active running Getty on tty1
  haveged.service                                     loaded active running Entropy Harvesting Daemon
  kmod-static-nodes.service                           loaded active exited  Create list of required static device nodes for the current kernel
● netctl-auto@wlp3s0.service                          loaded failed failed  Automatic wireless network connection using netctl profiles
  netctl-ifplugd@enp0s25.service                      loaded active running Automatic wired network connection using netctl profiles
  ntpd.service                                        loaded active running Network Time Service
  polkit.service                                      loaded active running Authorization Manager
● prey-tracker.service                                loaded failed failed  Prey Tracker Service
  systemd-backlight@backlight:intel_backlight.service loaded active exited  Load/Save Screen Backlight Brightness of backlight:intel_backlight
  systemd-binfmt.service                              loaded active exited  Set Up Additional Binary Formats
  systemd-fsck@dev-sda2.service                       loaded active exited  File System Check on /dev/sda2
  systemd-journal-flush.service                       loaded active exited  Flush Journal to Persistent Storage
  systemd-journald.service                            loaded active running Journal Service
  systemd-logind.service                              loaded active running Login Service
  systemd-modules-load.service                        loaded active exited  Load Kernel Modules
  systemd-random-seed.service                         loaded active exited  Load/Save Random Seed
● systemd-remount-fs.service                          loaded failed failed  Remount Root and Kernel File Systems
  systemd-rfkill@rfkill0.service                      loaded active exited  Load/Save RF Kill Switch Status of rfkill0
  systemd-rfkill@rfkill1.service                      loaded active exited  Load/Save RF Kill Switch Status of rfkill1
  systemd-rfkill@rfkill2.service                      loaded active exited  Load/Save RF Kill Switch Status of rfkill2
  systemd-sysctl.service                              loaded active exited  Apply Kernel Variables
  systemd-tmpfiles-setup-dev.service                  loaded active exited  Create Static Device Nodes in /dev
  systemd-tmpfiles-setup.service                      loaded active exited  Create Volatile Files and Directories
  systemd-udev-trigger.service                        loaded active exited  udev Coldplug all Devices
  systemd-udevd.service                               loaded active running udev Kernel Device Manager
  systemd-update-utmp.service                         loaded active exited  Update UTMP about System Boot/Shutdown
  systemd-user-sessions.service                       loaded active exited  Permit User Sessions
  systemd-vconsole-setup.service                      loaded active exited  Setup Virtual Console
  tlp.service                                         loaded active exited  TLP system startup/shutdown
  user@1000.service                                   loaded active running User Manager for UID 1000

ip link

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlp3s0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 08:d4:0c:04:1c:17 brd ff:ff:ff:ff:ff:ff
3: enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether 3c:97:0e:87:c5:7f brd ff:ff:ff:ff:ff:ff

Last edited by nuksan (2016-12-27 23:19:52)

Offline

#2 2015-07-14 20:29:28

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,680
Website

Re: [SOLVED] netctl-auto service fails to start

What is the output of:

ls -l /etc/systemd/system/multi-user.target.wants

Offline

#3 2015-07-15 08:24:43

nuksan
Member
Registered: 2014-03-30
Posts: 4

Re: [SOLVED] netctl-auto service fails to start

ls -l /etc/systemd/system/multi-user.target.wants

total 0
lrwxrwxrwx 1 root root 39 Dec 20  2014 haveged.service -> /usr/lib/systemd/system/haveged.service
lrwxrwxrwx 1 root root 44 Jul 14 03:54 netctl-auto@wlp3s0.service -> /usr/lib/systemd/system/netctl-auto@.service
lrwxrwxrwx 1 root root 47 Feb 14 09:06 netctl-ifplugd@enp0s25.service -> /usr/lib/systemd/system/netctl-ifplugd@.service
lrwxrwxrwx 1 root root 36 Jan  7  2015 ntpd.service -> /usr/lib/systemd/system/ntpd.service
lrwxrwxrwx 1 root root 42 Aug 16  2014 prey-tracker.timer -> /usr/lib/systemd/system/prey-tracker.timer
lrwxrwxrwx 1 root root 40 May  1 11:16 remote-fs.target -> /usr/lib/systemd/system/remote-fs.target
lrwxrwxrwx 1 root root 35 Apr 10  2014 tlp.service -> /usr/lib/systemd/system/tlp.service

Offline

#4 2015-07-16 19:33:50

p.janeck
Member
Registered: 2013-06-07
Posts: 2

Re: [SOLVED] netctl-auto service fails to start

Hey, I have a simillar problem. But in my case the netctl-auto service doesn't even tries to start. Normal starting of the netctl profile works. I have opened a thread on the Archlinuxarm forum since I'm runnning arch on a samsung chromebook. Maybe someone has any idea.

Peter

Offline

#5 2015-08-14 02:46:04

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,354

Re: [SOLVED] netctl-auto service fails to start

Caused by tlp, see this bug report - https://bugs.archlinux.org/task/43733


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#6 2016-12-27 23:16:38

nuksan
Member
Registered: 2014-03-30
Posts: 4

Re: [SOLVED] netctl-auto service fails to start

It turned out to be an easy fix for me; I had a typo in one of my config files, /etc/netctl/wlp3s0-eduroam, that I had been experimenting with. It's surprising to me that a type in one config file would ruin all the other config files, but whatever I guess I figured it out.

Last edited by nuksan (2016-12-27 23:18:54)

Offline

#7 2016-12-29 12:49:56

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: [SOLVED] netctl-auto service fails to start

Thanks for sharing, nuksan. However, please don't bump old, solved threads. EDIT: My bad, didn't realise you were the OP.

https://wiki.archlinux.org/index.php/Co … bumping.22

Closing. Re-opening.

Last edited by WorMzy (2016-12-29 15:17:22)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB