public inbox for printing-users@lists.linux.dev
 help / color / mirror / Atom feed
* CUPS and IPP strangeness
@ 2025-07-30  6:15 Dave Close
  2025-07-31 12:22 ` Solomon Peachy
  0 siblings, 1 reply; 2+ messages in thread
From: Dave Close @ 2025-07-30  6:15 UTC (permalink / raw)
  To: printing-users

I'm managing a small network with about a dozen printers. Some are
unable to accept IPP and are configured to use JetDirect. All others
are configured with IPP.

But one JetDirect printer in particular is having some strangeness.
The /etc/cups/printers.conf file contains these lines.

  <Printer PF0>
  Info HP p2055dn
  DeviceURI socket://pf0

But /var/log/cups/error_log contains lines like this one (wrapped here).

  E [29/Jul/2025:22:03:18 -0700] Returning IPP client-error-bad-request
  for Send-Document (ipp://localhost:631/printers/PF0) from localhost

That sure look to me like CUPS is trying to send IPP traffic to this
printer. That certainly won't work, port 631 is not open on this printer.
I've restarted CUPS without effect. What can I do to fix this?

My major task on this network is to port it to a new system running a
much more recent OS. At this time, CUPS is running on CentOS 6 and is
version cups-1.4.2-81.el6_10.x86_64. I need to keep it running awhile
longer.
-- 
         Dave Close, Compata, Irvine CA       +1 714 434 7359
       dave@compata.com              dhclose@alumni.caltech.edu
  "One thing a person cannot do, no matter how rigorous his analysis
   or heroic his imagination, is to draw up a list of things
   that would never occur to him." -- Thomas Schelling



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: CUPS and IPP strangeness
  2025-07-30  6:15 CUPS and IPP strangeness Dave Close
@ 2025-07-31 12:22 ` Solomon Peachy
  0 siblings, 0 replies; 2+ messages in thread
From: Solomon Peachy @ 2025-07-31 12:22 UTC (permalink / raw)
  To: Dave Close; +Cc: printing-users

[-- Attachment #1: Type: text/plain, Size: 1347 bytes --]

On Tue, Jul 29, 2025 at 11:15:40PM -0700, Dave Close wrote:
>   E [29/Jul/2025:22:03:18 -0700] Returning IPP client-error-bad-request
>   for Send-Document (ipp://localhost:631/printers/PF0) from localhost
> 
> That sure look to me like CUPS is trying to send IPP traffic to this
> printer. That certainly won't work, port 631 is not open on this printer.
> I've restarted CUPS without effect. What can I do to fix this?

To me this reads that something sent the _CUPS server_ a "bad" IPP 
request; if it was talking to the printer via JD the URI would include 
the printer's address/name ("pf0") instead of "localhost".

> My major task on this network is to port it to a new system running a
> much more recent OS. At this time, CUPS is running on CentOS 6 and is
> version cups-1.4.2-81.el6_10.x86_64. I need to keep it running awhile
> longer.

I see no reason why you'd need to keep such an old CUPS version around; 
as an example I currently have a CUPS queue talking to a Brother printer 
via JetDirect with CUPS 2.4.x.  It works more reliably than the 
printer's native driverless IPP functionality..

 - Solomon
-- 
Solomon Peachy			      pizza at shaftnet dot org (email&xmpp)
                                      @pizza:shaftnet dot org   (matrix)
Dowling Park, FL                      speachy (libera.chat)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-07-31 13:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-30  6:15 CUPS and IPP strangeness Dave Close
2025-07-31 12:22 ` Solomon Peachy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox