Hello Brian, On Sun, Mar 03, 2019 at 01:54:56PM +0000, Brian Potkin wrote: > On Sun 03 Mar 2019 at 06:20:10 +0100, Helge Kreutzmann wrote: > > > On Sat, Mar 02, 2019 at 01:14:29PM +0000, Brian Potkin wrote: > > > > > > 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'. > > > > Thanks for the pointer. I usually use "lprm" and always thought that > > removing a job also removes all spool files. I did not know about the > > command cancel, whose name does not lead to beeing printing specific > > (neither starts with cups nor with lp). > > > > Do you think implying "-x" with with lprm would be a worthwile > > wishlist bug for upstream? > > I am unfamiliar with the lprm command so hope I am not misuderstanding > its manual or you. However, my reading of > > https://github.com/apple/cups/issues/1149 > > leads me to think that such a report would be closed. Thanks for the pointer. > > > cupsd.conf(5) explains the PreserveJobFiles and PreserveJobHistory > > > directives. If you put "PreserveJobFiles 30" in cupsd.conf, does it > > > work for you? > > > > Neither are currently explicitly set. But the man page says that > > PreserveJobFiles has a default value of 1 day and PreserveJobHistory > > is yes. Maybe PreserveJobFiles only applies to sucessfully printed > > jobs? > > It does indeed. Then this does not help in my case, I guess, but I see. > > > > 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. > > > > Just to be clear: I should first try out PreserveJobHistory? And after > > a day all spool files should be gone (if it works)? > > Not quite. > > First clear out /var/spool/cups. The cancel command does not work for this (as ordinary user): LC_ALL=C cancel -ax cancel: purge-jobs failed: Forbidden I used "rm d00*" as root. > I'd suggest you put "PreserveJobFiles 30" (and other smallish values) > in cupsd.conf, then print and see whether you can have confidence in > the option being functional. My tests indicate it is reliable. In which > case you should not experience the spool directory getting clogged up > in future. I will test this, but then at least the documention is wrong, because cupsd.conf(5) says: PreserveJobFiles seconds … The default is "86400" (preserve 1 day). So I set the value to 30, printed one file which does not print and nothing vanish, even after several minutes. I then cancel the job with "cancel" (not my usual lprm). This works. But again, the file d* is not deleted after the 30 seconds are over. So to conclude cups is missing a mechanism to remove uprintable files in the spool directory. So the best way is probably a good old "rm d00*" in a suitable cron job, e.g. cron.weekly. Thanks for your help. If any of this knowledge is worth putting into a bug report somewhere I can do that of course. Greetings Helge -- Dr. Helge Kreutzmann debian@helgefjell.de Dipl.-Phys. http://www.helgefjell.de/debian.php 64bit GNU powered gpg signed mail preferred Help keep free software "libre": http://www.ffii.de/
Attachment:
signature.asc
Description: Digital signature