You are not logged in.
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
What is the output of:
netctl listJin, Jîyan, Azadî
Offline
I'm getting
wlp4s0-HOME-5BB7
wlp4s0-belkin.08a
wlp4s0-Pokemon Center
wlp4s0-Boingo Hotspot
wlp4s0b1-Wi Believe I Can Fi
wlp4s0-AmtrakConnectOffline
OK, what is the output of:
systemctl list-unit-filesJin, Jîyan, Azadî
Offline
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
Try editing the two profiles and use the "ExcludeAuto=yes" option.
To permanently exclude a profile from automatic selection, use the ExcludeAuto=yes option in the profile.
Jin, Jîyan, Azadî
Offline
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
I was tweaking with netctl-auto
What exactly were you doing?
How did you create the profiles originally?
Jin, Jîyan, Azadî
Offline
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.serviceso 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-LibraThe 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
`man systemctl`...
Offline
Manually delete the service file in /usr/lib/systemd/system/
Jin, Jîyan, Azadî
Offline
systemctl mask thing.service
Offline
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@.servicein addition to the correctly named:
netctl.serviceDon'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
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@.servicein addition to the correctly named:
netctl.serviceDon'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
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@.servicein addition to the correctly named:
netctl.serviceDon'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 ![]()
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 %II 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
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
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
Yep, surely after I created the netctl@.service file with your config, the errors came back. This issue is open again
Offline
Change the title of this thread to include netctl -- this will help attract the attention of people who know lots about it ![]()
Last edited by Head_on_a_Stick (2015-01-25 22:24:46)
Jin, Jîyan, Azadî
Offline
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
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