Topic: Printing to cups-lpd enabled queue fails

When printing in FA to Ubuntu Server localhost cups-lpd queue, print fails with "Printer does not acept the job (0)" error message.

When printing from another system to the same cups-lpd queue, the printer works normally.

Summary steps for setup:
installed cups-bsd package
installed cups
setup HP Color Laserjet M281cdw printer in cups
setup class queue and added printer
setup cups-lpd daemon using xinetd with logging
in FA, setup printer using class queue
attempted print, received  "Printer does not acept the job (0)" error highlighted in red
systemscl status xinetd has the following entries for the cups-lpd daemon:
     Connection from localhost (IPv4 127.0.0.1)
     Print waiting jobs (no-op)
     Closing connection
     Connection from localhost (IPv4 127.0.0.1)
     Receive print job for CLanOffColLasM281
     Closing connection
the corresponding cups-lpd log entries are:
     START printer pid=41149 from=::ffff:127.0.0.1
     START printer pid=41150 from=::ffff:127.0.0.1
     EXIT printer status=0 pid=41149 duration=0(sec)
     EXIT printer status=1 pid=41150 duration=0(sec)

I then setup another computer to print to the port on the failing system using lpd protocol.  The print test succeded
systemscl status xinetd has the following entries for the cups-lpd daemon:
     Connection from BRADS-DELL-LAP.aisg.local (IPv4 192.168.77.100)
     Receive print job for CLanOffColLasM281
     Print file - job ID = 15
     Closing connection
the corresponding cups-lpd log entries are:
     START printer pid=41324 from=::ffff:192.168.77.100
     EXIT printer status=0 pid=41324 duration=0(sec)

Please advise.

Re: Printing to cups-lpd enabled queue fails

Check if there exists an IP to URL linkage in etc/hosts where localhost might clash with actual IP.

Re: Printing to cups-lpd enabled queue fails

No such entries in /etc/hosts

Re: Printing to cups-lpd enabled queue fails

@bradlanier,

Did you succeed to get to work? How?

Re: Printing to cups-lpd enabled queue fails

No, but I sure would like to.

Re: Printing to cups-lpd enabled queue fails

Any possibility to get the FA print system updated to directly support modern print options (CUPS)?

Thanks!

Re: Printing to cups-lpd enabled queue fails

@bradlanier,
I made the same setup as you mentioned above and its working for me.
My environment MINT (Ubuntu 20.2)
CUPS and CUPS-BSD
XINETD running with cups-lpd daemon
USB attached Printer (Canon MX320)
Did not create Class in CUPS just used the Queue Name of the printer (MX320-series).
FA printer Def:
Host name or IP: localhost
Port:    515
Printer Queue: MX320-series
Timeout: 5
I am able to print fine from FA installed locally. I also have another instance of FA installed on Windows 10 and it prints fine on the same printer from remote. Printer definition on the remote FA ix same as above but has the Mint IP address instead of localhost.

Re: Printing to cups-lpd enabled queue fails

My environment:
Apache 2.4.48
PHP 8.0.8
Ubuntu Impish 21.10
Network Attached HP Color Laser
I also used the base Queue Name, but added the class to eliminate that as a possible cause of the problem.

So, unless the later above versions introduced a problem with using this print config, I am lost.

9 (edited by rafat 04/09/2022 02:38:03 pm)

Re: Printing to cups-lpd enabled queue fails

Booted with Live USB Ubuntu 21.10 and received  "Printer does not acept the job (0)"
Downgraded php to 7.4. Things are working normal. Printing from both localhost and remote.
This php8 is a nightmare with FA.
@joe, while at it, can you please correct the spelling mistake in reporting\includes\class_printer.inc line 50 to read
"Printer does not accept the job".

Re: Printing to cups-lpd enabled queue fails

Thanks for working to repro this....was beginning to think it was just me!