4 ms·
I just checked my /var/spool/cups, and it contains PDF:s of prints going back to about February 2022. This computer is about eight years old and has been throu
by Pinus 4y ago
I just checked my /var/spool/cups, and it contains PDF:s of prints going back to about February 2022.
This computer is about eight years old and has been through I-don't-know-how-many OS updates. This, and the fact that not everyone has these files, makes me suspect that there is supposed to be some mechanism cleaning these files up, but that the details have changed over time, and some OS update got it wrong.
- Pinus 4y agoI noticed that there was an update to Big Sur — the newest OS that this machine can run — which I had missed, so I installed it, and the files went away! I also noticed that there has been issues, like https://github.com/apple/cups/issues/5538 https://github.com/apple/cups/issues/5538, related to spool file clean-up. (The fix to that one leaves some decidedly fishy-looking parentheses, but they were fixed in a later commit.)
- yrro 4y agoThese would be metadata about completed print jobs. The PreserveJobHistory* options in cupsd.conf[0] control retention of this information; the default value is 500, so most users who print occasionally will likely have entries going back a couple of years. You can view (some) of it with: 'lpstat -W completed'; add '-l' for more detail. Add '-u USER' to view completed print jobs of another user (there doesn't seem to be any way to see _all_ user info, cups' command line tools always seem to have aggravating shortcomings like this...) [0] https://www.cups.org/doc/man-cupsd.conf.html https://www.cups.org/doc/man-cupsd.conf.html
- Pinus 4y agoTo be clear: It was not just metadata, it was actual PDF:s — I tried opening several of them — named d<digits>-<digits>. But, as I said, after an OS update (to 11.7.1) (including a reboot, obviously), they were gone, and only metadata files (named c<digits>) remain.
- yrro 4y agoVery interesting. That certainly sounds like PreserveJobFiles was set to 'yes' or a stupidly high number. And it sounds like, as you say, a subsequent OS update changed it to a sensible setting. FYI the default value is 24 hours so it might be interesting for you to print something now, see if the job file (starting with d, I guess this is sort for 'document') is preserved after the print job completes, and then check a couple of days later to see if it's been removed by cups. [subsequent edit] Maybe you ran into https://github.com/apple/cups/issues/5747 https://github.com/apple/cups/issues/5747, "You really need to use a current release of CUPS. I suspect this is due to a known bug that was fixed a long time ago" - maybe that bug shipped with an older version of macOS and that explains what people are seeing.