software-center crashed with IOError in _open(): [Errno 13] Permission denied: '/home/carcass/.cache/software-center/software-center.log'

Bug #746901 reported by Ross C
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: software-center

software-center crashed when attempting to install the google chrome .deb

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: software-center 3.1.24.4
ProcVersionSignature: Ubuntu 2.6.38-7.39-generic 2.6.38
Uname: Linux 2.6.38-7-generic i686
Architecture: i386
Date: Thu Mar 31 18:43:39 2011
ExecutablePath: /usr/share/software-center/software-center
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
InterpreterPath: /usr/bin/python2.7
ProcCmdline: /usr/bin/python /usr/bin/software-center /home/username/Downloads/google-chrome-stable_current_amd64.deb
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/software-center', '/home/username/Downloads/google-chrome-stable_current_amd64.deb']
SourcePackage: software-center
Title: software-center crashed with IOError in _open(): [Errno 13] Permission denied: '/home/carcass/.cache/software-center/software-center.log'
UpgradeStatus: Upgraded to natty on 2011-04-01 (0 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Ross C (human-error13) wrote :
Revision history for this message
Ross C (human-error13) wrote :
Download full text (4.2 KiB)

Actually, this appears to be a problem with software center itself...

"/usr/bin/software-center" results in the following output and another software center crash:

WARNING:root:trying to fix not writable cache directory
ERROR:root:failed to fix not writable cache directory
Traceback (most recent call last):
  File "/usr/share/software-center/softwarecenter/paths.py", line 59, in try_to_fixup_root_owned_dir_via_remove
    os.rmdir(directory)
OSError: [Errno 39] Directory not empty: '/home/carcass/.cache/software-center'
WARNING:root:trying to fix non-writeable logfile
WARNING:softwarecenter.fixme:logs to the root logger: '('/usr/share/software-center/softwarecenter/log.py', 96, '<module>')'
2011-03-31 18:59:07,387 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/share/software-center/softwarecenter/log.py', 96, '<module>')'
2011-03-31 18:59:07,387 - root - WARNING - trying to fix non-writeable logfile
ERROR:root:failed to fix non-writeable logfile
Traceback (most recent call last):
  File "/usr/share/software-center/softwarecenter/log.py", line 97, in <module>
    os.remove(logfile_path)
OSError: [Errno 13] Permission denied: '/home/carcass/.cache/software-center/software-center.log'
WARNING:softwarecenter.fixme:logs to the root logger: '('/usr/share/software-center/softwarecenter/log.py', 99, '<module>')'
2011-03-31 18:59:07,387 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/share/software-center/softwarecenter/log.py', 99, '<module>')'
2011-03-31 18:59:07,387 - root - ERROR - failed to fix non-writeable logfile
Traceback (most recent call last):
  File "/usr/share/software-center/softwarecenter/log.py", line 97, in <module>
    os.remove(logfile_path)
OSError: [Errno 13] Permission denied: '/home/carcass/.cache/software-center/software-center.log'
Traceback (most recent call last):
  File "/usr/bin/software-center", line 47, in <module>
    import softwarecenter.log
  File "/usr/share/software-center/softwarecenter/log.py", line 103, in <module>
    backupCount=5)
  File "/usr/lib/python2.7/logging/handlers.py", line 118, in __init__
    BaseRotatingHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python2.7/logging/handlers.py", line 65, in __init__
    logging.FileHandler.__init__(self, filename, mode, encoding, delay)
  File "/usr/lib/python2.7/logging/__init__.py", line 893, in __init__
    StreamHandler.__init__(self, self._open())
  File "/usr/lib/python2.7/logging/__init__.py", line 912, in _open
    stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/home/carcass/.cache/software-center/software-center.log'

--------------------

running "sudo /usr/bin/software-center" actually opens software center and this is terminal output:

2011-03-31 19:02:33,701 - softwarecenter.fixme - WARNING - logs to the root logger: '('/usr/share/software-center/softwarecenter/db/database.py', 154, 'open')'
2011-03-31 19:02:33,701 - root - WARNING - failed to add sca db Couldn't stat '/root/.cache/software-center/software-center-agent.db' (No such file or directory)
/usr/share/software-center/softwarecenter/app.py:1119: Warning: g_object_set_qdata: assertion...

Read more...

Revision history for this message
Apport retracing service (apport) wrote : This bug is a duplicate

Thank you for taking the time to report this crash and helping to make Ubuntu better. This particular crash has already been reported and is a duplicate of bug #688682, so is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Please continue to report any other bugs you may find.

tags: removed: need-duplicate-check
visibility: private → public
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.