/usr/share/apport/whoopsie-upload-all:PermissionError:/usr/share/apport/whoopsie-upload-all@148:collect_info:process_report

Bug #1365186 reported by Brian Murray
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
High
Unassigned

Bug Description

The Ubuntu Error Tracker has been receiving reports about a problem regarding apport. This problem was most recently seen with version 2.14.7-0ubuntu1, the problem page at https://errors.ubuntu.com/problem/6dcf56089700281d1f9a22242799e14f4c7c60ab contains more details.

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

Here is the traceback from the crash:

Traceback (most recent call last):
  File "/usr/share/apport/whoopsie-upload-all", line 148, in <module>
    stamps = collect_info()
  File "/usr/share/apport/whoopsie-upload-all", line 99, in collect_info
    res = process_report(r)
  File "/usr/share/apport/whoopsie-upload-all", line 75, in process_report
    with open(report, 'ab') as f:
PermissionError: [Errno 13] Permission denied: '/var/crash/_usr_share_click_preinstalled_com.ubuntu.gallery_2.9.1.1049_gallery-app.32011.crash'

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apport (Ubuntu):
status: New → Confirmed
Revision history for this message
Alberto Salvia Novella (es20490446e) wrote :

It renders essential functionality of the package (or a dependent one) broken.

Changed in apport (Ubuntu):
importance: Undecided → High
Revision history for this message
Brian Murray (brian-murray) wrote :

Looking at the report in the Error Tracker, these crashes don't exist following this upload which changed whoopsie-upload-all a fair bit. Let's go ahead and close this then.

apport (2.14.7-0ubuntu3) utopic; urgency=medium

  [ Steve Langasek ]
  * Refactor apport-noui/whoopsie-upload-all to behave more reliably in
    case of overlapping crash processing (LP: #1354318):
    - debian/apport-noui.upstart: refactor to make this an 'instance' job
      for each incoming .crash file, and drop the racy handling of non-root
      .crash files (as well as the unnecessary 'env MATCH' line).
    - data/whoopsie-upload-all: refactor report processing to ensure that
      whoopsie-upload-all can be called multiple times in parallel without
      causing any .crash file to be processed more than once.
    - data/whoopsie-upload-all: handle setting ownership of files in
      process_report() instead of relying on this script being called by a
      particular user.
    - data/whoopsie-upload-all: don't spin in wait_uploaded() watching for
      .uploaded files if the corresponding .upload file has been removed out
      from under us.
    - data/whoopsie-upload-all: by default, return immediately instead of
      waiting to see if whoopsie processes all of the crashes.

  [ Brian Murray ]
  * data/whoopsie-upload-all: indicate that all reports have been uploaded
    even those that were marked for upload earlier.

 -- Brian Murray <email address hidden> Thu, 02 Oct 2014 08:33:49 -0700

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