You are not logged in.

#1 2019-12-13 22:44:42

rasple
Member
Registered: 2019-12-13
Posts: 2

Ethernet on arch server is killed by ntpd after a day for no reason

Hi this is my first time posting and I am not sure this is the right place. Please move this thread if it isn't.

I have an arch home server on an intel nuc which mostly runs docker containers with various web services that interact with a raid 5 array with 5 HDDs connected via USB. It is connected via ethernet and gets a static IP adress via DHCP. This setup has been up and running pretty much unchanged for 2 years and i just do "yay -Syu" every now and then. Recently about every day, the server becomes unresponsive and unreachable via SSH or SMB. After doing a restart via power button I found the following line in the logs where ntpd says my ethernet interface has been "deleted".

Dec 13 23:06:40 nuc ntpd[5447]: Deleting interface #18 enp3s0, 192.168.178.86#123, interface stats: received=322, sent=335, dropped=0, active_time=78043 secs
Dec 13 23:06:40 nuc ntpd[5447]: 131.188.3.220 local addr 192.168.178.86 -> <null>
Dec 13 23:06:40 nuc ntpd[5447]: 194.25.134.196 local addr 192.168.178.86 -> <null>
Dec 13 23:06:40 nuc ntpd[5447]: 185.207.104.70 local addr 192.168.178.86 -> <null>
Dec 13 23:06:40 nuc ntpd[5447]: 90.187.99.165 local addr 192.168.178.86 -> <null>

After that it is pretty much all my services logging panically because the network has been cut off. After the restart everything works fine again until the error occurs again after a day.  I am really confused as to how ntpd can even delete a network interface and why it happens. I thought it was just for tracking time. I don't even really know where to look and can find noone with a similar problem. This has never happened before and I have no idea how/why this happens. For now I have stopped ntpd but I really would like to have a better solution smile

$uname -a
Linux nuc 5.4.2-arch1-1 #1 SMP PREEMPT Thu, 05 Dec 2019 12:29:40 +0000 x86_64 GNU/Linux

Offline

#2 2019-12-13 23:34:15

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 630

Re: Ethernet on arch server is killed by ntpd after a day for no reason

This is the best explanation I found with a cursory search of "ntpd[5447]: Deleting interface".
https://access.redhat.com/solutions/261123

Offline

#3 2019-12-14 08:09:52

seth
Member
Registered: 2012-09-03
Posts: 51,146

Re: Ethernet on arch server is killed by ntpd after a day for no reason

Please post a complete system journal from a boot where this happened as well as "lspci"
Do you think the interface drops out with a fixed frequency? (You can inspect vearious boot journals and compare the first timestamp w/ the the first timestamps indicating the failure to look for a pattern)

Offline

#4 2019-12-16 19:00:40

rasple
Member
Registered: 2019-12-13
Posts: 2

Re: Ethernet on arch server is killed by ntpd after a day for no reason

Thanks for your responses but I think I figured it out. Turns out it was dhcp which explains why the interfaces were always deleted at the same time when dhcpcd got a new lease. dhcpcd was segfaulting for some reason. Disabling it should solve the problem. I will report back if it doesn't. Thank you for your help.

Offline

#5 2019-12-16 20:03:00

seth
Member
Registered: 2012-09-03
Posts: 51,146

Re: Ethernet on arch server is killed by ntpd after a day for no reason

https://bugs.archlinux.org/task/64398?p … ing=dhcpcd ?

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB