Sunday, 5 June 2011

FIXED: CUPS print server unable to start

Stranglely I started having problems with the CUPS print server when I installed Zend Server and Zend Studio on my Ubuntu 11.04 system. This was what the logs were showing:


Jun  3 10:36:29 acjcm3c kernel: [  527.087977] type=1400 audit(1307122589.944:318): apparmor="DENIED" operation="file_mmap" parent=1 profile="/usr/sbin/cupsd" name="/usr/local/zend/lib/liblber-2.4.so.2" pid=5107 comm="cupsd" requested_mask="m" denied_mask="m" fsuid=0 ouid=0
Jun  3 10:36:35 acjcm3c kernel: [  532.130427] type=1400 audit(1307122594.994:319): apparmor="STATUS" operation="profile_replace" name="/usr/lib/cups/backend/cups-pdf" pid=5135 comm="apparmor_parser"
Jun  3 10:36:35 acjcm3c kernel: [  532.132847] type=1400 audit(1307122594.994:320): apparmor="STATUS" operation="profile_replace" name="/usr/sbin/cupsd" pid=5135 comm="apparmor_parser"
Jun  3 10:36:35 acjcm3c init: cups main process (5136) terminated with status 127
Jun  3 10:36:35 acjcm3c init: cups main process ended, respawning

The solution:

It appears that Zend has put some of its libraries in the common dir which loads all the Zend related so's.

Just do these four commands:

cd /usr/local/zend/lib
sudo rm libldap_r-2.4.so.2
sudo rm libldap-2.4.so.2
sudo rm liblber-2.4.so.2

No comments:

Post a Comment