Printer can't be reached

hello :wink:

when i try to print here is an error message i have :


> lpstat -p -d 
printer Lexmark_Pro800Pro900_Series now printing  Lexmark_Pro800Pro900_Series-148.  enabled since mar. 22 juil. 2014  09:45:33 CEST 
        /usr/lib/cups/backend/lxhcp failed 
system default destination: Lexmark_Pro800Pro900_Series 

The pc canā€™t reach the printer ( /usr/lib/cups/backend/lxhcp failed ).

Can you please help me understand why ?

Thank you :wink:

On 2014-07-22 10:56, manchette fr wrote:
>
> hello :wink:
>
> when i try to print here is an error message i have :
>
>> lpstat -p -d
> printer Lexmark_Pro800Pro900_Series now printing
> Lexmark_Pro800Pro900_Series-148. enabled since mar. 22 juil. 2014
> 09:45:33 CEST
> /usr/lib/cups/backend/lxhcp failed
> system default destination: Lexmark_Pro800Pro900_Series

A comment: When pasting here computer commands and such, please use a
CODE BLOCK, so that the forum software doesnā€™t do silly things like
converting URLS to tiny urls or otherwise hide or alter the commands you
entered. You get them by clicking on the ā€˜#ā€™ button in the forum editor.
See photo

> The pc canā€™t reach the printer ( /usr/lib/cups/backend/lxhcp failed ).
>
> Can you please help me understand why ?

You can increase cups log verbosity. In ā€œ/etc/cups/cupsd.confā€ change
ā€œLogLevel debugā€, and restart the service:


systemctl restart cups.service

Then try printing and inspect the cups logs.

ā€“
Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 ā€œBottleā€ (Minas Tirith))

Iā€™m not familiar with Lexmark hardware, but just to get the background to this, I presume you started by installing the driver from the Lexmark site, and downloaded lexmark-inkjet-legacy-wJRE-1.0-1.x86_64.rpm.sh.tar.gzā€™ or similar? I wonder if the install completed? I note that part of the install adjusts the firewall to open UDP port 5353. Just in case this failed, you might want to check this port, or disable the firewall

How are you connected? (Ethernet cable, USB,ā€¦?)

I also note that there are two versions of the proprietary driver available - one with JRE, and one without. Hopefully, a Lexmark user can chime in with further advice. You may need to obtain support via Lexmark since it is a proprietary driverā€¦

I also note (following a quick check of CUPS) that there is a postsctipt driver available for the Lexmark Pro800-Pro900 Series. Have you tried using that (albeit that it may only provide basic functionality)?

hello,

i had installed the following driver which is usually ok :
Name: lexmark-inkjet-legacy-wJRE
Version: 1.0-1
Arch: i386

i opened with a new rule in firewall for udp 5353
i have changed log level to debug, here are some quotes from the error logs if this helps :



var/log/cups # cat error_log

D [22/Jul/2014:15:21:50 +0200] [Job 149] envp[29]="FINAL_CONTENT_TYPE=printer/Lexmark_Pro800Pro900_Series"
D [22/Jul/2014:15:21:50 +0200] [Job 149] envp[30]="AUTH_INFO_REQUIRED=none"
I [22/Jul/2014:15:21:50 +0200] [Job 149] Start rendering...
D [22/Jul/2014:15:21:50 +0200] [Job 149] Set job-printer-state-message to "Start rendering...", current level=INFO
D [22/Jul/2014:15:21:50 +0200] Discarding unused job-progress event...
D [22/Jul/2014:15:21:50 +0200] Discarding unused printer-state-changed event...
I [22/Jul/2014:15:21:50 +0200] [Job 149] Processing page 1...
D [22/Jul/2014:15:21:50 +0200] [Job 149] Set job-printer-state-message to "Processing page 1...", current level=INFO
D [22/Jul/2014:15:21:50 +0200] Discarding unused job-progress event...
D [22/Jul/2014:15:21:50 +0200] Discarding unused printer-state-changed event...
D [22/Jul/2014:15:22:05 +0200] PID 4847 (/usr/lib/cups/backend/lxhcp) stopped with status 1.
I [22/Jul/2014:15:22:21 +0200] Saving job.cache...
D [22/Jul/2014:15:22:21 +0200] cupsdSetBusyState: newbusy="Printing jobs", busy="Dirty files"
E [22/Jul/2014:15:24:11 +0200] [Job 150] Stopping unresponsive job!
D [22/Jul/2014:15:24:11 +0200] Report: clients=0
D [22/Jul/2014:15:24:11 +0200] Report: jobs=62
D [22/Jul/2014:15:24:11 +0200] Report: jobs-active=2
D [22/Jul/2014:15:24:11 +0200] Report: printers=1
D [22/Jul/2014:15:24:11 +0200] Report: printers-implicit=0
D [22/Jul/2014:15:24:11 +0200] Report: stringpool-string-count=9440
D [22/Jul/2014:15:24:11 +0200] Report: stringpool-alloc-bytes=12408
D [22/Jul/2014:15:24:11 +0200] Report: stringpool-total-bytes=173608
E [22/Jul/2014:15:24:21 +0200] [Job 149] Erreur d'imprimante. L'imprimante ne peut pas communiquer avec l'ordinateur.
D [22/Jul/2014:15:24:21 +0200] Discarding unused job-progress event...
D [22/Jul/2014:15:24:21 +0200] Discarding unused printer-state-changed event...
D [22/Jul/2014:15:24:21 +0200] Discarding unused job-state-changed event...
I [22/Jul/2014:15:24:21 +0200] [Job 150] Job submission timed out.
D [22/Jul/2014:15:24:21 +0200] cupsdMarkDirty(----J-)
D [22/Jul/2014:15:24:21 +0200] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs"
D [22/Jul/2014:15:24:21 +0200] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [22/Jul/2014:15:24:21 +0200] PID 4846 (/usr/local/lexmark/legacy/bin/printfilter) exited with no errors.
D [22/Jul/2014:15:24:21 +0200] PID 4845 (/usr/lib/cups/filter/gstoraster) stopped with status 13.
I [22/Jul/2014:15:24:21 +0200] [Job 149] Backend returned status 1 (failed)
D [22/Jul/2014:15:24:21 +0200] Discarding unused job-state-changed event...
I [22/Jul/2014:15:24:21 +0200] [Job 149] Job held for 300 seconds since it could not be sent.
D [22/Jul/2014:15:24:21 +0200] cupsdMarkDirty(----J-)
D [22/Jul/2014:15:24:21 +0200] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [22/Jul/2014:15:24:21 +0200] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Printing jobs and dirty files"
D [22/Jul/2014:15:24:21 +0200] Discarding unused printer-state-changed event...
D [22/Jul/2014:15:24:21 +0200] cupsdMarkDirty(----J-)
D [22/Jul/2014:15:24:21 +0200] cupsdSetBusyState: newbusy="Dirty files", busy="Printing jobs and dirty files"
D [22/Jul/2014:15:24:21 +0200] cupsdSetBusyState: newbusy="Dirty files", busy="Dirty files"
D [22/Jul/2014:15:24:21 +0200] Discarding unused printer-state-changed event...
D [22/Jul/2014:15:24:21 +0200] [Job 150] job-sheets=none,none
D [22/Jul/2014:15:24:21 +0200] [Job 150] argv[0]="Lexmark_Pro800Pro900_Series"
D [22/Jul/2014:15:24:21 +0200] [Job 150] argv[1]="150"
D [22/Jul/2014:15:24:21 +0200] [Job 150] argv[2]="fabrice"
D [22/Jul/2014:15:24:21 +0200] [Job 150] argv[3]="GIR_Fbx_HD_imposition"
D [22/Jul/2014:15:24:21 +0200] [Job 150] argv[4]="1"
D [22/Jul/2014:15:24:21 +0200] [Job 150] argv[5]="noCollate finishings=3 fit-to-page media=A4 number-up=1 outputorder=normal page-bottom=10 page-left=10 page-right=10 page-top=10 portrait Sharpening=12 sides=one-sided Tray2 job-uuid=urn:uuid:e0318498-0538-37c8-48f5-6efe2a2f74bd job-originating-host-name=localhost time-at-creation=1406034874 time-at-processing=1406035461 Duplex=None PageSize=A4"
D [22/Jul/2014:15:24:21 +0200] [Job 150] argv[6]="/var/spool/cups/d00150-001"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[2]="CUPS_DOCROOT=/usr/share/cups/webcontent"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[8]="HOME=/var/spool/cups/tmp"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[10]="SERVER_ADMIN=root@linux-opensuse131"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[11]="SOFTWARE=CUPS/1.5.4"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[13]="USER=root"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[14]="CUPS_MAX_MESSAGE=2047"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[15]="CUPS_SERVER=/var/run/cups/cups.sock"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[17]="IPP_PORT=631"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[18]="CHARSET=utf-8"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[19]="LANG=fr_FR.UTF-8"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[20]="PPD=/etc/cups/ppd/Lexmark_Pro800Pro900_Series.ppd"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[21]="RIP_MAX_CACHE=128m"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[22]="CONTENT_TYPE=application/postscript"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[23]="DEVICE_URI=lxhcp://00200067AB79"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[24]="PRINTER_INFO=Lexmark_Pro800Pro900_Series"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[25]="PRINTER_LOCATION="
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[26]="PRINTER=Lexmark_Pro800Pro900_Series"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[27]="PRINTER_STATE_REASONS=none"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[28]="CUPS_FILETYPE=document"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[29]="FINAL_CONTENT_TYPE=printer/Lexmark_Pro800Pro900_Series"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[30]="AUTH_I****"
I [22/Jul/2014:15:24:21 +0200] [Job 150] Started filter /usr/lib/cups/filter/pstops (PID 4859)
I [22/Jul/2014:15:24:21 +0200] [Job 150] Started filter /usr/lib/cups/filter/gstoraster (PID 4860)
I [22/Jul/2014:15:24:21 +0200] [Job 150] Started filter /usr/local/lexmark/legacy/bin/printfilter (PID 4861)
I [22/Jul/2014:15:24:21 +0200] [Job 150] Started backend /usr/lib/cups/backend/lxhcp (PID 4862)
D [22/Jul/2014:15:24:21 +0200] Discarding unused job-state-changed event...
D [22/Jul/2014:15:24:21 +0200] [Job 150] Page = 595x842; 10,36 to 586,837
D [22/Jul/2014:15:24:21 +0200] [Job 150] slow_collate=0, slow_duplex=0, slow_order=0
D [22/Jul/2014:15:24:21 +0200] [Job 150] Before copy_comments - %!PS-Adobe-3.0
D [22/Jul/2014:15:24:21 +0200] [Job 150] %!PS-Adobe-3.0
D [22/Jul/2014:15:24:21 +0200] [Job 150] %Produced by poppler pdftops version: 0.24.3 (http://poppler.freedesktop.org)
D [22/Jul/2014:15:24:21 +0200] [Job 150] %%Creator: QuarkXPress(tm) 6.0
D [22/Jul/2014:15:24:21 +0200] [Job 150] %%Title: GIR_Fbx_HD.pdf
D [22/Jul/2014:15:24:21 +0200] [Job 150] %%LanguageLevel: 2
D [22/Jul/2014:15:24:21 +0200] [Job 150] %%DocumentSuppliedResources: (atend)
D [22/Jul/2014:15:24:21 +0200] [Job 150] %%DocumentMedia: plain 595 842 0 () ()
D [22/Jul/2014:15:24:21 +0200] [Job 150] %%BoundingBox: 0 0 595 842
D [22/Jul/2014:15:24:21 +0200] [Job 150] %%Pages: 12
D [22/Jul/2014:15:24:21 +0200] [Job 150] %%EndComments
D [22/Jul/2014:15:24:21 +0200] [Job 150] Before copy_prolog - %%BeginDefaults
D [22/Jul/2014:15:24:21 +0200] [Job 150] Before copy_setup - %%BeginSetup
D [22/Jul/2014:15:24:21 +0200] [Job 150] Before page loop - %%Page: 12 1
D [22/Jul/2014:15:24:21 +0200] [Job 150] Copying page 1...
D [22/Jul/2014:15:24:21 +0200] [Job 150] pagew = 575.2, pagel = 821.8
D [22/Jul/2014:15:24:21 +0200] [Job 150] bboxx = 0, bboxy = 0, bboxw = 595, bboxl = 842
D [22/Jul/2014:15:24:21 +0200] [Job 150] PageLeft = 10.0, PageRight = 585.2
D [22/Jul/2014:15:24:21 +0200] [Job 150] PageTop = 831.8, PageBottom = 10.0
D [22/Jul/2014:15:24:21 +0200] [Job 150] PageWidth = 595.2, PageLength = 841.8
D [22/Jul/2014:15:24:21 +0200] [Job 150] Wrote 1 pages...
D [22/Jul/2014:15:24:21 +0200] [Job 150] PPD uses qualifier 'BlackOnly.Automatic.'
D [22/Jul/2014:15:24:21 +0200] [Job 150] Calling FindDeviceById(Lexmark_Pro800Pro900_Series)
D [22/Jul/2014:15:24:21 +0200] [Job 150] Failed to send: org.freedesktop.DBus.Error.ServiceUnknown:The name org.freedesktop.ColorManager was not provided by any .service files
D [22/Jul/2014:15:24:21 +0200] [Job 150] Failed to get profile filename!
I [22/Jul/2014:15:24:21 +0200] [Job 150] no profiles specified in PPD
D [22/Jul/2014:15:24:21 +0200] [Job 150] Set job-printer-state-message to "no profiles specified in PPD", current level=INFO
D [22/Jul/2014:15:24:21 +0200] [Job 150] Ghostscript command line: /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE -dNOMEDIAATTRS -sDEVICE=cups -sstdout=%stderr -sOutputFile=%stdout -sOutputType=1 -r300x300 -dMediaPosition=2 -dDEVICEWIDTHPOINTS=595 -dDEVICEHEIGHTPOINTS=841 -dcupsBitsPerColor=8 -dcupsColorOrder=0 -dcupsColorSpace=1 -dcupsCompression=8 -dcupsRowCount=1 -dcupsRowFeed=1 -dcupsRowStep=1 -scupsPageSizeName=A4 -I/usr/share/cups/fonts -c -f -_
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[2]="CUPS_DOCROOT=/usr/share/cups/webcontent"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[5]="CUPS_SERVERBIN=/usr/lib/cups"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[8]="HOME=/var/spool/cups/tmp"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[9]="PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[10]="SERVER_ADMIN=root@linux-opensuse131"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[11]="SOFTWARE=CUPS/1.5.4"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[12]="TMPDIR=/var/spool/cups/tmp"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[13]="USER=root"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[14]="CUPS_MAX_MESSAGE=2047"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[15]="CUPS_SERVER=/var/run/cups/cups.sock"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[16]="CUPS_ENCRYPTION=IfRequested"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[17]="IPP_PORT=631"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[18]="CHARSET=utf-8"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[19]="LANG=fr_FR.UTF-8"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[20]="PPD=/etc/cups/ppd/Lexmark_Pro800Pro900_Series.ppd"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[21]="RIP_MAX_CACHE=128m"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[22]="CONTENT_TYPE=application/postscript"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[23]="DEVICE_URI=lxhcp://00200067AB79"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[24]="PRINTER_INFO=Lexmark_Pro800Pro900_Series"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[25]="PRINTER_LOCATION="
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[26]="PRINTER=Lexmark_Pro800Pro900_Series"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[27]="PRINTER_STATE_REASONS=none"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[28]="CUPS_FILETYPE=document"
D [22/Jul/2014:15:24:21 +0200] Discarding unused job-progress event...
D [22/Jul/2014:15:24:21 +0200] Discarding unused printer-state-changed event...
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[29]="FINAL_CONTENT_TYPE=printer/Lexmark_Pro800Pro900_Series"
D [22/Jul/2014:15:24:21 +0200] [Job 150] envp[30]="AUTH_INFO_REQUIRED=none"
D [22/Jul/2014:15:24:21 +0200] PID 4859 (/usr/lib/cups/filter/pstops) exited with no errors.
I [22/Jul/2014:15:24:21 +0200] [Job 150] Start rendering...
D [22/Jul/2014:15:24:21 +0200] [Job 150] Set job-printer-state-message to "Start rendering...", current level=INFO
D [22/Jul/2014:15:24:21 +0200] Discarding unused job-progress event...
D [22/Jul/2014:15:24:21 +0200] Discarding unused printer-state-changed event...
I [22/Jul/2014:15:24:21 +0200] [Job 150] Processing page 1...
D [22/Jul/2014:15:24:21 +0200] [Job 150] Set job-printer-state-message to "Processing page 1...", current level=INFO
D [22/Jul/2014:15:24:21 +0200] Discarding unused job-progress event...
D [22/Jul/2014:15:24:21 +0200] Discarding unused printer-state-changed event...
linux-opensuse131:/var/log/cups # 


Well, there seems to be a communication issue with the printer as reported here:

E [22/Jul/2014:15:24:21 +0200] [Job 149] Erreur d'imprimante. L'imprimante ne peut pas communiquer avec l'ordinateur.

and the the following CUPS message

(/usr/lib/cups/backend/lxhcp) stopped with status 1.

which might suggest that the printer has paused, or some other error condition is present perhaps. What is shown about the printer in /etc/cups/printers.conf? Check the status via the CUPS web interface

http:localhost:631/printers

Maybe it can resumed from there if necessary.

BTW, you didnā€™t tell us how this printer is connected (ie ethernet, usbā€¦)

hi,

the printer is connected with an Ethernet cable to the local network, in cups the status says ā€˜idleā€™ (not busy)

hereā€™s the file content you asked for :

# cat /etc/cups/printers.conf
# Printer configuration file for CUPS v1.5.4
# Written by cupsd on 2014-07-22 15:55
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<DefaultPrinter Lexmark_Pro800Pro900_Series>
UUID urn:uuid:8604df68-f13c-35ad-6166-d7f0a857bfaf
Info Lexmark_Pro800Pro900_Series
MakeModel Lexmark Pro800-Pro900 Series, 1.0
DeviceURI lxhcp://00200067AB79
State Idle
StateTime 1406037285
Type 61468
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
Attribute marker-colors none,none,none,none
Attribute marker-levels 7,75,66,76
Attribute marker-names R??servoir noir,R??servoir jaune,R??servoir cyan,R??servoir magenta
Attribute marker-types inkCartridge,inkCartridge,inkCartridge,inkCartridge
Attribute marker-change-time 1405355722
</Printer>

Okay, that all looks good. How did you configure your printer? Did you use the ā€˜/usr/local/lexmark/legacy/bin/.scripts/lxtoolboxā€™ utility? Were you able to print a test page during this process?

What happens when you try to run the backend manually?

/usr/local/lexmark/legacy/bin/lxhcp

It may take several seconds for its query to complete or timeout. Do you get any output? If not, maybe there is no packets getting to the printer (ie router or firewall issue perhaps).

to install i followed the gui guide provided during the driver install, i have not really added specifical rules but for the error policy which i set to ā€˜retry jobā€™.

manually it says ā€œcommand not foundā€ :


linux-opensuse131:~ # /usr/local/lexmark/legacy/bin/lxhcp
/usr/local/lexmark/legacy/bin/lxhcp: line 1: fabrice@linux-opensuse131:~:: command not found


linux-opensuse131:/usr/local/lexmark/legacy/bin # ls
.scripts  demond  lxhcp  printfilter  rootme  slogcap  surunner 



Sorry, the backend is located in /usr/lib/cups/backend/, so try

/usr/lib/cups/backend/lxhcp

I note from examining your printers.conf, that the printer is referenced by its discovered hardware MAC address

DeviceURI lxhcp://00200067AB79

It is possible to use the IP address instead (assuming it has been configured previously). If you have a Windows environment, you might want to consider setting up the printer address to match your network environment. Having said that, the lxhcp backend should be able to cope with either method (as long as the communication packets are able to get to the printer).

In an effort to help, I ran the setup utility (as root) using

/usr/local/lexmark/legacy/bin/.scripts/lxtoolbox

and note that there is an option to ā€˜Let me specify an IP addressā€™, then once the correct ā€˜modelā€™ is chosen it is possible to add an IP address manually. Of course, I donā€™t have the printer, so canā€™t really test further.

hi,
yes, itā€™s possible to set an ip, but while installing itā€™s as easy to select the printerā€™s name in the list provided, i guess it should be ok.

does it make a big difference ?

Well, the driver is capable of using layer 2 communication (assuming the network is transparent at that level), but sometimes layer 3 (using IP addressing) is necessary. For example, Iā€™ve observed strange behaviour when a printer is connected to router via wired ethernet, and a PC is connected via wireless link on the same network. It ā€˜appearsā€™ to be a communication-related issue, but I guess the setup utility was able to discover the device in the first place. I think it is worth perusing (but youā€™ll probably need to configure it via Windows first).

If communication was working, running the backend manually should have produced some output (following communication with the discovered printer)

/usr/lib/cups/backend/lxhcp
  • From what Iā€™ve read, I think it uses some hybrid mDNS-type discovery broadcast.

I donā€™t want to confuse you, but there are some good workarounds mentioned in this Puppy Linux forum

http://ns1.murga-projects.com/puppy/viewtopic.php?p=771609&sid=2bf74454c99847fd20cf20cfe655db7d

*Specifically first post points a,b,c.

actually i know there 's something wrong but iā€™d like to understand how come when it was working a few days ago.
ā€œ/usr/lib/cups/backend/lxhcp failedā€ in cups shows printer canā€™t be reached but i donā€™t get why.

i already had port 5353 open and added mDNS service in the firewall but it does not help.

You didnā€™t mention that before. Can you make sure that any existing print jobs are cancelled?

ā€œ/usr/lib/cups/backend/lxhcp failedā€ in cups shows printer canā€™t be reached but i donā€™t get why.*

Me neither, but I have been encouraging you to run the backend manually with the printer connected and report back with the output (if any). If it fails, we have a communication issue. Do you have any other machines that can reach this printer successfully?

Hello :wink:

Actually yes, i should have said it earlier.
I can see the results in Cups, i have the list of tasks and i had to erase each task not successfull ( for if not an error message keeps coming all the time) .

When i run manually i have no result in console

/usr/lib/cups/backend/lxhcp

Hereā€™s what i have in the error log just after running the code above : http://susepaste.org/502455

I have a windows 8 machine nearby, on ethernet too and this one prints ok.

[QUOTE=manchette_fr;2656104]Hello :wink:

Actually yes, i should have said it earlier.
I can see the results in Cups, i have the list of tasks and i had to erase each task not successfull ( for if not an error message keeps coming all the time) .

One quick way of doing that via CLI, would be

cancel -a

When i run manually i have no result in console

/usr/lib/cups/backend/lxhcp

Okay, well your printer should be annunciated (by MAC address) when it is run. You might try disabling your firewall temporarily

systemctl stop SuSEfirewall2.service

then run the command again. If it works, we a have a firewall issue to fix.

I couldnā€™t see anything unusual in the log.

I have a windows 8 machine nearby, on ethernet too and this one prints ok.

Good to know.

I guess you could use it (or via the printer front panel perhaps) to configure a valid IP address. Then try using the lxtoolbox utility to try an reconfigure for CUPSā€¦

/usr/local/lexmark/legacy/bin/.scripts/lxtoolbox

Hello,

# cancel -a

this is really nice to erase an active task :slight_smile:

i have this :



linux-opensuse131:~ # /usr/lib/cups/backend/lxhcp
linux-opensuse131:~ # systemctl stop SuSEfirewall2.service
linux-opensuse131:~ # /usr/lib/cups/backend/lxhcp


nothing is returned in console, see below the error log :


D [29/Jul/2014:15:42:18 +0200] cupsdAcceptClient: 12 from localhost (Domain)
D [29/Jul/2014:15:42:18 +0200] Report: clients=1
D [29/Jul/2014:15:42:18 +0200] Report: jobs=63
D [29/Jul/2014:15:42:18 +0200] Report: jobs-active=0
D [29/Jul/2014:15:42:18 +0200] Report: printers=1
D [29/Jul/2014:15:42:18 +0200] Report: printers-implicit=0
D [29/Jul/2014:15:42:18 +0200] Report: stringpool-string-count=25790
D [29/Jul/2014:15:42:18 +0200] Report: stringpool-alloc-bytes=11232
D [29/Jul/2014:15:42:18 +0200] Report: stringpool-total-bytes=470784
D [29/Jul/2014:15:42:18 +0200] cupsdReadClient: 12 POST / HTTP/1.1
D [29/Jul/2014:15:42:18 +0200] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [29/Jul/2014:15:42:18 +0200] cupsdAuthorize: No authentication data provided.
D [29/Jul/2014:15:42:18 +0200] cupsdReadClient: 12 1.1 CUPS-Get-Printers 1
D [29/Jul/2014:15:42:18 +0200] CUPS-Get-Printers
D [29/Jul/2014:15:42:18 +0200] Returning IPP successful-ok for CUPS-Get-Printers (no URI) from localhost
D [29/Jul/2014:15:42:18 +0200] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [29/Jul/2014:15:42:18 +0200] cupsdReadClient: 12 POST / HTTP/1.1
D [29/Jul/2014:15:42:18 +0200] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [29/Jul/2014:15:42:18 +0200] cupsdAuthorize: No authentication data provided.
D [29/Jul/2014:15:42:18 +0200] cupsdReadClient: 12 1.1 CUPS-Get-Classes 1
D [29/Jul/2014:15:42:18 +0200] CUPS-Get-Classes
D [29/Jul/2014:15:42:18 +0200] Returning IPP successful-ok for CUPS-Get-Classes (no URI) from localhost
D [29/Jul/2014:15:42:18 +0200] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [29/Jul/2014:15:42:18 +0200] cupsdReadClient: 12 WAITING Closing on EOF
D [29/Jul/2014:15:42:18 +0200] cupsdCloseClient: 12
D [29/Jul/2014:15:42:18 +0200] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"

In the set up of the printer thereā€™s allready an IP adress being used , iā€™m gonna try to use this in the lxtoolbox utility.
actually this toolbox is only usefull about cartridges, cleaning them for example , printing a test page also and adding a wifi connection to the printer.
(*edit : ok i was going to post this when i suddenly saw 3 windows popping up and allowing me to choose the IP :slight_smile: , i guess there was a delay for i tried to add a new printer a bit before using the big + icon , i was then able to set the ip in the utility box menu)

can i leave DHCP On in the printer menu or is it better to turn it Off ? (itā€™s On now, i donā€™t want to disturb the behavior of the windows machine as itā€™s working ok)

Thanks :wink:

ps : adding the IP using DHCP finally allowed printing ! :slight_smile: Notice that i never had to do so before i guess itā€™s the safer way , it looks like mac adress can be ā€œlostā€ sometimes.

Nothing returned from the running the backend essentially means that your printer was not discovered following the broadcast packet(s). The log doesnā€™t really tell me what was failing, and it would probably take some tcpdump analysis to get a better idea about what was wrong.

In the set up of the printer thereā€™s allready an IP adress being used , iā€™m gonna try to use this in the lxtoolbox utility.
actually this toolbox is only usefull about cartridges, cleaning them for example , printing a test page also and adding a wifi connection to the printer.
(*edit : ok i was going to post this when i suddenly saw 3 windows popping up and allowing me to choose the IP :slight_smile: , i guess there was a delay for i tried to add a new printer a bit before using the big + icon , i was then able to set the ip in the utility box menu)

Yep, the delay results from an initial broadcast to get the printer to respond by MAC addressing.

can i leave DHCP On in the printer menu or is it better to turn it Off ? (itā€™s On now, i donā€™t want to disturb the behavior of the windows machine as itā€™s working ok)

Thanks :wink:

ps : adding the IP using DHCP finally allowed printing ! :slight_smile: Notice that i never had to do so before i guess itā€™s the safer way , it looks like mac adress can be ā€œlostā€ sometimes.

Just be careful about having a dynamically-assigned IP address. Usually, it is possible to assign a static (fixed) address for printers. Many domestic routers, do hand out the same address to specific devices (identified by their MAC addresses), but not all. If the IP address changes for some reason, then youā€™ll have to adjust the URI in /etc/cups/printers.conf accordingly.

Anyway, Iā€™m glad we finally got your printer working from your *nix box. :slight_smile: