apport does not upload apt-clone_system_state.tar.gz (permission denied)

Bug #1274704 reported by Steve Magoun
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Invalid
Undecided
Unassigned
Precise
Fix Released
High
Brian Murray

Bug Description

[Test Case]
1) In a terminal on a uvt virtual machine run update-manager -d
2) Choose no when presented with a warning about about your graphics not being supported
3) Confirm that /var/log/dist-upgrade/apt-clone_system_state.tar.gz exists
4) Run ubuntu-bug ubuntu-release-upgrader-core
5) Expand the apport dialog and confirm that VarLogDistUpgradeAptclone is not included

After installing the update-manager package from -proposed repeat step 4.

VarLogDistUpgradeAptclone... should now be included in the bug report although the apport dialog will say that it is binary data.

Original Report
---------------
When reporting a bug via 'ubuntu-bug ubuntu-release-upgrader-core', apport does not upload the file /var/log/dist-upgrade/apt-clone_system_state.tar.gz due to a permission error.

To reproduce:
1) Install 12.04.3 with updates
2) Try to upgrade to 14.04 via 'update-manager -d' (this fails - see bug 1274672)
3) Run 'ubuntu-bug ubuntu-release-upgrader-core'

Expected result:
Apport uploads apt-clone_system_state.tar.gz to launchpad along with apt.log and main.log

Actual results
Apport uploads apt.log and main.log to launchpad, but does not upload apt-clone_system_state.tar.gz. The corresponding bug report says there is a permission error for that file (see bug 1274672 for an example)

Permissions on /var/log/dist-upgrade are:
ubuntu@ubuntu-VirtualBox:~$ ll /var/log/dist-upgrade/
total 556
drwxr-xr-x 2 root root 4096 Jan 30 14:13 ./
drwxr-xr-x 15 root root 4096 Jan 30 15:59 ../
-rw------- 1 root root 417219 Jan 30 14:13 apt-clone_system_state.tar.gz
-rw-r--r-- 1 root root 126781 Jan 30 14:14 apt.log
-rw-r--r-- 1 root root 1007 Jan 30 14:13 lspci.txt
-rw-r--r-- 1 root root 11331 Jan 30 14:14 main.log
-rw-r--r-- 1 root root 0 Jan 30 14:12 term.log

ProblemType: BugDistroRelease: Ubuntu 12.04
Package: update-manager 1:0.156.14.11
ProcVersionSignature: Ubuntu 3.8.0-35.50~precise1-generic 3.8.13.13
Uname: Linux 3.8.0-35-generic x86_64
ApportVersion: 2.0.1-0ubuntu17.6
Architecture: amd64
Date: Thu Jan 30 16:00:41 2014
GsettingsChanges:
 com.ubuntu.update-manager first-run false
 com.ubuntu.update-manager launch-time 1391108049
InstallationMedia: Ubuntu 12.04.3 LTS "Precise Pangolin" - Release amd64 (20130820.1)
MarkForUpload: True
PackageArchitecture: all
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bashSourcePackage: update-manager
Symptom: ubuntu-release-upgrader-core
UpgradeStatus: Upgraded to precise on 2014-01-30 (0 days ago)
VarLogDistupgradeAptclonesystemstate.tar.gz: Error: [Errno 13] Permission denied: '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'
VarLogDistupgradeTermlog:

Revision history for this message
Steve Magoun (smagoun) wrote :
Revision history for this message
Brian Murray (brian-murray) wrote :

In the ubuntu-release-upgrader package hook for Trusty this is done via the following:

    clone_file = '/var/log/dist-upgrade/apt-clone_system_state.tar.gz'
    if os.path.exists(clone_file):
        report['VarLogDistupgradeAptclonesystemstate.tar.gz'] = \
            root_command_output(["cat", clone_file], decode_utf8=False)

This change should be SRU'ed back to update-manager in Precise.

Changed in update-manager (Ubuntu):
status: New → Invalid
Changed in update-manager (Ubuntu Precise):
status: New → Triaged
importance: Undecided → High
Changed in update-manager (Ubuntu Precise):
assignee: nobody → Brian Murray (brian-murray)
status: Triaged → In Progress
description: updated
Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello Steve, or anyone else affected,

Accepted update-manager into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/update-manager/1:0.156.14.13 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in update-manager (Ubuntu Precise):
status: In Progress → Fix Committed
tags: added: verification-needed
Revision history for this message
Brian Murray (brian-murray) wrote :

I installed update-manager version 1:0.156.14.13 from precise-proposed and confirm that apt-clone_system_state.tar.gz was included in my bug report data.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

---------------
update-manager (1:0.156.14.13) precise-proposed; urgency=medium

  * debian/source_update-manager.py: use root_command_output so that we can
    collect apt-clone_system_state.tar.gz. (LP: #1274704)
 -- Brian Murray <email address hidden> Fri, 11 Apr 2014 14:42:25 -0700

Changed in update-manager (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
Steve Langasek (vorlon) wrote : Update Released

The verification of the Stable Release Update for update-manager has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

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.