update-manager becomes unresponsive because it cannot download ReleaseAnnouncement (needs sensible timeout)

Bug #109397 reported by robotpoet
4
Affects Status Importance Assigned to Milestone
Software Updater
Invalid
Undecided
Unassigned
update-manager (Ubuntu)
Fix Released
Medium
Michael Vogt

Bug Description

I wanted to upgrade from Edgy to Feisty. I press the "upgrade" button. Then nothing happens and the program is unresponsive.

I am not familiar with python but I tried some debugging. It seems that the problem is that the program is unable to download 'http://archive.ubuntu.com/ubuntu/dists/feisty/main/dist-upgrader-all/current/ReleaseAnnouncement'. Here is where it 'hangs':

> /usr/lib/python2.4/site-packages/UpdateManager/DistUpgradeFetcher.py(52)showReleaseNotes()
-> gtk.main_iteration()
(Pdb)
> /usr/lib/python2.4/site-packages/UpdateManager/DistUpgradeFetcher.py(51)showReleaseNotes()
-> while gtk.events_pending():
(Pdb)
> /usr/lib/python2.4/site-packages/UpdateManager/DistUpgradeFetcher.py(52)showReleaseNotes()
-> gtk.main_iteration()
(Pdb) s
> /usr/lib/python2.4/site-packages/UpdateManager/DistUpgradeFetcher.py(51)showReleaseNotes()
-> while gtk.events_pending():
(Pdb) s
> /usr/lib/python2.4/site-packages/UpdateManager/DistUpgradeFetcher.py(52)showReleaseNotes()
-> gtk.main_iteration()
(Pdb) list
 47 if self.new_dist.releaseNotesURI != None:
 48 uri = self.new_dist.releaseNotesURI
 49 self.window_main.set_sensitive(False)
 50 self.window_main.window.set_cursor(gtk.gdk.Cursor(gtk.gdk.WATCH))
 51 while gtk.events_pending():
 52 -> gtk.main_iteration()
 53
 54 # download/display the release notes
 55 # FIXME: add some progress reporting here
 56 res = gtk.RESPONSE_CANCEL
 57 try:
(Pdb) uri
'http://archive.ubuntu.com/ubuntu/dists/feisty/main/dist-upgrader-all/current/ReleaseAnnouncement'
(Pdb) s
> /usr/lib/python2.4/site-packages/UpdateManager/DistUpgradeFetcher.py(51)showReleaseNotes()
-> while gtk.events_pending():
(Pdb)
> /usr/lib/python2.4/site-packages/UpdateManager/DistUpgradeFetcher.py(52)showReleaseNotes()
-> gtk.main_iteration()
(Pdb)
> /usr/lib/python2.4/site-packages/UpdateManager/DistUpgradeFetcher.py(51)showReleaseNotes()
-> while gtk.events_pending():
(Pdb)
> /usr/lib/python2.4/site-packages/UpdateManager/DistUpgradeFetcher.py(52)showReleaseNotes()
-> gtk.main_iteration()

I can't open "http://archive.ubuntu.com/ubuntu/dists/feisty/main/dist-upgrader-all/current/ReleaseAnnouncement" in Firefox either.

My sources.list is set to a local mirror, so it is not good that I can't upgrade because archive.ubuntu.com is down or overloaded (since everyone is trying to upgrade at the same time I assume).

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

This looks like a tranisent error in the archive. Can you please try again a bit later?

thanks,
 mIchael

Changed in update-manager:
status: Unconfirmed → Needs Info
assignee: nobody → mvo
importance: Undecided → Medium
status: Unconfirmed → Confirmed
Revision history for this message
robotpoet (robotpoet) wrote :

I found the error. It appeared to be Firestarter that was blocking the connection to archive.ubuntu.com when "Block traffic from reserved addresses on public interfaces" was set (which seems like a bug to me - it doesn't happen in Feisty though). I tried several times so set and unset that setting and it was clearly related to being able to connect to the ubuntu server or not.

When I had found that out and unmarked that setting in Firestarter, update-manager was able to download the ReleaseAnnouncements file and the upgrade could start.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for update-manager because there has been no activity for 60 days.]

Michael Vogt (mvo)
Changed in update-manager (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package update-manager - 1:0.110.0

---------------
update-manager (1:0.110.0) jaunty; urgency=low

  * DistUpgrade/DistUpgradeCache.py:
    - take changes in update-initramfs into account when
      calculating the space requirements in /boot (LP: #287826)
    - when doing the space calculation, show the required space
      for each directory (if multiple need more space) LP: #219416
  * DistUpgrade/DevelReleaseAnnouncement:
    - updated for beta
  * UpdateManager/DistUpgradeFetcher.py:
    - set 5s timeout for the ReleaseNotes fetching (LP: #109397)
  * UpdateManager/UpdateManager.py:
    - pass the correct FetchProgress to the release-upgrade fetching
      code instead of the incorrect OpProgress

 -- Michael Vogt <email address hidden> Thu, 19 Mar 2009 16:48:11 +0100

Changed in update-manager:
status: In Progress → 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.