e1000 driver hang

I also created an cron script to run every 45 minutes and if there's no connectivity it will reboot the machine. It's more a workaround that a resolution but should hopefully work till I install the new card.

No need to reboot. The NIC comes back to life if you remove and re-insert the network cable - so just need to automate that.

Someone posted a suggestion in this thread some time ago to run systemctl restart networking, but in my case (Intel NUC10), that didn't help.

I had another hang overnight, and what did fix it for me this morning was ifdown / ifup:
Bash:
# ifdown eno1
# ifup eno1
 
I had another hang overnight, and what did fix it for me this morning was ifdown / ifup:
# ifdown eno1 # ifup eno1

Another hang again, my cron script detected the error, but /usr/sbin is not in root's PATH in cron - so it didn't actually do anything. Have now added full path to ifdown / ifup commands and hopefully it works next time.

FWIW, here is the code I use to detect the hang:

Bash:
# check system journal for recent hang
if ! hangcount=$(journalctl \
                    --since "2 minutes ago" _TRANSPORT=kernel \
                    _KERNEL_SUBSYSTEM=pci --priority=3 | \
                 grep -c "Detected Hardware Unit Hang:")
then
    echo "No network hang detected, exiting"
    exit 0
fi

If anyone is interested, my cron script and more info is available here.
 
Last edited:
the main idea is to stop the hanging by fixing it. rebooting is not a solution, better stick with ethtool solution for now.
 
I've been using an Intel X520-DA2 and no further issue. For those with the ability to add a separate NIC.

Still frustrating no fixes only work arounds for this bug.
 
Great, now I have the exact same problem. I got myself an EliteDesk 800 G6 so I can offload the VMs to, and sure enough, sometime during the night it hangs. Would it help if I ditch the built-in network card and get a new one?
 
Great, now I have the exact same problem. I got myself an EliteDesk 800 G6 so I can offload the VMs to, and sure enough, sometime during the night it hangs. Would it help if I ditch the built-in network card and get a new one?
Workarounds are either script or additional hardware.

If you can install a good quality PCI express NIC, go for it.
 
Okay, thank you very much. I have 2 EliteDesk 800 G6 here. One mini and one SFF. Do you perhaps have a recommendation for which NIC I should use so that everything runs smoothly? My other setup, ASRock DeskMini X300, has been running for 5 years without any problems, that's what I wish for the EliteDesk too.
 
For the mini are you using the Flex IO? I would check to make sure the one you purchase doesn't have the same intel chipset /driver. There are some Realtek ones, though Realtek chips do have some hate. I would avoid USB NICs.

For the SFF, Intel 226 will provide 2.5G and can be sourced 2nd hand. You can choose higher speeds, such as 10G but be aware of interface types and heat requierments.
 
First of all, thank you for the information.
I ran a few more tests yesterday.
With
post-up ethtool -K nic0 tso off
in the interfaces, it was a little better. Everything was fine during continuous operation, but when I made backups on the PBS, it kept crashing at a size of 200 GB.
I used a cheap PCI NIC card for testing, and everything works fine with that, but it's a little slower. I'll get a 2.5 GB card.
Is there any chance that Proxmox will be able to fix this at some point? Or do I just have to live with it? When I buy new hardware, the first thing I'll check is which chip is used for the NIC.

For testing purposes, I'll order the following NIC as an io port.
HP 2.5GbE LAN Flex Port Z2 Mini 169K0AA