impossible to add printer color laserjet 2605dn

Asked by Silvio

Linux distribution: Arch
Window manager: Gnome 2.22.3
Cups version 1.3.8
Hplip version 2.8.2

When I try to add the printer (as a network printer) with cups web administration I receive, after the last step: "Unable to copy PPD file!".
Tryed to add with a ppd file manually, the printer is added successful, but options is unavailable, the error is: "Error: Missing value string" and an empty options page.

Cups error log:
I [29/Jul/2008:10:22:05 +0200] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=6299)
I [29/Jul/2008:10:22:10 +0200] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=6303)
I [29/Jul/2008:10:22:22 +0200] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=6310)
I [29/Jul/2008:10:22:22 +0200] Started "/usr/lib/cups/daemon/cups-deviced" (pid=6311)
I [29/Jul/2008:10:22:34 +0200] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=6332)
I [29/Jul/2008:10:22:41 +0200] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=6336)
I [29/Jul/2008:10:22:41 +0200] Started "/usr/lib/cups/daemon/cups-driverd" (pid=6337)
I [29/Jul/2008:10:22:48 +0200] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=6345)
I [29/Jul/2008:10:22:48 +0200] Started "/usr/lib/cups/daemon/cups-driverd" (pid=6346)
I [29/Jul/2008:10:23:06 +0200] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=6360)
E [29/Jul/2008:10:23:06 +0200] CUPS-Add-Modify-Printer: Unauthorized
I [29/Jul/2008:10:23:13 +0200] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=6364)
E [29/Jul/2008:10:23:13 +0200] CUPS-Add-Modify-Printer: Unauthorized
I [29/Jul/2008:10:23:13 +0200] Setting hp_color_laserjet device-uri to "socket://192.168.1.90:9100" (was "file:/dev/null".)
I [29/Jul/2008:10:23:13 +0200] Setting hp_color_laserjet printer-is-accepting-jobs to 1 (was 0.)
I [29/Jul/2008:10:23:13 +0200] Setting hp_color_laserjet printer-state to 3 (was 5.)
I [29/Jul/2008:10:23:19 +0200] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=6369)

Thanks for your help.

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Silvio
Solved:
Last query:
Last reply:
Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#1

It looks like the cups permissions are not allowing this. You could disable the cups permissions by editing the /etc/cups/cupsd.conf.. However have you tried running hp-setup to configure the printer instead?

A

Revision history for this message
Silvio (silvio-sb-informatica-deactivatedaccount) said :
#2

I tryed to add printer with hp-setup in text mode version. The printer correcting discovered, but a the end of add procedure I receive this error: "error: Printer queue setup failed. Please restart CUPS and try again."

Playng around cups, I successfull add a printer driver HP Color LaserJet v2013.114 Postscript. This driver work with my printer quite well.

This mean, perhaps, the problem is the ppd file of hp color laserjet 2605? It's strange that other ppd file work...

I analize the cupsd.conf file for permissions. I don't understand all, but I think is ok. I try to change this file with other working on my second pc, but the problem is the same.

#
# "$Id: cupsd.conf,v 1.1 2006/07/06 13:11:10 tpowa Exp $"
#
# Sample configuration file for the Common UNIX Printing System (CUPS)
# scheduler. See "man cupsd.conf" for a complete description of this
# file.
#

# Disable ssl by default, you have to generate own certs to use this feature eg. by this command:
# openssl req -new -x509 -keyout /etc/cups/ssl/server.key -out /etc/cups/ssl/server.crt -days 365 -nodes
# for other certs please refer to openssl manpage.
# Setting Encryption to not required by default
DefaultEncryption IfRequested

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel info

# Administrator user group...
SystemGroup sys root

# Only listen for connections from the local machine.
Listen localhost:631
# Socket disabled by default it makes KDE fail on CUPS
# Listen /var/run/cups/cups.sock
# To allow remote connections add for example
# Listen <yourserverip>:631

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
# By default only localhost connections are possible
<Location />
  Order allow,deny
  Allow localhost
</Location>

# Restrict access to the admin pages...
<Location /admin>
  # Encryption disabled by default
  #Encryption Required
  Order allow,deny
  Allow localhost
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Basic
  Require user @SYSTEM
  Order allow,deny
  Allow localhost
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an adminstrator...
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an adminstrator to authenticate...
  <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
    AuthType Basic
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

#
# End of "$Id: cupsd.conf,v 1.1 2006/07/06 13:11:10 tpowa Exp $".
#

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#3

If you got the printer to work it might be best to just let things be. We don't test on Arch linux so I can't say for sure what particularities there might be with that distro.

Thanks for your support of HPLIP.

Aaron

Revision history for this message
Silvio (silvio-sb-informatica-deactivatedaccount) said :
#4

Thanks a lot Aaron, I solved the problem installing the HP Color Laserjet 2700 hplip driver.