You are not logged in.

#1 2020-07-11 22:30:34

tda
Member
Registered: 2020-06-27
Posts: 57

[SOLVED] enabled netctl profile fails at startup, needs re-starting

I created a netctl profile for my wifi connection at home, and enabled it so it will start when I boot my computer. Sometimes, the connection successfully starts at boot. However, unfortunately, a lot of the time the profile fails with the following error:

$ netctl status homeWifi
● netctl@homeWifi.service - home wifi connection
     Loaded: loaded (/usr/lib/systemd/system/netctl@.service; enabled; vendor preset: disabled)
    Drop-In: /etc/systemd/system/netctl@homeWifi.service.d
             └─profile.conf
     Active: failed (Result: exit-code) since Sat 2020-07-11 15:14:02 PDT; 14s ago
       Docs: man:netctl.profile(5)
    Process: 467 ExecStart=/usr/lib/netctl/network start homeWifi (code=exited, status=1/FAILURE)
   Main PID: 467 (code=exited, status=1/FAILURE)

Jul 11 15:14:00 trevorscomputer network[467]: Starting network profile 'homeWifi'...
Jul 11 15:14:01 trevorscomputer network[481]: Failed to initialize control interface '/run/wpa_supplicant'.
Jul 11 15:14:01 trevorscomputer network[481]: You may have another wpa_supplicant process already running or the file was
Jul 11 15:14:01 trevorscomputer network[481]: left by an unclean termination of wpa_supplicant in which case you will need
Jul 11 15:14:01 trevorscomputer network[481]: to manually remove this file before starting wpa_supplicant again.
Jul 11 15:14:02 trevorscomputer network[467]: The WPA supplicant did not start for interface 'wlp5s0'
Jul 11 15:14:02 trevorscomputer network[467]: Failed to bring the network up for profile 'homeWifi'
Jul 11 15:14:02 trevorscomputer systemd[1]: netctl@homeWifi.service: Main process exited, code=exited, status=1/FAILURE
Jul 11 15:14:02 trevorscomputer systemd[1]: netctl@homeWifi.service: Failed with result 'exit-code'.
Jul 11 15:14:02 trevorscomputer systemd[1]: Failed to start home wifi connection.

But then, if I manually run

$ sudo netctl start homeWifi

then almost all the time the profile and connection will successfully start. I've tried stopping, disabling, and enabling the profile, but that didn't seem to fix it. I've also tried searching the web for a solution to this problem, but was unsuccessful.

Last edited by tda (2020-07-11 23:04:18)

Offline

#2 2020-07-11 22:35:11

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,764

Re: [SOLVED] enabled netctl profile fails at startup, needs re-starting

Jul 11 15:14:01 trevorscomputer network[481]: You may have another wpa_supplicant process already running or the file was

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Online

#3 2020-07-11 22:42:16

tda
Member
Registered: 2020-06-27
Posts: 57

Re: [SOLVED] enabled netctl profile fails at startup, needs re-starting

$ find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
dbus-org.freedesktop.nm-dispatcher.service | system
dhcpcd.service                           | multi-user.target.wants
dirmngr.socket                           | sockets.target.wants
getty@tty1.service                       | getty.target.wants
gpg-agent-browser.socket                 | sockets.target.wants
gpg-agent-extra.socket                   | sockets.target.wants
gpg-agent.socket                         | sockets.target.wants
gpg-agent-ssh.socket                     | sockets.target.wants
netctl@homeWifi.service                   | multi-user.target.wants
NetworkManager.service                   | multi-user.target.wants
NetworkManager-wait-online.service       | network-online.target.wants
p11-kit-server.socket                    | sockets.target.wants
pipewire.socket                          | sockets.target.wants
pulseaudio.socket                        | sockets.target.wants
remote-fs.target                         | multi-user.target.wants
ssd_backup.timer                         | timers.target.wants
xdg-user-dirs-update.service             | default.target.wants

Offline

#4 2020-07-11 22:44:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,764

Re: [SOLVED] enabled netctl profile fails at startup, needs re-starting

You've dhcpcd, NetworkManager and netctl enabled. Pick one and disable the others.

Online

#5 2020-07-11 23:02:29

tda
Member
Registered: 2020-06-27
Posts: 57

Re: [SOLVED] enabled netctl profile fails at startup, needs re-starting

Ah, seems to be working better now! Thanks!

Offline

Board footer

Powered by FluxBB