#755477 network-manager: fills up /var/log/partition

Package:
network-manager
Source:
network-manager
Description:
network management framework (daemon and userspace tools)
Submitter:
Merlini Adrien
Date:
2014-08-06 14:39:08 UTC
Severity:
normal
#755477#5
Date:
2014-07-21 08:54:58 UTC
From:
To:
Dear Maintainer,

Dear Maintainer,

I have just upgraded network-manager to 0.9.10. Since the upgrade when
activating
the hotspot/shared AP feature, network-manager will 'spam' /var/log/deamon.log
with the message provided bellow. This ends up filling up completly the
partition containing /var/log and preventing parts of the system from
running. The filling up is also relatively fast, it took a few minutes to
reach 2GB on a laptop HDD.

I am not sure what causes the original issue, I will investigate this later.

But whatever the underlying problem is, don't you think network-manager should
have
safeguards to avoid filling up the logs and ending up breaking the
system? At least it could wait between retries to avoid filling up the log too
quickly.

Regarding the original issue could it be caused by the fact that the
name of the computer and the SSID of the hotspot are the same ('yuno')?
This would explain the "Name not unique on network" part of the logs.


Anyway thanks for your awesome work.

Best regards,

Log message bellow:

Jul 21 17:01:57 yuno NetworkManager[2804]: <info> (mon.wlan0):
supplicant interface state: starting -> down
Jul 21 17:01:57 yuno wpa_supplicant[993]: Could not set interface
mon.wlan0 flags: Name not unique on network
Jul 21 17:01:57 yuno wpa_supplicant[993]: nl80211: Could not set
interface 'mon.wlan0' UP
Jul 21 17:01:57 yuno wpa_supplicant[993]: Could not set interface
mon.wlan0 flags: Name not unique on network
Jul 21 17:01:57 yuno wpa_supplicant[993]: WEXT: Could not set interface
'mon.wlan0' UP
Jul 21 17:01:57 yuno wpa_supplicant[993]: mon.wlan0: Failed to
initialize driver interface
Jul 21 17:01:57 yuno NetworkManager[2804]: <error> [1405929717.489944]
[supplicant-manager/nm-supplicant-interface.c:856] interface_add_cb():
(mon.wlan0): error adding interface: wpa_supplicant couldn't grab this
interface.
Jul 21 17:01:57 yuno NetworkManager[2804]: <info> (mon.wlan0):
supplicant interface state: starting -> down
Jul 21 17:01:57 yuno wpa_supplicant[993]: Could not set interface
mon.wlan0 flags: Name not unique on network
Jul 21 17:01:57 yuno wpa_supplicant[993]: nl80211: Could not set
interface 'mon.wlan0' UP
Jul 21 17:01:57 yuno wpa_supplicant[993]: Could not set interface
mon.wlan0 flags: Name not unique on network
Jul 21 17:01:57 yuno wpa_supplicant[993]: WEXT: Could not set interface
'mon.wlan0' UP
Jul 21 17:01:57 yuno wpa_supplicant[993]: mon.wlan0: Failed to
initialize driver interface
Jul 21 17:01:57 yuno NetworkManager[2804]: <error> [1405929717.490598]
[supplicant-manager/nm-supplicant-interface.c:856] interface_add_cb():
(mon.wlan0): error adding interface: wpa_supplicant couldn't grab this
interface.
Jul 21 17:01:57 yuno NetworkManager[2804]: <info> (mon.wlan0):
supplicant interface state: starting -> down
Jul 21 17:01:57 yuno wpa_supplicant[993]: Could not set interface
mon.wlan0 flags: Name not unique on network
Jul 21 17:01:57 yuno wpa_supplicant[993]: nl80211: Could not set
interface 'mon.wlan0' UP
Jul 21 17:01:57 yuno wpa_supplicant[993]: Could not set interface
mon.wlan0 flags: Name not unique on network
Jul 21 17:01:57 yuno wpa_supplicant[993]: WEXT: Could not set interface
'mon.wlan0' UP
Jul 21 17:01:57 yuno wpa_supplicant[993]: mon.wlan0: Failed to
initialize driver interface
Jul 21 17:01:57 yuno NetworkManager[2804]: <error> [1405929717.490598]
[supplicant-manager/nm-supplicant-interface.c:856] interface_add_cb():
(mon.wlan0): error adding interface: wpa_supplicant couldn't grab this
interface.
Jul 21 17:01:57 yuno NetworkManager[2804]: <info> (mon.wlan0):
supplicant interface state: starting -> down
Jul 21 17:01:57 yuno wpa_supplicant[993]: Could not set interface
mon.wlan0 flags: Name not unique on network
Jul 21 17:01:57 yuno wpa_supplicant[993]: nl80211: Could not set
interface 'mon.wlan0' UP
Jul 21 17:01:57 yuno NetworkManager[2804]: <info> caught signal 15,
shutting down normally.
Jul 21 17:01:57 yuno wpa_supplicant[993]: Could not set interface
mon.wlan0 flags: Name not unique on network
Jul 21 17:01:57 yuno wpa_supplicant[993]: WEXT: Could not set interface
'mon.wlan0' UP
Jul 21 17:01:57 yuno wpa_supplicant[993]: mon.wlan0: Failed to
initialize driver interface

#755477#10
Date:
2014-08-04 15:38:13 UTC
From:
To:
Hi,

Any progress in investigating the issue?  I hit this a few weeks ago
immediately after upgrading network-manager even without activating a hotspot
as I keep a monitor interface around for aircrack-ng purposes.  Today, I hit
it again when activating a hotspot.  It does seem quite silly that
network-manager tries to manage a monitor interface it itself creates for the
hotspot, and doubly so that it fills the logs complaining about it.  You're
lucky that you keep a separate partition just for /var/log. :-)

Anyway, the workaround I use is this in
/etc/NetworkManager/NetworkManager.conf:

[keyfile]
unmanaged-devices=interface-name:wlan1mon0;interface-name:mon.wlan1

(wlan1mon0 is the monitor interface that I created, mon.wlan1 is the one
network-manager creates itself)

#755477#15
Date:
2014-08-06 14:31:17 UTC
From:
To:
Hi,

not really, i was hopping for an update... but nothing so far. However
I've just updated network-manager on another computer with a completely
different hardware, and the exact same issue occurred :/
So given that it happens on three different platform, I'd say that
something is wrong with network-manager...

I tried your fix and it worked for me, replacing wlan1 by wlan0 (iface
created by network-manager for me). Thanks a lot for sharing this.

I couldn't find any reference to this issue on google though. Are we the
only two pple affected :o? The fix you used isn't really trivial...

Thanks again for sharing the fix,

Regards