software-center crashed with OSError in makedirs(): [Errno 17] File exists: '/home/joris/.cache/software-center'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-center (Ubuntu) |
Fix Released
|
Medium
|
RONALD CONCEPCION | ||
Precise |
Fix Released
|
Undecided
|
Unassigned | ||
Quantal |
Fix Released
|
Medium
|
Gary Lasker |
Bug Description
Binary package hint: software-center
Happens during startup Software Center on my brand new Dell XPS laptop.
TEST CASE:
This bug is the result of a race condition between two different processes that is not possible to induce directly. To verify this bug, simply start Ubuntu Software Center a number of times and verify that the attached stack trace never occurs and that Ubuntu Software Center starts normally.
ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: software-center 3.1.24.2
ProcVersionSign
Uname: Linux 2.6.38-
Architecture: i386
Date: Sat Mar 26 10:06:14 2011
ExecutablePath: /usr/share/
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20110325)
InterpreterPath: /usr/bin/python2.7
ProcCmdline: /usr/bin/python /usr/bin/
ProcEnviron:
SHELL=/bin/bash
LANGUAGE=en_US:en
LANG=en_US.UTF-8
PythonArgs: ['/usr/
SourcePackage: software-center
Title: software-center crashed with OSError in makedirs(): [Errno 17] File exists: '/home/
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
Related branches
- software-store-developers: Pending requested
-
Diff: 174 lines (+82/-27)4 files modifiedsoftwarecenter/config.py (+2/-2)
softwarecenter/log.py (+3/-3)
softwarecenter/utils.py (+42/-22)
test/test_logging.py (+35/-0)
tags: | removed: need-duplicate-check |
visibility: | private → public |
Changed in software-center (Ubuntu): | |
status: | New → Confirmed |
Changed in software-center (Ubuntu): | |
status: | Confirmed → In Progress |
Changed in software-center (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in software-center (Ubuntu Precise): | |
status: | New → Fix Committed |
Changed in software-center (Ubuntu): | |
assignee: | tremolux (gary-lasker) → RONALD CONCEPCION (ronaldconcepcion2000) |
Shows up with high frequency on errors.ubuntu.com, caused by a race:
=== modified file 'softwarecenter /log.py' log.py 2012-03-15 10:43:13 +0000 log.py 2012-05-08 18:55:17 +0000
--- softwarecenter/
+++ softwarecenter/
@@ -93,7 +93,13 @@
# create log file exists( SOFTWARE_ CENTER_ CACHE_DIR) : SOFTWARE_ CENTER_ CACHE_DIR) SOFTWARE_ CENTER_ CACHE_DIR) join(SOFTWARE_ CENTER_ CACHE_DIR, "software- center. log")
if not os.path.
- os.makedirs(
+ try:
+ os.makedirs(
+ except OSError as e:
+ if e.errno == 17:
+ pass
+ else:
+ raise
logfile_path = os.path.
# try to fix inaccessible s-c directory (#688682)