avahi-discover should display an error message instead of crashing

Bug #65601 reported by Laurent Bigonville
40
Affects Status Importance Assigned to Milestone
Avahi
Fix Released
Unknown
avahi (Ubuntu)
Fix Released
Low
Avahi

Bug Description

Binary package hint: avahi-discover

I just install avahi-discover and get this

A new main_window has been created
Browsing domain 'local' on -1.-1 ...
Introspect error: The name org.freedesktop.Avahi was not provided by any .service files
Traceback (most recent call last):
  File "/usr/bin/avahi-discover", line 250, in ?
    main()
  File "/usr/bin/avahi-discover", line 245, in main
    main_window = Main_window()
  File "/usr/bin/avahi-discover", line 47, in __init__
    SimpleGladeApp.__init__(self, path, root, domain, **kwargs)
  File "/var/lib/python-support/python2.4/avahi/SimpleGladeApp.py", line 108, in __init__
    self.new()
  File "/usr/bin/avahi-discover", line 234, in new
    self.browse_domain(avahi.IF_UNSPEC, avahi.PROTO_UNSPEC, "local")
  File "/usr/bin/avahi-discover", line 162, in browse_domain
    b = dbus.Interface(self.bus.get_object(avahi.DBUS_NAME, self.server.ServiceTypeBrowserNew(interface, protocol, domain, dbus.UInt32(0))), avahi.DBUS_INTERFACE_SERVICE_TYPE_BROWSER)
  File "/var/lib/python-support/python2.4/dbus/proxies.py", line 25, in __call__
    ret = self._proxy_method (*args, **keywords)
  File "/var/lib/python-support/python2.4/dbus/proxies.py", line 102, in __call__
    reply_message = self._connection.send_with_reply_and_block(message, timeout)
  File "dbus_bindings.pyx", line 455, in dbus_bindings.Connection.send_with_reply_and_block
dbus_bindings.DBusException: The name org.freedesktop.Avahi was not provided by any .service files

Revision history for this message
Laurent Bigonville (bigon) wrote :

nevermind... the daemon wasn't running...

Changed in avahi:
status: Unconfirmed → Rejected
Revision history for this message
Robert Ancell (robert-ancell) wrote : Avahi-discover should report if Avahi not running

Please reopen as this is a problem with Avahi discover.

The user attempts to open with Applications>Accessories>Avahi Zeroconf Browser

Nothing occurs, either:

a) The program should open but indicate if the daemon is running (preferrable)
b) An error window should appear stating that the program cannot run as the daemon is not active

Trent Lloyd (lathiat)
Changed in avahi:
assignee: nobody → lathiat
importance: Undecided → Low
status: Rejected → Confirmed
assignee: lathiat → avahi
Revision history for this message
Alexander Hunziker (alex-hunziker) wrote :

True, the daemon isnt running on my system, but it should. it is enabled in the "services" UI. also, when i do

sudo /etc/init.d/avahi-daemon start

is doesn't start.

Revision history for this message
Laurent Bigonville (bigon) wrote :

It's a know one. You must modify /etc/default/avahi-daemon to make the daemon start.

Revision history for this message
Bubba Siggler (bud3) wrote :

Have the same problems avahi-discover when I try to open it I get a crach. I do get a problem report that I can send.

Revision history for this message
Bubba Siggler (bud3) wrote :

Have the same problems avahi-discover when I try to open it I get a crach. I do get a problem report that I can send.

Revision history for this message
Sebastien Estienne (sebest) wrote :

@bubba
- you must edit /etc/default/avahi-daemon
- then start the daemon : /etc/init.d/avahi-daemon start

maybe a fix to this issue would be to popup a window.

This window would explain that the deamon is not running and could explain how to activate it

Revision history for this message
Trent Lloyd (lathiat) wrote :

Yes, you are all 100% correct this is because avahi is not running
There is a bug open uptream for a GUI dialog to display this information

Revision history for this message
Sebastien Estienne (sebest) wrote :

btw i fixed it upstream in rev 1343.

Changed in avahi:
status: Unknown → Fix Released
Revision history for this message
Wouter Stomp (wouterstomp-deactivatedaccount) wrote :

Fix should be in ubuntu now.

Changed in avahi:
status: Confirmed → Fix Released
Revision history for this message
Rich (rincebrain) wrote :

I just experienced this bug in Hardy release.

0.6.22-2ubuntu4.

Revision history for this message
Jens Askengren (jens-askengren) wrote :

Still reproducible on Jaunty

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.