You are not logged in.

#1 2011-01-09 18:27:28

loopx
Member
Registered: 2010-12-12
Posts: 15

[CUPS] Unable to set my new CUPS server with an HP printer (solved)

Hello,


I come from Gentoo and I just installed my new Arch Linux server on a notebook with 2 NIC ... Now, I'm trying to set the CUPS deamon to share printer (HP DESKJET 895Cxi) for 3 workstations in my LAN. Before, it was working (printer and linux ... has never been very good...). But now, I'm not able, and it's about 1 hour I'm looking for a stupid error that I don't know if it's important or not ...

(all is on my Wiki : http://pix-mania.dyndns.org/mediawiki/index.php/Cups)

Here are a list of installed package : cups ghostscript gsfonts hplip

The printer (USB) :

(lsusb)
Bus 002 Device 004: ID 03f0:0004 Hewlett-Packard DeskJet 895c

(dmesg)
usb 2-2: new full speed USB device using uhci_hcd and address 4
usblp0: Disabling reads from problematic bidirectional printer
usblp0: USB Unidirectional printer dev 4 if 0 alt 1 proto 2 vid 0x03F0 pid 0x0004

Current configuration (only change made to original configuration) :

Listen <ip_serveur>:631

<Location />
  Order allow,deny
  Allow From all
</Location>

<Location /admin>
  Order allow,deny
  Allow From all
</Location>

<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
  Allow From all
</Location>

When starting cups service, all is fine : I can use a workstation to browse the Web Interface ... but printer seems to be not detected since it tells "No printers." when clicking on "Printers" tab. So, I go to "Administration" tab and, under "Printers", I click the "Find New Printers" and again, it says : "No printers found.".

Not goot ... so, like I was doing with Gentoo, I click on "Add Printer" ... then, I receive a redirection to HTTPS ... click on the link (or wait) and nothing happend (timed out): web interface is broken for HTTPS ... I really got no idea why HTTPS is not working sad.

After that, when updating the configuration (with vim) and restarting the service, deamon won't stop and I have to send a "kill -9" to the cupsd pid ...

I look in log and I can just see this :

E [09/Jan/2011:18:19:55 +0100] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported

I googled for one hour, but is not more working right now ...

Some questions :
- the printer is not detected? Is it because of the ACLs errors ?
- what the hell is "ACLs" for cups ? Never seen that before ...

So, right now, I got a working HTTP but not working HTTPS, with no printer available ... very useless smile


This printer is working "well" with cups, since it's an old model and it's a HP printer, so is "fully?" working on Linux ...


Any idea on what to do/try now ?


EDIT: after that message, I just refresh the page (I'm using Chromium) and ... magically, HTTPS was working (after accept untrusted certificate for HTTPS?) ... Then, go back to "Find New Printers" and now, it was working. Printer has been added ... Seems to be OK, but the "Print Self Test Page" doesn't work right now because of this :

Unsupported format 'application/vnd.cups-command'!

Current log file :

E [09/Jan/2011:18:19:55 +0100] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
E [09/Jan/2011:18:24:48 +0100] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
E [09/Jan/2011:18:29:08 +0100] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
E [09/Jan/2011:18:36:28 +0100] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
E [09/Jan/2011:18:36:42 +0100] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
E [09/Jan/2011:18:41:06 +0100] Unknown SystemGroup "sys root lpadmin" on line 13, ignoring!
E [09/Jan/2011:18:41:06 +0100] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
E [09/Jan/2011:18:42:24 +0100] Unknown SystemGroup "lpadmin" on line 14, ignoring!
E [09/Jan/2011:18:42:24 +0100] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
E [09/Jan/2011:18:45:12 +0100] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
E [09/Jan/2011:18:47:32 +0100] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
E [09/Jan/2011:18:48:35 +0100] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
E [09/Jan/2011:18:49:35 +0100] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
E [09/Jan/2011:18:59:46 +0100] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
E [09/Jan/2011:19:33:06 +0100] Unable to encrypt connection from <ip_workstation> - A TLS packet with unexpected length was received.
E [09/Jan/2011:19:33:06 +0100] Unable to encrypt connection from <ip_workstation> - A TLS packet with unexpected length was received.
E [09/Jan/2011:19:33:06 +0100] Unable to encrypt connection from <ip_workstation> - A TLS packet with unexpected length was received.
E [09/Jan/2011:19:33:13 +0100] Unable to encrypt connection from <ip_workstation> - A TLS packet with unexpected length was received.
E [09/Jan/2011:19:33:13 +0100] Unable to encrypt connection from <ip_workstation> - A TLS packet with unexpected length was received.
E [09/Jan/2011:19:33:13 +0100] Unable to encrypt connection from <ip_workstation> - A TLS packet with unexpected length was received.
E [09/Jan/2011:19:33:13 +0100] Unable to encrypt connection from <ip_workstation> - A TLS packet with unexpected length was received.
E [09/Jan/2011:19:33:13 +0100] Unable to encrypt connection from <ip_workstation> - A TLS packet with unexpected length was received.
E [09/Jan/2011:19:33:37 +0100] [CGI] Unable to create avahi client: No such file or directory
E [09/Jan/2011:19:33:37 +0100] [cups-deviced] PID 2744 (dnssd) stopped with status 1!
E [09/Jan/2011:19:33:37 +0100] Unable to encrypt connection from <ip_workstation> - A TLS packet with unexpected length was received.
E [09/Jan/2011:19:34:09 +0100] [CGI] Unable to create avahi client: No such file or directory
E [09/Jan/2011:19:34:09 +0100] [cups-deviced] PID 2763 (dnssd) stopped with status 1!
E [09/Jan/2011:19:39:51 +0100] Unable to encrypt connection from <ip_workstation> - A TLS packet with unexpected length was received.
E [09/Jan/2011:19:39:52 +0100] [cups-driverd] Bad driver information file "/usr/share/cups/model/foomatic-db-ppds/Kyocera/ReadMe.htm"!
E [09/Jan/2011:19:41:23 +0100] [cups-driverd] Bad driver information file "/usr/share/cups/model/foomatic-db-ppds/Kyocera/ReadMe.htm"!
E [09/Jan/2011:19:44:49 +0100] Unable to encrypt connection from <ip_workstation> - A TLS packet with unexpected length was received.
E [09/Jan/2011:19:47:16 +0100] Returning IPP client-error-document-format-not-supported for Send-Document (ipp://localhost:631/printers/HP_DeskJet_895C_USB_ES89M230MKGO_HPLIP) from localhost
E [09/Jan/2011:19:49:36 +0100] Returning IPP client-error-document-format-not-supported for Send-Document (ipp://localhost:631/printers/HP_DeskJet_895C_USB_ES89M230MKGO_HPLIP) from localhost

EDIT2: tried to print "Print Test Page" instead of the above ... and got these errors :

(web interface)
"/usr/lib/cups/backend/hp failed"

(error_log)
E [09/Jan/2011:20:08:31 +0100] [CGI] Unable to create avahi client: No such file or directory
E [09/Jan/2011:20:08:31 +0100] [cups-deviced] PID 3126 (dnssd) stopped with status 1!
D [09/Jan/2011:20:09:16 +0100] [Job 5] perl: warning: Setting locale failed.
D [09/Jan/2011:20:09:16 +0100] [Job 5] prnt/backend/hp.c 559: dBus Connection Error (Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory)!
D [09/Jan/2011:20:09:16 +0100] [Job 5] perl: warning: Please check that your locale settings:
D [09/Jan/2011:20:09:16 +0100] [Job 5] LANGUAGE = (unset),
D [09/Jan/2011:20:09:16 +0100] [Job 5] LC_ALL = (unset),
D [09/Jan/2011:20:09:16 +0100] [Job 5] LANG = "fr_FR.UTF-8"
D [09/Jan/2011:20:09:16 +0100] [Job 5] are supported and installed on your system.
D [09/Jan/2011:20:09:16 +0100] [Job 5] perl: warning: Falling back to the standard locale ("C").
D [09/Jan/2011:20:09:16 +0100] [Job 5] GhostScript extra search path ('GS_LIB'): /usr/share/cups/fonts
D [09/Jan/2011:20:09:16 +0100] [Job 5] Pondering option 'job-uuid=urn:uuid:e4395221-1209-32a9-5add-30f7945eaa6b'
D [09/Jan/2011:20:09:16 +0100] [Job 5] Unknown option job-uuid=urn:uuid:e4395221-1209-32a9-5add-30f7945eaa6b.
D [09/Jan/2011:20:09:16 +0100] [Job 5] Pondering option 'job-originating-host-name=localhost'
D [09/Jan/2011:20:09:16 +0100] [Job 5] Unknown option job-originating-host-name=localhost.
D [09/Jan/2011:20:09:16 +0100] [Job 5] Pondering option 'time-at-creation=1294600145'
D [09/Jan/2011:20:09:16 +0100] [Job 5] Unknown option time-at-creation=1294600145.
D [09/Jan/2011:20:09:16 +0100] [Job 5] Pondering option 'time-at-processing=1294600145'
D [09/Jan/2011:20:09:16 +0100] [Job 5] Unknown option time-at-processing=1294600145.
D [09/Jan/2011:20:09:16 +0100] [Job 5] Pondering option 'AP_D_InputSlot='
D [09/Jan/2011:20:09:16 +0100] [Job 5] Unknown option AP_D_InputSlot=.
D [09/Jan/2011:20:09:16 +0100] [Job 5] prnt/backend/hp.c 625: ERROR: 5021 device communication error!
D [09/Jan/2011:20:09:16 +0100] [Job 5] GPL Ghostscript  9.00: Unrecoverable error, exit code 1
D [09/Jan/2011:20:09:16 +0100] [Job 5] Process 3154 ending: "gs -q -dBATCH -dPARANOIDSAFER -dQUIET -dNOPAUSE -sDEVICE=ijs -sIjsServer=hpijs -dDEVICEWIDTHPOINTS=5..."
D [09/Jan/2011:20:09:16 +0100] [Job 5] renderer return value: 1
D [09/Jan/2011:20:09:16 +0100] [Job 5] renderer received signal: 1
D [09/Jan/2011:20:09:16 +0100] [Job 5] Process dying with "Possible error on renderer command line or PostScript error. Check options.", exit stat: 3
D [09/Jan/2011:20:09:16 +0100] [Job 5] error: No such file or directory (2)
D [09/Jan/2011:20:09:16 +0100] [Job 5] Cleaning up ...
D [09/Jan/2011:20:09:16 +0100] [Job 5] Killing process 3153 (KID4) with signal 15
D [09/Jan/2011:20:09:16 +0100] [Job 5] KID3 exited with status 3
D [09/Jan/2011:20:09:16 +0100] [Job 5] Renderer exit stat: 3
D [09/Jan/2011:20:09:16 +0100] [Job 5] Killing process 3153 (KID4) with signal 9
D [09/Jan/2011:20:09:16 +0100] [Job 5] 
D [09/Jan/2011:20:09:16 +0100] [Job 5] Closing foomatic-rip.
D [09/Jan/2011:20:09:16 +0100] [Job 5] Renderer process finished
D [09/Jan/2011:20:09:16 +0100] [Job 5] Process dying with "Error closing renderer", exit stat: 3
D [09/Jan/2011:20:09:16 +0100] [Job 5] error:  (0)
D [09/Jan/2011:20:09:16 +0100] [Job 5] Cleaning up ...
D [09/Jan/2011:20:09:16 +0100] [Job 5] Killing process 3152 (KID3) with signal 15
D [09/Jan/2011:20:09:16 +0100] [Job 5] Killing process 3152 (KID3) with signal 9
D [09/Jan/2011:20:09:16 +0100] [Job 5] Error closing renderer
D [09/Jan/2011:20:09:16 +0100] [Job 5] 
D [09/Jan/2011:20:09:16 +0100] [Job 5] Closing foomatic-rip.
D [09/Jan/2011:20:09:16 +0100] [Job 5] Backend returned status 4 (stop printer)
D [09/Jan/2011:20:09:16 +0100] [Job 5] Printer stopped due to backend errors; please consult the error_log file for details.
D [09/Jan/2011:20:09:16 +0100] [Job 5] End of messages
D [09/Jan/2011:20:09:16 +0100] [Job 5] printer-state=5(stopped)
D [09/Jan/2011:20:09:16 +0100] [Job 5] printer-state-message="/usr/lib/cups/backend/hp failed"
D [09/Jan/2011:20:09:16 +0100] [Job 5] printer-state-reasons=paused
E [09/Jan/2011:20:14:21 +0100] [Job 5] Stopping unresponsive job!

sad


EDIT3: I tested the ppd from cups (and not hpijs) and got the same problem ... The latest idea was to unplug USB and plug to another USB ... and it seams to works yikes ... Now, the test page print "fine" ...

So, I shared the printer over my LAN, and tried to print from a workstation ... it works fine now smile ... when looking error_log, I can see than there is no more Ghostscript error smile.


But I have a last question .. if somebody can answer ... When choosing a PPD file, I have the choice between 3 version :
- hpijs, 3.10.9
- hpijs, 3.10.9.11
- hpcups, 3.10.9

Don't know why onlyl the HPIJS got the ".11" and not any others ... I selected this one and here is what Cups say about the printer :

HP_DeskJet_895C_USB_ES29Z231JKGO_HPLIP    HP DeskJet 895C    Local Printer    HP Deskjet 895c hpijs, 3.10.9.11    Idle - "ready to print"

I hope when upgrading the system, I will not get error from PPD file not found ... With my current PPD file, I get (really not sure) this error, but print is working so, it doesn't matter :

E [09/Jan/2011:21:08:04 +0100] [CGI] Unable to create avahi client: No such file or directory
E [09/Jan/2011:21:08:04 +0100] [cups-deviced] PID 5705 (dnssd) stopped with status 1!
E [09/Jan/2011:21:08:09 +0100] [cups-driverd] Bad driver information file "/usr/share/cups/model/foomatic-db-ppds/Kyocera/ReadMe.htm"!

Thanks for all .. hope you don't think I'm crazy ^^

Last edited by loopx (2011-01-09 20:31:21)

Offline

Board footer

Powered by FluxBB