ClearFoundation Tracker - ClearOS
View Issue Details
0002991ClearOSapp-print-server - CUPS Print Serverpublic2015-05-29 09:042015-07-07 19:36
bchambers 
user2 
normalmajorsometimes
closedfixed 
6.6.0 
6.6.0 Updates 
0002991: Cups init script can corrupt ClearOS API
Whatever part of the init script that is used in the CUPS start script to determine what interfaces to listen on (eg. generates cupsd.listen.conf) can corrupt the ClearOS API (/network/library/Iface.php becomes a socket!).

Looks like an exception is being thrown, and instead of handling the exception, the script is looping through the content/backtrace and adding to the cupsd.listen.conf file. Eg:

# Automatically generated by init script
Listen PHP:631
Listen warning::631
Listen fopen(/sys/class/net/eth10/device/subsystem_vendor)::631
Listen failed:631
Listen to:631
Listen open:631
Listen stream::631
Listen No:631
Listen such:631
Listen file:631
Listen or:631
Listen directory:631
Listen -:631
Listen /usr/clearos/apps/network/libraries/Iface.php:631
Listen (1116):631
Listen PHP:631
Listen warning::631
Listen fopen(/sys/class/net/eth10/device/subsystem_device)::631
Listen failed:631
Listen to:631
Listen open:631
Listen stream::631
Listen No:631
Listen such:631
Listen file:631
Listen or:631
Listen directory:631
Listen -:631
Listen /usr/clearos/apps/network/libraries/Iface.php:631
Listen (1125):631
Listen PHP:631
Listen warning::631
Listen fopen(/sys/class/net/eth11/device/subsystem_vendor)::631
Listen failed:631
Listen to:631
Listen open:631
Listen stream::631
Listen No:631
Listen such:631
Listen file:631
No tags attached.
related to 0003171closed user2 Re-enable error reporting suppression 
Issue History
2015-05-29 09:04bchambersNew Issue
2015-05-29 09:04bchambersStatusnew => assigned
2015-05-29 09:04bchambersAssigned To => user2
2015-05-29 09:24user2Note Added: 0001601
2015-05-29 09:24user2Issue cloned: 0003001
2015-06-15 14:28user2Statusassigned => resolved
2015-06-15 14:28user2Resolutionopen => fixed
2015-06-15 14:31user2Issue cloned: 0003171
2015-06-15 14:31user2Relationship addedrelated to 0003171
2015-07-07 19:36user2Statusresolved => closed

Notes
(0001601)
user2   
2015-05-29 09:24   
On it. I can see from the backtrace that this box did not have the latest app-network package installed. That subsystem_vendor issue was resolved days after the 6.6.0 release. Regardless, CUPS needs a fixin'