Package: netplug Version: 1.2.9.2-3 Severity: normal If the netplug script fails to bring up the interface, netplug can put it into state INSANE. Unfortunately, it never leaves that state, preventing netplug from responding to further link changes.
This log shows the problem occurring. Probably the link was lost while the dhclient was trying to up the interface. It remained in state INSANE for hours, and the daemon had to be restarted to clear it up. Oct 24 11:36:30 honeybee netplugd[650]: eth0: state INACTIVE flags 0x00001003 UP,BROADCAST,MULTICAST -> 0x00011043 UP,BROADCAST,RUNNING,MULTICAST,10000 Oct 24 11:36:30 honeybee netplugd[2115]: /etc/netplug/netplug eth0 in -> pid 2115 Oct 24 11:36:30 honeybee dhclient[2132]: Internet Systems Consortium DHCP Client 4.3.5 Oct 24 11:36:30 honeybee dhclient[2132]: Copyright 2004-2016 Internet Systems Consortium. Oct 24 11:36:30 honeybee dhclient[2132]: All rights reserved. Oct 24 11:36:30 honeybee dhclient[2132]: For info, please visit https://www.isc.org/software/dhcp/ Oct 24 11:36:30 honeybee dhclient[2132]: Oct 24 11:36:30 honeybee dhclient[2132]: Listening on LPF/eth0/02:93:05:81:f2:aa Oct 24 11:36:30 honeybee dhclient[2132]: Sending on LPF/eth0/02:93:05:81:f2:aa Oct 24 11:36:30 honeybee dhclient[2132]: Sending on Socket/fallback Oct 24 11:36:30 honeybee dhclient[2132]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 Oct 24 11:36:33 honeybee dhclient[2132]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5 Oct 24 11:36:39 honeybee dhclient[2132]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7 Oct 24 11:36:46 honeybee dhclient[2132]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14 Oct 24 11:37:00 honeybee dhclient[2132]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21 Oct 24 11:37:20 honeybee netplugd[650]: eth0: state INNING pid 2115 exited status 256 Oct 24 11:39:27 honeybee netplugd[650]: eth0: state INSANE flags 0x00011043 UP,BROADCAST,RUNNING,MULTICAST,10000 -> 0x00001003 UP,BROADCAST,MULTICAST Oct 24 11:39:28 honeybee netplugd[650]: eth0: state INSANE flags 0x00001003 UP,BROADCAST,MULTICAST -> 0x00011043 UP,BROADCAST,RUNNING,MULTICAST,10000 Oct 24 11:39:38 honeybee netplugd[650]: eth0: state INSANE flags 0x00011043 UP,BROADCAST,RUNNING,MULTICAST,10000 -> 0x00001003 UP,BROADCAST,MULTICAST Oct 24 11:39:40 honeybee netplugd[650]: eth0: state INSANE flags 0x00001003 UP,BROADCAST,MULTICAST -> 0x00011043 UP,BROADCAST,RUNNING,MULTICAST,10000 Oct 24 22:40:43 honeybee netplugd[650]: eth0: state INSANE flags 0x00011043 UP,BROADCAST,RUNNING,MULTICAST,10000 -> 0x00001003 UP,BROADCAST,MULTICAST Oct 24 23:37:30 honeybee netplugd[650]: eth0: state INSANE flags 0x00001003 UP,BROADCAST,MULTICAST -> 0x00011043 UP,BROADCAST,RUNNING,MULTICAST,10000 Oct 24 23:37:55 honeybee netplugd[650]: eth0: state INSANE flags 0x00011043 UP,BROADCAST,RUNNING,MULTICAST,10000 -> 0x00001003 UP,BROADCAST,MULTICAST Oct 24 23:37:56 honeybee netplugd[650]: eth0: state INSANE flags 0x00001003 UP,BROADCAST,MULTICAST -> 0x00011043 UP,BROADCAST,RUNNING,MULTICAST,10000 Oct 24 23:39:35 honeybee netplugd[650]: eth0: state INSANE flags 0x00011043 UP,BROADCAST,RUNNING,MULTICAST,10000 -> 0x00001003 UP,BROADCAST,MULTICAST Oct 24 23:39:37 honeybee netplugd[650]: eth0: state INSANE flags 0x00001003 UP,BROADCAST,MULTICAST -> 0x00011043 UP,BROADCAST,RUNNING,MULTICAST,10000 In if_info.c, line 351, this code gets it into INSANE: case ST_INNING: if (exitok) info->state = ST_ACTIVE; else info->state = ST_INSANE; /* ??? */ break; There is no way out of INSANE once entered. ifsm_flagchange, there is this: case ST_INSANE: /* stay insane until there's been quiet for a while, then down interface and switch to ST_DOWN */ break; That might be the right place to fix it, but as far as I can see, there's no code following through on that comment. -- System Information: Debian Release: buster/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.13.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages netplug depends on: ii iproute 1:4.9.0-2 ii iproute2 4.9.0-2 ii libc6 2.24-17 ii lsb-base 9.20170808 netplug recommends no packages. netplug suggests no packages. -- see shy jo
signature.asc
Description: PGP signature