Description of problem:
Get an error when running group operations as non root
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. dnf group list
Traceback (most recent call last):
File "/usr/bin/dnf", line 35, in <module>
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
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'
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.
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. :-)
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.
Thanks, I will test it when an updated build pops up.
looking at the code it should fix the issue
dnf-0.4.19-1.fc20 has been submitted as an update for Fedora 20.
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.