Bug 2091731 - Unable to find network printer after upgrading to Fedora 36
Summary: Unable to find network printer after upgrading to Fedora 36
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: nss-mdns
Version: 36
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Adam Goode
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-05-30 21:58 UTC by Marco
Modified: 2023-05-25 15:19 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-25 15:19:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
cups_wholw_log (815.98 KB, text/plain)
2022-06-03 21:55 UTC, Marco
no flags Details
lsusb (79.83 KB, text/plain)
2022-06-03 21:56 UTC, Marco
no flags Details
lpinfo (3.19 KB, text/plain)
2022-06-06 21:01 UTC, Marco
no flags Details
awahi-browse (5.63 KB, text/plain)
2022-06-06 21:02 UTC, Marco
no flags Details
avahi_log (797.65 KB, text/plain)
2022-06-06 21:02 UTC, Marco
no flags Details
resolved_log (534.67 KB, text/plain)
2022-06-06 21:03 UTC, Marco
no flags Details
nsswitch.conf (703 bytes, text/plain)
2022-06-08 07:56 UTC, Marco
no flags Details

Description Marco 2022-05-30 21:58:26 UTC
Description of problem:
After Fedora 36 upgrade, my Epson Stylus-SX430W (network printer), cannot print.
The CUPS web interface says “Unable to locate printer” in the job status when I try to print.

Version-Release number of selected component (if applicable):
cups-2.4.1-8.fc36.x86_64

How reproducible:
Print a file using a Epson Stylus-SX430W network printer

Steps to Reproduce:
1. Print a file
2. Nothing is printed
3. Job remain in queue 
4. Cups says "Unable to locate printer"

Actual results:
No print

Expected results:
Print

Additional info:
Printer is connected and I can see it using his ip address
Printer works using usb cable

Comment 1 Zdenek Dohnal 2022-05-31 06:08:32 UTC
Hi Marco,

thank you for reporting the issue!

It would be great if you followed the steps here https://docs.fedoraproject.org/en-US/quick-docs/how-to-debug-printing-problems/#_my_printer_doesnt_print_correctly_or_at_all_but_i_can_see_the_printer_in_print_dialog and provided the requested information.

Thank you in advance!


The error you've got is telling us a backend couldn't communicate with the printer - I have to find out the device uri your printer uses, that will tell us more. My suspicion is it uses .local hostname and your .local resolving doesn't work right now...

Comment 2 Marco 2022-06-03 21:55:40 UTC
Created attachment 1886507 [details]
cups_wholw_log

cups_wholw_log

Comment 3 Marco 2022-06-03 21:56:33 UTC
Created attachment 1886508 [details]
lsusb

Comment 4 Marco 2022-06-03 22:02:38 UTC
Hi Dohnal,
it's seems so.
... 
   cupsdProcessIPPRequest: printer-uri uri 'ipp://localhost/printers/Epson-Stylus-SX430'
....
[Client 13] Returning IPP client-error-not-found for Get-Notifications (/printers/) from localhost.

Comment 5 Zdenek Dohnal 2022-06-06 11:01:24 UTC
Ok, so it is really connected to mdns resolving - the mdns hostname of your uri "Epson%20Stylus%20SX430._pdl-datastream._tcp.local" gets resolved as "socket://EPSON022C7A.local:9100", which is device uri, not a specific hostname/IP to connect to. CUPS calls there Avahi right off the bat, so the culprit is either nss-mdns, Avahi or systemd-resolved.

Do you have nss-mdns installed or do you use systemd-resolved for .local address resolving (providing you've set this in systemd-resolved and NetworkManager)?

Before I reassign the issue, I would like to have as much as possible amount of logs for nss-mdns/Avahi/systemd-resolved maintainers - would you mind running the following commands and sharing their output here (avahi-browse will need avahi-tools):

$ lpinfo -l -v

$ avahi-browse -avrt

================================================================================

Then I would like to ask you to enable debug logging for avahi-daemon by:

1) $ sudo cp /usr/lib/systemd/system/avahi-daemon.service /etc/systemd/system
2) (add '--debug' at the end of lines ExecStart and ExecReload) to look this way:

ExecStart=/usr/sbin/avahi-daemon -s --debug
ExecReload=/usr/sbin/avahi-daemon -r --debug

3) sudo systemctl daemon-reload && sudo systemctl restart avahi-daemon

and then for systemd-resolved by:

1) $ sudo mkdir /etc/systemd/system/systemd-resolved.service.d/
2) create a .conf file (f.e. debug.conf) in the dir with content:

[Service]
Environment=SYSTEMD_LOG_LEVEL=debug

3) sudo systemctl daemon-reload && sudo systemctl restart systemd-resolved

, cancel all current jobs by:

$ cancel -a

enable the queue if needed:

$ cupsenable Epson-Stylus-SX430

and then try to print again - now we should have avahi and resolved logs in journal - please get them by:

$ journalctl -u avahi-daemon > avahi_log.txt
$ journactl -u systemd-resolved > resolved_log.txt

and attach it to this bugzilla together with the exact time when you sent the job.


Thank you in advance!

Comment 6 Marco 2022-06-06 21:01:24 UTC
Created attachment 1887266 [details]
lpinfo

Comment 7 Marco 2022-06-06 21:02:04 UTC
Created attachment 1887267 [details]
awahi-browse

Comment 8 Marco 2022-06-06 21:02:32 UTC
Created attachment 1887268 [details]
avahi_log

Comment 9 Marco 2022-06-06 21:03:18 UTC
Created attachment 1887269 [details]
resolved_log

Comment 10 Zdenek Dohnal 2022-06-07 14:11:55 UTC
Ok, so since no resolving regarding 'Epson%20Stylus%20SX430._pdl-datastream._tcp.local' hostname seems to happen in resolved log, my guess is that you use the default nss-mdns+Avahi for mDNS resolving (I have hoped Avahi log shows the exact hostname it resolves at the time, but it doesn't seem to be the case - it just tracks there was a resolver object created, so we know some resolving happened).

And I'm able to reproduce with my local dnssd://Officejet%20Pro%208500%20A909a%20%5B43FD8E%5D._pdl-datastream._tcp.local/ - I checked the /etc/nsswitch.conf and it hasn't contained changes for nss-mdns running correctly. nss-mdns changed their RPM scriptlets to use:

%posttrans
authselect enable-feature with-mdns4

but it seems does not work correctly on upgraded machines - probably you need to run 'sudo authselect apply-changes' as well...

Marco, what does your /etc/nsswitch.conf look like?

Comment 11 Zdenek Dohnal 2022-06-07 14:14:19 UTC
Once I did:

$ sudo authselect enable-feature with-mdns4
$ sudo authselect apply-changes

CUPS was able to find the printer.

But it would be great if the scriptlet was updated.

Comment 12 Marco 2022-06-08 07:56:38 UTC
Created attachment 1887888 [details]
nsswitch.conf

Comment 13 Ben Cotton 2023-04-25 17:17:54 UTC
This message is a reminder that Fedora Linux 36 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '36'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 36 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 14 Ludek Smid 2023-05-25 15:19:10 UTC
Fedora Linux 36 entered end-of-life (EOL) status on 2023-05-16.

Fedora Linux 36 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.