I have been unable to figure out why I cannot print when I run from a squashfs image with an aufs overlay. I get permission denied errors:
0] PID 15327 (/usr/lib/cups/cgi-bin/jobs.cgi) exited with no errors. D [07/Jan/2013:15:09:04 -0500] [Job 1] PID 15329 (/usr/lib/cups/filter/pdftops) stopped with status 1. D [07/Jan/2013:15:09:04 -0500] [Job 1] loadFilename failed: open /var/spool/cups/d00001-001: Permission denied D [07/Jan/2013:15:09:04 -0500] [Job 1] PID 15328 (/usr/lib/cups/filter/pdftopdf) stopped with status 1. D [07/Jan/2013:15:09:04 -0500] [Job 1] ATTR: marker-colors=#000000,none D [07/Jan/2013:15:09:04 -0500] cupsdMarkDirty(P----)
The original permissions on the directory were root:nobody which didn't seem right to me (guessing it got screwed up either from the process of making the squashfs image or something). I chowned the directories to root:lp to no success as well as finally try chmod 777 -R /var/spool/cups, all of which were a no go.
Any ideas? I will run a more detailed comparison when I can, but so far I cannot cipher what is different between the 2.
Last edited by walterjwhite (2013-02-01 13:52:58)
I found the problem, I believe when I am using aufs, the problem comes with the permissions the aufs is mounted.
The solution is for me to mount a tmpfs to /var/spool/cups:
mount -t tmpfs -o size=10M tmpfs /var/spool/cups