[SOLVED] Printing control files accumulate in the directory /var/spool/cups
CentOSThis forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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
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.
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?
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.