I find quite rarely that sometimes I lose my network connection and cannot logon from another PC. This can be resolved by a restart of ifup@enp3s0.service. However, this means I need to attach a keyboard and monitor to do so.
In trying to diagnose the problem I sometimes see on a server restart, like below, that the service ifup@enp3s0.service has failed. It doesn't give much information other than `code=exited, status=1`.
At this point OMV is working fine but I believe it is the next day when the DHCP renewal does not work. I cannot think of a way to fix this. I've been tempted to just restart it every day but that would be a crude solution to not understanding the problem.
Anyone seen anything like this before please?
nicholsr@omv23:~$ systemctl list-units --failed
UNIT LOAD ACTIVE SUB DESCRIPTION
● ifup@enp3s0.service loaded failed failed ifup for enp3s0
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
1 loaded units listed.
nicholsr@omv23:~$ systemctl status ifup@enp3s0.service
● ifup@enp3s0.service - ifup for enp3s0
Loaded: loaded (/lib/systemd/system/ifup@.service; static)
Active: failed (Result: exit-code) since Thu 2023-04-27 19:08:11 UTC; 5min ago
Process: 3127 ExecStart=/bin/sh -ec ifup --allow=hotplug enp3s0; ifquery --state enp3s0 (code=exited, status=1/FAILURE)
Main PID: 3127 (code=exited, status=1/FAILURE)
CPU: 80ms
Apr 27 19:08:08 omv23 sh[3252]: DHCPREQUEST for 192.168.1.69 on enp3s0 to 255.255.255.255 port 67
Apr 27 19:08:08 omv23 dhclient[3252]: DHCPREQUEST for 192.168.1.69 on enp3s0 to 255.255.255.255 port 67
Apr 27 19:08:08 omv23 dhclient[3252]: DHCPACK of 192.168.1.69 from 192.168.1.254
Apr 27 19:08:08 omv23 sh[3252]: DHCPACK of 192.168.1.69 from 192.168.1.254
Apr 27 19:08:11 omv23 dhclient[3252]: bound to 192.168.1.69 -- renewal in 35365 seconds.
Apr 27 19:08:11 omv23 sh[3252]: bound to 192.168.1.69 -- renewal in 35365 seconds.
Apr 27 19:08:11 omv23 sh[3642]: run-parts: /etc/network/if-up.d/chrony exited with return code 1
Apr 27 19:08:11 omv23 sh[3129]: ifup: failed to bring up enp3s0
Apr 27 19:08:11 omv23 systemd[1]: ifup@enp3s0.service: Main process exited, code=exited, status=1/FAILURE
Apr 27 19:08:11 omv23 systemd[1]: ifup@enp3s0.service: Failed with result 'exit-code'.
nicholsr@omv23:~$ ls -l /etc/network/interfaces.d/
total 0
nicholsr@omv23:~$ cat /var/lib/dhcp/dhclient.enp3s0.leases
default-duid "\000\001\000\001+iG\254\340?I\266}r";
lease {
interface "enp3s0";
fixed-address 192.168.1.69;
option subnet-mask 255.255.255.0;
option routers 192.168.1.254;
option dhcp-lease-time 86400;
option dhcp-message-type 5;
option domain-name-servers 192.168.1.254;
option dhcp-server-identifier 192.168.1.254;
option dhcp-renewal-time 37816;
option broadcast-address 192.168.1.255;
option dhcp-rebinding-time 70216;
option host-name "omv23";
option domain-name "home";
renew 4 2023/04/27 19:06:40;
rebind 4 2023/04/27 19:06:40;
expire 4 2023/04/27 19:06:40;
}
lease {
interface "enp3s0";
fixed-address 192.168.1.69;
option subnet-mask 255.255.255.0;
option routers 192.168.1.254;
option dhcp-lease-time 86400;
option dhcp-message-type 5;
option domain-name-servers 192.168.1.254;
option dhcp-server-identifier 192.168.1.254;
option dhcp-renewal-time 43200;
option broadcast-address 192.168.1.255;
option dhcp-rebinding-time 75600;
option host-name "omv23";
option domain-name "home";
renew 5 2023/04/28 04:57:35;
rebind 5 2023/04/28 16:08:08;
expire 5 2023/04/28 19:08:08;
}
Alles anzeigen
After a restart all is well
nicholsr@omv23:~$ sudo systemctl restart ifup@enp3s0.service
nicholsr@omv23:~$ sudo systemctl status ifup@enp3s0.service
● ifup@enp3s0.service - ifup for enp3s0
Loaded: loaded (/lib/systemd/system/ifup@.service; static)
Active: active (exited) since Thu 2023-04-27 19:27:09 UTC; 2s ago
Process: 51542 ExecStart=/bin/sh -ec ifup --allow=hotplug enp3s0; ifquery --state enp3s0 (code=exited, status=0/SUCCESS)
Main PID: 51542 (code=exited, status=0/SUCCESS)
Tasks: 4 (limit: 18978)
Memory: 1.7M
CPU: 233ms
CGroup: /system.slice/ifup@enp3s0.service
└─51559 /sbin/dhclient -4 -v -i -pf /run/dhclient.enp3s0.pid -lf /var/lib/dhcp/dhclient.enp3s0.leases -I -df /var/lib/dhcp/dhclient6.enp3s0.leases enp3s0
Apr 27 19:27:09 omv23 sh[51559]: DHCPREQUEST for 192.168.1.69 on enp3s0 to 255.255.255.255 port 67
Apr 27 19:27:09 omv23 dhclient[51559]: Sending on LPF/enp3s0/e0:3f:49:b6:7d:72
Apr 27 19:27:09 omv23 dhclient[51559]: Sending on Socket/fallback
Apr 27 19:27:09 omv23 dhclient[51559]: DHCPREQUEST for 192.168.1.69 on enp3s0 to 255.255.255.255 port 67
Apr 27 19:27:09 omv23 dhclient[51559]: DHCPACK of 192.168.1.69 from 192.168.1.254
Apr 27 19:27:09 omv23 sh[51559]: DHCPACK of 192.168.1.69 from 192.168.1.254
Apr 27 19:27:09 omv23 sh[51584]: RTNETLINK answers: File exists
Apr 27 19:27:10 omv23 dhclient[51559]: bound to 192.168.1.69 -- renewal in 34860 seconds.
Apr 27 19:27:10 omv23 sh[51559]: bound to 192.168.1.69 -- renewal in 34860 seconds.
Apr 27 19:27:10 omv23 sh[51643]: enp3s0=enp3s0
Alles anzeigen