On 2017-07-12 04:19, Chan Ju Ping wrote:
On Wednesday, 12 July 2017 02:27:04 +08 Carlos E. R. wrote:
Anyway, the ps and pdf files contain the correct stuff that you want to print, and yet if you print those files using command line tools like "lpr file.ps" they don't print?
No. They won't print. It spits out 2 cm of blank paper.
Well, the next thing to do now is to look at the cups logs. They are in "/var/log/cups/". You probably want to increase the verbosity; that is done in "/etc/cups/cupsd.conf". Change the line:
LogLevel Warn
with
LogLevel debug
or debug2. Restart the cups daemon and try again.
I see a debugging message called "No authentication data provided"
Perhaps that could be it?
Doesn't seem likely...
I have pasted a snippet of the relevant log section at http://paste.opensuse.org/1636302
Thanks for the help! :-)
Welcome... Unfortunately, I can't find what is wrong by looking there. There is a section where it appears to send the print job: Look at line 129, it seems to be the start of a print job. On line 142 it is applying the filters. ps to pdf, pdf to pdf, then pdf to raster, then raster to printer. On line 147 it says "job-sheets=none,none". Line 154 says that the job is cached as "/var/spool/cups/d00010-001" - you can check if the file is still there, it probably is a pdf inside (run "file /var/spool/cups/d00010-001" to find out). Line 186 seems to start each filter job. I do not know what is the result of each filter. Did they succeed? Can we look at temporary files? At line 190 it starts the backend to send it via USB to the printer itself, I suppose. Maybe at line 193 it says it finished sending the print job. Line 287 is a ghostscript command used. What for...? And here I get lost, because on line 451 I see the same thing, so I don't know if you repeated the print request or what happened. We need to know for sure that the log is for a single print job, and where does the log start. I'm not trained in reading CUPS logs... I see a bunch of cupsdWriteClient commands. I see a "data_remaining=994" with the number diminishing each time, but barely so. Line 590 seems to be sending print job and displaying the percent. -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" at Telcontar)