[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#923532: cups-bsd: spool directory fills up



reassign 923532 cups-daemon
thanks



Thank you for your report, Helge.

On Fri 01 Mar 2019 at 15:30:48 +0100, Helge Kreutzmann wrote:

> Package: cups-bsd
> Version: 2.2.10-4
> Severity: normal
> 
> By chance I noted that the spool directory fills up over time,
> currently:
> root@samd:/var/spool/cups# lpq -a
> Keine Einträge
> root@samd:/var/spool/cups# du -hs .
> 166M    .
> root@samd:/var/spool/cups# ls -lh | wc -l
> 621
> 
> The oldest files are from 2017. There are two types of file, some
> short text files which seem to describe the print job and pdf and
> postscript files, which appear to be the print jobs themselves.

c (control or history) files and d (document) files. They should get
cleared with 'cancel -a -x' but might need to be removed with 'rm'.

> Some files / queues on my system do not print 
> so I have to abort the jobs with lprm. If these files are really
> (only) this use case I don't know.
> 
> If I should run some tests (I currently have an unprintable file at
> hand) please tell me.
> 
> As a band aid a cron job could be added which deletes files there
> older let's say than a week.

cupsd.conf(5) explains the PreserveJobFiles and PreserveJobHistory
directives. If you put "PreserveJobFiles 30" in cupsd.conf, does it
work for you?

You may, of course, alter the default PreserveJobHistory value too
but are then likely to hit Bug#921741. Knowing how much of Emin Kaya's
issue you can replicate would be useful.

Regards,

Brian.


Reply to: