ubiquity package hook ends in permission denied: '/var/log/installer/debug' if not root

Bug #773766 reported by Reuben Firmin
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

This is a fresh install of 11.04.

I tried to file a bug against ubiquity (coming next). Chromium is my default browser.

rfirmin@fridge:~$ ubuntu-bug ubiquity
Traceback (most recent call last):
  File "/usr/share/apport/apport-gtk", line 369, in <module>
    app.run_argv()
  File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 568, in run_argv
    return self.run_report_bug()
  File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 413, in run_report_bug
    self.file_report()
  File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 976, in file_report
    upthread.exc_raise()
  File "/usr/lib/python2.7/dist-packages/apport/REThread.py", line 34, in run
    self._retval = self.__target(*self.__args, **self.__kwargs)
  File "/usr/lib/python2.7/dist-packages/apport/crashdb_impl/launchpad.py", line 191, in upload
    report.write_mime(mime, extra_headers=hdr, skip_keys=['Tags'], priority_fields=order)
  File "/usr/lib/python2.7/dist-packages/problem_report.py", line 430, in write_mime
    f = open(v[0]) # file name
IOError: [Errno 13] Permission denied: '/var/log/installer/debug'

WORKAROUND:

1) use sudo ubuntu-bug ubiquity

Related branches

Philip Muškovac (yofel)
tags: added: natty
IKT (ikt)
affects: ubuntu → apport (Ubuntu)
Revision history for this message
Brian Murray (brian-murray) wrote :

This is due to the permission on the file:

-rw------- 1 root root 1.1K 2010-11-17 23:12 /var/log/installer/debug

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

The source package hook for ubiquity should add the log file as root.

Changed in apport (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
description: updated
tags: added: workaround
summary: - ubuntu-bug crashed - permission denied: '/var/log/installer/debug'
+ ubiquity package hook ends in permission denied:
+ '/var/log/installer/debug' if not root
Revision history for this message
Brian Murray (brian-murray) wrote :

Due to the fact that /var/log/installer/debug currently contains the users password it would be ideal to raise a dialog and ask people if they really want to add the debug log file.

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

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

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

  * data/package-hooks/source_ubiquity.py:
    - Check syslog for squashfs errors and do not report
    - Ask before adding installer debug log file (LP: #773766)
 -- Brian Murray <email address hidden> Thu, 07 Jul 2011 13:40:17 -0700

Changed in apport (Ubuntu):
status: Triaged → 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.