"No address associated with hostname" error is vague

Bug #178507 reported by Brian Murray
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Low
Marco Rodrigues

Bug Description

Binary package hint: apport

In apport/ui.py there is an error message used for any "Network problem". From the code:

        if upthread.exc_info():
            self.ui_error_message(_('Network problem'),
                "%s:\n\n%s" % (
                    _('Could not upload report data to crash database'),
                    str(upthread.exc_info()[1])
                ))
            return

The second part of the error message ends up being "No address associated with hostname" which is vague because the user doesn't know which hostname is causing the particular problem. It would be more informative if the hostname for the crash database that was not being contacted was given.

Changed in apport:
importance: Undecided → Wishlist
Revision history for this message
Martin Pitt (pitti) wrote :

I'll add the URL.

Changed in apport:
importance: Wishlist → Low
status: New → Triaged
Changed in apport (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Marco Rodrigues (gothicx)
Changed in apport (Ubuntu):
status: In Progress → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote :

Thanks Marco! Merged (just the ui.py part, I reverted the hookutils.py part since that's invalid and part of a different branch/merge request).

Changed in apport (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 1.9-0ubuntu5

---------------
apport (1.9-0ubuntu5) karmic; urgency=low

  * Merge bug fixes from trunk:
    - hookutils.py, attach_hardware(): Do not attach empty Pccardctl*.
    - apport/ui.py: Show a better message when failed connection to crash
      database. Thanks to Marco Rodrigues! (LP: #178507)
    - Do not throw away stderr from gdb.
    - data/general-hooks/parse_segv.py: Handle arithmetic wrapping correctly.
    - backends/packaging-apt-dpkg.py: More robust of missing ExecutablePath
      due to outdated packages.
    - setup.py: Fix DistUtilsExtra version check. (LP: #428337)
  * data/general-hooks/ubuntu.py: Add distribution channel descriptor, as per
    https://wiki.ubuntu.com/FoundationsTeam/Specs/OemTrackingId .
  * data/general-hooks/ubuntu.py: Do not allow users to file bugs against
    upgrade-system if the package isn't actually installed. Way too many
    upgrade failures get wrongly reported against this. (LP: #404727)
  * debian/rules: Entirely drop obsolete dh_installinit call.

 -- Martin Pitt <email address hidden> Tue, 15 Sep 2009 17:31:26 +0200

Changed in apport (Ubuntu):
status: Fix Committed → Fix Released
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.