Bug 1323757

Summary: dnf group summary fails with EPERM
Product: [Fedora] Fedora Reporter: Zbigniew Jędrzejewski-Szmek <zbyszek>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jsilhan, mluscon, mmraka, packaging-team-maint, pnemade, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-04-11 11:41:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Zbigniew Jędrzejewski-Szmek 2016-04-04 15:40:20 UTC
Description of problem:
$ dnf group summary
Last metadata expiration check: 0:00:48 ago on Mon Apr  4 11:34:01 2016.
[Errno 13] Permission denied: '/var/lib/dnf/groups.json'

$ ls -l /var/lib/dnf/groups.json
-rw-r--r--. 1 root root 1753 Jul 16  2015 /var/lib/dnf/groups.json

After running 'sudo dnf group summary', running it again as a normal user succeeds. So the failure is transient.

Version-Release number of selected component (if applicable):
dnf-1.1.7-2.fc23.noarch

Comment 1 Michael Mráka 2016-04-05 08:01:08 UTC
By chance are there any selinux denials in audit log?

Comment 2 Zbigniew Jędrzejewski-Szmek 2016-04-05 12:59:08 UTC
No, afaict (I can see the log entry for sudo, and nothing before that for ~30 min).

BTW, I'm running in enforcing mode, selinux-policy-targeted, Fedora defaults.

Feel free to close this for now, if it happens again I'll try to gather more information.