You are not logged in.

#1 2015-01-23 15:06:11

mutaphore
Member
From: NY
Registered: 2014-12-19
Posts: 29

[SOLVED] Remove Failed Systemd units related to netctl?

I have a couple of failed systemd units that will not go away even if I do

systemctl disable

. I also tried removing the unit files from /etc/systemd/system/ and masking them to /dev/null without success. These are leftover units from back when I was tweaking with netctl-auto. Here's what I get when I do a systemctl status:

● netctl@wlp4s0b1\x2dLibraryWiFi.service - Networking for netctl profile wlp4s0b1-LibraryWiFi
   Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2015-01-23 09:54:36 EST; 8min ago
     Docs: man:netctl.profile(5)
  Process: 356 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)
 Main PID: 356 (code=exited, status=1/FAILURE)

Jan 23 09:54:36 arch network[356]: Profile 'wlp4s0b1-LibraryWiFi' does not exist or is not readable
Jan 23 09:54:36 arch systemd[1]: netctl@wlp4s0b1\x2dLibraryWiFi.service: main process exited, code=exited, status=1/FAILURE
Jan 23 09:54:36 arch systemd[1]: Failed to start Networking for netctl profile wlp4s0b1-LibraryWiFi.
Jan 23 09:54:36 arch systemd[1]: Unit netctl@wlp4s0b1\x2dLibraryWiFi.service entered failed state.
Jan 23 09:54:36 arch systemd[1]: netctl@wlp4s0b1\x2dLibraryWiFi.service failed.

Last edited by mutaphore (2015-01-29 04:57:47)

Offline

#2 2015-01-23 19:22:34

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Remove Failed Systemd units related to netctl?

What is the output of:

netctl list

Jin, Jîyan, Azadî

Offline

#3 2015-01-23 20:36:05

mutaphore
Member
From: NY
Registered: 2014-12-19
Posts: 29

Re: [SOLVED] Remove Failed Systemd units related to netctl?

I'm getting

  wlp4s0-HOME-5BB7
  wlp4s0-belkin.08a
  wlp4s0-Pokemon Center
  wlp4s0-Boingo Hotspot
  wlp4s0b1-Wi Believe I Can Fi
  wlp4s0-AmtrakConnect

Offline

#4 2015-01-23 20:41:06

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Remove Failed Systemd units related to netctl?

OK, what is the output of:

systemctl list-unit-files

Jin, Jîyan, Azadî

Offline

#5 2015-01-23 22:11:58

mutaphore
Member
From: NY
Registered: 2014-12-19
Posts: 29

Re: [SOLVED] Remove Failed Systemd units related to netctl?

Sorry for the long list ;P

UNIT FILE                                           STATE   
proc-sys-fs-binfmt_misc.automount                   static  
dev-hugepages.mount                                 static  
dev-mqueue.mount                                    static  
proc-sys-fs-binfmt_misc.mount                       static  
sys-fs-fuse-connections.mount                       static  
sys-kernel-config.mount                             static  
sys-kernel-debug.mount                              static  
tmp.mount                                           static  
systemd-ask-password-console.path                   static  
systemd-ask-password-wall.path                      static  
session-c2.scope                                    static  
accounts-daemon.service                             disabled
acpid.service                                       enabled 
autovt@.service                                     disabled
avahi-daemon.service                                disabled
avahi-dnsconfd.service                              disabled
blk-availability.service                            disabled
bluetooth.service                                   disabled
canberra-system-bootup.service                      disabled
canberra-system-shutdown-reboot.service             disabled
canberra-system-shutdown.service                    disabled
colord.service                                      static  
console-getty.service                               disabled
console-shell.service                               disabled
container-getty@.service                            static  
dbus-org.freedesktop.Avahi.service                  disabled
dbus-org.freedesktop.hostname1.service              static  
dbus-org.freedesktop.locale1.service                static  
dbus-org.freedesktop.login1.service                 static  
dbus-org.freedesktop.machine1.service               static  
dbus-org.freedesktop.resolve1.service               disabled
dbus-org.freedesktop.timedate1.service              static  
dbus.service                                        static  
debug-shell.service                                 disabled
dhcpcd.service                                      enabled 
dhcpcd@.service                                     disabled
display-manager.service                             enabled 
dkms.service                                        enabled 
dm-event.service                                    disabled
emergency.service                                   static  
fluidsynth.service                                  disabled
fstrim.service                                      static  
ftpd.service                                        disabled
gdm.service                                         enabled 
geoclue.service                                     static  
getty@.service                                      enabled 
git-daemon@.service                                 static  
gpm.service                                         disabled
gpsd.service                                        static  
gpsdctl@.service                                    static  
httpd.service                                       disabled
initrd-cleanup.service                              static  
initrd-parse-etc.service                            static  
initrd-switch-root.service                          static  
initrd-udevadm-cleanup-db.service                   static  
ip6tables.service                                   disabled
iptables.service                                    disabled
kmod-static-nodes.service                           static  
krb5-kadmind.service                                disabled
krb5-kdc.service                                    disabled
krb5-kpropd.service                                 disabled
krb5-kpropd@.service                                static  
ldconfig.service                                    static  
logrotate.service                                   static  
lvm2-lvmetad.service                                disabled
lvm2-monitor.service                                disabled
lvm2-pvscan@.service                                static  
man-db.service                                      static  
mdadm-grow-continue@.service                        static  
mdadm-last-resort@.service                          static  
mdadm.service                                       disabled
mdmon@.service                                      static  
mdmonitor.service                                   static  
mkinitcpio-generate-shutdown-ramfs.service          static  
netctl-auto@.service                                enabled 
netctl-ifplugd@.service                             disabled
netctl-sleep.service                                disabled
netctl.service                                      disabled
netctl@.service                                     static  
netctl@wlp4s0b1x2dLibraryWiFi.service               masked  
netctl@wlp4s0x2dWix20Believex20Ix20Canx20Fi.service masked  
NetworkManager-dispatcher.service                   disabled
NetworkManager-wait-online.service                  disabled
NetworkManager.service                              disabled
nscd.service                                        disabled
polkit.service                                      static  
postgresql.service                                  disabled
quotaon.service                                     static  
rescue.service                                      static  
rlogin@.service                                     static  
rsh@.service                                        static  
rtkit-daemon.service                                disabled
serial-getty@.service                               disabled
shadow.service                                      static  
speech-dispatcherd.service                          disabled
sshd.service                                        disabled
sshd@.service                                       static  
sshdgenkeys.service                                 static  
systemd-ask-password-console.service                static  
systemd-ask-password-wall.service                   static  
systemd-backlight@.service                          static  
systemd-binfmt.service                              static  
systemd-bootchart.service                           disabled
systemd-firstboot.service                           static  
systemd-fsck-root.service                           static  
systemd-fsck@.service                               static  
systemd-halt.service                                static  
systemd-hibernate-resume@.service                   static  
systemd-hibernate.service                           static  
systemd-hostnamed.service                           static  
systemd-hybrid-sleep.service                        static  
systemd-initctl.service                             static  
systemd-journal-catalog-update.service              static  
systemd-journal-flush.service                       static  
systemd-journal-gatewayd.service                    static  
systemd-journal-remote.service                      static  
systemd-journal-upload.service                      disabled
systemd-journald.service                            static  
systemd-kexec.service                               static  
systemd-localed.service                             static  
systemd-logind.service                              static  
systemd-machine-id-commit.service                   static  
systemd-machined.service                            static  
systemd-modules-load.service                        static  
systemd-networkd-wait-online.service                disabled
systemd-networkd.service                            disabled
systemd-nspawn@.service                             disabled
systemd-poweroff.service                            static  
systemd-quotacheck.service                          static  
systemd-random-seed.service                         static  
systemd-reboot.service                              static  
systemd-remount-fs.service                          static  
systemd-resolved.service                            disabled
systemd-rfkill@.service                             static  
systemd-shutdownd.service                           static  
systemd-suspend.service                             static  
systemd-sysctl.service                              static  
systemd-sysusers.service                            static  
systemd-timedated.service                           static  
systemd-timesyncd.service                           enabled 
systemd-tmpfiles-clean.service                      static  
systemd-tmpfiles-setup-dev.service                  static  
systemd-tmpfiles-setup.service                      static  
systemd-udev-hwdb-update.service                    static  
systemd-udev-settle.service                         static  
systemd-udev-trigger.service                        static  
systemd-udevd.service                               static  
systemd-update-done.service                         static  
systemd-update-utmp-runlevel.service                static  
systemd-update-utmp.service                         static  
systemd-user-sessions.service                       static  
systemd-vconsole-setup.service                      static  
talk.service                                        static  
teamd@.service                                      static  
telnet@.service                                     static  
udisks2.service                                     static  
upower.service                                      disabled
user@.service                                       static  
uuidd.service                                       static  
wacom-inputattach@.service                          static  
wpa_supplicant-nl80211@.service                     disabled
wpa_supplicant-wired@.service                       disabled
wpa_supplicant.service                              disabled
wpa_supplicant@.service                             disabled
-.slice                                             static  
machine.slice                                       static  
system.slice                                        static  
user.slice                                          static  
avahi-daemon.socket                                 disabled
dbus.socket                                         static  
dm-event.socket                                     static  
git-daemon.socket                                   disabled
gpsd.socket                                         disabled
krb5-kpropd.socket                                  disabled
lvm2-lvmetad.socket                                 static  
rlogin.socket                                       disabled
rsh.socket                                          disabled
sshd.socket                                         disabled
syslog.socket                                       static  
systemd-initctl.socket                              static  
systemd-journal-gatewayd.socket                     disabled
systemd-journal-remote.socket                       disabled
systemd-journald-audit.socket                       static  
systemd-journald-dev-log.socket                     static  
systemd-journald.socket                             static  
systemd-shutdownd.socket                            static  
systemd-udevd-control.socket                        static  
systemd-udevd-kernel.socket                         static  
talk.socket                                         disabled
telnet.socket                                       disabled
uuidd.socket                                        disabled
basic.target                                        static  
bluetooth.target                                    static  
cryptsetup-pre.target                               static  
cryptsetup.target                                   static  
ctrl-alt-del.target                                 disabled
default.target                                      static  
emergency.target                                    static  
final.target                                        static  
getty.target                                        static  
graphical.target                                    static  
halt.target                                         disabled
hibernate.target                                    static  
hybrid-sleep.target                                 static  
initrd-fs.target                                    static  
initrd-root-fs.target                               static  
initrd-switch-root.target                           static  
initrd.target                                       static  
kexec.target                                        disabled
local-fs-pre.target                                 static  
local-fs.target                                     static  
multi-user.target                                   static  
network-online.target                               static  
network-pre.target                                  static  
network.target                                      static  
nss-lookup.target                                   static  
nss-user-lookup.target                              static  
paths.target                                        static  
poweroff.target                                     disabled
printer.target                                      static  
reboot.target                                       disabled
remote-fs-pre.target                                static  
remote-fs.target                                    enabled 
rescue.target                                       disabled
rpcbind.target                                      static  
shutdown.target                                     static  
sigpwr.target                                       static  
sleep.target                                        static  
slices.target                                       static  
smartcard.target                                    static  
sockets.target                                      static  
sound.target                                        static  
suspend.target                                      static  
swap.target                                         static  
sysinit.target                                      static  
system-update.target                                static  
time-sync.target                                    static  
timers.target                                       static  
umount.target                                       static  
fstrim.timer                                        disabled
logrotate.timer                                     static  
man-db.timer                                        static  
mdadm-last-resort@.timer                            static  
shadow.timer                                        static  
systemd-tmpfiles-clean.timer                        static  

245 unit files listed.

Offline

#6 2015-01-23 22:44:15

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Remove Failed Systemd units related to netctl?

Try editing the two profiles and use the "ExcludeAuto=yes" option.

man netctl-auto wrote:

To permanently exclude a profile from automatic selection, use the ExcludeAuto=yes option in the profile.

https://wiki.archlinux.org/index.php/Ne … f_profiles


Jin, Jîyan, Azadî

Offline

#7 2015-01-24 00:44:10

mutaphore
Member
From: NY
Registered: 2014-12-19
Posts: 29

Re: [SOLVED] Remove Failed Systemd units related to netctl?

I looked in /etc/netctl and the profile for wlp4s0b1-LibraryWiFi does not exist. Also I removed the symlinks at /etc/systemd/system so that when I do systemctl list-unit-files the 2 profiles are not shown anymore. But still, when I reboot the computer netctl still attempts to connect to the 2 non-existent profiles??

Offline

#8 2015-01-24 00:49:31

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Remove Failed Systemd units related to netctl?

mutaphore wrote:

I was tweaking with netctl-auto

What exactly were you doing?

How did you create the profiles originally?


Jin, Jîyan, Azadî

Offline

#9 2015-01-24 01:00:22

mutaphore
Member
From: NY
Registered: 2014-12-19
Posts: 29

Re: [SOLVED] Remove Failed Systemd units related to netctl?

Originally I was trying to make netctl-auto to work. Foolishly I thought that I need a systemd service in order for it to run at boot time. I think I did something like:

systemctl enable netctl@wlp4s0b1-LibraryWiFi.service

so now I'm stuck with these loaded but failed services:

● netctl@wlp4s0\x2dWi\x20Believe\x20I\x20Can\x20Fi.service                                                                        loaded    failed   failed    Networking for netctl profile wlp4s0-Wi Beli
● netctl@wlp4s0b1\x2dLibraryWiFi.service                                                                                          loaded    failed   failed    Networking for netctl profile wlp4s0b1-Libra

The first item has the wrong interface (it should be wlp4s0b1 not wlp4s0) and the second one I don't even have a profile for in /etc/netctl. Is there anyway to "Unload" the services so the system doesn't try to run it everytime it boots?

Offline

#10 2015-01-24 01:03:48

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] Remove Failed Systemd units related to netctl?

`man systemctl`...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2015-01-24 01:05:27

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Remove Failed Systemd units related to netctl?

Manually delete the service file in /usr/lib/systemd/system/


Jin, Jîyan, Azadî

Offline

#12 2015-01-24 01:41:15

Kopkins
Member
Registered: 2012-07-01
Posts: 189

Re: [SOLVED] Remove Failed Systemd units related to netctl?

systemctl mask thing.service

Offline

#13 2015-01-24 02:10:43

mutaphore
Member
From: NY
Registered: 2014-12-19
Posts: 29

Re: [SOLVED] Remove Failed Systemd units related to netctl?

Head_on_a_Stick wrote:

Manually delete the service file in /usr/lib/systemd/system/

Thanks Head_on_a_Stick, this worked. So the problem was I had a file in there named:

netctl@.service

in addition to the correctly named:

netctl.service

Don't ask me how it got it there xD. It's the culprit that was causing the 2 services to stuck in loaded state even though there's no profile for it. Removing the service file and reboot fixed the problem.

Cheers!

Edit:
Also for future reference, I was trying to find the file in /etc/systemd/system instead of /usr/lib/systemd/system. But when doing systemctl --user it didn't show the netctl service? Why's that?

Last edited by mutaphore (2015-01-24 02:14:28)

Offline

#14 2015-01-24 09:00:56

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] Remove Failed Systemd units related to netctl?

mutaphore wrote:
Head_on_a_Stick wrote:

Manually delete the service file in /usr/lib/systemd/system/

Thanks Head_on_a_Stick, this worked. So the problem was I had a file in there named:

netctl@.service

in addition to the correctly named:

netctl.service

Don't ask me how it got it there xD.

It's part of netctl and it is correctly named. The real problem probably still exists and will reappear after a netctl upgrade.

Edit:
Also for future reference, I was trying to find the file in /etc/systemd/system instead of /usr/lib/systemd/system. But when doing systemctl --user it didn't show the netctl service? Why's that?

Because it is not a user service.

Offline

#15 2015-01-24 14:01:47

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Remove Failed Systemd units related to netctl?

mutaphore wrote:
Head_on_a_Stick wrote:

Manually delete the service file in /usr/lib/systemd/system/

Thanks Head_on_a_Stick, this worked. So the problem was I had a file in there named:

netctl@.service

in addition to the correctly named:

netctl.service

Don't ask me how it got it there xD. It's the culprit that was causing the 2 services to stuck in loaded state even though there's no profile for it. Removing the service file and reboot fixed the problem.

Cheers!

Edit:
Also for future reference, I was trying to find the file in /etc/systemd/system instead of /usr/lib/systemd/system. But when doing systemctl --user it didn't show the netctl service? Why's that?

I should have been much more clear (sorry, I was very tired when I posted that) -- I meant remove any service file relating to the problematic connections.

If you have removed the "netctl@.service, you won't be able to use netctl@<interface> again hmm

Here is mine if you want to replace it:

[Unit]
Description=Networking for netctl profile %I
Documentation=man:netctl.profile(5)
Before=network.target netctl.service
Wants=network.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/lib/network/network start %I
ExecStop=/usr/lib/network/network stop %I

I suspect you problem is because your interface name has changed from "wlp4s0b1" to "wlp4s0" between making the problematic profiles and your current setup; I'm not sure why or how to fix that.

I'm going to bail out at this point before I wreck your system any more...

You should probably remove the "[SOLVED]" tag & await the assistance of a user who actually knows what they're doing with netctl (I no longer use it).


Jin, Jîyan, Azadî

Offline

#16 2015-01-25 19:11:17

mutaphore
Member
From: NY
Registered: 2014-12-19
Posts: 29

Re: [SOLVED] Remove Failed Systemd units related to netctl?

If you have removed the "netctl@.service, you won't be able to use netctl@<interface> again hmm

What do you mean by I won't be able to use netctl? So far I am connecting to Wifi via netctl-auto fine, haven't had any issues yet

Offline

#17 2015-01-25 19:51:17

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Remove Failed Systemd units related to netctl?

The netctl@.service allows connections with specific interfaces -- this may be why you were having problems with differently-named interfaces.

If it's working OK I suppose that's fine but you should probably make a back-up of the service file I have posted, just in case.©

As I said, I am not an expert on netctl -- if we're lucky the developer (or one of the many users more familiar with it than I) may chance upon this thread and illuminate the situation for us both...


Jin, Jîyan, Azadî

Offline

#18 2015-01-25 22:15:00

mutaphore
Member
From: NY
Registered: 2014-12-19
Posts: 29

Re: [SOLVED] Remove Failed Systemd units related to netctl?

Yep, surely after I created the netctl@.service file with your config, the errors came back. This issue is open again

Offline

#19 2015-01-25 22:24:33

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED] Remove Failed Systemd units related to netctl?

Change the title of this thread to include netctl -- this will help attract the attention of people who know lots about it wink

Last edited by Head_on_a_Stick (2015-01-25 22:24:46)


Jin, Jîyan, Azadî

Offline

#20 2015-01-26 11:18:16

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [SOLVED] Remove Failed Systemd units related to netctl?

A wild netctl user appears!

Please give us the entire listing of /etc/systemd/system. Use find. Please also tell us about every single service or target file you have manually tampered with, be it in /etc/systemd/system or in /usr/lib/systemd/system/.

netctl user uses rm.

Since something is messed up, go and clean it. Use your list of /etc/systemd/system as a reminder of what you have and delete everything from the targets but...
° /etc/systemd/system/getty.target.wants/getty@tty1.service
° All services you might require for your hardware. Remember: The only thing you want is a shell to debug this.
Do not bother with disable at this point. Reboot.

It's super effective.

Are the services still running? If they are, make sure every single service, socket and target file you have messed with, either in /etc... or /usr/lib..., are as they were upon installation. Reboot.

Still? grep all services, targets and sockets (one never knows) in both /etc... and /usr/lib... for anything that wants netctl.

If those services are still there, leave the building and call 555-2368.

Offline

#21 2015-01-29 04:57:33

mutaphore
Member
From: NY
Registered: 2014-12-19
Posts: 29

Re: [SOLVED] Remove Failed Systemd units related to netctl?

Finally found the culprit. The solution was I had to remove the 2 dead symlinks located at /etc/systemd/system/multi-user.target.wants . After removing systemd doesn't try to look for those services on boot. Yay!

Offline

Board footer

Powered by FluxBB