Prinitng on HP Deskjet 1112 prnter fails with error ***unable to open device, quitting

Asked by Ison

Hi,

I am trying to print on HP Deskjet 1112 using BeagleBone Black based custom board running on Debian 7.8. I have used cups 1.5.3 as the interface

I am able to install the printer using lpadmin command but when I try to print I get the error "hpcups" failed. The error log is posted below:

E [11/Nov/2015:03:33:41 +0000] Unable to open listen socket for address [v1.::1]:631 - Address family not supported by protocol.
W [11/Nov/2015:03:33:48 +0000] [cups-driverd] Unable to execute "/usr/lib/cups/driver/foomatic-db-compressed-ppds": Cannot allocate memory
W [11/Nov/2015:03:33:48 +0000] [cups-driverd] Unable to execute "/usr/lib/cups/driver/postscript-hp": Cannot allocate memory
W [11/Nov/2015:03:33:48 +0000] [cups-driverd] Unable to execute "/usr/lib/cups/driver/m2300w": Cannot allocate memory
E [11/Nov/2015:03:34:33 +0000] Unable to open listen socket for address [v1.::1]:631 - Address family not supported by protocol.
W [11/Nov/2015:03:36:51 +0000] failed to CreateProfile: org.freedesktop.ColorManager.AlreadyExistsSmiley Tonguerofile id 'HP-Gray..' already exists
W [11/Nov/2015:03:36:51 +0000] failed to CreateProfile: org.freedesktop.ColorManager.AlreadyExistsSmiley Tonguerofile id 'HP-RGB..' already exists
W [11/Nov/2015:03:36:51 +0000] failed to CreateDevice: org.freedesktop.ColorManager.AlreadyExists:device id 'cups-HP' already exists
E [11/Nov/2015:03:37:23 +0000] [Job 1] Job stopped due to filter errors; please consult the error_log file for details.
D [11/Nov/2015:03:37:23 +0000] [Job 1] The following messages were recorded from 03:37:22 AM to 03:37:23 AM
D [11/Nov/2015:03:37:23 +0000] [Job 1] Adding start banner page "none".
D [11/Nov/2015:03:37:23 +0000] [Job 1] Queued on "HP" by "root".
D [11/Nov/2015:03:37:23 +0000] [Job 1] Auto-typing file...
D [11/Nov/2015:03:37:23 +0000] [Job 1] Request file type is text/plain.
D [11/Nov/2015:03:37:23 +0000] [Job 1] File of type text/plain queued by "root".
D [11/Nov/2015:03:37:23 +0000] [Job 1] Adding end banner page "none".
D [11/Nov/2015:03:37:23 +0000] [Job 1] job-sheets=none,none
D [11/Nov/2015:03:37:23 +0000] [Job 1] argv[0]="HP"
D [11/Nov/2015:03:37:23 +0000] [Job 1] argv[1]="1"
D [11/Nov/2015:03:37:23 +0000] [Job 1] argv[2]="root"
D [11/Nov/2015:03:37:23 +0000] [Job 1] argv[3]="abc.txt"
D [11/Nov/2015:03:37:23 +0000] [Job 1] argv[4]="1"
D [11/Nov/2015:03:37:23 +0000] [Job 1] argv[5]="finishings=3 number-up=1 job-uuid=urn:uuid:b40d34ad-3d49-3a38-6bca-55af99426b8d job-originating-host-name=localhost time-at-creation=1447213042 time-at-processing=1447213042"
D [11/Nov/2015:03:37:23 +0000] [Job 1] argv[6]="/var/spool/cups/d00001-001"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[8]="HOME=/var/spool/cups/tmp"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[10]="SERVER_ADMIN=root at beaglebone"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[11]="SOFTWARE=CUPS/1.5.3"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[13]="TZ=Etc/UTC"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[14]="USER=root"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[15]="CUPS_SERVER=/var/run/cups/cups.sock"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[17]="IPP_PORT=631"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[18]="CHARSET=utf-8"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[19]="LANG=en_US.UTF-8"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[20]="PPD=/etc/cups/ppd/HP.ppd"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[21]="RIP_MAX_CACHE=128m"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[22]="CONTENT_TYPE=text/plain"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[23]="DEVICE_URI=hp:/usb/DeskJet_1110_series?serial=CN55D1N02S065W"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[24]="PRINTER_INFO=HP"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[25]="PRINTER_LOCATION="
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[26]="PRINTER=HP"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[27]="PRINTER_STATE_REASONS=none"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[28]="CUPS_FILETYPE=document"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[29]="FINAL_CONTENT_TYPE=printer/HP"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[30]="AUTH_I****"
D [11/Nov/2015:03:37:23 +0000] [Job 1] Started filter /usr/lib/cups/filter/texttopdf (PID 6249)
D [11/Nov/2015:03:37:23 +0000] [Job 1] Started filter /usr/lib/cups/filter/pdftopdf (PID 6250)
D [11/Nov/2015:03:37:23 +0000] [Job 1] Started filter /usr/lib/cups/filter/gstoraster (PID 6251)
D [11/Nov/2015:03:37:23 +0000] [Job 1] Started filter /usr/lib/cups/filter/hpcups (PID 6252)
D [11/Nov/2015:03:37:23 +0000] [Job 1] Started backend /usr/lib/cups/backend/hp (PID 6253)
D [11/Nov/2015:03:37:23 +0000] [Job 1] Page = 595x842; 8,41 to 587,833
D [11/Nov/2015:03:37:23 +0000] [Job 1] PPD uses qualifier 'RGB.Plain.'
D [11/Nov/2015:03:37:23 +0000] [Job 1] Calling FindDeviceById(HP)
D [11/Nov/2015:03:37:23 +0000] [Job 1] Failed to send: org.freedesktop.ColorManager.Failed:device id 'HP' does not exists
D [11/Nov/2015:03:37:23 +0000] [Job 1] Failed to get profile filename!
D [11/Nov/2015:03:37:23 +0000] [Job 1] no profiles specified in PPD
D [11/Nov/2015:03:37:23 +0000] [Job 1] Set job-printer-state-message to "no profiles specified in PPD", current level=INFO
D [11/Nov/2015:03:37:23 +0000] [Job 1] Ghostscript command line: /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -sDEVICE=cups -sstdout=%stderr -sOutputFile=%stdout -sOutputType=0 -r600x600 -dMediaPosition=1 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=841 -dcupsBitsPerColor=8 -dcupsColorOrder=0 -dcupsColorSpace=17 -dcupsInteger0=26 -scupsPageSizeName=A4 -I/usr/share/cups/fonts -c -f -_
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[2]="CUPS_DOCROOT=/usr/share/cups/doc-root"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[8]="HOME=/var/spool/cups/tmp"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[10]="SERVER_ADMIN=root at beaglebone"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[11]="SOFTWARE=CUPS/1.5.3"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[13]="TZ=Etc/UTC"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[14]="USER=root"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[15]="CUPS_SERVER=/var/run/cups/cups.sock"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[17]="IPP_PORT=631"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[18]="CHARSET=utf-8"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[19]="LANG=en_US.UTF-8"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[20]="PPD=/etc/cups/ppd/HP.ppd"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[21]="RIP_MAX_CACHE=128m"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[22]="CONTENT_TYPE=text/plain"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[23]="DEVICE_URI=hp:/usb/DeskJet_1110_series?serial=CN55D1N02S065W"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[24]="PRINTER_INFO=HP"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[25]="PRINTER_LOCATION="
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[26]="PRINTER=HP"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[27]="PRINTER_STATE_REASONS=none"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[28]="CUPS_FILETYPE=document"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[29]="FINAL_CONTENT_TYPE=printer/HP"
D [11/Nov/2015:03:37:23 +0000] [Job 1] envp[30]="AUTH_INFO_REQUIRED=none"
D [11/Nov/2015:03:37:23 +0000] [Job 1] Start rendering...
D [11/Nov/2015:03:37:23 +0000] [Job 1] Set job-printer-state-message to "Start rendering...", current level=INFO
D [11/Nov/2015:03:37:23 +0000] [Job 1] Processing page 1...
D [11/Nov/2015:03:37:23 +0000] [Job 1] Set job-printer-state-message to "Processing page 1...", current level=INFO
D [11/Nov/2015:03:37:23 +0000] [Job 1] **** Unable to open the initial device, quitting.
D [11/Nov/2015:03:37:23 +0000] [Job 1] prnt/hpcups/HPCupsFilter.cpp 536: cupsRasterOpen failed, fd = 0
D [11/Nov/2015:03:37:23 +0000] [Job 1] prnt/backend/hp.c 839: ERROR: null print job total=0
D [11/Nov/2015:03:37:23 +0000] [Job 1] End of messages
D [11/Nov/2015:03:37:23 +0000] [Job 1] printer-state=3(idle)
D [11/Nov/2015:03:37:23 +0000] [Job 1] printer-state-message="/usr/lib/cups/filter/hpcups failed"
D [11/Nov/2015:03:37:23 +0000] [Job 1] printer-state-reasons=none
E [11/Nov/2015:03:42:24 +0000] [Job 1] Stopping unresponsive job!

I tried to install the printer using 'hp-setup -i' but it is not detecing my usb printer when I give the '0' option. The output of the interactive session with hp-setup is also given below

/** Used /usr/lib/cups/backend/usb command to ensure that the printer connection is detected **/

root@beaglebone:~# /usr/lib/cups/backend/usb
DEBUG: list_devices
DEBUG: libusb_get_device_list=2
[ 939.628630] usblp0: removed
DEBUG2: Printer found with device ID: MFG:HP;MDLSmiley Very HappyeskJet 1110 series;CMDSmiley TongueCL3GUI,PJL,Automatic,DW-PCL,DESKJET,DYN;CLSSmiley TongueRINTER;DES:K7B87D;CID:HP
D[ 939.652882] usblp 1-1:1.0: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x03F0 pid 0xDF11
eskjet_P976D;LEDMDIS:USB#07#01#02,USB#FF#04#01;SN:CN55D1N02S065W;S:038000C480a00001002c2400014c1400014;Z:05000009000009,12000,17000000000000,18
1; Device URI: usb://HP/DeskJet%201110%20series?serial=CN55D1N02S065W
direct usb://HP/DeskJet%201110%20series?serial=CN55D1N02S065W "HP DeskJet 1110 series" "HP DeskJet 1110 series" "MFG:HP;MDLSmiley Very HappyeskJet 1110 series
;CMDSmiley TongueCL3GUI,PJL,Automatic,DW-PCL,DESKJET,DYN;CLSSmiley TongueRINTER;DES:K7B87D;CID:HPDeskjet_P976D;LEDMDIS:USB#07#01#02,USB#FF#04#01;SN:CN55D1N02S065W;S:
038000C480a00001002c2400014c1400014;Z:05000009000009,12000,17000000000000,181;" ""
root@beaglebone:~#
root@beaglebone:~#
root@beaglebone:~#
root@beaglebone:~#
root@beaglebone:~# hp-setup -i

HP Linux Imaging and Printing System (ver. 3.12.6)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-14 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)

--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------

  Num Connection Description
            Type
  -------- ---------- ----------------------------------------------------------
  0* usb Universal Serial Bus (USB)
  1 net Network/Ethernet/Wireless (direct connection or JetDirect)
  2 par Parallel Port (LPTSmiley Happy

Enter number 0...2 for connection type (q=quit, enter=usb*) ? 0

Using connection type: usb

error: No device selected/specified or that supports this functionality.
root@beaglebone:~#

I ran the ghostscrtipt command used by cups on the command line and it gave no error

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Johannes Meixner (jsmeix) said :
#1

See

https://www.cups.org/str.php?L4740

and in particular see

http://bugs.ghostscript.com/show_bug.cgi?id=696348#c5
--------------------------------------------------------------------------------
Ison Thomas 2015-11-13 05:24:24 PST

I got it resolved.. The issue was with memory only.

My uEnv.txt file has limited the memory of BBB to 128MB.
I changed it to use full 512MB and the issue is solved...
--------------------------------------------------------------------------------

Revision history for this message
Johannes Meixner (jsmeix) said :
#2

The issue should be solved.