NetworkManager just stops and server loses IP DHCP addres

Issues related to configuring your network
Post Reply
wikibit
Posts: 2
Joined: 2023/02/26 10:39:47

NetworkManager just stops and server loses IP DHCP addres

Post by wikibit » 2023/02/26 11:49:23

Hi,

I tried to search for this issue, but I could not find anything similar, and the forum does not allow me to browse through more than one search resultspage

I'm running a few Centos 9 Stream servers (no desktop/gui) on VMWare ESX.
They are all configured with DHCP (fixed dhcp lease on the dhcp server)
I did make sure they are up to date (dnf update runs daily)

On each of the 3 servers, I've the weird occurrence of NetworkManager just stopping, when that happens, the server also looses the DHCP ip address, and they become unreachable.

In the example below, it happens at 03:36

just restarting the NetworkManager via the console, immediately solves the issue, the server gets his ip address again, and is reachable again.

I cannot find anything which could cause the service to be shutdown (or does it crash?)

Code: Select all

Feb 25 13:54:46 app13-server NetworkManager[947]: <info>  [1677329686.1985] manager: NetworkManager state is now CONNECTED_GLOBAL
Feb 25 13:54:46 app13-server NetworkManager[947]: <info>  [1677329686.1989] manager: startup complete
Feb 25 14:54:46 app13-server NetworkManager[947]: <info>  [1677333286.1652] dhcp4 (ens192): state changed new lease, address=10.10.12.179
Feb 25 15:54:46 app13-server NetworkManager[947]: <info>  [1677336886.1585] dhcp4 (ens192): state changed new lease, address=10.10.12.179
Feb 25 16:54:46 app13-server NetworkManager[947]: <info>  [1677340486.1592] dhcp4 (ens192): state changed new lease, address=10.10.12.179
Feb 25 17:54:46 app13-server NetworkManager[947]: <info>  [1677344086.1580] dhcp4 (ens192): state changed new lease, address=10.10.12.179
Feb 25 18:54:46 app13-server NetworkManager[947]: <info>  [1677347686.1598] dhcp4 (ens192): state changed new lease, address=10.10.12.179
Feb 25 19:54:46 app13-server NetworkManager[947]: <info>  [1677351286.1640] dhcp4 (ens192): state changed new lease, address=10.10.12.179
Feb 25 20:54:46 app13-server NetworkManager[947]: <info>  [1677354886.1608] dhcp4 (ens192): state changed new lease, address=10.10.12.179
Feb 25 21:54:46 app13-server NetworkManager[947]: <info>  [1677358486.1589] dhcp4 (ens192): state changed new lease, address=10.10.12.179
Feb 25 22:54:46 app13-server NetworkManager[947]: <info>  [1677362086.1594] dhcp4 (ens192): state changed new lease, address=10.10.12.179
Feb 25 23:54:46 app13-server NetworkManager[947]: <info>  [1677365686.1597] dhcp4 (ens192): state changed new lease, address=10.10.12.179
Feb 26 00:54:46 app13-server NetworkManager[947]: <info>  [1677369286.1724] dhcp4 (ens192): state changed new lease, address=10.10.12.179
Feb 26 01:54:46 app13-server NetworkManager[947]: <info>  [1677372886.1639] dhcp4 (ens192): state changed new lease, address=10.10.12.179
Feb 26 02:54:46 app13-server NetworkManager[947]: <info>  [1677376486.1614] dhcp4 (ens192): state changed new lease, address=10.10.12.179
Feb 26 03:36:30 app13-server NetworkManager[947]: <warn>  [1677378990.8540] ifcfg-rh: dbus: com.redhat.ifcfgrh1 bus closed
Feb 26 03:36:30 app13-server NetworkManager[947]: <info>  [1677378990.9390] caught SIGTERM, shutting down normally.
Feb 26 03:36:30 app13-server NetworkManager[947]: <info>  [1677378990.9409] dhcp4 (ens192): canceled DHCP transaction
Feb 26 03:36:30 app13-server NetworkManager[947]: <info>  [1677378990.9410] dhcp4 (ens192): activation: beginning transaction (timeout in 45 seconds)
Feb 26 03:36:30 app13-server NetworkManager[947]: <info>  [1677378990.9410] dhcp4 (ens192): state changed no lease
Feb 26 03:36:30 app13-server NetworkManager[947]: <info>  [1677378990.9413] manager: NetworkManager state is now CONNECTED_SITE
Feb 26 03:36:30 app13-server NetworkManager[947]: <info>  [1677378990.9473] exiting (success)
Feb 26 03:36:31 app13-server systemd[1]: NetworkManager.service: Deactivated successfully.
Feb 26 03:36:31 app13-server systemd[1]: NetworkManager.service: Consumed 34.352s CPU time.
Feb 26 12:35:29 app13-server systemd[1]: Starting Network Manager...
Feb 26 12:35:29 app13-server NetworkManager[94089]: <info>  [1677411329.8951] NetworkManager (version 1.42.0-1.el9) is starting... (after a restart, boot:c75578d3-2b88-4133-9>
Feb 26 12:35:29 app13-server NetworkManager[94089]: <info>  [1677411329.8960] Read config: /etc/NetworkManager/NetworkManager.conf (run: 15-carrier-timeout.conf)
Feb 26 12:35:29 app13-server systemd[1]: Started Network Manager.
Feb 26 12:35:29 app13-server NetworkManager[94089]: <info>  [1677411329.9013] bus-manager: acquired D-Bus service "org.freedesktop.NetworkManager"
Feb 26 12:35:29 app13-server NetworkManager[94089]: <info>  [1677411329.9138] manager[0x5587c935d080]: monitoring kernel firmware directory '/lib/firmware'.
Feb 26 12:35:30 app13-server NetworkManager[94089]: <info>  [1677411330.1663] hostname: hostname: using hostnamed
Any help, tips or advice are welcome

User avatar
TrevorH
Site Admin
Posts: 33272
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: NetworkManager just stops and server loses IP DHCP addres

Post by TrevorH » 2023/02/26 13:38:22

If it's always between 03:00-04:00 then I would suspect something to do with logrotate.
the forum does not allow me to browse through more than one search resultspage
Use Google with the argument "site:forums.centos.org" plus your other search arguments.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

wikibit
Posts: 2
Joined: 2023/02/26 10:39:47

Re: NetworkManager just stops and server loses IP DHCP addres

Post by wikibit » 2023/02/26 14:08:21

TrevorH wrote:
2023/02/26 13:38:22
If it's always between 03:00-04:00 then I would suspect something to do with logrotate.
the forum does not allow me to browse through more than one search resultspage
Use Google with the argument "site:forums.centos.org" plus your other search arguments.
Ok thanks, I'm trying that, but doing so, so far I've not found a similar case here

User avatar
TrevorH
Site Admin
Posts: 33272
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: NetworkManager just stops and server loses IP DHCP addres

Post by TrevorH » 2023/02/26 18:21:18

The joys of running Stream... you get to find all the nice shiny new bugs before anyone else.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply