[cups.general] Can't access spool folder

Daniel Stöck trashmay at googlemail.com
Fri Jul 2 07:38:39 PDT 2010


Am 02.07.2010 um 10:09 schrieb Helge Blischke:

> Daniel Stoeck wrote:
> 
>>> Daniel Stoeck wrote:
>>> 
>>>> Hi there,
>>>> 
>>>> I am using Helge Blischke's prtofile backend and when I try to print I
>>>> get an error message like this: "/private/var/spool/cups/c00061: No
>>>> such file or directory"
>>>> 
>>>> /private/var/spool/cups has 710 permissions and belongs to root:_lp
>>>> /private/var/spool/cups/c00061 has 600 permissions and belongs to
>>>> root:_lp (61 is the jobid)
>>>> 
>>>> Obviously the printer cannot spool into its spool directory. But how
>>>> can I avoid this permission issue?
>>>> 
>>>> The backend has 700 permissions to make it run as root.
>>>> The Device_URI is "prtofile:///Volumes/MacHD/output/ps/"
>>>> The given PPD is the common Adobe Distiller PPD
>>>> 
>>>> Why does the printer not have permission to write into its spool
>>>> folder? Can I just change the permissions of the spool folder to
>>>> anything else to fix this?
>>>> 
>>>> Greetings from Germany,
>>>> Daniel
>>> 
>>> Daniel,
>>> 
>>> could you please look into your cupsd.conf, if you there have a directive
>>> reading
>>> RequestRoot some_absolute_or_relatiove_path
>>> where "some_absolute_or_relative_path" is different from
>>> "/private/var/spool/cups" ?
>>> 
>>> What disturbes me is that error message you posted tells "No such file or
>>> directory". That sould mean that the environment variable
>>> CUPS_REQUESTROOT isn't set correctly.
>>> 
>>> Helge
>>> 
>> 
>> I am sorry, but there is no "RequestRoot" entry at all in my cupsd.conf.
>> If you want to take a look into the cupsd.conf file (or any other file) I
>> will send it to you.
>> 
>> Daniel
> 
> Please post the cupsd.conf and do a little test as follows:
> 
> (1) cupsctl --debug-logging
> (2) print something using this backend (a test page will be sufficient)
> (3) cupsctl --no-debug-logging
> 
> and post the part of /var/log/cups/error_log containing the debugged part
> (or the whole log if it is easier to you).
> 
> Helge
> 
> P.S.: mail this directly to me if you like.
> 

Hi,

here are the interesting lines in the error_log file:



D [02/Jul/2010:16:12:05 +0200] [Job 79] argv[0]="CUPS-Test-HelgeBlischke"
D [02/Jul/2010:16:12:05 +0200] [Job 79] argv[1]="79"
D [02/Jul/2010:16:12:05 +0200] [Job 79] argv[2]="d-stoeck"
D [02/Jul/2010:16:12:05 +0200] [Job 79] argv[3]="cups_testseite_mewa2.indd"
D [02/Jul/2010:16:12:05 +0200] [Job 79] argv[4]="1"
D [02/Jul/2010:16:12:05 +0200] [Job 79] argv[5]="too_long_and_doesnt_matter^^"
D [02/Jul/2010:16:12:05 +0200] [Job 79] argv[6]="/private/var/spool/cups/d00079-001"

I [02/Jul/2010:16:12:05 +0200] [Job 79] Started filter /usr/libexec/cups/filter/pstops (PID 25378)
I [02/Jul/2010:16:12:05 +0200] [Job 79] Started backend /usr/libexec/cups/backend/prtofile (PID 25379)

D [02/Jul/2010:16:12:06 +0200] [Job 79] perl: warning: Setting locale failed.
D [02/Jul/2010:16:12:06 +0200] [Job 79] perl: warning: Please check that your locale settings:
D [02/Jul/2010:16:12:06 +0200] [Job 79] LC_ALL = (unset),
D [02/Jul/2010:16:12:06 +0200] [Job 79] LANG = "de.UTF-8"
D [02/Jul/2010:16:12:06 +0200] [Job 79] are supported and installed on your system.
D [02/Jul/2010:16:12:06 +0200] [Job 79] perl: warning: Falling back to the standard locale ("C").

E [02/Jul/2010:16:12:06 +0200] [Job 79] /usr/libexec/cups/backend/prtofile /private/var/spool/cups/c00079: No such file or directory
D [02/Jul/2010:16:12:06 +0200] [Job 79] Set job-printer-state-message to "/usr/libexec/cups/backend/prtofile /private/var/spool/cups/c00079: No such file or directory", current level=ERROR
D [02/Jul/2010:16:12:06 +0200] Discarding unused job-progress event...
D [02/Jul/2010:16:12:06 +0200] PID 25379 (/usr/libexec/cups/backend/prtofile) stopped with status 1!
D [02/Jul/2010:16:12:06 +0200] PID 25378 (/usr/libexec/cups/filter/pstops) did not catch or ignore signal 13.
I [02/Jul/2010:16:12:06 +0200] [Job 79] Backend returned status 1 (failed)
D [02/Jul/2010:16:12:06 +0200] Discarding unused job-state-changed event...
I [02/Jul/2010:16:12:06 +0200] [Job 79] Printer stopped due to backend errors; please consult the error_log file for details.



I will send you the complete logfile, maybe I missed something that is interesting for you.

Thanks in advance,
Daniel





More information about the cups mailing list