cups errors fills up the disk

Bug #113060 reported by Ketil Malde on 2007-05-07
18
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cupsys (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: cupsys

For some reason, cups started spewing errors after trying to print out a couple of PDFs from Evince (invoked from firefox, which incidentally hung and had to be restarted). The error_log quickly filled up my disk (only about 8Gb free), with various detrimental effects on the system.

Excerpt (including start and end) from the error_log:

E [07/May/2007:12:18:33 +0200] [Job 58] Unable to write print data: Broken pipe
E [07/May/2007:12:18:34 +0200] PID 15298 (/usr/lib/cups/backend/socket) stopped with status 1!
E [07/May/2007:13:09:51 +0200] Unable to accept client connection - Too many open files.
E [07/May/2007:13:09:51 +0200] Unable to accept client connection - Too many open files.
E [07/May/2007:13:09:51 +0200] Unable to accept client connection - Too many open files.
   :
E [07/May/2007:13:29:44 +0200] Unable to accept client connection - Too many open files.
E [07/May/2007:13:29:44 +0200] Unable to accept client connection - Too many open files.
E [07/May/2007:13:29:44 +0200] cupsdAddCert: Unable to create certificate file /var/run/cups/certs/0 - Too many open files
E [07/May/2007:13:29:44 +0200] Unable to accept client connection - Too many open files.
E [07/May/2007:13:29:44 +0200] Unable to accept client connection - Too many open files.
E [07/May/2007:13:29:44 +0200] cupsdAddCert: Unable to create certificate file /var/run/cups/certs/0 - Too many open files
E [07/May/2007:13:29:44 +0200] Unable to accept client connection - Too many open files.
  :
E [07/May/2007:14:56:54 +0200] Unable to accept client connection - Too many open files.
E [07/May/2007:14:56:54 +0200] cupsdAddCert: Unable to create certificate file /var/run/cups/certs/0 - Too many open files
E [07/May/2007:14:56:54 +0200] Unable to accept client connection - Too many open files.
E [07/May/2007:14:56:54 +0200] cupsdAddCert: Unable to create certificate file /var/run/cups/certs/0 - Too many open files
E [07/May/2007:14:56:54 +0200] Unable to accept client connection - Too many open files.
E [07/May/2007:14:56:54 +0200] cupsdAddCert: Unable to create certificate file

misan (misan) wrote :

Same here, I'm printing to SMB printers.

lsof | wc gives me 6455 open files (it never happened with Dapper only with Feisty).

Sample error_log

E [16/May/2007:12:34:34 +0200] Unable to accept client connection - Too many open files.
E [16/May/2007:12:34:34 +0200] cupsdAddCert: Unable to create certificate file /var/run/cups/certs/0 - Too many open files
E [16/May/2007:12:34:34 +0200] Unable to accept client connection - Too many open files.
E [16/May/2007:12:34:34 +0200] cupsdAddCert: Unable to create certificate file /var/run/cups/certs/0 - Too many open files
E [16/May/2007:12:34:35 +0200] Unable to accept client connection - Too many open files.
E [16/May/2007:12:34:35 +0200] Unable to accept client connection - Too many open files.
E [16/May/2007:12:34:40 +0200] Unable to create job status pipes - Too many open files.
E [16/May/2007:12:34:40 +0200] Unable to create job status pipes - Too many open files.
E [16/May/2007:12:35:50 +0200] Unable to create job status pipes - Too many open files.
E [16/May/2007:12:35:50 +0200] Unable to create job status pipes - Too many open files.

Till Kamppeter (till-kamppeter) wrote :

Can you attach the lsof output?

Changed in cupsys:
status: Unconfirmed → Needs Info

sure. I'li do it now.

On 5/16/07, Till Kamppeter <email address hidden> wrote:
>
> *** This bug is a duplicate of bug 112803 ***
> https://bugs.launchpad.net/bugs/112803
>
> Can you attach the lsof output?
>
>
> ** Changed in: cupsys (Ubuntu)
> Status: Unconfirmed => Needs Info
>
> --
> cups errors fills up the disk
> https://bugs.launchpad.net/bugs/113060
> You received this bug notification because you are a direct subscriber
> of the bug.
>

I had the same thing happen to me. The workaround that worked for me was:

  /etc/init.c/cups restart

-kb

misan (misan) wrote :

Hi Till,

Oops, I've posted the lsof listing on bug #112803, could you please get it from there.

Daniel James (daniel-netbreeze) wrote :

I have the same problem here... though, I don't have my disk fill up, I just have jobs sit there and wait until I run sudo /etc/init.d/cupsys restart

Carey Underwood (cwillu) wrote :

I'm seeing this as well on a server config.

Only printer is a manually added (via printers.conf) device pointing to /dev/lp0.

It'll work for the better part of a day, but it hangs about once a day.

http://www.linux.ie/lists/pipermail/ilug/2005-December/085303.html gives some workarounds, but nothing I'd call a fix.

Carey Underwood (cwillu) wrote :

I'm suspicious that this might be related to bug #112803

Carey Underwood (cwillu) wrote :

And indeed it is: updating libdbus-1-3 to version 1.0.2-1ubuntu4 removes the "Unable to create certificate file" errors showing up in the cups error log, and lsof no longer shows cups gaining open file handles each time I send a print job.

That update is already in the feisty updates. (Yay for updating even those machines not connected to the network!)

Launchpad Janitor (janitor) wrote :

[Expired for cupsys (Ubuntu) because there has been no activity for 60 days.]

Andrew (andrew-rw-robinson) wrote :

I am not seeing this problem with a Xerox work centre pro 238 at my work.

cups error_log:
E [01/May/2008:17:06:13 -0600] PID 22635 (/usr/lib/cups/backend/socket) stopped with status 1!
E [01/May/2008:17:06:13 -0600] [Job 23] Unable to write print data: Broken pipe

Calling
/etc/init.d/cupsys restart
Does not help

Andrew (andrew-rw-robinson) wrote :

Forgot to mention this is on Hardy

Cupsys Version: 1.3.7-1ubuntu3

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

Other bug subscribers