Bug 172046

Summary: avahi-browse, and other tools, end with a traceback if avahi-daemon is not running
Product: [Fedora] Fedora Reporter: Michal Jaegermann <michal>
Component: avahiAssignee: Jason Vas Dias <jvdias>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: avahi-0.6-2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-11-30 18:57:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michal Jaegermann 2005-10-29 21:30:02 UTC
Description of problem:

When avahi-daemon is not running then trying, say, 'avahi-browse -a' instead
of returning with an information that a required daemon is not available
throws a hissy fit:

Browsing domain 'local' on any.0 ...
Traceback (most recent call last):
  File "/usr/bin/avahi-browse", line 153, in ?
    browse_domain(avahi.IF_UNSPEC, avahi.PROTO_UNSPEC, "local")
  File "/usr/bin/avahi-browse", line 134, in browse_domain
    b = dbus.Interface(bus.get_object(avahi.DBUS_NAME,
server.ServiceTypeBrowserNew(interface, protocol, domain)),
avahi.DBUS_INTERFACE_SERVICE_TYPE_BROWSER)
  File "/usr/lib64/python2.4/site-packages/dbus/proxies.py", line 64, in __call__
    reply_message = self._connection.send_with_reply_and_block(message, timeout)
  File "dbus_bindings.pyx", line 395, in
dbus_bindings.Connection.send_with_reply_and_block
dbus_bindings.DBusException: The name org.freedesktop.Avahi was not provided by
any .service files

Something similar for 'avahi-discover'.

Version-Release number of selected component (if applicable):
avahi-0.5.2-3

How reproducible:
always

Comment 1 Jason Vas Dias 2005-11-30 18:57:40 UTC
This bug is fixed with avahi-0.6+