Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1049958

Summary: [abrt] yum-3.4.3-119.fc20: yumRepo.py:706:_dirSetupMkdir_p:RepoError: Error making cache directory: /var/cache/yum/x86_64/20/fedora-source error was: [Errno 13] Permission denied: '/var/cache/yum/x86_64/20/fedora-source'
Product: Red Hat Enterprise Linux 7 Reporter: Michal Toman <mtoman>
Component: yumAssignee: James Antill <james.antill>
Status: CLOSED CURRENTRELEASE QA Contact: Karel Srot <ksrot>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: james.antill, ksrot, pknirsch, rvokal
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: http://faf-report.itos.redhat.com/reports/164
Whiteboard: abrt_hash:349bb1961591c49ca283dc18d73b32d7ba075f36
Fixed In Version: yum-3.4.3-111.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1039028 Environment:
Last Closed: 2014-06-16 08:19:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michal Toman 2014-01-08 14:31:33 UTC
+++ This bug was initially created as a clone of Bug #1039028 +++

Description of problem:
When trying to use yum remove foo[double tab for completion]

Version-Release number of selected component:
yum-3.4.3-119.fc20

Additional info:
reporter:       libreport-2.1.9
cmdline:        /usr/bin/python -t /usr/share/yum-cli/completion-helper.py -d 0 -C list installed kernel-libre
executable:     /usr/share/yum-cli/completion-helper.py
kernel:         3.11.9-libre.300.fc20.gnu.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
yumRepo.py:706:_dirSetupMkdir_p:RepoError: Error making cache directory: /var/cache/yum/x86_64/20/fedora-source error was: [Errno 13] Permission denied: '/var/cache/yum/x86_64/20/fedora-source'

Traceback (most recent call last):
  File "/usr/share/yum-cli/completion-helper.py", line 95, in <module>
    main(sys.argv[1:])
  File "/usr/share/yum-cli/completion-helper.py", line 83, in main
    base.getOptionsConfig(args)
  File "/usr/share/yum-cli/cli.py", line 351, in getOptionsConfig
    self.parseCommands() # before we return check over the base command + args
  File "/usr/share/yum-cli/cli.py", line 408, in parseCommands
    if not os.path.exists(repo.metadata_cookie):
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 778, in <lambda>
    metadata_cookie = property(lambda self: self._dirGetAttr('metadata_cookie'))
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 750, in _dirGetAttr
    self.dirSetup()
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 729, in dirSetup
    self._dirSetupMkdir_p(dir)
  File "/usr/lib/python2.7/site-packages/yum/yumRepo.py", line 706, in _dirSetupMkdir_p
    raise Errors.RepoError, msg
RepoError: Error making cache directory: /var/cache/yum/x86_64/20/fedora-source error was: [Errno 13] Permission denied: '/var/cache/yum/x86_64/20/fedora-source'

Local variables in innermost frame:
msg: "Error making cache directory: /var/cache/yum/x86_64/20/fedora-source error was: [Errno 13] Permission denied: '/var/cache/yum/x86_64/20/fedora-source'"
dpath: '/var/cache/yum/x86_64/20/fedora-source'
self: <yum.yumRepo.YumRepository object at 0x1079cd0>
e: OSError(13, 'Permission denied')

--- Additional comment from fran on 20131206T12:10:24 ---

Created attachment 833598 [details]
File: backtrace

--- Additional comment from fran on 20131206T12:10:26 ---

Created attachment 833599 [details]
File: environ

--- Additional comment from updates on 20131209T21:01:16 ---

yum-3.4.3-121.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/yum-3.4.3-121.fc20

--- Additional comment from fran on 20131209T21:23:13 ---

Update worked for me, needed to do a manual package download because repomd.xml became unavailable from any mirror due to this bug.

--- Additional comment from updates on 20131210T15:54:23 ---

Package yum-3.4.3-121.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing yum-3.4.3-121.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-23104/yum-3.4.3-121.fc20
then log in and leave karma (feedback).

--- Additional comment from updates on 20131214T03:19:16 ---

yum-3.4.3-121.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 1 Michal Toman 2014-01-08 14:31:35 UTC
The same problem has been detected in Red Hat Enterprise Linux 7. The following packages are affected:

yum-3.4.3-106.2.el7.noarch
yum-3.4.3-106.el7.noarch

Comment 8 Ludek Smid 2014-06-16 08:19:01 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.