You are not logged in.
"a start job is running for sys-subsystem-net-device-eth0.device"
I have a new install or arch.
i'm new to linux
the thing is my ethernet device name is enp1s0 not eth0
is systemd trying to load something with this invalid device name?
where should i look for this?
arch 3.9.2-1
Last edited by skinney6 (2013-05-26 03:17:22)
Offline
Are you trying to run dhcpcd@eth0.service? If so, you are trying to run dhcpcd on an interface that (as you have noticed) doesn't exist. You say your boot hangs, by that do you mean that it stalls there then continues after some time, or that it goes no further? Are you able to eventually get to a console? Does it drop you into emergency mode, or the rescue.target?
The easiest thing to do would be to chroot from something else (live media, another distribution, etc.) and then disable the dhcpcd@eth0.service. Though when you chroot, you will not be able to run systemctl commands because you will not have a running dbus in the chroot. So navigate to /etc/systemd/system/multi-user.target.wants and see if there is a symlink there. This is the directory that systemd reads to know what services to start. So if you remove that symlink, it will have been disabled.
After that, you could instead start dhcpcd@enp1s0.service or simply dhcpcd.service. Beware though that dhcpcd.service is kind of racy, and probably not the optimal solution.
Edit: BTW, I see this is your first post. Welcome to the community! Please enjoy your stay.
Last edited by WonderWoofy (2013-05-25 05:23:09)
Offline
i setup static from the beginning of the install. i never (intentionally) setup dhcpcd
boot hang for about 2 or 3 min [ *** ] red moving * like knight rider!
i tracked it down to
/etc/systemd/system/netctl@ethernet\x2dstatic.service
i was able to open it and changed to instances of eth0 to enp1s0 (my actual device name)
rebooted and it didn't hang on the netctl@ethernet\x2dstatic.service it just failed
no network connectivity
i can't opent this file to edit anymore
then i changed another network file... damn, i can't find it now, it had my old ip in it still.
but i was experienceing this problem before i changed ip addresses.
i put in my current ip / netmask
i uncommented the route info and rebooted.
booted, no hangs but i did see a flash of red so i
systemctl status
the tail of it was this...
netctl@ethernet\x2dstatic.service -> '/org/freedesktop/systemd1/unit/netctl_40ethernet_5cx2dstatic_2eservice'
netctl@ethernet\x2dstatic.service - A basic static ethernet connection
Loaded: loaded (/etc/systemd/system/netctl@ethernet\x2dstatic.service; enabled)
Active: failed (Result: exit-code) since Sat 2013-05-25 02:06:00 PDT; 7h ago
Docs: man:netctl.profile(5)
Process: 217 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)
network works, internet works so at least it doesn't hang on boot but i dont like having this error
thanks for replying and the welcome!
I hope this all makes sense. i'm not that good with words haha
Offline
there is netctl@ethernet\x2dstatic.service link in the mulit.user.wants dir
should i delete it?
will i still get my static ehternet established?
Offline
You can try... but after reading through your stuff there, I am really now even more confused as to waht you are trying to accomplish. You say you have set up a static ethernet IP. I am assuming this was done through netctl, and it the one that is failing. So if it is failing, how is your network working? Are you sure that you are supposed to be using a statis IP address? This isn't really a case where you can just pick and choose whether you want to use a static or dhcp. It is dependent on how the access point is set up. If it is running a dhcp server with a */24 netmask, and serving hosts from 2 to 254, then all the address space is taken by the dhcp server, and there is no space left for you to use a static IP.
So I think you need to peruse the output of "systemctl --type=service" and see what other services might be taking care of your network connectivity for you. Most commonly, people have a dhcpcd.service running and don't realize it. If this is the case, and it has started successfully, then you indeed should not be using a static IP.
So I guess you can delete it if you want. But when you are booted into your normal system, you will have dbus running in the environment, so you can then use the actual systemctl stuff to handle those things. So in this case it would be "systemctl disable netctl@ethernet\x2dstatic.servce". That command will actually just issue a command itself to remove the symlink you are questioning. Worst case, is that the service actually was doing something and your network doesn't come up. If that is the case then you can simply 'enable' it with systemctl.
Edit: You know what, post the output of "systemctl --no-pager --type=service" here (with code tags), so that someone here miht be able to point you to where you are going wrong.
Last edited by WonderWoofy (2013-05-25 19:00:49)
Offline
.... Also, will you verify that this is an Arch system installed from one of our install isos. Also, which version install iso did you use?
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
3.9.2-1-ARCH
i'm confused too
if i "ps aux | grep dhcpcd" i get nothing
i've assigned some ip addresses in my router to be static
systemctl --type=service
UNIT LOAD ACTIVE SUB DESCRIPTION
dbus.service loaded active running D-Bus System Message Bus
getty@tty1.service loaded active running Getty on tty1
lm_sensors.service loaded active exited Initialize hardware monitoring sensors
netctl@et...2dstatic.service loaded failed failed A basic static ethernet connection
network.service loaded active exited Network Connectivity
ntpd.service loaded active running Network Time Service
polkit.service loaded active running Authorization Manager
sshd.service loaded active running OpenSSH Daemon
syslog-ng.service loaded active running System Logger Daemon
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running Login Service
systemd-modules-load.service loaded active exited Load Kernel Modules
systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
systemd-sysctl.service loaded active exited Apply Kernel Variables
systemd-t...es-setup.service loaded active exited Recreate Volatile Files and Directories
systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
systemd-udevd.service loaded active running udev Kernel Device Manager
systemd-u...sessions.service loaded active exited Permit User Sessions
systemd-v...le-setup.service loaded active exited Setup Virtual ConsoleLOAD = 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.19 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.
Offline
So what is "network.service" and where did it come from? Did you make that, or was it already there? You must have enabled it, no?
Please post its contents so that we can determine if that is what is connecting your internets.
BTW, are you actually using Arch Linux and not some Arch Linux variant/spinoff?
Offline
If i run 'systemctl list-unit-files'
dhcpcd and dhcpd@ are disabled
which is what i want cuz i want to be static
seems like network.service is taking care of my network connect
hopefully i cant get rid of that netctl@ethernet\x2 bla bla
it fails so deleting it can't hurt rigth?
Offline
i removed the netclt@ethernet bla bla from /etc/systemd/system
and the link in /etc/systemd/system/multi-user.target.wants
and it booted up without erros and i'm on the network
Thank you!!!
Offline
What is in this network.service? Did you create it?
And yes, you can safely disable netctl@ethernet\x2dstatic.service, like I told you before.
Offline
i created network.service from one of the example files
i followed the wiki
i got the iso from a mirror from the arch wiki
uname -a
Linux aries 3.9.2-1-ARCH #1 SMP PREEMPT Sat May 11 20:31:08 CEST 2013 x86_64 GNU/Linux
what makes you skeptical?
Offline
network.service
[Unit]
Description=Network Connectivity
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-enp1s0.device
After=sys-subsystem-net-devices-enp1s0.device[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/sbin/ip link set dev enp1s0 up
#ExecStart=/usr/sbin/wpa_supplicant -B -i enp1s0 -c /etc/wpa_supplicant.conf # Remove this for wired connections
ExecStart=/sbin/ip addr add 192.168.1.22/24 dev enp1s0
ExecStart=/sbin/ip route add default via 192.168.1.1ExecStop=/sbin/ip addr flush dev enp1s0
ExecStop=/sbin/ip link set dev enp1s0 down[Install]
WantedBy=multi-user.target
Offline
Okay, I was just making sure... it is not that I don't find you trustworthy, it is just that there is a history of Arch distrolet users who come here and ask for help, having no idea what is going on in their machines. Not only that, but in the past these people were encouraged to lie about using plain Arch Linux in order to get support around here. This sucks when the person doesn't know what the hell is going on.
So I just wanted to make sure that the network.service was something of your own creation and not something that was "helpfully" put there by someone else.
That leads me to question what made you think that enabling your own person network.service then required that you set up netctl's static config?
Offline
the iso file name
archlinux-2013.05.01-dual.iso
Offline
That leads me to question what made you think that enabling your own person network.service then required that you set up netctl's static config?
i'm not sure what you mean here?
i'm not sure what i did to setup that netctl@ethernet\x2d thing
Offline
is netctl like network control manager?
Offline
netctl is a set of scripts created for Arch Linux (though they work anywhere you have systemd) that do indeed control the network. It is like NetworkManager, but much much simpler and basically utilize the standard Linux networking tools to accomplish their job. Typically it is used for wireless network management, as most people who use ethernet still use dhcpcd, so the dhcpcd@.service works perfectly fine for them. The only time I can think of where it might be of use on a wired network wth dhcpcd is if you use it in conjunction with ifplugd so that it connects to the ethernet when the cable is plugged in.
Of course, a static configuration is a whole different story. So you could surely use the netctl@ethernet-static profile, but since you have a working network.service you created, you might as well use that. It was only failing because it was trying to bind itself to an interface that was already in use.
Offline
i hear that static is a little faster & more stable and since this computer will be staying put i dont see why i need dhcpcd (i'm assuming it's like dhcp).
Thank you.
You have been a big help.
Offline
It is definitely faster since it doens't have to wait for the dhcp server to send it back the information it requires to set the address. Dhcpcd is a dhcp client daemon. I don't know about it being more stable though as once the IP address is resolved it should be the same. Just be sure that the host address that you are trying to set the statis IP to is outside of the range of dhcp addresses in control by the dhcp daemon on your router. Otherwise, I would venture to say your statis IP is going to be less stable than one generated by dhcp.
I'm glad you got your stuff working. Please mark the thread as [Solved], which can be done by editing the first post.
Offline