You are not logged in.

#1 2014-11-21 13:43:08

qweez
Member
Registered: 2014-10-03
Posts: 11

After automatic renaming dhcpcd on enp4s0 fails to load

Hello,
I installed arch and had this from the very beginning (and reinstalled it and had the same issue):

hwdb.bin does not exist, please run udevadm hwdb --update

Everything worked, but after 4 days this error occured:

[ TIME ] Timed out waiting for device sys-subsystem-net-devices-eth0.device.
[DEPEND] Dependency failed for dhcpcd on eth0.

After that it loaded all services, but didn't do anyting after that, so I had to hit Ctrl+alt+F2 and logged in as root.
I figured out through ip link that my ethernet is now named "enp4s0". I enabled the dhcpcd@enp4s0.service, rebooted, but there was another problem:

 [FAILED] Failed to start dhcpcd on enp4s0
See " systemctl status dhcpcd@enp4s0.service for details.

And did nothing after that, too.

# systemctl status dhcpcd@enp4s0.service
     dhcpcd@enp4s0.service - dhcpcd on enp4s0
      Loaded: (/usr/lib/systemd/system/dhcpcd@.service; enabled)
      Active:   failed (Result: exit-code) since Do 2014-11-20 18:56:32 CET; 11min ago
   Process:  371 ExecStart=/usr/bin/dhcpcd -q -w %I (code=exited, status=1/FAILURE)

Nov 20 16:08:09 archlinux dhcpcd [371]:  version 6.6.2 starting
Nov 20 16:08:09 archlinux dhcpcd [371]: enp4s0: adding address fe80:9b87:9db7:e617:8c7
Nov 20 16:08:09 archlinux dhcpcd [371]: enp4s0: waiting for carrier
Nov 20 16:08:09 archlinux dhcpcd [371]: timed out
Nov 20 16:08:09 archlinux systemd [1]: dhcpcd@enp4s0.service: control process exited, code=exited status=1
Nov 20 16:08:09 archlinux systemd [1]: Failed to start dhcpcd on enp4s0.
Nov 20 16:08:09 archlinux systemd [1]: Unit dhcpcd@enp4s0.service entered failed state.
Nov 20 16:08:09 archlinux systemd [1]: dhcpcd@enp4s0.service failed.

There may be mistakes in it, because i had to copy it manually. I would be happy if you could help me.
Thanks in advance.

Offline

#2 2014-11-21 13:52:25

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: After automatic renaming dhcpcd on enp4s0 fails to load

qweez wrote:

Hello,
I installed arch and had this from the very beginning (and reinstalled it and had the same issue):

hwdb.bin does not exist, please run udevadm hwdb --update

This error is harmless and can be ignored. (There is a topic somewhere, but I' too lazy to link it)

About the actual error: Does your ethernet connection work? Because it sees from the errors that your ethernet NIC might be broken. Can you boot a live cd or boot into windows and test this?

EDIT: On second thought, might be a cable. Try switching out the cable and test under different OS to figure out if it is an arch problem or a hardware problem.
Also, are you sure that it was automatically renamed? I never heard about the system doing that...

Last edited by runical (2014-11-21 14:04:45)

Offline

#3 2014-11-21 15:03:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: After automatic renaming dhcpcd on enp4s0 fails to load

runical wrote:
qweez wrote:

Hello,
I installed arch and had this from the very beginning (and reinstalled it and had the same issue):

hwdb.bin does not exist, please run udevadm hwdb --update

This error is harmless and can be ignored. (There is a topic somewhere, but I' too lazy to link it)

https://bbs.archlinux.org/viewtopic.php?id=189536

Offline

#4 2014-11-21 15:44:05

qweez
Member
Registered: 2014-10-03
Posts: 11

Re: After automatic renaming dhcpcd on enp4s0 fails to load

OK,
the hwdb thing is not relevant.

About the actual error: Does your ethernet connection work? Because it sees from the errors that your ethernet NIC might be broken. Can you boot a live cd or boot into windows and test this?

EDIT: On second thought, might be a cable. Try switching out the cable and test under different OS to figure out if it is an arch problem or a hardware problem.
Also, are you sure that it was automatically renamed? I never heard about the system doing that...

When i connect the ethernet cable everything seems to work, but it stucks at

[  OK. ] Reached target Network

The wired internet works as well as on a ubuntu live CD. When i unplug it, the same issue like above occurs again.
In addtion i have never changed the name of the ethernet device. It was always renamed after a few days when I installed arch.
I had no cable plugged in first.

Last edited by qweez (2014-11-21 16:05:44)

Offline

#5 2014-11-21 19:45:38

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: After automatic renaming dhcpcd on enp4s0 fails to load

So, what exactly is the problem? You say that it does nothing, but what do you expect it to do and what does it do instead? Nothing is kinda vague...

qweez wrote:

In addtion i have never changed the name of the ethernet device. It was always renamed after a few days when I installed arch.

Strange, the new name should be the default.

qweez wrote:

I had no cable plugged in first.

What do you mean? You plugged in the cable after boot?

Last edited by runical (2014-11-21 19:49:23)

Offline

#6 2014-11-21 20:41:03

qweez
Member
Registered: 2014-10-03
Posts: 11

Re: After automatic renaming dhcpcd on enp4s0 fails to load

So, what exactly is the problem? You say that it does nothing, but what do you expect it to do and what does it do instead? Nothing is kinda vague...

I mean that it shows the systemd start list on boot, but then it doesn't go to the login screen.

What do you mean? You plugged in the cable after boot?

The ethernet cable wasn't plugged into the router correctly, but I recognized it after you told me to check the cable.

Last edited by qweez (2014-11-21 20:59:01)

Offline

#7 2014-11-21 21:24:19

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: After automatic renaming dhcpcd on enp4s0 fails to load

What says

$ ip link |grep -E '^[[:digit:]]+\:.*' | awk '{print $2}'

Did you try manually to run dhcpcd, in a console?

# /usr/bin/dhcpcd -q -w enp4s0

do it good first, it will be faster than do it twice the saint wink

Offline

#8 2014-11-21 23:09:11

qweez
Member
Registered: 2014-10-03
Posts: 11

Re: After automatic renaming dhcpcd on enp4s0 fails to load

# ip link |grep -E '^[[:digit:]]+\:.*' | awk '{print $2}'
lo:
enp4s0:
wlp3s0:
# /usr/bin/dhcpcd -q -w enp4s0

Is that normal?

Offline

#9 2014-11-22 09:20:18

rebootl
Member
Registered: 2012-01-10
Posts: 431
Website

Re: After automatic renaming dhcpcd on enp4s0 fails to load

Hello

Since you say everything worked before the renaming. You should be able to prevent this by using an empty file under: /etc/udev/rules.d/80-net-setup-link.rules
e.g.:

# This file masks persistent renaming rules for network devices. If you
# delete this file, /usr/lib/udev/rules.d/80-net-name-slot.rules may
# rename network devices according to ID_NET_NAME_{ONBOARD,SLOT,PATH}
# properties of your network devices, with priority in that order. See
# the output of 'udevadm test-builtin net_id /sys/class/net/$interface'
# for details on what that new name might be.
# 
# http://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames

(Using a link to /dev/null should also work I think.)

I never liked those "predictable" names.


Personal website: reboot.li
GitHub: github.com/rebootl

Offline

#10 2014-11-22 09:45:58

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: After automatic renaming dhcpcd on enp4s0 fails to load

qweez wrote:
# ip link |grep -E '^[[:digit:]]+\:.*' | awk '{print $2}'
lo:
enp4s0:
wlp3s0:

OK, the interface name is correct as expected.

qweez wrote:
# /usr/bin/dhcpcd -q -w enp4s0

Is that normal?

Didn't you run the command ? (Just taken from the service script)
Maybe better to omit -q.
What's its output?


do it good first, it will be faster than do it twice the saint wink

Offline

#11 2014-11-22 10:29:26

qweez
Member
Registered: 2014-10-03
Posts: 11

Re: After automatic renaming dhcpcd on enp4s0 fails to load

# /usr/bin/dhcpcd -q -w enp4s0

Had no output.

# /usr/bin/dhcpcd -w enp4s0
dhcpcd[495]: dhcpcd already running on pid 482 (/run/dhcpcd-enp4s0.pid)

Hello

Since you say everything worked before the renaming. You should be able to prevent this by using an empty file under: /etc/udev/rules.d/80-net-setup-link.rules

Didn't help.

Offline

#12 2014-11-22 11:51:09

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: After automatic renaming dhcpcd on enp4s0 fails to load

OK, if you have the dhcpcd running check

$ ip link show enp4s0
$ route -n ## or ## $ ip route

do it good first, it will be faster than do it twice the saint wink

Offline

#13 2014-11-22 12:37:59

qweez
Member
Registered: 2014-10-03
Posts: 11

Re: After automatic renaming dhcpcd on enp4s0 fails to load

# ip link show enp4s0
2: enp4s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
      link/ether e8:40:f2:f9:7e:fc brd ff:ff:ff:ff:ff:ff
# ip Route
default via 192.168.178.1 dev enp4s0 metric 202
192.168.178.0/24 dev enp4s0  proto kernel  scope link  SRC  192.168.178.56. metric 202

Offline

#14 2014-11-22 13:08:52

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: After automatic renaming dhcpcd on enp4s0 fails to load

Hardware is OK and you're connected.
Can you ping your router/gateway?

$ ping -c4 192.168.178.1

For this case I think that is common in the journal that dhcpcd fails at the first trial, but it comes alive a bit later.
There's an option to re-kick the program if it fails.


do it good first, it will be faster than do it twice the saint wink

Offline

#15 2014-11-22 14:19:34

qweez
Member
Registered: 2014-10-03
Posts: 11

Re: After automatic renaming dhcpcd on enp4s0 fails to load

Ping gives response. But there is still the question, why it doesn't proceed to the login screen after either:

[  OK  ]  Target Network reached.

or:

 hwdb.bin does not exist, please run udevadm hwdb --update

(I know that the message has nothing to do with that)?

Offline

#16 2014-11-22 14:27:58

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: After automatic renaming dhcpcd on enp4s0 fails to load

The first is a message, not a warning nor an error.
The second my searching leads here.
Where do you have to log in? remote desktop ?
It could be another broken link, independent from dhcpcd.


do it good first, it will be faster than do it twice the saint wink

Offline

#17 2014-11-22 14:55:06

qweez
Member
Registered: 2014-10-03
Posts: 11

Re: After automatic renaming dhcpcd on enp4s0 fails to load

Not the message is the problem. I mean that it doesn't procced after one of the two messages to gdm or the

Arch Linux 3.17.3-1-ARCH
archlinux login:

screen.

Offline

#18 2014-11-22 15:27:41

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: After automatic renaming dhcpcd on enp4s0 fails to load

So the problem is the login, I think.
Have look into journal ?


do it good first, it will be faster than do it twice the saint wink

Offline

#19 2014-11-22 15:56:57

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: After automatic renaming dhcpcd on enp4s0 fails to load

It sounds like you are chasing the wrong problem. Do a search for problems loading GDM/Login manager(s). That is a different issue than something with a network card. Check your Xorg log(s) and post them if need be.


Matt

"It is very difficult to educate the educated."

Offline

#20 2014-11-22 17:33:04

qweez
Member
Registered: 2014-10-03
Posts: 11

Re: After automatic renaming dhcpcd on enp4s0 fails to load

It' s definitely Xorg, because when I disabled gdm I came to the login screen. I typed startx and it gave an error. I haven't found any solutions for this at the moment, so here's my /var/log/Xorg.0.log:

[   381.125]
X.Org X Server 1.16.2
Release Date: 2014-11-10
[   381.125] X Protocol Version 11, Revision 0
[   381.125] Build Operating System: Linux 3.17.2-1-ARCH x86_64
[   381.125] Current Operating System: Linux archlinux 3.17.3-1-ARCH #1 SMP $[   381.125] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=b$[   381.126] Build Date: 10 November 2014  07:52:13PM
[   381.126]
[   381.126] Current version of pixman: 0.32.6
[   381.126]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   381.126] Markers: (--) probed, (**) from config file, (==) default setti$        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   381.127] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Nov 22 17:41:25$[   381.127] (==) Using config file: "/etc/X11/xorg.conf"
[   381.127] (==) Using config directory: "/etc/X11/xorg.conf.d"
[   381.127] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[   381.128] (==) ServerLayout "Layout0"
[   381.128] (**) |-->Screen "Screen0" (0)
[   381.128] (**) |   |-->Monitor "Monitor0"
[   381.128] (**) |   |-->Device "Device0"                                   [   381.128] (**) |-->Input Device "Keyboard0"
[   381.128] (**) |-->Input Device "Mouse0"
[   381.128] (==) Automatically adding devices
[   381.128] (==) Automatically enabling devices
[   381.128] (==) Automatically adding GPU devices
[   381.128] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[   381.128]    Entry deleted from font path.                                [   381.128] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/$[   381.128]    Entry deleted from font path.
[   381.128]    (Run 'mkfontdir' on "/usr/share/fonts/100dpi/").
[   381.128] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/$[   381.128]    Entry deleted from font path.
[   381.128]    (Run 'mkfontdir' on "/usr/share/fonts/75dpi/").
[   381.128] (==) FontPath set to:                                                   /usr/share/fonts/misc/,
        /usr/share/fonts/TTF/,
        /usr/share/fonts/Type1/                                              [   381.128] (==) ModulePath set to "/usr/lib/xorg/modules"
[   381.128] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or$[   381.128] (WW) Disabling Keyboard0
[   381.128] (WW) Disabling Mouse0
[   381.128] (II) Loader magic: 0x818d80
[   381.128] (II) Module ABI versions:
[   381.128]    X.Org ANSI C Emulation: 0.4
[   381.128]    X.Org Video Driver: 18.0
[   381.128]    X.Org XInput driver : 21.0
[   381.128]    X.Org Server Extension : 8.0
[   381.132] (II) systemd-logind: took control of session /org/freedesktop/l$[   381.132] (II) xfree86: Adding drm device (/dev/dri/card0)
[   381.133] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 8 pause$[   381.136] (--) PCI:*(0:0:2:0) 8086:0116:1b0a:20dd rev 9, Mem @ 0xf6400000$[   381.136] (--) PCI: (0:1:0:0) 10de:0fd1:1b0a:20dd rev 161, Mem @ 0xf50000$

Last edited by qweez (2014-11-22 17:35:28)

Offline

#21 2014-11-22 17:42:25

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: After automatic renaming dhcpcd on enp4s0 fails to load

OK, start a new topic, please.


do it good first, it will be faster than do it twice the saint wink

Offline

Board footer

Powered by FluxBB