Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1534489

Summary: there is some strange error about dbus, avahi when printing
Product: Red Hat Enterprise Linux 7 Reporter: Petr Sklenar <psklenar>
Component: avahiAssignee: Michal Sekletar <msekleta>
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.5CC: dking, fsumsal
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1540180 (view as bug list) Environment:
Last Closed: 2021-02-15 07:34:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1546552, 1549689    
Attachments:
Description Flags
Proposed patch none

Description Petr Sklenar 2018-01-15 11:10:28 UTC
Description of problem:
there is some strange error about avahi? dbus? when printing, no idea why its connected

Version-Release number of selected component (if applicable):
firefox-52.5.1-1.el7_4.x86_64
dbus-1.10.24-3.el7.x86_64
avahi-0.6.31-19.el7.x86_64
cups-1.6.3-35.el7.x86_64


How reproducible:
tried once, and its always there

Steps to Reproduce:
1. rhe75 nightly, server with GUI, all default
2. add usb printer
3. firefox + print whatever page
4, I did no setup of avahi, its all by default

Actual results:
log shows some error:

Jan 15 11:06:31 localhost dbus[689]: [system] Rejected send message, 0 matched rules; type="method_return", sender=":1.2" (uid=70 pid=686 comm="avahi-daemon: starting up ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.434" (uid=0 pid=3762 comm="/usr/lib64/firefox/firefox ")
Jan 15 11:06:31 localhost dbus[689]: [system] Rejected send message, 0 matched rules; type="method_return", sender=":1.2" (uid=70 pid=686 comm="avahi-daemon: starting up ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.434" (uid=0 pid=3762 comm="/usr/lib64/firefox/firefox ")

Expected results:
log is without error in case of default installation

Additional info:

Comment 2 Petr Sklenar 2018-01-15 11:16:19 UTC
error appears at each printing page so log seems to be full of these errors.

Comment 7 Michal Sekletar 2018-01-16 22:09:45 UTC
(In reply to Petr Sklenar from comment #0)

> Jan 15 11:06:31 localhost dbus[689]: [system] Rejected send message, 0
> matched rules; type="method_return", sender=":1.2" (uid=70 pid=686
> comm="avahi-daemon: starting up ") interface="(unset)" member="(unset)"
> error name="(unset)" requested_reply="0" destination=":1.434" (uid=0
> pid=3762 comm="/usr/lib64/firefox/firefox ")

Hmm, I don't understand why would dbus reject avahi to send method_return message. According to avahi's dbus policy, you can either send a message to avahi (unless the message is SetHostName method call and you are not root or in avahi group), in which case you should be allowed to receive the return or you can't send the message in the first place.

David, do you have any explanation for above log message?

Comment 10 Michal Sekletar 2018-01-25 16:03:15 UTC
I was able to figure out the root cause. Problem is that avahi client (GNOME print dialog -- the issue is not specific to Firefox, evince and gedit have the same problem) calls Free() method on ServerBrowser object and in the method_call message it sets NO_REPLY_EXPECTED flag. However, avahi didn't respect the flag (avahi was written around the same time when dbus-daemon and NO_REPLY_EXPECTED flag was a newer addition to the dbus spec and daemon) and sent method_reply (OK) anyway. Our new dbus-daemon (rebased in RHEL-7.5) doesn't like that so it dropped the message and logged an error.

This is not the new problem, also Fedora has the same issue.

Comment 11 Michal Sekletar 2018-01-25 16:03:42 UTC
Created attachment 1386189 [details]
Proposed patch

Comment 12 Michal Sekletar 2018-01-29 16:11:50 UTC
Patch posted upstream,

https://github.com/lathiat/avahi/pull/165

Comment 15 Petr Sklenar 2018-01-30 12:39:32 UTC
fedora bug: Bug 1540180

Comment 17 Lukáš Nykrýn 2018-06-21 10:42:23 UTC
Patch still waiting for acceptance to upstream.

Comment 19 Michal Sekletar 2019-02-25 14:28:07 UTC
Upstream PR has been finally merged so we can move forward with the RHEL fix.

Comment 22 RHEL Program Management 2021-02-15 07:34:37 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.