cupsys fails to install or run

Bug #186527 reported by Lars Noodén
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
cupsys (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: cupsys

Worked last week, but now seems not to run at all. Restarting CUPS gives this error:

      * Restarting Common Unix Printing System: cupsd
                cupsd: Child exited on signal 15!

Re-installing gives this sequence and then the same error:

$ sudo apt-get install cupsys
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  cups-pdf cupsys-driver-gutenprint foomatic-filters-ppds hplip xpdf-korean
  xpdf-japanese xpdf-chinese-traditional xpdf-chinese-simplified
Recommended packages:
  avahi-utils
The following NEW packages will be installed:
  cupsys
0 upgraded, 1 newly installed, 0 to remove and 34 not upgraded.
Need to get 0B/2051kB of archives.
After this operation, 11.5MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously deselected package cupsys.
(Reading database ... 140703 files and directories currently installed.)
Unpacking cupsys (from .../cupsys_1.3.5-1ubuntu2_i386.deb) ...
Setting up cupsys (1.3.5-1ubuntu2) ...
Reloading AppArmor profiles : done.
 * Starting Common Unix Printing System: cupsd cupsd: Child exited on signal 15!
invoke-rc.d: initscript cupsys, action "start" failed.
dpkg: error processing cupsys (--configure):
 subprocess post-installation script returned error exit status 3
Errors were encountered while processing:
 cupsys
E: Sub-process /usr/bin/dpkg returned an error code (1)
lars@macbook:~/Desktop/To_Be_Printed_at_Tokem$ sudo /etc/init.d/cupsys restart
 * Restarting Common Unix Printing System: cupsd cupsd: Child exited on signal 15!

Here is the system information:
   cupsys 1.3.5-1ubuntu2
   DISTRIB_ID=Ubuntu
   DISTRIB_RELEASE=8.04
   DISTRIB_CODENAME=hardy
   DISTRIB_DESCRIPTION="Ubuntu hardy (development branch)"
   Linux macbook 2.6.24-4-generic #1 SMP Mon Jan 14 17:30:39 UTC 2008 i686 GNU/Linux

Revision history for this message
Lars Noodén (larsnooden) wrote : syslog errors

Here are the errors from CUPS in syslog that come from the command

   sudo /etc/init.d/cupsys restart

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) wrote :

Please run:

sudo tail -f /var/log/messages

then run:

sudo /etc/init.d/cupsys restart

and paste the output in the /var/log/messages.

A

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) wrote :

Sorry I missed your syslog report.

Run and post the output:

ls -l /var/log/cups/error_log
and
ls -l /var/log/ | grep cups

the l=lower case L

Thanks!

A

Revision history for this message
Lars Noodén (larsnooden) wrote : output from 'ls'

     $ ls -l /var/log/cups/error_log
     ls: /var/log/cups/error_log: No such file or directory
     $ ls -l /var/log/ | grep cups
     drwxr-xr-x 2 root root 4096 2008-01-22 19:48 cups

It should be noted that one of the things I tried after the remove/reinstall was to remove the /var/log/cups directory and let the reinstinstall rebuild it.

Revision history for this message
Lars Noodén (larsnooden) wrote : affects other packages

I would consider categorizing the cupsys problem as a security problem because it also causes apt-get to fail. That's the fault of apt-get, but for right now the problem is triggered by cupsys' problems:

lars@macbook:~$ sudo apt-get upgrade gimp gimp-data
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
  gimp gimp-data grub linux-generic linux-headers-generic linux-image-generic
  linux-restricted-modules-generic sensors-applet
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]?
Setting up cupsys (1.3.5-1ubuntu2) ...
Reloading AppArmor profiles : done.
 * Starting Common Unix Printing System: cupsd cupsd: Child exited on signal 15!
invoke-rc.d: initscript cupsys, action "start" failed.
dpkg: error processing cupsys (--configure):
 subprocess post-installation script returned error exit status 3
Errors were encountered while processing:
 cupsys
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Lars Noodén (larsnooden) wrote : apt-pinning cupsys to a working version

As a work-around, how can cupsys be apt-pinned to a working version? Rolling out a full update will otherwise break printing in the classrooms.

Revision history for this message
Caroline Ford (secretlondon) wrote :

First - is this still a problem?

It looks like a problem with AppArmor.

Can you look at https://wiki.ubuntu.com/DebuggingPrintingProblems and AppArmor Protection of the printing system.

Does entering sudo aa-complain cupsd make it go away?

Changed in cupsys:
status: New → Incomplete
Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) wrote :

This seems to be a problem with cupsys actually starting, which I don't believe is related to the apparmor problem.

Lars,

please run

sudo tail -f /var/log/messages

and then run

sudo /etc/init.d/cupsys restart

And post any errors in the /var/log/messages.

It definitely seems there is a problem with cupsys. As well try running;

sudo apt-get clean
sudo apt-get remove cupsys
sudo apt-get install cupsys

A

Revision history for this message
Lars Noodén (larsnooden) wrote : restart

I restarted cups between 12:35 and 12:55

Mar 17 11:15:17 ubuntu -- MARK --
Mar 17 11:35:17 ubuntu -- MARK --
Mar 17 11:55:17 ubuntu -- MARK --
Mar 17 12:15:17 ubuntu -- MARK --
Mar 17 12:35:17 ubuntu -- MARK --
Mar 17 12:55:17 ubuntu -- MARK --

I've done clean reinstalls.

Revision history for this message
Lars Noodén (larsnooden) wrote : common factor in failures

the common factor in failure is a symlinked /var directory, all the directories underneath seem to be the same. It's just that cupsys does not like the symlinkg

# ls -l /
...
lrwxrwxrwx 1 root root 9 2007-08-31 15:22 var -> /home/var
...

from an offending machine:

# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 4.6G 4.4G 49M 99% /
udev 252M 72K 252M 1% /dev
devshm 252M 0 252M 0% /dev/shm
lrm 252M 34M 218M 14% /lib/modules/2.6.22-14-generic/volatile
/dev/sda2 32G 1.6G 29G 6% /home

from a working machine:

# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 5.5G 3.4G 1.9G 65% /
varrun 252M 152K 251M 1% /var/run
varlock 252M 0 252M 0% /var/lock
udev 252M 76K 252M 1% /dev
devshm 252M 0 252M 0% /dev/shm
lrm 252M 34M 218M 14% /lib/modules/2.6.22-14-generic/volatile
/dev/sda3 29G 206M 27G 1% /home
/dev/sda2 2.8G 761M 1.9G 29% /var

Revision history for this message
reijop (reijop) wrote :

root@NFSPC:~# apt-get upgrade
Luetaan pakettiluetteloita... Valmis
Muodostetaan riippuvuussuhteiden puu
Luetaan tilatietoja... Valmis
0 päivitetty, 0 uutta asennusta, 0 poistettavaa ja 0 päivittämätöntä.
5 ei asennettu kokonaan tai poistettiin.
Tämän toiminnon jälkeen käytetään 0B lisää levytilaa.
Haluatko jatkaa [K/e]?
Säädän asetukset: cupsys (1.3.6-3ubuntu1) ...
 * Starting Common Unix Printing System: cupsd cupsd: Child exited on signal 6!
invoke-rc.d: initscript cupsys, action "start" failed.
dpkg: virhe käsiteltäessä cupsys (--configure):
 aliprosessi post-installation script palautti virhetilakoodin 3
dpkg: riippuvuusongelmat estävät paketin hplip konfiguroimisen:
 hplip depends on cupsys (>= 1.1.20); kuitenkin:
  Paketin cupsys asetukset ei ole vielä tehty.
dpkg: virhe käsiteltäessä hplip (--configure):
 riippuvuusongelmia - jätän konfiguroimatta
dpkg: riippuvuusongelmat estävät paketin hpijs konfiguroimisen:
 hpijs depends on hplip (>= 2.8.2-0ubuntu4); kuitenkin:
  Paketin hplip asetukset ei ole vielä tehty.
dpkg: virhe käsiteltäessä hpijs (--configure):
 riippuvuusongelmia - jätän konfiguroimatta
dpkg: riippuvuusongelmat estävät paketin foomatic-db-hpijs konfiguroimisen:
 foomatic-db-hpijs depends on hpijs (>> 2); kuitenkin:
  Paketin hpijs asetukset ei ole vielä tehty.
dpkg: virhe käsiteltäessä foomatic-db-hpijs (--configure):
 riippuvuusongelmia - jätän konfiguroimatta
dpkg: riippuvuusongelmat estävät paketin hal-cups-utils konfiguroimisen:
 hal-cups-utils depends on cupsys; kuitenkin:
  Paketin cupsys asetukset ei ole vielä tehty.
dpkg: virhe käsiteltäessä hal-cups-utils (--configure):
 riippuvuusongelmia - jätän konfiguroimatta
Errors were encountered while processing:
 cupsys
 hplip
 hpijs
 foomatic-db-hpijs
 hal-cups-utils
E: Sub-process /usr/bin/dpkg returned an error code (1)

Revision history for this message
Luigi Maselli (grigio) wrote :

Probably the bug is related to this thread:
http://ubuntuforums.org/showthread.php?t=415126

Revision history for this message
Duane Hinnen (duanedesign) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue for you. Can you try with the latest Ubuntu release? Thanks in advance.

Revision history for this message
daniel_perella (dani-perella) wrote : Re: [Bug 186527] Re: cupsys fails to install or run

Hi,

This bug has been fixed in the newest version of ubuntu.

Thanks.

2009/2/20 duanedesign <email address hidden>

> Thank you for taking the time to report this bug and helping to make
> Ubuntu better. You reported this bug a while ago and there hasn't been
> any activity in it recently. We were wondering if this is still an issue
> for you. Can you try with the latest Ubuntu release? Thanks in advance.
>
> --
> cupsys fails to install or run
> https://bugs.launchpad.net/bugs/186527
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
*****************************************
 Ángel Daniel Perella
 Administrador de Sistemas Informáticos

 Tecnax S.L.

 <email address hidden>
 <email address hidden>
 Coronona de Aragon, 9
 Barbastro, Huesca
*****************************************

Changed in cupsys:
status: Incomplete → Fix Released
Changed in cupsys:
status: Fix Released → Invalid
Revision history for this message
Matteo Bertini (naufraghi) wrote :

matteo@focault:~$ sudo /etc/init.d/cups restart
 * Restarting Common Unix Printing System: cupsd cupsd: Child exited on signal 6! [fail]

sudo tail -f /var/log/messages
Apr 18 13:30:03 focault kernel: [ 7649.070900] type=1503 audit(1240054203.267:22): operation="sysctl" requested_mask="r::" denied_mask="r::" fsuid=0 name="/proc/sys/crypto/fips_enabled" pid=18337 profile="/usr/sbin/cupsd"

Revision history for this message
Jamie (solowinter) wrote :

I have the exact same error posted by Matteo Bertini above.

Revision history for this message
Jamie (solowinter) wrote :

I should point out that my CUPS problem may or may not be related to other problems I've been having with my system since upgrading from Ext3 to Ext4 yesterday. I haven't printed anything in the past week, so I don't know if the problem existed before upgrading to Ext4. Since upgrading to Ext4 yesterday, I have suffered 6 complete system freezes and at least 175 MB of data loss (that I can identify). Not sure if my problem with CUPS is the result of data loss or corruption due to this other more serious bug.

Revision history for this message
Duane Hinnen (duanedesign) wrote :

For some reason some people had libgcrypt 1.4.3 installed on early releases of Jaunty instead of the current 1.4.1.

Try to reinstall libgcrypt11 package:

$ sudo apt-get --reinstall install libgcrypt11

If you have any additional problems add you comments to Bug #335898

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.