expunge-cache.py crashed with IOError in _cleanup_dir(): [Errno 2] No such file or directory: '/home/username/.cache/software-center/piston-helper/rec.ubuntu.com,api,1.0,recommend_app,multiget,,2442bcf345374a73360143bd52431ab5'

Bug #970627 reported by Alex281078 on 2012-04-01
46
This bug affects 9 people
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Medium
thembalihle khwatsha
Precise
Medium
Unassigned

Bug Description

TEST CASE:
- this is a race condition condition that is difficult to reproduce but is visilble on errors.ubuntu.com

REGRESSION RISK:
- tiny, its just catching a error when trying to delete a already deleted file

vbhv

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: software-center 5.1.14
ProcVersionSignature: Ubuntu 3.2.0-21.34-generic 3.2.13
Uname: Linux 3.2.0-21-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 2.0-0ubuntu2
Architecture: amd64
CrashCounter: 1
Date: Sun Apr 1 13:17:51 2012
ExecutablePath: /usr/share/software-center/expunge-cache.py
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120301)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/share/software-center/expunge-cache.py --by-unsuccessful-http-states /home/username/.cache/software-center
PythonArgs: ['/usr/share/software-center/expunge-cache.py', '--by-unsuccessful-http-states', '/home/username/.cache/software-center']
SourcePackage: software-center
Title: expunge-cache.py crashed with IOError in _cleanup_dir(): [Errno 2] No such file or directory: '/home/username/.cache/software-center/piston-helper/rec.ubuntu.com,api,1.0,recommend_app,multiget,,2442bcf345374a73360143bd52431ab5'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Related branches

Alex281078 (alexlapshin) wrote :
tags: removed: need-duplicate-check
Tyler Hicks (tyhicks) on 2012-04-02
security vulnerability: yes → no
security vulnerability: yes → no
visibility: private → public
visibility: private → public
Launchpad Janitor (janitor) wrote :

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

Changed in software-center (Ubuntu):
status: New → Confirmed

FWIW, deleting a file related to the software center seemed to resolve the problem:

Dmesg output:
[36001.147151] Valid eCryptfs headers not found in file header region or xattr region, inode 26480627
[36001.147155] Either the lower file is not in a valid eCryptfs format, or the key could not be retrieved. Plaintext passthrough mode is not enabled; returning -EIO

nickfarr@Edwards:~$ find -inum 26480627
./.cache/software-center/rnrclient/reviews.ubuntu.com,reviews,api,1.0,reviews,filter,en,any,any,any,skype,page,3,helpful,,abad90c03c6324790656169a4909c053

Removing the file fixed the problem...

Changed in software-center (Ubuntu):
importance: Undecided → Medium
Michael Vogt (mvo) on 2012-06-05
Changed in software-center (Ubuntu):
status: Confirmed → In Progress
Changed in software-center (Ubuntu Precise):
status: New → In Progress
importance: Undecided → Medium
Changed in software-center (Ubuntu Precise):
status: In Progress → Fix Committed
Changed in software-center (Ubuntu):
status: In Progress → Fix Committed
Michael Vogt (mvo) on 2012-06-28
description: updated

Hello Alex281078, or anyone else affected,

Accepted software-center into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/software-center/5.2.4 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 change the bug tag from verification-needed to verification-done. If it does not, 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!

tags: added: verification-needed
Michael Vogt (mvo) on 2012-07-04
Changed in software-center (Ubuntu):
status: Fix Committed → Fix Released
Gary Lasker (gary-lasker) wrote :

I tested and have been unable to reproduce this error in software-center version 5.2.4 in precise-proposed.

Thanks!

tags: added: verification-done
removed: verification-needed
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-center - 5.2.4

---------------
software-center (5.2.4) precise-proposed; urgency=low

  [ Michael Vogt ]
  * lp:~mvo/software-center/lp970627:
    - fix intermittent crash when expunging the cache (LP: #970627)
  * lp:~mvo/software-center/lp971776:
    - fix crash when a downloaded image is invalid for whatever
      reason (network issues, proxy issues, pay-wall in between)
      (LP: #971776)
  * lp:~mvo/software-center/lp967036-2:
    - fix unicode error crash for people running with the
      LANGUAGE=zh_CN.UTF-8 or zh_TW.UTF-8 (LP: #967036)
  * lp:~mvo/software-center/cookie-jar:
    - fix paypal support in the purchases window (LP: #1018347)

  [ Gary Lasker ]
  * debian/control:
    - update vcs link to point to the 5.2 branch
  * lp:~gary-lasker/software-center/previous-purchase-sorting-lp873104:
    - return correct results when sorting the list of previous
      purchases (LP: #873104)
  * lp:~gary-lasker/software-center/recommendations-string-change-lp986437-for-5.2:
    - switch to the updated recommendations opt-in string now that the
      corresponding language pack updates are released and available
      (LP: #986437)
  * lp:~gary-lasker/software-center/fix-lp920741:
    - fix UnicodeDecodeError when a commercial app's title contains
      a unicode character (LP: #920741)

  [ Natalia Bidart ]
  * lp:~nataliabidart/software-center/cant-stop-the-music:
    - Stop the video if user navigates away from an app details page
      (LP: #1003954).
 -- Michael Vogt <email address hidden> Thu, 28 Jun 2012 10:35:55 +0200

Changed in software-center (Ubuntu Precise):
status: Fix Committed → Fix Released
Changed in software-center (Ubuntu):
assignee: nobody → thembalihle khwatsha (tkhwatsha)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers