ClearOS Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004742ClearOSapp-network - Network Settingspublic2015-09-01 09:542018-08-15 06:00
Assigned Topbaldwin 
PlatformOSOS Version
Product Version6.6.0 Updates 
Target Version6.10 UpdatesFixed in Version 
Summary0004742: /usr/sbin/network fails to properly enumerate mon.wlanX
DescriptionWhen a device exists like 'mon.wlan0' the /usr/sbin/network program throws and exception:

PHP warning: ifconfig_flags: No such device - /usr/clearos/apps/network/libraries/Iface_Manager.php (469)

It cause here seems to be in triggered by /usr/clearos/apps/network/libraries/Iface_Manager.php which enumerates the devices by ignoring or splitting the portion after a period '.wlan0' part and will fail to enumerate a simple 'mon'. This may be the result of trimming that is done for VLAN interfaces but the case match is too aggressive and will match letter/number combinations instead of numbers only.

Consequently, if a user is using mon.wlanX for any purpose, apps which enumerate interfaces using this method (like LDAP) will fail to start due to the exception that is thrown.
Steps To ReproduceCreate an interface like mon.wlan0 then run

/usr/sbin/network --get-lan-ips | grep -v debug

TagsNo tags attached.
Attached Files

- Relationships
related to 0003171closedpbaldwin Re-enable error reporting suppression 

-  Notes
dloper (administrator)
2015-09-01 10:05

Another thing to add as an effective workaround and may be useful for the init script is to change the following in /etc/init.d/slapd:

for LANIP in `/usr/sbin/network --get-lan-ips | grep -v debug`; do


for LANIP in `/usr/sbin/network --get-lan-ips | grep -v debug | grep -v warn`; do
pbaldwin (administrator)
2015-09-01 14:06

The root cause is from the issue described in 0003171. The developer explicitly suppresses warnings in the ifconfig_flags() call (and other calls), but that suppression is ignored. The fix was a small but significant change that was pushed out in ClearOS 7 Beta 3. We can definitely backport post ClearOS 7.
pbaldwin (administrator)
2018-08-15 06:00

Still waiting on access to a test device. On hold.

- Issue History
Date Modified Username Field Change
2015-09-01 09:54 dloper New Issue
2015-09-01 10:05 dloper Note Added: 0001912
2015-09-01 11:24 pbaldwin Status new => confirmed
2015-09-01 14:00 pbaldwin Target Version 6.7.0 => 6.7.0 Updates
2015-09-01 14:01 pbaldwin Relationship added related to 0003171
2015-09-01 14:06 pbaldwin Note Added: 0001922
2016-02-16 21:33 pbaldwin Target Version 6.7.0 Updates => 6.8.0 Updates
2017-03-21 08:42 pbaldwin Target Version 6.8.0 Updates => 6.9.0 Updates
2018-01-16 04:59 pbaldwin Target Version 6.9.0 Updates => 6.10
2018-08-15 06:00 pbaldwin Note Added: 0007881
2018-08-15 06:00 pbaldwin Assigned To => pbaldwin
2018-08-15 06:00 pbaldwin Status confirmed => feedback
2018-08-15 06:00 pbaldwin Target Version 6.10 => 6.10 Updates