USC doesn't launch in guest session (OSError: [Errno 13] Permission denied)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
software-center (Ubuntu) |
Fix Released
|
High
|
Kiwinote |
Bug Description
Binary package hint: software-center
Ubuntu Software Center 3.1.24, Ubuntu Natty
1. Switch to a guest session.
2. At a terminal, enter "software-center" (without quotes).
What should happen: USC launches.
What actually happens:
------------
2011-03-23 15:35:53,772 - softwarecenter.
2011-03-23 15:35:53,772 - root - WARNING - failed to add sca db Couldn't stat '/tmp/guest-
Traceback (most recent call last):
File "/usr/bin/
app = SoftwareCenterA
File "/usr/share/
self.
File "/usr/share/
review_loader = ReviewLoaderThr
File "/usr/share/
self.
File "/usr/lib/
return Queue(maxsize)
File "/usr/lib/
self._rlock = Lock()
File "/usr/lib/
SemLock.
File "/usr/lib/
sl = self._semlock = _multiprocessin
OSError: [Errno 13] Permission denied
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/
os.
OSError: [Errno 13] Permission denied: '/var/crash/
Original exception was:
Traceback (most recent call last):
File "/usr/bin/
app = SoftwareCenterA
File "/usr/share/
self.
File "/usr/share/
review_loader = ReviewLoaderThr
File "/usr/share/
self.
File "/usr/lib/
return Queue(maxsize)
File "/usr/lib/
self._rlock = Lock()
File "/usr/lib/
SemLock.
File "/usr/lib/
sl = self._semlock = _multiprocessin
OSError: [Errno 13] Permission denied
------------
Hi mpt! Thanks for noticing this. It has been fixed in the branch linked.
Technical comments: eadedRNRClient to ReviewLoaderJso nAsync in this case. As the Json loader hasn't been used in a while I've also made some tweaks to make it work again in the most common cases.
It would seem that we can't use the python multiprocessing module due to the limitations of the guest session. I have implemented a fallback from ReviewLoaderThr