Printing control files accumulate in the directory /var/spool/cups
I'm using CUPS 1.4.2 and the printing control files accumulate in the directory
/var/spool/cups. Is this standard for cups or can it easily be changed?? I'ld be very happy if I could get an answer to this question. Many thanks in advance tonreg |
Yes, the default is to keep job history files and yes it can be changed. The limit is the last 500 jobs but it is not the actual print file and therefore their size is small.
Set JobPerserveHistory No in your cupsd.conf file. |
Hello michaelk,
many thanks for your immediate reply. The problem is: How can I set this option. And by the way I presume the name of the "option" is JobPreserveHistory??!! I tried "man cupsd.conf" and "man cupsd" but I couldn't find any hint about JobPreserveHistory. Please help a LQ Newbie to collect a tiny bit of knowledge. Regards Gernot |
Edit the file (as root) and add JobPerserveHistory off to your cupsd.conf file. A good place would be below the maxlogsize line.
|
Hello michaelk,
I'm still having problems. I tried "JobPerserveHistory" and got this message in the error_log E [24/Nov/2015:17:40:15 +0100] Unknown directive JobPerserveHistory on line 3. Then I changend it to JobPreserveHistory and got this message: E [25/Nov/2015:11:35:41 +0100] Unknown directive JobPreserveHistory on line 3. Here are the first 6 lines from my cupsd.conf: DefaultEncryption Never MaxLogSize 0 JobPreserveHistory No LogLevel debug SystemGroup sys root # Allow remote access Is there a document which describes the structure and details of cupsd.conf?? I will still try two things: JobPreserveHistory Off JobPreserveHistory Off Perhaps one of these two is o.k. Regards Gernot |
Sorry, it appears I was a bit dyslexic. It should be
PreserveJobHistory Yes or PreserveJobHistory No http://linux.die.net/man/5/cupsd.conf |
Hello michaelk,
your hint with the link solved the problem. The actual parameters are: Specifies whether or not to preserve job files after they are printed. PreserveJobHistory Yes PreserveJobHistory No This seems to be specific to this old version of cups??! Many thanks for your help!! There is still a little other problem with the error_log: E [25/Nov/2015:13:06:44 +0100] Missing value for 192.168.1.104:631 on line 9. I always get this message. Which file is wrong?? |
I have not seen any similar error messages before. Could be your specific your printer configuration files.
|
Hello michaelk,
the files in the directory /var/spool/cups are still accumulating ( -rw-------. 1 root lp 725 23. Nov 13:57 c00244 -rw-------. 1 root lp 885 24. Nov 17:37 c00245 -rw-------. 1 root lp 885 24. Nov 17:41 c00246 -rw-------. 1 root lp 885 24. Nov 17:51 c00247 -rw-------. 1 root lp 885 25. Nov 13:16 c00248 -rw-------. 1 root lp 885 25. Nov 15:08 c00249) , although I don't get any error messages in the error_log. Have you got another idea why this happens |
Did you restart cups?
|
I restarted cups and as that didn't work I restarted the complete system
|
I don't know at the moment since it works for me. Check the cups error_log again just to make sure since you restarted the system.
I assume you did edit the cupsd.conf file as root? |
Hello michaelk,
I'm back again. You wrote: "I have not seen any similar error messages before. Could be your specific your printer configuration files". I've checked and found out that this error message is caused by my cupsd.conf. ############### Start of cupsd.conf (10 lines) DefaultEncryption Never MaxLogSize 0 PreserveJobFiles No LogLevel debug SystemGroup sys root # Allow remote access Port 631 Listen /var/run/cups/cups.sock # Test line 192.168.1.104:631 ############### End of cupsd.conf (10 lines) The corresponding message in error_log reads: E [26/Nov/2015:12:46:59 +0100] Missing value for 192.168.1.104:631 on line 10. I'ld be extremely happy if you'ld have an idea about this message now. By the way, the files: -rw-------. 1 root lp 725 23. Nov 13:57 c00244 -rw-------. 1 root lp 885 24. Nov 17:37 c00245 -rw-------. 1 root lp 885 24. Nov 17:41 c00246 -rw-------. 1 root lp 885 24. Nov 17:51 c00247 -rw-------. 1 root lp 885 25. Nov 13:16 c00248 -rw-------. 1 root lp 885 25. Nov 15:08 c00249 are still accumulating Regards Gernot |
Delete 192.168.1.104:631
Where did you add PreserveJobHistory No in the cupsd.conf file? |
Hello michaelk,
many thanks for your message. As I didn't get any mail from Linuxquestions I didn't expect any answer. 1) I will delete 192.168.1.104:631 2) I will add PreserveJobHistory No in cupsd.conf!! By mistake I inserted PreserveJobFiles No. I'll let you know about success or failure after the modifications have been tested Regards Gernot |
All times are GMT -5. The time now is 08:18 AM. |