Description of problem: try all GUI related to firewalld in nonX environment Version-Release number of selected component (if applicable): firewalld-0.2.11-1.fc18.noarch How reproducible: deterministic Steps to Reproduce: 1, firewall-config, firewall-offline-cmd , firewall-applet [root@qa-psklenar ~]# firewall-config No protocol specified ** (firewall-config:2868): WARNING **: Could not open X display Traceback (most recent call last): File "/usr/bin/firewall-config", line 23, in <module> from gi.repository import Gtk, GObject File "/usr/lib64/python2.7/site-packages/gi/importer.py", line 76, in load_module dynamic_module._load() File "/usr/lib64/python2.7/site-packages/gi/module.py", line 244, in _load overrides_modules = __import__('gi.overrides', fromlist=[self._namespace]) File "/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py", line 1624, in <module> raise RuntimeError("Gtk couldn't be initialized") RuntimeError: Gtk couldn't be initialized [root@qa-psklenar ~]# firewall-offline-cmd Traceback (most recent call last): File "/usr/bin/firewall-offline-cmd", line 382, in <module> if conf.enabled == False: AttributeError: 'NoneType' object has no attribute 'enabled' [root@qa-psklenar ~]# firewall-applet No protocol specified ** (firewall-applet:2888): WARNING **: Could not open X display Traceback (most recent call last): File "/usr/bin/firewall-applet", line 23, in <module> from gi.repository import Gtk, GLib, GObject, Gio, Notify, NetworkManager File "/usr/lib64/python2.7/site-packages/gi/importer.py", line 76, in load_module dynamic_module._load() File "/usr/lib64/python2.7/site-packages/gi/module.py", line 244, in _load overrides_modules = __import__('gi.overrides', fromlist=[self._namespace]) File "/usr/lib64/python2.7/site-packages/gi/overrides/Gtk.py", line 1624, in <module> raise RuntimeError("Gtk couldn't be initialized") RuntimeError: Gtk couldn't be initialized Actual results: traceback Expected results: could not open display This is a graphical application and requires DISPLAY to be set. Additional info: some another GUI [root@qa-psklenar ~]# system-config-printer system-config-printer: could not open display This is a graphical application and requires DISPLAY to be set.
from bug #886529, comment #2: > I could see the same issue when running without X environment: > firewall-cmd --reload > Error: org.fedoraproject.slip.dbus.service.PolKit.NotAuthorizedException.org.fedoraproject.FirewallD1.config:
[16:50] <psklenar> akostadinov: twoerner about bug 886529, is there some way how could I authenticate to dbus from non X environment? [16:51] <psklenar> otherwise then the right error message for bug 886529 would be smth like: please open your X session, authenticate to polkit then try again :) [16:53] <twoerner> psklenar: no, there is no text polkit agent [16:53] <twoerner> psklenar: the result from polkit is the same if the password was wrong or if there was no agent So what about adding to firewall-cmd something like if (not X and user != root) then print "open your X session or run firewall-cmd as superuser"
(In reply to comment #2) > So what about adding to firewall-cmd something like > if (not X and user != root) then > print "open your X session or run firewall-cmd as superuser" +1 personally I would like to see such an error message.
firewall-config, firewall-applet and firewall-cmd (comment #1) fixed upstream: http://git.fedorahosted.org/cgit/firewalld.git/commit/?id=0cf1dcb9db2f99482e8a44e4e6f0ded7cc1f4a9b (In reply to comment #0) > [root@qa-psklenar ~]# firewall-offline-cmd > Traceback (most recent call last): > File "/usr/bin/firewall-offline-cmd", line 382, in <module> > if conf.enabled == False: > AttributeError: 'NoneType' object has no attribute 'enabled' This was completely different problem, fixed upstream: http://git.fedorahosted.org/cgit/firewalld.git/commit/?id=15f29f20343bcb06df8141670f58f59ebede32d5
firewalld-0.2.12-1.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/firewalld-0.2.12-1.fc18
Package firewalld-0.2.12-1.fc18: * should fix your issue, * was pushed to the Fedora 18 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing firewalld-0.2.12-1.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-0810/firewalld-0.2.12-1.fc18 then log in and leave karma (feedback).
firewalld-0.2.12-1.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.