[Bug 1274704] Re: apport does not upload apt-clone_system_state.tar.gz (permission denied)
Brian Murray
brian at ubuntu.com
Fri Apr 11 21:35:17 UTC 2014
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
** Also affects: update-manager (Ubuntu Precise)
Importance: Undecided
Status: New
** Changed in: update-manager (Ubuntu Precise)
Status: New => Triaged
** Changed in: update-manager (Ubuntu Precise)
Importance: Undecided => High
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1274704
Title:
apport does not upload apt-clone_system_state.tar.gz (permission
denied)
Status in “update-manager” package in Ubuntu:
Invalid
Status in “update-manager” source package in Precise:
In Progress
Bug description:
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 at 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: Bug
DistroRelease: 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/bash
SourcePackage: 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:
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1274704/+subscriptions
More information about the foundations-bugs
mailing list