Bug 1077173 - IOError: [Errno 13] Permission denied: '/var/lib/dnf/groups.json'
Summary: IOError: [Errno 13] Permission denied: '/var/lib/dnf/groups.json'
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 20
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Ales Kozumplik
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2014-03-17 11:54 UTC by Tim Lauridsen
Modified: 2014-09-30 23:42 UTC (History)
4 users (show)

Clone Of:
Last Closed: 2014-03-25 08:13:15 UTC

Attachments (Terms of Use)

Description Tim Lauridsen 2014-03-17 11:54:48 UTC
Description of problem:

Get an error when running group operations as non root

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

How reproducible:

Steps to Reproduce:
1. dnf group list

Actual results:
Traceback (most recent call last):
  File "/usr/bin/dnf", line 35, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 242, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 74, in main
    return 1
  File "/usr/lib/python2.7/site-packages/dnf/base.py", line 116, in __exit__
  File "/usr/lib/python2.7/site-packages/dnf/base.py", line 245, in close
  File "/usr/lib/python2.7/site-packages/dnf/base.py", line 171, in _store_persistent_data
  File "/usr/lib/python2.7/site-packages/dnf/persistor.py", line 55, in save
    with open(self.db, 'w') as db:
IOError: [Errno 13] Permission denied: '/var/lib/dnf/groups.json'

Expected results:
No traceback

Additional info:

Comment 1 Ales Kozumplik 2014-03-17 12:48:38 UTC
My bad, will fix it. Since it's only affecting non-root I wouldn't like to unpush https://admin.fedoraproject.org/updates/dnf-0.4.18-1.fc20 . But who knows how what the karma is giong to do.

Comment 2 Tim Lauridsen 2014-03-17 13:48:34 UTC
Fine with me, most users will use dnf as root.

It makes yumex-dnf blow up when closing, but i can live with that until a fix is released. :-)

Comment 3 Ales Kozumplik 2014-03-18 21:03:33 UTC
Fixed upstream by fc9f912.

Tim, if you don't want to wait for a proper release, you can try our CI repos: 


we're experiencing various issues there lately but all should be fine soon and the builds there are all latest & greatest.

Comment 4 Tim Lauridsen 2014-03-19 05:48:10 UTC
Thanks, I will test it when an updated build pops up.

looking at the code it should fix the issue

Comment 5 Fedora Update System 2014-03-24 09:05:38 UTC
dnf-0.4.19-1.fc20 has been submitted as an update for Fedora 20.

Comment 6 Fedora Update System 2014-03-25 08:13:15 UTC
dnf-0.4.19-1.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

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