You are not logged in.

#1 2013-05-25 03:51:40

skinney6
Member
From: Oakland, CA
Registered: 2013-05-25
Posts: 48

[SOLVED] boot up hangs on this message "a start job is running for ...

"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

#2 2013-05-25 05:22:42

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] boot up hangs on this message "a start job is running for ...

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

#3 2013-05-25 16:36:06

skinney6
Member
From: Oakland, CA
Registered: 2013-05-25
Posts: 48

Re: [SOLVED] boot up hangs on this message "a start job is running for ...

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

#4 2013-05-25 16:40:49

skinney6
Member
From: Oakland, CA
Registered: 2013-05-25
Posts: 48

Re: [SOLVED] boot up hangs on this message "a start job is running for ...

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

#5 2013-05-25 18:59:53

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] boot up hangs on this message "a start job is running for ...

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

#6 2013-05-25 19:47:09

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,821

Re: [SOLVED] boot up hangs on this message "a start job is running for ...

.... 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
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#7 2013-05-25 20:07:14

skinney6
Member
From: Oakland, CA
Registered: 2013-05-25
Posts: 48

Re: [SOLVED] boot up hangs on this message "a start job is running for ...

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 Console

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.

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

#8 2013-05-25 20:11:18

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] boot up hangs on this message "a start job is running for ...

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

#9 2013-05-25 20:22:41

skinney6
Member
From: Oakland, CA
Registered: 2013-05-25
Posts: 48

Re: [SOLVED] boot up hangs on this message "a start job is running for ...

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

#10 2013-05-25 20:30:52

skinney6
Member
From: Oakland, CA
Registered: 2013-05-25
Posts: 48

Re: [SOLVED] boot up hangs on this message "a start job is running for ...

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

#11 2013-05-25 20:32:03

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] boot up hangs on this message "a start job is running for ...

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

#12 2013-05-25 20:37:08

skinney6
Member
From: Oakland, CA
Registered: 2013-05-25
Posts: 48

Re: [SOLVED] boot up hangs on this message "a start job is running for ...

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

#13 2013-05-25 20:38:58

skinney6
Member
From: Oakland, CA
Registered: 2013-05-25
Posts: 48

Re: [SOLVED] boot up hangs on this message "a start job is running for ...

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.1

ExecStop=/sbin/ip addr flush dev enp1s0
ExecStop=/sbin/ip link set dev enp1s0 down

[Install]
WantedBy=multi-user.target

Offline

#14 2013-05-25 20:41:43

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] boot up hangs on this message "a start job is running for ...

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

#15 2013-05-25 20:41:53

skinney6
Member
From: Oakland, CA
Registered: 2013-05-25
Posts: 48

Re: [SOLVED] boot up hangs on this message "a start job is running for ...

the iso file name

archlinux-2013.05.01-dual.iso

Offline

#16 2013-05-25 20:44:53

skinney6
Member
From: Oakland, CA
Registered: 2013-05-25
Posts: 48

Re: [SOLVED] boot up hangs on this message "a start job is running for ...

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

#17 2013-05-25 20:46:01

skinney6
Member
From: Oakland, CA
Registered: 2013-05-25
Posts: 48

Re: [SOLVED] boot up hangs on this message "a start job is running for ...

is netctl like network control manager?

Offline

#18 2013-05-25 21:47:49

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] boot up hangs on this message "a start job is running for ...

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

#19 2013-05-26 00:23:04

skinney6
Member
From: Oakland, CA
Registered: 2013-05-25
Posts: 48

Re: [SOLVED] boot up hangs on this message "a start job is running for ...

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

#20 2013-05-26 00:33:16

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] boot up hangs on this message "a start job is running for ...

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

Board footer

Powered by FluxBB