Shows up with high frequency on errors.ubuntu.com, caused by a race:
=== modified file 'softwarecenter/log.py'
--- softwarecenter/log.py 2012-03-15 10:43:13 +0000
+++ softwarecenter/log.py 2012-05-08 18:55:17 +0000
@@ -93,7 +93,13 @@
# create log file
if not os.path.exists(SOFTWARE_CENTER_CACHE_DIR):
- os.makedirs(SOFTWARE_CENTER_CACHE_DIR)
+ try:
+ os.makedirs(SOFTWARE_CENTER_CACHE_DIR)
+ except OSError as e:
+ if e.errno == 17:
+ pass
+ else:
+ raise
logfile_path = os.path.join(SOFTWARE_CENTER_CACHE_DIR, "software-center.log")
# try to fix inaccessible s-c directory (#688682)
** Changed in: software-center (Ubuntu)
Importance: Undecided => Medium
** Changed in: software-center (Ubuntu)
Milestone: None => precise-updates
** Tags added: ca-escalated
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to software-center in Ubuntu.
https://bugs.launchpad.net/bugs/743003
Title:
software-center crashed with OSError in makedirs(): [Errno 17] File
exists: '/home/joris/.cache/software-center'
Status in “software-center” package in Ubuntu:
Confirmed
Bug description:
Binary package hint: software-center
Happens during startup Software Center on my brand new Dell XPS
laptop.
ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: software-center 3.1.24.2
ProcVersionSignature: Ubuntu 2.6.38-7.38-generic-pae 2.6.38
Uname: Linux 2.6.38-7-generic-pae i686
Architecture: i386
Date: Sat Mar 26 10:06:14 2011
ExecutablePath: /usr/share/software-center/software-center
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha i386 (20110325)
InterpreterPath: /usr/bin/python2.7
ProcCmdline: /usr/bin/python /usr/bin/software-center btnx-config/btnx
ProcEnviron:
SHELL=/bin/bash
LANGUAGE=en_US:en
LANG=en_US.UTF-8
PythonArgs: ['/usr/bin/software-center', 'btnx-config/btnx']
SourcePackage: software-center
Title: software-center crashed with OSError in makedirs(): [Errno 17] File
exists: '/home/joris/.cache/software-center'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/743003/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp