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 1623528 - yumdownloader doesn't work as non-root: https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/Packages/iproute-4.11.0-14.el7.x86_64.rpm: [Errno 14] curl#58 - "unable to load client key: -8178 (SEC_ERROR_BAD_KEY)"
Summary: yumdownloader doesn't work as non-root: https://cdn.redhat.com/content/dist/r...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: subscription-manager
Version: 7.6
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: candlepin-bugs
QA Contact: Red Hat subscription-manager QE Team
URL:
Whiteboard:
Depends On:
Blocks: TRACKER-bugs-affecting-libguestfs
TreeView+ depends on / blocked
 
Reported: 2018-08-29 14:35 UTC by Richard W.M. Jones
Modified: 2018-10-25 14:16 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-25 14:16:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2018-08-29 14:35:09 UTC
Description of problem:

$ yumdownloader --destdir /tmp iproute
Loaded plugins: product-id, subscription-manager
Repo rhel-7-server-extras-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/5977450362948290138-key.pem
Repo rhel-7-server-rh-common-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/5977450362948290138-key.pem
Repo rhel-7-server-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/5977450362948290138-key.pem
Repo rhel-7-server-optional-rpms forced skip_if_unavailable=True due to: /etc/pki/entitlement/5977450362948290138-key.pem
iproute-4.11.0-14.el7.x86_64.r FAILED                                          
https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/Packages/iproute-4.11.0-14.el7.x86_64.rpm: [Errno 14] curl#58 - "unable to load client key: -8178 (SEC_ERROR_BAD_KEY)"
Trying other mirror.
iproute-4.11.0-14.el7.x86_64: [Errno 256] No more mirrors to try.

Version-Release number of selected component (if applicable):

yum-utils-1.1.31-46.el7_5.noarch

How reproducible:

100%

Steps to Reproduce:
1. See description above.

Comment 2 Richard W.M. Jones 2018-08-29 14:36:43 UTC
Can be fixed by:

$ sudo chmod 0644 /etc/pki/entitlement/*

but this really shouldn't be necessary.

Comment 4 Kevin Howell 2018-10-18 14:21:52 UTC
> $ sudo chmod 0644 /etc/pki/entitlement/*

What were the permissions originally? I assume this is as a non-root user?

Comment 5 Richard W.M. Jones 2018-10-18 15:19:36 UTC
(In reply to Kevin Howell from comment #4)
> > $ sudo chmod 0644 /etc/pki/entitlement/*
> 
> What were the permissions originally?

I've no idea, I didn't knowingly touch any of these files.

> I assume this is as a non-root user?

Yes, running yumdownloader as non-root.

Comment 6 Richard W.M. Jones 2018-10-18 15:23:09 UTC
Do you mean before I chmod'd them?  Again, I'm not sure, except
they were not readable as non-root before.

What's interesting is that no RPM contains these files.  It seems as
if they were created as a side effect of something else
(perhaps running S-M?) and because they are not readable as
non-root, that breaks yumdownloader.

Comment 7 Kevin Howell 2018-10-25 14:16:01 UTC
Given that installing packages requires root, and a simple chmod should do the trick, we're not going to support this use case.

FWIW, on my local machine, the permissions were 644 by default, maybe the umask setting affects this? Either way a simple `sudo chmod 644 -R /etc/pki/entitlement` works if you hit this.


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