[cups] Difficulty in Adding a printer

Michael Sweet msweet at apple.com
Wed Jan 14 13:40:40 PST 2015


Alan,

This looks like you have multiple cupsd processes running, and/or a configuration problem that is preventing the CGI programs from connecting to the domain socket (which prevents the authentication credentials from being passed from the web interface to cupsd...)

I'd start with a bug report to the Debian folks...


> On Jan 14, 2015, at 4:11 PM, Alan McConnell <alan at his.com> wrote:
> 
> On Wed, Jan 14, 2015 at 03:07:16PM -0500, Michael Sweet wrote:
>> Alan,
>> 
>> Check the /var/log/cups/error_log file for PAM errors.
> 
> 
>  	 Here it is, with several duplicate lines deleted:
> (start)--------------------------
> W [14/Jan/2015:06:26:27 -0500] failed to CreateProfile: org.freedesktop.ColorManager.AlreadyExists:profile id 'alanprinter-Gray..' already exists
> W [14/Jan/2015:06:26:27 -0500] failed to CreateDevice: org.freedesktop.ColorManager.AlreadyExists:device id 'cups-alanprinter' already exists
> W [14/Jan/2015:11:10:21 -0500] failed to CreateProfile: org.freedesktop.ColorManager.AlreadyExists:profile id 'BrGenML1-Gray..' already exists
> W [14/Jan/2015:11:10:21 -0500] failed to CreateDevice: org.freedesktop.ColorManager.AlreadyExists:device id 'cups-BrGenML1' already exists
> W [14/Jan/2015:11:21:26 -0500] failed to CreateProfile: org.freedesktop.ColorManager.AlreadyExists:profile id 'alanprinter-Gray..' already exists
> W [14/Jan/2015:11:21:26 -0500] failed to CreateDevice: org.freedesktop.ColorManager.AlreadyExists:device id 'cups-alanprinter' already exists
> W [14/Jan/2015:11:21:26 -0500] failed to CreateProfile: org.freedesktop.ColorManager.AlreadyExists:profile id 'BrGenML1-Gray..' already exists
> W [14/Jan/2015:11:21:26 -0500] failed to CreateDevice: org.freedesktop.ColorManager.AlreadyExists:device id 'cups-BrGenML1' already exists
> E [14/Jan/2015:11:21:26 -0500] Unable to bind socket for address [v1.::1]:631 - Address already in use.
> E [14/Jan/2015:11:21:26 -0500] Unable to bind socket for address 127.0.0.1:631 - Address already in use.
> E [14/Jan/2015:11:21:26 -0500] Unable to bind broadcast socket - Address already in use.
> E [14/Jan/2015:11:27:06 -0500] cupsdAuthorize: Local authentication certificate not found!
> E [14/Jan/2015:11:27:06 -0500] cupsdAuthorize: Local authentication certificate not found!
> 
>  	I deleted 8 more of these entries.
> 
> E [14/Jan/2015:11:35:10 -0500] [cups-driverd] Unable to open "/usr/share/cups/model/Brother/MFC-L2700DW%20series?serial=U63887J4N428565" - No such file or directory
> E [14/Jan/2015:11:35:10 -0500] copy_model: empty PPD file
> E [14/Jan/2015:11:35:10 -0500] Returning IPP server-error-internal-error for CUPS-Add-Modify-Printer (ipp://localhost:631/printers/laserjet) from localhost
> E [14/Jan/2015:11:36:13 -0500] [cups-driverd] Unable to open "/usr/share/cups/model/MFC-L2700DW%20series" - No such file or directory
> E [14/Jan/2015:11:36:13 -0500] copy_model: empty PPD file
> E [14/Jan/2015:11:36:13 -0500] Returning IPP server-error-internal-error for CUPS-Add-Modify-Printer (ipp://localhost:631/printers/laserjet) from localhost
> E [14/Jan/2015:11:41:19 -0500] cupsdAuthorize: Local authentication certificate not found!
> E [14/Jan/2015:11:41:19 -0500] cupsdAuthorize: Local authentication certificate not found!
> 
>  		I deleted several more of these entries.
> 
> E [14/Jan/2015:11:50:29 -0500] [cups-driverd] Bad PPD name "/etc/cups/ppd/BrGenML1.ppd"!
> E [14/Jan/2015:11:50:29 -0500] copy_model: empty PPD file
> E [14/Jan/2015:11:50:29 -0500] Returning IPP server-error-internal-error for CUPS-Add-Modify-Printer (ipp://localhost:631/printers/laserjet) from localhost
> E [14/Jan/2015:13:06:01 -0500] [cups-driverd] Unable to open "/usr/share/cups/model/BrGenML1.ppd" - No such file or directory
> E [14/Jan/2015:13:06:01 -0500] copy_model: empty PPD file
> E [14/Jan/2015:13:06:01 -0500] Returning IPP server-error-internal-error for CUPS-Add-Modify-Printer (ipp://localhost:631/printers/laserjet) from localhost
> E [14/Jan/2015:14:28:22 -0500] cupsdAuthorize: Local authentication certificate not found!
> E [14/Jan/2015:14:28:22 -0500] cupsdAuthorize: Local authentication certificate not found!
> 
>  	  And, again, several more . . . !
> 
> E [14/Jan/2015:14:28:50 -0500] cupsdAuthorize: Local authentication certificate not found!
> E [14/Jan/2015:14:39:21 -0500] [cups-driverd] Unable to open "/usr/share/cups/model/BrGenML1.ppd" - No such file or directory
> E [14/Jan/2015:14:39:21 -0500] copy_model: empty PPD file
> E [14/Jan/2015:14:39:21 -0500] Returning IPP server-error-internal-error for CUPS-Add-Modify-Printer (ipp://localhost:631/printers/laserjet) from localhost
> 
>                                 ------------------------(finish)
> 
> I cannot see, from the above, whether these errors occurred because
> of my efforts to click appropriately on  http:/local:631, or whether
> they came from the command line  lsadmin   call.
> 
> In any event the above do not tell me how to proceed further.
> 
>       	     I keep the description of my difficulties:
>>> My difficulty is one which it seems others have had:  I wish to
>>> add my new Brother printer: but when I try to do it from the GUI
>>> (http://localhost:631, I get the message, in a little pop-up box:
>>> "A username and password are being requested by http://localhost:631.
>>> The site says: "CUPS"".   I have entered my ordinary user name 'alan'
>>> with password, but the box returns; I have entered 'root' and the
>>> root passwd, but the box returns.
>>> 
>>> My system info:
>>> Linux Debian 'Wheezy'
>>> CUPS 1.5.3
>>> 
>>> I have also tried, from the command line(as root)
>>>  lpadmin -p laserjet -E -v usb:/dev/lp1 -m BrGenML1.ppd 
>>> and get the error message:
>>> lpadmin: Unable to copy PPD file.
>>> However, I have downloaded, from the Brother site, a .deb file
>>> which, when dpkg-ed put a file   BrGenML1.ppd  into the directory
>>> /etc/cups/ppd/.
> 
> Alan
> 
> -- 
> Alan McConnell :  http://globaltap.com/~alan/
>       They finally got King Midas, I hear.  Gild by association.
>       What a giftless bastard! (Tchaikovsky, about Brahms)
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups

_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair




More information about the cups mailing list