CUPS-PDF and Re: Authentication -- solved something

Tom Allison noreply at tacocat.net
Mon Sep 15 14:18:22 PDT 2008


Lt. John J. Dunbar wrote:
> Yeah I have no clue where all of this spontaneous authentication issues are
> coming from.  It's most frustrating.  I've gone as far as to do a complete
> reinstall of my distribution - trying multiple configurations of cups along
> the way as I upgraded to the current versions of software in the repositories
> (Ubuntu 8.04).
> 

I have spent the entire day chasing bug reports in Debian and trying to follow 
up on other "This worked for me" hits on the internet.  The following is a diary 
of sorts of what I have been trying to do and where I am currently.

I've upgraded CUPS from 1.2 to 1.3 (Debian - testing)
I've upgraded my kernel to 2.6.26 (Debian bug reports said this would fix it)
In fact, I upgraded my entire server to Debian-testing to get all the foomatic 
and gutenprint libraries up to date as well.

It's a really slow computer so these upgrades took a long time.
But the bug reports I did find from Debian included 381280 and 418974 and 
453911.  The last bug report includes a comment:
"We believe that the bug you reported is fixed in the latest version of
linux-2.6, which is due to be installed in the Debian FTP archive:"

Which ties in with a "Hope that helps" note I got about a kernel setting and 
another blog about a lib being farkled.  So, lots of upgrades!!!  I was running 
kernel 2.6.8 and am now on 2.6.26 vanilla debian kernels.


I replaced my configuration files (all of them) with the Debian default 
installations.  I have since modified two lines (Listen and Allow)

Listen *:631

<Location />
   Allow @LOCAL
   Order allow,deny
</Location>


I'm still getting the exact same error.
"cupsdAuthorize: No authentication data provided."

Only difference now is that I get it on EVERY get.
The following is from loading the root page from cups on HTTP://192.168.1.2:631/

D [15/Sep/2008:16:23:50 -0400] cupsdReadClient: 9 GET 
/images/button-add-printer.gif HTTP/1.1
D [15/Sep/2008:16:23:50 -0400] cupsdAuthorize: No authentication data provided.
D [15/Sep/2008:16:23:50 -0400] cupsdReadClient: 10 GET 
/images/button-manage-classes.gif HTTP/1.1
D [15/Sep/2008:16:23:50 -0400] cupsdAuthorize: No authentication data provided.
D [15/Sep/2008:16:23:50 -0400] cupsdReadClient: 9 GET 
/images/button-manage-jobs.gif HTTP/1.1
D [15/Sep/2008:16:23:50 -0400] cupsdAuthorize: No authentication data provided.
D [15/Sep/2008:16:23:50 -0400] cupsdReadClient: 10 GET 
/images/button-manage-printers.gif HTTP/1.1
D [15/Sep/2008:16:23:50 -0400] cupsdAuthorize: No authentication data provided.


Since I can get the page loaded inspite of all these errors, does this really 
mean I have an error?  I'll try printing something:

D [15/Sep/2008:16:26:16 -0400] cupsdReadClient: 9 GET 
/printers/Kyocera_FS-1010_USB_1.ppd HTTP/1.1
D [15/Sep/2008:16:26:16 -0400] cupsdAuthorize: No authentication data provided.
D [15/Sep/2008:16:26:16 -0400] cupsdSendError: 9 code=404 (Not Found)
D [15/Sep/2008:16:26:16 -0400] cupsdCloseClient: 9


I'm not sure what the code=404 would be referring to.  Fortunately it's a URL so 
I'll stick it in my browser and see what comes up.  404 Not Found.
So, I guess it's missing this file /printers/Kyocera_FS-1010_USB_1.ppd
BTW: /printers/Kyocera_FS-1010_USB_1 points to the printer status page.


I think the question now is -- where do I get/define/put this missing PPD file? 
  When I brought up the web page for the printer server everything was already 
loaded -- it found both of the printers correctly and web page initiated test 
pages work perfectly.  So I will conclude that whatever PPD I need, they do exist.

But both of these printers are listed as Local Raw Printer.  One is a Postscript 
laser printer and the other is an HP All in One Inkjet.  So this is rather suspect.

The /etc/cups/ppd/ directory is empty of any files.
I can find any other references in the /etc/cups/ directory for files that might 
be named *ppd or Kyocera_FS-1010_USB_1

Now, back to that Suspect part about all the printers being Raw devices...

deleted the inject print and found this new printer on this list:
HP Photosmart C3100 series (HP Photosmart C3100 series USB CN6CLC73DT04KV HPLIP)
Took the highlighted foomatic pdd device (default)
test page is all postcript crap.
deleted printer

Added the printer again with the non-default ppd device (includes hpijs)
Now it prints two blank pages, no postscript crap, and then the test page.
Try printing another test page...
This one prints great.  The blank pages must have been left over postscript crap 
(ran out of paper)


Now for the Kyocera printer:
Selecting FS-1010 driver with Gutenprint (this was one of the things mentioned 
in a Debian bug report about bad gutenprint drivers and a need to upgrade the 
kernel -- can't remember the number)
This is the only option available....
Printing test page: works.

Now for the remote client:
D [15/Sep/2008:16:49:13 -0400] cupsdReadClient: 12 POST / HTTP/1.1
D [15/Sep/2008:16:49:13 -0400] cupsdAuthorize: No authentication data provided.
D [15/Sep/2008:16:49:13 -0400] cupsdNetIFUpdate: "lo" = localhost...
D [15/Sep/2008:16:49:13 -0400] cupsdNetIFUpdate: "eth0" = 192.168.1.2...
D [15/Sep/2008:16:49:13 -0400] cupsdNetIFUpdate: "lo" = localhost...
D [15/Sep/2008:16:49:13 -0400] cupsdNetIFUpdate: "eth0" = 
fe80::240:63ff:fec8:47a7%eth0...
D [15/Sep/2008:16:49:13 -0400] Get-Printer-Attributes 
ipp://localhost/printers/Kyocera_FS-1010_USB_1
D [15/Sep/2008:16:49:13 -0400] Get-Printer-Attributes client-error-not-found: 
The printer or class was not found.
D [15/Sep/2008:16:49:13 -0400] cupsdProcessIPPRequest: 12 status_code=406 
(client-error-not-found)
D [15/Sep/2008:16:49:13 -0400] cupsdReadClient: 12 POST / HTTP/1.1
D [15/Sep/2008:16:49:13 -0400] cupsdAuthorize: No authentication data provided.
D [15/Sep/2008:16:49:13 -0400] Get-Printer-Attributes 
ipp://localhost/printers/Kyocera_FS-1010_USB_1
D [15/Sep/2008:16:49:13 -0400] Get-Printer-Attributes client-error-not-found: 
The printer or class was not found.
D [15/Sep/2008:16:49:13 -0400] cupsdProcessIPPRequest: 12 status_code=406 
(client-error-not-found)


Not being the rocket scientist it seems that the remote clients can't see the 
local printers?  The ipp://localhost/printers/Kyocera_FS-1010_USB_1 is not what 
I installed.  I installed the USB_2 device

Client is a macbook.

whacked the client a few times and it found the USB_2 device in the list.
Printing from Firefox works to Laser Printer.  Yes!!!
Logs still complain about missing authentication data.
Printing from Firefox to Inkjet works.  Yes!!!

Printing from Thunderbird on both work: Yes & Yes!!!

Printing from Preview (PDF viewer):  Yes & Yes

Printing from OpenOffice 2.2:  Yes and Yes..

Safari, Apple Mail:  Yes & Yes
MS Word: Yes & Yes

So everything works, but I still get this authentication error.  I'm assuming 
it's not that important if everything actually works.


I think the real answer to all this is essentially -- update your system?




More information about the cups mailing list