You are not logged in.
Hi, I recently did a fresh install and I'm getting annoyed by netctl. Since I use multiple profiles I installed wpa-actionsd and ifplugd
I enabled them in systemctl with :
# systemctl enable netctl-auto@wlp3s0.service
# systemctl enable netctl-ifplugd@enp0s25.service I'm not sure about the wired one because I never tested it but that's not the problem right now. here is my ip link:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: wlp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT qlen 1000
link/ether 00:1f:3c:27:f3:4b brd ff:ff:ff:ff:ff:ff
3: enp0s25: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT qlen 1000
link/ether 00:1e:37:d0:3c:9e brd ff:ff:ff:ff:ff:ff My problem is at boot,netctl@wireless\x2dwpa.service fails and I don't connect automatically and I need to connect manually. Sometimes it doesn't either and I reboot then it works manually.
any suggestion?
Last edited by trixrabbit (2013-07-07 17:22:55)
Offline
First, the reason you're seeing the \x2d is because a '-' has special meaning for systemd, you might find it cleaner to use '_' instead of '-'. Second, what's the error output of the netctl profile?
All the best,
-HG
Offline
Any chance you did not created a profile in netctl? check it.
Edit: how about renaming your ssid?
Last edited by Gulver (2013-06-22 08:14:06)
Offline
First, the reason you're seeing the \x2d is because a '-' has special meaning for systemd, you might find it cleaner to use '_' instead of '-'. Second, what's the error output of the netctl profile?
All the best,
-HG
I'm not sure if I can rename it, I don't know how..I tried to disable it with systemctl but nothing happened, tried to enable it again and I get :
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...)Also, I can connect to my networks, I just have to type netctl start MyNetwork everytime, I just didn't have to do it all the time before.
edit: netctl-auto@wlp3s0.service also fails at boot sometimes
Last edited by trixrabbit (2013-06-24 06:59:25)
Offline
I'm not sure if I can rename it, I don't know how..I tried to disable it with systemctl but nothing happened, tried to enable it again and I get :
Also, I can connect to my networks, I just have to type netctl start MyNetwork everytime, I just didn't have to do it all the time before.
edit: netctl-auto@wlp3s0.service also fails at boot sometimes
Sure you can change it. Just go to /etc/netctl and rename the profile. Use of netctl-auto is covered in the wiki.
All the best,
-HG
Offline
Use of netctl in general is covered by netctl's man pages. You really need to learn to start reading documentation trixrabbit, it will typically have the information you desire.
Offline
I read all of that, netctl@wireless\x2dwpa.service is not a profile. I don't post on forums before reading the wiki and a few forum post...I can't disable/enable this service
Offline
trixrabbit, clearly you haven't read that much. netctl@wireless\x2dwpa.service isn't a profile, but wireless-wpa is. And yes, you can (en/dis)able this service if you so choose.
All the best,
-HG
Offline
trixrabbit, clearly you haven't read that much. netctl@wireless\x2dwpa.service isn't a profile, but wireless-wpa is. And yes, you can (en/dis)able this service if you so choose.
All the best,
-HG
I really don't understand what you mean...I know it's not a profile, that's what I wrote up there. I'm just saying it fails to load at boot and my laptop doesnt automatically connect to my profiles ( school and home)
Offline
So everytime I boot my computer I get : [Failed] netctl@wireless\x2dwpa.service, it just annoys me to see red everytime at boot.
I also don't connect automatically to my school or home network unless I was connected to that network before booting my computer. i.e. if I am using my network and I reboot, I won't have to manually reconnect but if I boot my laptop at school and was previously connected at home, I'll have to start the profile manually.
When I do
sstemctl list-units I get :
netctl@w...s\x2dwpa.service loaded failed failed A simple WPA encrypted wireless connection when I try to disable it with systemctl disable netctl@wireless\x2dwpa.service, it doesn't show anything and when I try to re-enable it, it says :
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).any suggestions?
Offline
Please go back and reread the thread. Then go and read the systemctl man page and the netctl, netctl.profile and the netctl.special man pages. I don't think that all three netctl man pages will be necessary, but it would probably do you good.
Offline
I just re-read everything, did some more research on google too and still haven't found was I was looking for. I'll just connect manually and put quiet in my bootloader so I don't see the service that fails. Somehow I can't disable the service in systemctl, I don't know what it does so I won't bother anymore..re-reading this thread, I think you guys think that the service I'm trying to disable is a network profile but it's not. Right now I just disabled all netctl services.
thanks for the help, I understand solving problems is time consuming and can be hard to do over a forum. This thread can be closed.
Offline
I just re-read everything...
Everything, eh?
enable NAME...
Enable one or more unit files or unit file instances, as specified on the command line. This will create a number of symlinks as
encoded in the [Install] sections of the unit files.<snip>
Note that this operation creates only the suggested symlinks for the units. While this command is the recommended way to
manipulate the unit configuration directory, the administrator is free to make additional changes manually, by placing
or removing symlinks in the directory. This is particularly useful to create configurations that deviate from the suggested
default installation. In this case the administrator must make sure to invoke daemon-reload manually as necessary, to ensure
his changes are taken into account.
Edit: Fixed horrible quote formatting...
Last edited by WonderWoofy (2013-07-06 04:48:47)
Offline
Hint: On my working system, the wireless is called wlan0 and the wired is enp3s0
ewaller$@$odin ~ 1001 %systemctl | grep netctl
netctl-auto@wlan0.service loaded active running Automatic wireless network connection using netctl profiles
netctl-i...d@enp3s0.service loaded active running Automatic wired network connection using netctl profiles
ewaller$@$odin ~ 1002 %Hint 2: Take a look around in /etc/systemd/system. use ls -l and see what links where. Anything interesting?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Hint 2: Take a look around in /etc/systemd/system. use ls -l and see what links where. Anything interesting?
fixed my problem thanks. Somehow I had a service starting that gave me errors at boot and when loading a profile. Often I had an error with netctl start profile, I had to run wifi-menu, try to connect to a random network then re-try netctl start profile to conncet to the desired profile. in /etc/systemd/system I had a linked service called netctl@wireless\\\x2dwpa.service, when the servivce was falling though it was only called netctl@wireless\x2dwpa.service, that's why I wasn't able to remove it. Anyway, I disabled it with systemctl then re-enabled netctl-auto and everything works just when I had netcfg, perfect.
thank you for your patience.
Offline
Sorry guys for re up this thread, but I have the same problem and I think deleted some files manualy dont remember, but here is the error msg from console
------------------------------------------------------------------------------------------------------------------------------------
toberius /etc/systemd/system $ systemctl --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
netctl@wireless\x2dwpa.service loaded failed failed Networking for netctl profile wireless-wpa
netctl@wlp2s0\x2dToberius.service loaded failed failed Networking for netctl profile wlp2s0-Toberius
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
2 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
----------------------------------------------------------------------------------------------------------------------------
the command systemct | grep netctl is here
---------------------------------------------------------------------------------------------------------------------------
rius ~ $ sudo systemctl | grep netctl
netctl.service loaded active exited (Re)store the netctl profile state
netctl@wireless\x2dwpa.service loaded failed failed Networking for netctl profile wireless-wpa
netctl@wlp2s0\x2dToberius.service loaded failed failed Networking for netctl profile wlp2s0-Toberius
netctl@wls1\x2dToberius.service loaded active exited Automatically generated profile by wifi-menu
system-netctl.slice loaded active active system-netctl.slice
system-netctl\x2difplugd.slice loaded active active system-netctl\x2difplugd.slice
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
here is a listing directore /etc/systemd/system
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
toberius /etc/systemd/system $ ls -l
total 12
lrwxrwxrwx 1 root root 36 may 4 2013 display-manager.service -> /usr/lib/systemd/system/slim.service
drwxr-xr-x 2 root root 4096 ago 24 19:08 getty.target.wants
drwxr-xr-x 2 root root 4096 nov 1 20:19 multi-user.target.wants
-rw-r--r-- 1 root root 204 oct 20 00:24 netctl@wls1\x2dToberius.service
-------------------------------------------------------------------------------------------------------------------------------------------------
and here listing directory of multi-user.target.wants
---------------------------------------------------------------------------------------------------------------------------------------------------
toberius /etc/systemd/system/multi-user.target.wants $ ls -l
total 0
lrwxrwxrwx 1 root root 54 ago 25 23:16 arno-iptables-firewall.service -> /usr/lib/systemd/system/arno-iptables-firewall.service
lrwxrwxrwx 1 root root 38 may 4 2013 cronie.service -> /usr/lib/systemd/system/cronie.service
lrwxrwxrwx 1 root root 40 ago 22 18:46 ifplugd@.service -> /usr/lib/systemd/system/ifplugd@.service
lrwxrwxrwx 1 root root 47 ago 22 18:47 netctl-ifplugd@.service -> /usr/lib/systemd/system/netctl-ifplugd@.service
lrwxrwxrwx 1 root root 38 oct 19 14:17 netctl.service -> /usr/lib/systemd/system/netctl.service
lrwxrwxrwx 1 root root 50 may 4 2013 netctl@wireless\x2dwpa.service -> /etc/systemd/system/netctl@wireless\x2dwpa.service
lrwxrwxrwx 1 root root 53 ago 15 00:55 netctl@wlp2s0\x2dToberius.service -> /etc/systemd/system/netctl@wlp2s0\x2dToberius.service
lrwxrwxrwx 1 root root 51 oct 20 00:24 netctl@wls1\x2dToberius.service -> /etc/systemd/system/netctl@wls1\x2dToberius.service
lrwxrwxrwx 1 root root 40 oct 21 13:27 remote-fs.target -> /usr/lib/systemd/system/remote-fs.target
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Any other directory to see or listing?
I have wifi conextion good, the last update of archlinux change the interface name wls2p0 by wls1.
Any suggestion? where I can read about that ?
Regards
Offline
Well, I response to me.
I solved this situation reading other user problem in this thread ---> https://bbs.archlinux.org/viewtopic.php?id=170944
Sorry guys and regards.
Offline
So Fitap, did you solve this or not? I see you posted in the other thread, but it doens't appear as though you actually solved it from that other post. You issue is that you have too many things trying to control the network all at once. You can only enable one netctl profile at a time. So if you want it to "roam" between all those profiles, you should use netctl-auto instead. But if not (if they are just differently named copies of the same profile for instance), then you need to disable all the ones you are not using and then enable only the one that you are.
Also, in the future, instead of bumping old threads, and if you can't solve your issue from reading other threads and info, you should start a new thread and link back to the old one if you think it is relevant. But in this case, I think an issue like this gets covered about once a week (maybe more). So this particular question is a bit "if-fy" as to whether opening a new thread would serve any benefit.`
Offline
Just to add on one other bit of advice from WW, please, please, use code tags when you post output or code on the BBS. It makes reading verbatim environments tolerable.
All the best,
-HG
Offline