Bug 694305 - [abrt] abrt-addon-ccpp-2.0.0-4.fc15: os.py:157:makedirs:OSError: [Errno 13] Permission denied: '/var/cache/abrt-di'
Summary: [abrt] abrt-addon-ccpp-2.0.0-4.fc15: os.py:157:makedirs:OSError: [Errno 13] P...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: abrt
Version: 15
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jiri Moskovcak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a774c41a
: 700171 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-06 22:37 UTC by Steve Tyler
Modified: 2015-02-01 22:53 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-07 16:34:34 UTC
Type: ---


Attachments (Terms of Use)
File: backtrace (586 bytes, text/plain)
2011-04-06 22:37 UTC, Steve Tyler
no flags Details

Description Steve Tyler 2011-04-06 22:37:06 UTC
abrt version: 2.0.0
executable: /usr/bin/abrt-action-install-debuginfo.py
cmdline: /usr/bin/python -u /usr/bin/abrt-action-install-debuginfo.py --core=/home/joeblow/.abrt/spool/ccpp-2011-04-04-11:08:00-1582/coredump
component: abrt
package: abrt-addon-ccpp-2.0.0-4.fc15
kernel: 2.6.38.2-9.fc15.x86_64
reason: os.py:157:makedirs:OSError: [Errno 13] Permission denied: '/var/cache/abrt-di'
architecture: x86_64
uid: 500
username: joeblow
os_release: Fedora release 15 (Lovelock)
time: 1302128613

backtrace
-----
os.py:157:makedirs:OSError: [Errno 13] Permission denied: '/var/cache/abrt-di'

Traceback (most recent call last):
  File "/usr/bin/abrt-action-install-debuginfo.py", line 476, in <module>
    result = downloader.download(missing)
  File "/usr/bin/abrt-action-install-debuginfo.py", line 262, in download
    os.makedirs(self.cachedir)
  File "/usr/lib64/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/var/cache/abrt-di'

Local variables in innermost frame:
tail: 'abrt-di'
head: '/var/cache'
name: '/var/cache/abrt-di'
mode: 511

Comment 1 Steve Tyler 2011-04-06 22:37:08 UTC
Created attachment 490427 [details]
File: backtrace

Comment 2 Steve Tyler 2011-04-06 22:39:53 UTC
Bug 692064, Comment 15 has the context.

Comment 3 Jiri Moskovcak 2011-04-07 12:17:42 UTC
We've finally found the problem, I'll prepare a new packages asap.

Comment 4 Jiri Moskovcak 2011-04-12 16:00:32 UTC

*** This bug has been marked as a duplicate of bug 692064 ***

Comment 5 Steve Tyler 2011-04-21 13:25:49 UTC
I removed /var/cache/abrt-di/ and attempted to regenerate symbols.
/var/cache/abrt-di/ did not get created.

abrt-2.0.1-1.fc15.x86_64

From the abrt window:
Analyzing coredump '/home/joeblow/.abrt/spool/ccpp-2011-04-21-05:50:32-2351/coredump'
Coredump references 67 debuginfo files, 67 of them are not installed
Could not parse metalink https://mirrors.fedoraproject.org/metalink?repo=updates-released-debug-f15&arch=x86_64 error was 
No repomd file
Looking for needed packages in repositories
Packages to download: 43
Downloading 169.43Mb, installed size: 924.56Mb
Traceback (most recent call last):
  File "/usr/bin/abrt-action-install-debuginfo.py", line 422, in <module>
    result = downloader.download(missing)
  File "/usr/bin/abrt-action-install-debuginfo.py", line 262, in download
    os.makedirs(self.cachedir)
  File "/usr/lib64/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/var/cache/abrt-di'

Comment 6 Jiri Moskovcak 2011-04-21 15:48:24 UTC
(In reply to comment #5)
> I removed /var/cache/abrt-di/ and attempted to regenerate symbols.
> /var/cache/abrt-di/ did not get created.
> 

Aha, now I got it! You shouldn't remove /var/cache/abrt-di/ but only the content of it. In order to make this work again you need to either reinstall abrt packages or as root do:

$ mkdir /var/cache/abrt-di
$ chown abrt:abrt /var/cache/abrt-di

Comment 7 Steve Tyler 2011-04-21 17:27:18 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > I removed /var/cache/abrt-di/ and attempted to regenerate symbols.
> > /var/cache/abrt-di/ did not get created.
> > 
> 
> Aha, now I got it! You shouldn't remove /var/cache/abrt-di/ but only the
> content of it. In order to make this work again you need to either reinstall
> abrt packages or as root do:
> 
> $ mkdir /var/cache/abrt-di
> $ chown abrt:abrt /var/cache/abrt-di

OK, thanks. I was thinking abrt-gui would recreate it, but it doesn't have root permissions:

$ touch /var/cache/foo
touch: cannot touch `/var/cache/foo': Permission denied

This is not really a bug then, although maybe the message could say that /var/cache/abrt-di could not be created because of "Permission denied".

Comment 8 Steve Tyler 2011-04-21 17:31:47 UTC
BTW, I habitually remove cache directories with:
$ sudo rm -r foo_cache
Maybe that is a bad habit ... :-)

Comment 9 Jiri Moskovcak 2011-04-22 08:51:40 UTC
Yes, we should catch that exception and print a better message...

Comment 10 Steve Tyler 2011-04-28 16:43:40 UTC
*** Bug 700171 has been marked as a duplicate of this bug. ***

Comment 11 Fedora End Of Life 2012-08-07 16:34:37 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


Note You need to log in before you can comment on or make changes to this bug.