You are not logged in.
I have recently switched from NetworkManager to netctl. My first attempt failed but managed to get it working correctly using wifi-menu -o. However I am now getting a fail in systemctl
kmod-static-nodes.service loaded active exited Create list of required static device nodes for the current kernel
netctl@wireless\x2dwpa.service loaded failed failed A simple WPA encrypted wireless connection
netctl@wlan0\x2dSKY8B17D.service loaded active exited Automatically generated profile by wifi-menu
Have tried to stop/disable that service but I still get error, is there another way to remove the failed service?
MrG
Last edited by Mr Green (2013-10-14 16:28:24)
Mr Green
Offline
netctl can get a little bit tricky, make sure there's no other service trying to give you access to the internet.
Copy the example config according to your network (wep or wpa etc), make sure the fields are
filled as they're supposed to. For example, mine looks like this:
Description='A simple WEP encrypted wireless connection'
Interface=wlp0s18f2u5
Connection=wireless
Security=wep
ESSID='********'
# Prepend \" to hexadecimal keys
Key=\"****
IP=dhcp
Note that the essid muust be in single quotes and if you're using hexademical key
it must start with Key=\"
I think the config that you get from wifi-menu o usually makes this mistake.
If you're still getting errors make sure that the previous services you created are actually deleted because sometimes "systemctl disable" doesnt do the job and you have to do it manually.
Offline
I cleaned out /etc/sytemd/system after disabling service. Nothing in /etc/netctl and yet error still appears. Did get connection working ok (which has a different name) so still cannot figure out the problem....
Mr Green
Offline
does a list of running services (systemctl status) give you any hints?
Offline
netctl@wireless\x2dwpa.service - Networking for netctl profile wireless-wpa
Loaded: loaded (/usr/lib/systemd/system/netctl@.service; static)
Active: failed (Result: exit-code) since Fri 2013-10-11 08:49:05 BST; 2h 46min ago
Docs: man:netctl.profile(5)
Process: 322 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)
Main PID: 322 (code=exited, status=1/FAILURE)
CGroup: /system.slice/system-netctl.slice/netctl@wireless\x2dwpa.service
Not much
Mr Green
Offline
i would suggest running
sudo systemctl status
to get a full list of your services, if you don't find anything unusual
delete the current netctl service you have and create one using
one of the examples (/etc/netctl/exaples) and if you get it working
simply run
sudo netctl enable profile
.
I guess you already know all this but that's how i get mine working once i start
having problems with netctl. ..
Offline
Will give a go thanks again
Mr Green
Offline
what is the output of
lspci | grep -i net
and
# journalctl
Offline
lspci | grep -i net
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 06)
04:05.0 Ethernet controller: Qualcomm Atheros AR2417 Wireless Network Adapter [AR5007G 802.11bg] (rev 01)
Far too much output from journalctl to post here, same error as above
Mr Green
Offline
ok. just from your first post, are you sure you are starting the right service? It should be
netctl-auto@<interface>.service
if you want netctl-auto or
# netctl enable <profile>
also, can you post the profiles that you want to start with netctl?
Offline
The profile I am using works. The profile that failed I disabled and stopped and yet service still shows up as failed. (as above) the profile for failed service I removed.
Am connecting using netctl wireless without a problem it is just this old service is still showing up
Mr Green
Offline
I had a similar problem a while ago with a netctl service. I'm not sure if this is the correct approach, or if it's right for you, but I masked (mask NAME) the service causing the errors which removed the errors in journalctl. Masking makes it impossible to start the service - according to the man page. You can find it in man systemctl. There is a care warning about its use but it might be worth a look.
Offline
Thanks I will check it out, most of these errors are harmless but they are annoying because there is no easy way to remove them
Mr Green
Offline
Have you tried "systemctl reset-failed"?
English isn't my first language.
Is Arch Linux user called archer? Where are our bows and arrows?
Offline
Where on earth did you find that one? ;-)
No still got error
netctl@wireless\x2dwpa.service loaded failed failed Networking for netctl profile wireless-wpa
Last edited by Mr Green (2013-10-14 08:11:34)
Mr Green
Offline
Weird, in last couple of weeks I lived under the impression that "systemctl reset-failed" is the right magic command. It helped me a lot of times, especially when I was using wifi-menu/netctl instead of netctl-auto (sometimes I'm lazy to create netctl profiles). Maybe you can try it before/after "systemctl disable netctl@wireless\\x2dwpa.service" or "systemctl stop netctl@wireless\\x2dwpa.service" (the latter shouldn't be neccessary, as the service is already failed). I'm not an expert at systemd so I'm just guessing here. Anyway, sometimes there is a bash magic on the background too, so it helps when I escape characters like "\".
EDIT: Oh yes, and to answer your question, I found that command when I had some netctl services stuck
I have installed bash-completion, so when I type systemctl in terminal and press tab, it offers me available parameters.
Last edited by mrinx (2013-10-14 12:40:25)
English isn't my first language.
Is Arch Linux user called archer? Where are our bows and arrows?
Offline
Been searching for a solution to the problem but nothing really came up. Am thinking of uninstalling netctl to see if error goes, just sounds a bit drastic for a simple error.
Mr Green
Offline
Just a question, when you run systemctl reset-failed, do those failed netctl services disappear from systemctl or not?
English isn't my first language.
Is Arch Linux user called archer? Where are our bows and arrows?
Offline
Yes service error does disappear, why I thought at first it had worked
Mr Green
Offline
OK, that's good. So I think there is a problem with your netctl profile, may I see it?
English isn't my first language.
Is Arch Linux user called archer? Where are our bows and arrows?
Offline
You could if I still had it, I removed the profile in favour of a working one. I stopped the service and disabled it first of course.... wondering if I set up the profile again (with its name) I could remove it (stop/disable) again see if it that works?
Mr Green
Offline
Ahh now thiis is more useful when I recreated profile and tried to enable it I get
ln -s '/etc/systemd/system/netctl@wireless\x2dwpa.service' '/etc/systemd/system/multi-user.target.wants/netctl@wireless\x2dwpa.service'
ln: failed to create symbolic link ‘/etc/systemd/system/multi-user.target.wants/netctl@wireless\\x2dwpa.service’: File exists
Mr Green
Offline
Solved... by removing this file I have removed the error, no idea why stop/disable did not work. Might have been the fact I removed the profile too soon..
/etc/systemd/system/multi-user.target.wants/netctl@wireless\\x2dwpa.service
Thank you for all your help ;-)
Mr Green
Offline
I'm glad to hear that you succeeded I think the reason why you couldn't stop your profile was the fact, that the profile was in failed state (How to stop failed service? It's already stopped).
Then the fact that service is disabled doesn't necessary mean that the service will disappear from systemctl. But I don't know the exact rule for it.
And you couldn't start/restart your service, because there was probably something wrong with it.
Anyway I'm not a systemd guru, so I can be wrong, but I hope I'm not
English isn't my first language.
Is Arch Linux user called archer? Where are our bows and arrows?
Offline
I'm have the same problem what you Mr Green, and I solved like you solved yours, deleting the same /etc/systemd/system/multi-user.target.wants/netctl@wireless\\x2dwpa.service
And now, the systemctl --failed reporting 0 loaded units listed.
Regards to all !!
Offline