P->T server upgrade failure: ubuntu-release-upgrader fails with OSError: [Errno 2] No such file or directory

Bug #1285545 reported by Jean-Baptiste Lallement
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Fix Released
High
Brian Murray
Trusty
Fix Released
High
Brian Murray

Bug Description

P -> T upgrade [1]

If apport-bug is not installed on the system and an error occurs during upgrade, ubuntu-release-upgrader fails with:

Fetched 1,144 kB in 0s (0 B/s)
authenticate 'trusty.tar.gz' against 'trusty.tar.gz.gpg'
extracting 'trusty.tar.gz'
Traceback (most recent call last):
  File "/tmp/update-manager-HZc0r1/trusty", line 10, in <module>
    sys.exit(main())
  File "/tmp/update-manager-HZc0r1/DistUpgrade/DistUpgradeMain.py", line 243, in main
    if app.run():
  File "/tmp/update-manager-HZc0r1/DistUpgrade/DistUpgradeController.py", line 1791, in run
    return self.fullUpgrade()
  File "/tmp/update-manager-HZc0r1/DistUpgrade/DistUpgradeController.py", line 1738, in fullUpgrade
    subprocess.Popen(["apport-bug", "ubuntu-release-upgrader-core"])
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

It should fail more gracefully and revert to the original state.

[1] https://jenkins.qa.ubuntu.com/job/upgrade-ubuntu-precise-trusty-server-tasks-amd64/44/

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: ubuntu-release-upgrader-core 1:0.210
ProcVersionSignature: Ubuntu 3.13.0-12.32-generic 3.13.4
Uname: Linux 3.13.0-12-generic x86_64
ApportVersion: 2.13.2-0ubuntu5
Architecture: amd64
CrashDB: ubuntu
CurrentDesktop: Unity
Date: Thu Feb 27 09:05:37 2014
InstallationDate: Installed on 2013-09-03 (176 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Alpha amd64 (20130902)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
Symptom: ubuntu-release-upgrader
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
description: updated
tags: added: qa-daily-testing
Changed in ubuntu-release-upgrader (Ubuntu):
status: New → Triaged
importance: Undecided → High
Changed in ubuntu-release-upgrader (Ubuntu Trusty):
status: Triaged → In Progress
assignee: nobody → Brian Murray (brian-murray)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-release-upgrader - 1:0.213

---------------
ubuntu-release-upgrader (1:0.213) trusty; urgency=medium

  * DistUpgrade/DistUpgradeController.py: Catch exception if apport is not
    installed and fail gracefully. Thanks to Jean-Baptiste Lallement for the
    initial patch. (LP: #1285545)
 -- Brian Murray <email address hidden> Wed, 05 Mar 2014 10:56:40 -0800

Changed in ubuntu-release-upgrader (Ubuntu Trusty):
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.