Discussion:
Purging CUPs temporary files
Carlos E. R.
2007-01-21 23:50:06 UTC
Permalink
Hi,

I just noticed that my /var/spool/cups/tmp dir holds about 160 MiB.

- -rw------- 1 root root 11126 Oct 31 2005 436600b58dc48
- -rw------- 1 lp lp 40108032 Dec 12 2005 439d6609daa75
- -rw------- 1 lp lp 40108032 Dec 12 2005 439d69c4f0aa8
- -rw------- 1 lp lp 40108032 Dec 12 2005 439d71d438ea1
- -rw------- 1 lp lp 40108032 Dec 12 2005 439d728a13363
- -rw------- 1 root root 11126 Jan 9 2006 43c1a111e1281
- -rw------- 1 root root 11126 Jan 9 2006 43c1a1163ebb3
- -rw------- 1 root root 22504 Nov 20 12:18 45618f085b919
- -rw------- 1 root root 22504 Nov 20 12:18 45618f0ec6371
- -rw------- 1 root root 22504 Nov 20 12:18 45618f13a07c4
- -rw------- 1 lp lp 424097 Apr 26 2005 gs_YiLWKJ
- -rw------- 1 lp lp 1224 Apr 26 2005 gs_snajWX

Some of them are quite old. Some of them appear to be PPD files, the big
ones are probably old print job.

Shouldn't this files be automatically deleted? Which setting would do it?

- --
Cheers,
Carlos Robinson
Kenneth Schneider
2007-01-22 00:42:48 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I just noticed that my /var/spool/cups/tmp dir holds about 160 MiB.
- -rw------- 1 root root 11126 Oct 31 2005 436600b58dc48
- -rw------- 1 lp lp 40108032 Dec 12 2005 439d6609daa75
- -rw------- 1 lp lp 40108032 Dec 12 2005 439d69c4f0aa8
- -rw------- 1 lp lp 40108032 Dec 12 2005 439d71d438ea1
- -rw------- 1 lp lp 40108032 Dec 12 2005 439d728a13363
- -rw------- 1 root root 11126 Jan 9 2006 43c1a111e1281
- -rw------- 1 root root 11126 Jan 9 2006 43c1a1163ebb3
- -rw------- 1 root root 22504 Nov 20 12:18 45618f085b919
- -rw------- 1 root root 22504 Nov 20 12:18 45618f0ec6371
- -rw------- 1 root root 22504 Nov 20 12:18 45618f13a07c4
- -rw------- 1 lp lp 424097 Apr 26 2005 gs_YiLWKJ
- -rw------- 1 lp lp 1224 Apr 26 2005 gs_snajWX
Some of them are quite old. Some of them appear to be PPD files, the big
ones are probably old print job.
Shouldn't this files be automatically deleted? Which setting would do it?
from /etc/cups/cups.conf (openSUSE 10.0)



# Auto purge jobs (AutoPurgeJobs)
#
# Automatically purge jobs when not needed for quotas.
# Default is No.
#
#AutoPurgeJobs No

Hope it helps.
--
Ken Schneider
UNIX since 1989, linux since 1994, SuSE since 1998
Robert Lewis
2007-01-22 06:29:31 UTC
Permalink
Post by Kenneth Schneider
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I just noticed that my /var/spool/cups/tmp dir holds about 160 MiB.
- -rw------- 1 root root 11126 Oct 31 2005 436600b58dc48
- -rw------- 1 lp lp 40108032 Dec 12 2005 439d6609daa75
- -rw------- 1 lp lp 40108032 Dec 12 2005 439d69c4f0aa8
- -rw------- 1 lp lp 40108032 Dec 12 2005 439d71d438ea1
- -rw------- 1 lp lp 40108032 Dec 12 2005 439d728a13363
- -rw------- 1 root root 11126 Jan 9 2006 43c1a111e1281
- -rw------- 1 root root 11126 Jan 9 2006 43c1a1163ebb3
- -rw------- 1 root root 22504 Nov 20 12:18 45618f085b919
- -rw------- 1 root root 22504 Nov 20 12:18 45618f0ec6371
- -rw------- 1 root root 22504 Nov 20 12:18 45618f13a07c4
- -rw------- 1 lp lp 424097 Apr 26 2005 gs_YiLWKJ
- -rw------- 1 lp lp 1224 Apr 26 2005 gs_snajWX
Some of them are quite old. Some of them appear to be PPD files, the big
ones are probably old print job.
Shouldn't this files be automatically deleted? Which setting would do it?
from /etc/cups/cups.conf (openSUSE 10.0)
# Auto purge jobs (AutoPurgeJobs)
#
# Automatically purge jobs when not needed for quotas.
# Default is No.
#
#AutoPurgeJobs No
Hope it helps.
I looked for this option on 10.2 and couldn't find it.
Any clues for 10.2 how to keep this directory cleaned up?
Kenneth Schneider
2007-01-22 12:46:56 UTC
Permalink
Post by Robert Lewis
Post by Kenneth Schneider
from /etc/cups/cups.conf (openSUSE 10.0)
# Auto purge jobs (AutoPurgeJobs)
#
# Automatically purge jobs when not needed for quotas.
# Default is No.
#
#AutoPurgeJobs No
Hope it helps.
I looked for this option on 10.2 and couldn't find it.
Any clues for 10.2 how to keep this directory cleaned up?
Also look at that man page for cupsd.conf: man cupsd.conf

PreserveJobFiles
Specifies whether or not to preserve job files after they are printed.

This may be more inline with what Carlos was looking for.
--
Ken Schneider
UNIX since 1989, linux since 1994, SuSE since 1998
Carlos E. R.
2007-01-23 21:47:19 UTC
Permalink
Post by Kenneth Schneider
Post by Kenneth Schneider
#AutoPurgeJobs No
Hope it helps.
PreserveJobFiles
Specifies whether or not to preserve job files after they are printed.
I have:

PreserveJobFiles No
AutoPurgeJobs Yes


since sunday; I was waiting for effects before answering here, but there
are none: I still have 154M in that dir, no file has been deleted.

So, is this a bug? Why are those years old files not deleted?

- --
Cheers,
Carlos E. R.
Kenneth Schneider
2007-01-23 22:19:58 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Post by Kenneth Schneider
Post by Kenneth Schneider
#AutoPurgeJobs No
Hope it helps.
PreserveJobFiles
Specifies whether or not to preserve job files after they are printed.
PreserveJobFiles No
AutoPurgeJobs Yes
since sunday; I was waiting for effects before answering here, but there
are none: I still have 154M in that dir, no file has been deleted.
So, is this a bug? Why are those years old files not deleted?
The obvious: you did restart cups, right?

It may not work on the old files only the new ones. Just a guess.
--
Ken Schneider
UNIX since 1989, linux since 1994, SuSE since 1998
Carlos E. R.
2007-01-24 00:29:22 UTC
Permalink
Post by Kenneth Schneider
Post by Carlos E. R.
So, is this a bug? Why are those years old files not deleted?
The obvious: you did restart cups, right?
Of course, right after I edited the config. :-)
Post by Kenneth Schneider
It may not work on the old files only the new ones. Just a guess.
Might be. Not all my print jobs are there, it would be huge. Maybe the
files are there because cup crashed or was killed and they were left
there.

- --
Cheers,
Carlos E. R.
Carlos E. R.
2007-01-24 15:04:31 UTC
Permalink
The Tuesday 2007-01-23 at 19:30 -0600, Stevens wrote:

I can't answer you direct, so I'll do on list.
Where are those CUPS tmp files located? I'll look at my system.
/var/spool/cups/tmp

- --
Saludos
Carlos E. R.
Patrick Shanahan
2007-01-24 15:17:50 UTC
Permalink
Post by Carlos E. R.
I can't answer you direct, so I'll do on list.
Where are those CUPS tmp files located? I'll look at my system.
/var/spool/cups/tmp
I would guess that the 'purge' parameters apply *only* to the
/var/spool/cups directory, ie: to 'print jobs'. Why not try to add the
/var/spool/cups/tmp directory to the system temp file erasure option in
/yast,
Yast -> Sysconfig -> System -> Cron -> Tmp_Dirs_to_clear

look also at the time limits in the same area, ie: MAX_DAYS....
--
Patrick Shanahan Registered Linux User #207535
http://wahoo.no-ip.org @ http://counter.li.org
HOG # US1244711 Photo Album: http://wahoo.no-ip.org/gallery2
OpenSUSE Linux http://en.opensuse.org/
Continue reading on narkive:
Loading...