Opensuse 11.4 and lpd printer

I have strange problem with my printers.

I have two printers connected to an Intel NetportExpress.
The printer connections are defined as lpd://192.168.1.150/LPT1_PASSTHRU
where 192.168.1.150 is the IP address of the Intel NetportExpress, LPT1_PASSTHRU and LPT2_PASSTHRU are the queues for the 2 printers
This setting works perfectly in Opensuse 11.2 or Opensus11.3

In Opensuse 11.4 this doesn’t works
when I try printing a test page I receive in cups this error message “/usr/lib/cups/backend/lpd failed”

I tried defining the printer in Yast or in CUPS but the result is every time the same: failed :frowning:
i added my user to the group lp
the command

lsmod | grep lp 
lp                     10477  0 

Any advice?
Many thanks in advance
Philippe

phil524 wrote:

>
> I have strange problem with my printers.
>
> I have two printers connected to an Intel NetportExpress.
> The printer connections are defined as
> lpd://192.168.1.150/LPT1_PASSTHRU
> where 192.168.1.150 is the IP address of the Intel NetportExpress,
> LPT1_PASSTHRU and LPT2_PASSTHRU are the queues for the 2 printers
> This setting works perfectly in Opensuse 11.2 or Opensus11.3
>
> In Opensuse 11.4 this doesn’t works
> when I try printing a test page I receive in cups this error message
> “/usr/lib/cups/backend/lpd failed”
>
> I tried defining the printer in Yast or in CUPS but the result is every
> time the same: failed :frowning:
> i added my user to the group lp
> the command
>
> Code:
> --------------------
> lsmod | grep lp
> lp 10477 0
> --------------------
>
>
> Any advice?
> Many thanks in advance
> Philippe

Firewall?


Don

Further to drab’s advice, I think the relevant port 515 (TCP) that LPD print servers listen on, so make the necessary adjustments via YaST > Security and Users > Firewall.

Thanks for your answers.

I had already stopped the firewall. Th error occurs with no firewall started.

Regards
Philippe

A blog dealing with a similar problem.

Have a look at /etc/cups/printers.conf for the entries mentioned

State Stopped
StateMessage /usr/lib/cups/backend/lpd failed

and remove if necessary. Replace with

State Idle

Restart CUPS with

rccups restart

then try a test print from the CUPS web interface utility.

On 2011-03-26 16:06, phil524 wrote:
> In Opensuse 11.4 this doesn’t works
> when I try printing a test page I receive in cups this error message
> “/usr/lib/cups/backend/lpd failed”

You have to look in the cups logs, perhaps increase verbosity

/etc/cups/cupsd.conf:

Log general information in error_log - change “info” to “debug” for

troubleshooting…

debug2 Log everything.

debug Log almost everything.

info Log all requests and state changes.

warn Log errors and warnings.

error Log only errors.

none Log nothing.

#LogLevel debug
LogLevel info


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Hi,

interesting but in my case I have the following status displayed in cups: ( idle, accepting jobs, not shared)

if I look in /etc/cups/printer.conf

# Printer configuration file for CUPS v1.4.6
# Written by cupsd on 2011-03-27 20:42
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<Printer HP2550>
Info Hp colorlaserjet
Location
MakeModel HP Color LaserJet 2550 Foomatic/Postscript
DeviceURI lpd://192.168.1.150/LPT1_PASSTHRU
State Idle
StateTime 1301251311
Type 8400924
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-postscript 100 foomatic-rip
Filter application/vnd.cups-pdf 0 foomatic-rip
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy retry-job
</Printer>

and the error is displayed on the job level in cups printer page

HP2550-18  	Test Page  	anonymous  	1k  	Unknown  	held since
lun. 28 mars 2011 16:20:51 CEST 
"/usr/lib/cups/backend/lpd failed"

I have also deleted the printer definition and recreated it in cups or via Yast but the error remains

In cups if I click on the job id I receive a login screen, I enter root and the password and receive this error

Unable to connect
         Firefox can't establish a connection to the server at hpprol:631.

:frowning:

The firewall is stopped

Regards
Philippe

Hi,

thanks for your answer,

I changed in the tab administration of cups, the server logging : activated “Save debugging information for troubleshooting”

after cups restart I asked again printing a test page
here the error log
Pastebin.com

the only thing that i found is not more detailled :frowning:

D [28/Mar/2011:17:00:32 +0200] [Job 19] lpd_command returning 1
D [28/Mar/2011:17:00:32 +0200] PID 9080 (/usr/lib/cups/backend/lpd) stopped with status 1!
I [28/Mar/2011:17:00:32 +0200] [Job 19] Backend returned status 1 (failed)
D

Regards
Philippe

On 2011-03-28 17:06, phil524 wrote:
> Code:
> --------------------
> HP2550-18 Test Page anonymous 1k Unknown held since
> lun. 28 mars 2011 16:20:51 CEST
> “/usr/lib/cups/backend/lpd failed”
> --------------------

Does the file “/usr/lib/cups/backend/lpd” exist? It is not in my system.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Does the file “/usr/lib/cups/backend/lpd” exist? It is not in my system.

Well spotted Carlos.

I see that 11.4 has a package called cups-backends that may not yet be installed on your system. (I’m still running 11.3 and the backends are part of the cups package).

software.opensuse.org: Search Results

Hi,

I have verified: program /usr/lib/cups/backend/lpd exist and is executable

hpprol:/usr/lib/cups/backend # ./lpd -?
Usage: ./lpd job-id user title copies options [file]
hpprol:/usr/lib/cups/backend # ./lpd HP2550-20 philippe titre 1 
Usage: ./lpd job-id user title copies options [file]

not sure if this are the correct parameters that lpd is waiting
no man or info for lpd

I also reinstalled all the cups rpm.

Problem remain :frowning:

Regards
Philippe

Did you add lp to /etc/sysconfig?
11.4 can.t find printer.

On 2011-03-30 23:06, phil524 wrote:
>
> Hi,
>
> I have verified: program /usr/lib/cups/backend/lpd exist and is
> executable

From what rpm came that program?

rpm -qf /usr/lib/cups/backend/lpd
and rpm -qi on it, too.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

Yes
I had see this post and added lp in /etc/sysconfig

Here the result of your commands

hpprol:~ # rpm -qf /usr/lib/cups/backend/lpd
cups-1.4.6-6.1.x86_64
hpprol:~ # rpm -qi cups-1.4.6-6.1.x86_64
Name : cups Relocations: (not relocatable)
Version : 1.4.6 Vendor: openSUSE
Release : 6.1 Build Date: Sat Feb 19 05:54:42 2011
Install Date: Wed Mar 30 22:39:22 2011 Build Host: build13
Group : Hardware/Printing Source RPM: cups-1.4.6-6.1.src.rpm
Size : 7705567 License: GPLv2+ ; LGPLv2.1+
Signature : RSA/8, Sat Feb 19 05:55:36 2011, Key ID b88b2fd43dbdc284
Packager : openSUSE:Submitting bug reports - openSUSE
URL : CUPS
Summary : The Common UNIX Printing System
Description :
The Common UNIX Printing System provides a portable printing layer for
UNIX operating systems like BSD lp or lprng. CUPS provides some
additional features.

CUPS
Distribution: openSUSE 11.4

I reinstalled yesterday all rpm related to cups from the Opensuse repository

Yet another info:
the kernel that I use is the XEN kernel
Linux hpprol 2.6.37.1-1.2-xen #1 SMP 2011-02-21 10:34:10 +0100 x86_64 x86_64 x86_64 GNU/Linux

after the initial installation I found that the bridge for IP connection was not correctly configured: I did some correction
here the ifconfig

br0       Link encap:Ethernet  HWaddr 00:21:5A:4D:FE:50  
          inet addr:192.168.1.130  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2596 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2056 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2401511 (2.2 Mb)  TX bytes:295436 (288.5 Kb)

br0:prsrv Link encap:Ethernet  HWaddr 00:21:5A:4D:FE:50  
          inet addr:192.168.1.150  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
                                                                                                                                                                                                                                 
eth0      Link encap:Ethernet  HWaddr 00:21:5A:4D:FE:50                                                                                                                                                                          
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1                                                                                                                                                                     
          RX packets:2756 errors:0 dropped:0 overruns:0 frame:0                                                                                                                                                                  
          TX packets:2071 errors:0 dropped:0 overruns:0 carrier:0                                                                                                                                                                
          collisions:0 txqueuelen:1000                                                                                                                                                                                           
          RX bytes:2486914 (2.3 Mb)  TX bytes:308034 (300.8 Kb)                                                                                                                                                                  
          Interrupt:16 Memory:fa000000-fa012800                                                                                                                                                                                  
                                                                                                                                                                                                                                 
lo        Link encap:Local Loopback                                                                                                                                                                                              
          inet addr:127.0.0.1  Mask:255.0.0.0                                                                                                                                                                                    
          UP LOOPBACK RUNNING  MTU:16436  Metric:1                                                                                                                                                                               
          RX packets:396 errors:0 dropped:0 overruns:0 frame:0                                                                                                                                                                   
          TX packets:396 errors:0 dropped:0 overruns:0 carrier:0                                                                                                                                                                 
          collisions:0 txqueuelen:0                                                                                                                                                                                              
          RX bytes:62060 (60.6 Kb)  TX bytes:62060 (60.6 Kb)             

And now I see something strange:

br0:prsrv 

This is related to the print server address :stuck_out_tongue:
I think that this should not be present, It is not existing on the 11.3 environment
I’ll have a look

Regards
Philippe

On 2011-03-31 21:36, phil524 wrote:
>
> Here the result of your commands
>
> hpprol:~ # rpm -qf /usr/lib/cups/backend/lpd
> cups-1.4.6-6.1.x86_64

This is weird. The file should be in “/usr/lib64/cups/backend/lpd”, not
where you have yours.

At this point, my only suggestion is to try the mail list, because the cups
maintainer/guru lurks there.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

SOLVED

It was an erroneous alias in the ethernet bridge. I removed it and now the printers are working

Thanks to all
Philippe

That’s good to know!

Yes I have also see this, In Yast a large part of cups is located in /usr/lib. Maybe some parts are still using 32 bit libraries

Thanks for your help
The problem is now solved: bad configuration of the ethernet bridge

Regards
Philippe

On 2011-03-31 22:36, phil524 wrote:
>
> robin_listas;2315578 Wrote:

>> This is weird. The file should be in “/usr/lib64/cups/backend/lpd”, not
>> where you have yours.
>>
>
> Yes I have also see this, In Yast a large part of cups is located in
> /usr/lib. Maybe some parts are still using 32 bit libraries

True, but in mine that particular file is in the 64bit path (11.2). I
wonder why the change.

> The problem is now solved: bad configuration of the ethernet bridge

Curious. Glad you found it.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)