modify ubiquity hook to use root_command_output for files in /var/log/installer/

Bug #812738 reported by Chad A. Davis on 2011-07-19
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Brian Murray

Bug Description

Expected: File a bug against oem-config, as non-root user
Got: "Cannot connect to crash database, please check your internet connection. [Errno 13] No permission: /var/log/installer/casper.log"

I.e. ubuntu-bug does not have permission to collect /var/log/installer/casper.log, unless under sudo, but the error message is misdirected here. Because I know what is stored in /var/log/installer, I assume that running under sudo would resolve the issue, but that it not clear from the error message. If the data collection doesn't have permission for some file, one could suggest that the user run ubuntu-bug under sudo.

Kubuntu 10.04.3 ISO testing

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: apport 1.13.3-0ubuntu2
ProcVersionSignature: Ubuntu 2.6.32-33.70-generic
Uname: Linux 2.6.32-33-generic i686
Architecture: i386
Date: Tue Jul 19 10:01:18 2011
InstallationMedia: Kubuntu 10.04.3 LTS "Lucid Lynx" - Release i386 (20110716.1)
PackageArchitecture: all
SourcePackage: apport

Related branches

Chad A. Davis (chadadavis) wrote :
Chad A. Davis (chadadavis) wrote :
Brian Murray (brian-murray) wrote :

While we could modify the ubiquity apport hook which is a part of apport to use root_command_output I'm not convinced its really worth it. Running ubuntu-bug ubiquity as root seems like a fine workaround to me.

Changed in apport (Ubuntu):
importance: Undecided → Medium

That's a fair point. Call this a request to improve the error message in that case.

summary: - No permission to /var/log/installer/casper.log
+ Tell user when sudo required to collect data
description: updated
Brian Murray (brian-murray) wrote :

What'd I meant was that I wasn't sure it was worth fixing in Lucid. However, it seems that the permissions are still set so that only root can read those files so it'd be better to use root_command_output for all the log files.

summary: - Tell user when sudo required to collect data
+ modify ubiquity hook to use root_command_output for files in
+ /var/log/installer/
Changed in apport (Ubuntu):
status: New → Triaged
Changed in apport (Ubuntu):
status: Triaged → In Progress
assignee: nobody → Brian Murray (brian-murray)
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 1.21.2-0ubuntu7

apport (1.21.2-0ubuntu7) oneiric; urgency=low

  [ Martin Pitt ]
  * data/general-hooks/ Fix calling of add_info() in the __main__
    test code.

  [ Brian Murray ]
  * data/package-hooks/
    - collect all logs using root_command_outputs (LP: #812738)
  * apport/
    - check to see if the package has any upstart override files
  * data/general-hooks/
    - when reporting a problem use the upstart override check (LP: #803977)
 -- Martin Pitt <email address hidden> Fri, 22 Jul 2011 16:51:22 +0200

Changed in apport (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers