You are not logged in.

#1 2013-10-07 15:20:18

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

systemctl netctl fail [Solved]

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

#2 2013-10-10 00:26:16

xtremyst
Member
Registered: 2011-11-21
Posts: 14

Re: systemctl netctl fail [Solved]

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

#3 2013-10-10 09:23:24

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: systemctl netctl fail [Solved]

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

#4 2013-10-11 10:31:23

xtremyst
Member
Registered: 2011-11-21
Posts: 14

Re: systemctl netctl fail [Solved]

does a list of running services (systemctl status) give you any hints?

Offline

#5 2013-10-11 10:40:23

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: systemctl netctl fail [Solved]

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

#6 2013-10-11 14:14:48

xtremyst
Member
Registered: 2011-11-21
Posts: 14

Re: systemctl netctl fail [Solved]

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

#7 2013-10-11 14:30:07

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: systemctl netctl fail [Solved]

Will give a go thanks again


Mr Green

Offline

#8 2013-10-11 14:45:32

cris9288
Member
Registered: 2013-01-07
Posts: 348

Re: systemctl netctl fail [Solved]

what is the output of

 lspci | grep -i net 

and

 # journalctl 

Offline

#9 2013-10-11 18:28:58

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: systemctl netctl fail [Solved]

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

#10 2013-10-11 18:36:59

cris9288
Member
Registered: 2013-01-07
Posts: 348

Re: systemctl netctl fail [Solved]

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

#11 2013-10-11 18:39:51

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: systemctl netctl fail [Solved]

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

#12 2013-10-13 08:48:04

youngdm
Member
Registered: 2013-08-02
Posts: 20

Re: systemctl netctl fail [Solved]

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

#13 2013-10-13 09:27:51

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: systemctl netctl fail [Solved]

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

#14 2013-10-14 00:28:39

mrinx
Member
From: Richmond, VA
Registered: 2013-08-01
Posts: 87
Website

Re: systemctl netctl fail [Solved]

Have you tried "systemctl reset-failed"? smile


English isn't my first language.
Is Arch Linux user called archer? Where are our bows and arrows?

Offline

#15 2013-10-14 08:09:52

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: systemctl netctl fail [Solved]

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

#16 2013-10-14 12:37:08

mrinx
Member
From: Richmond, VA
Registered: 2013-08-01
Posts: 87
Website

Re: systemctl netctl fail [Solved]

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 smile
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

#17 2013-10-14 13:32:51

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: systemctl netctl fail [Solved]

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

#18 2013-10-14 14:12:33

mrinx
Member
From: Richmond, VA
Registered: 2013-08-01
Posts: 87
Website

Re: systemctl netctl fail [Solved]

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

#19 2013-10-14 14:54:25

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: systemctl netctl fail [Solved]

Yes service error does disappear, why I thought at first it had worked


Mr Green

Offline

#20 2013-10-14 15:02:50

mrinx
Member
From: Richmond, VA
Registered: 2013-08-01
Posts: 87
Website

Re: systemctl netctl fail [Solved]

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

#21 2013-10-14 15:55:53

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: systemctl netctl fail [Solved]

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

#22 2013-10-14 16:23:00

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: systemctl netctl fail [Solved]

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

#23 2013-10-14 16:28:11

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: systemctl netctl fail [Solved]

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

#24 2013-10-14 21:37:19

mrinx
Member
From: Richmond, VA
Registered: 2013-08-01
Posts: 87
Website

Re: systemctl netctl fail [Solved]

I'm glad to hear that you succeeded smile 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 smile


English isn't my first language.
Is Arch Linux user called archer? Where are our bows and arrows?

Offline

#25 2013-11-04 23:51:24

Fitap
Member
Registered: 2013-05-04
Posts: 29

Re: systemctl netctl fail [Solved]

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

Board footer

Powered by FluxBB