#969531 avahi-daemon: retrieving printer info blocks printing until shutdown

Package:
avahi-daemon
Source:
avahi
Description:
Avahi mDNS/DNS-SD daemon
Submitter:
Michael Hatzold
Date:
2022-03-08 14:45:04 UTC
Severity:
important
#969531#5
Date:
2020-09-04 13:23:32 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

OKI printer B432, conected via USB, no network cable attached.

   * What led up to the situation?
Want to print

   * What exactly did you do (or not do) that was effective (or
     ineffective)?
select document, start print dialog, select my printer (config was done via
CUPS);

Now the printer appears a second time in the list with a different entry. If I
select this new entry, I am asked for CUPS PW twice, then it (a deamon,
whatever) starts retriving printer info which *never* completes.


   * What was the outcome of this action?
Either way, selecting my own entry or the new one made by the daemon, the
printer does nothing (I waited up to 45 minutes... until I shutdown my system.
Them during shutdown, there is a pause during which the document gets printed.

   * What outcome did you expect instead?
I want the printer to print after I sent the job.


*** End of the template - remove these template lines ***

There is a workaround:

In the original /etc/avahi/avahi-daemon.conf file, there is an entry "#allow-
interfaces=eth0".
Changing and uncommenting it to "allow-interfaces=eth9" solves the problem
(printer not conected via ethXYZ, though). Therefor I assume this hides a bug
or an improper default configuration.

#969531#10
Date:
2022-03-08 14:40:22 UTC
From:
To:
The B432 is an IPP device; it very likely understands the IPP-over-USB
protocol.

When connected to USB the ipp-usb service is started and ipp-usb takes
control of the only available USB interface.

Your manually configured iprinter is not being allowed to access the
USB interface. This is not a bug. Please see sections 14, 15 and 16 at

https://wiki.debian.org/CUPSDriverlessPrinting

That was a GTK bug at the time.

Pass.

"allow-interfaces=eth9" effectively prevents avahi-daemon from working
on all interfaces, including the loopback interface. ipp-usb is exposed
on the loopback interface by default.

avahi-daemon is now completely crippled; it may as well be purged from
the system.

There isn't any bug in avahi-daemon.

Regards,

Brian.