Headless machine keeps loosing network connection

If none of the more specific forums is the right place to ask

Headless machine keeps loosing network connection

Postby Potatoshaped » 2020-08-23 12:24

Hi,

I have a headless Debian Buster with all the latest updates. It only runs a dozen docker instances like nginx, mariadb, piwigo, tt-rss, emby and such for in-home use. The only things I installed using apt are docker, some tools like atop and java. This machine is always on.

Since the last kernel update, this machine loses its network connection now and then. It has happened three times now. It doesn't respond to http or ssh anymore and when I connect a monitor over hdmi and a keyboard over usb I get no image, whatever key I press. The lights on the network connection are on (one continuously, the other intermittently) as is the power-on led. So the only thing I can do is a reset using the power button, which means that I lose the logs.

Code: Select all
journalctl --since today


starts at the reboot after the reset, and /var/log.syslog.1 stop at midnight last night.

I have a raspberry pi that is also always on and does not have this problem. They both have the same dhcp policy in the router.

Can anyone give me some tips on how to research what is going on here?

Any help greatly appreciated.
Potatoshaped
 
Posts: 5
Joined: 2020-06-26 07:05

Re: Headless machine keeps loosing network connection

Postby Head_on_a_Stick » 2020-08-23 18:07

Potatoshaped wrote:the only thing I can do is a reset using the power button, which means that I lose the logs

Read journald.conf(5), that explains how to make the journal persistent.

Please also post details of your network hardware and driver(s).
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13061
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Headless machine keeps loosing network connection

Postby Potatoshaped » 2020-08-24 14:02

Thank you for your response. My network hardware is recognized by igb:

Code: Select all
# dmesg | grep net
[    0.144061] audit: initializing netlink subsys (disabled)
[    0.856742] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[    0.890401] igb 0000:08:00.0: Intel(R) Gigabit Ethernet Network Connection
[   15.534240] systemd[1]: Set hostname to <###.###.###>.
[   36.514429] NFSD: starting 90-second grace period (net f0000098)
[   65.185382] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[   66.938094] Initializing XFRM netlink socket
[   85.409013] cgroup: cgroup: disabling cgroup2 socket matching due to net_prio or net_cls activation


Is this what you were asking?

Also thank you for the suggestion to change the log storage from auto to persistent.
Potatoshaped
 
Posts: 5
Joined: 2020-06-26 07:05

Re: Headless machine keeps loosing network connection

Postby Head_on_a_Stick » 2020-08-24 16:19

Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13061
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to General Questions

Who is online

Users browsing this forum: No registered users and 15 guests

fashionable