-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[notice] dbus does not allow qomui.service by default on openSUSE Leap 15.0 #52
Comments
I had this issue in the past; sometimes a restart of dbus (or a system reboot) was necessary in order for the policy file to be recognized properly on some distributions. A custom policy file shouldn't be needed as I already included one. |
I did a fresh install of OpenSuse Leap 15 and couldn't reproduce this issue. But I just realized that you are starting qomui-service manually. What happens if you use systemd? |
For version: qomui-0.8.1 No issues with versions -0.7.4 -0.7.3 (works great- it’s a wonderful app- thank you for creating it) I initially started with 0.7.4 (currently using 0.7.3 since I can’t find .deb installer for 0.7.4) System info: Linux Mint 18.3 (Ubuntu 16.04) I am a relative novice with Linux, so the info I am including may either be too much or too little- but I hope it will help. I have attempted to upgrade to version 0.8.1 multiple times on two different Linux computers (one a laptop, the other a desktop). Same issues for both. Each time, I also ensured that the listed dependencies/ required packages were also installed. Methods tried:
Most recent attempt (so that I could share more detailed info with you): X ~ $ sudo apt-get install qomui Upon update install, this folder/ file was deleted and not reinstalled: /etc/dbus-1/system.d/org.qomui.conf System Log: 2019-01-14 13:01:48 startup archives unpack 2nd attempt in terminal: X ~ $ sudo qomui-service During handling of the above exception, another exception occurred: Traceback (most recent call last): Qomui Log: 2019-01-14 13:36:09,317 - INFO - Dbus-service successfully initialized When attempting to activate via desktop button: “Dbus error- no reply from qomui-service” |
@poisonowl: Please remove and then reinstall Qomui. For detail see #53. |
Unfortunately, I have already tried uninstalling (and completely removing) and then reinstalling multiple times. It has been the same result each time (and has been a complete headache). So, I suppose I will stick with 0.7.3 until you release a newer version, and then give that one a shot. Thank you for the link- somehow I had missed seeing that. |
Deb packages were broken. It's fixed in v0.8.2. A re-install is required, though. |
Using the packaged Version of 0.8.0 the GUI failed to start the service.
Running
sudo qomui-service
manually, I got:Traceback (most recent call last): File "/usr/bin/qomui-service", line 11, in <module> load_entry_point('qomui==0.8.0', 'console_scripts', 'qomui-service')() File "/usr/lib/python3.6/site-packages/qomui/qomui_service.py", line 645, in main service = QomuiDbus() File "/usr/lib/python3.6/site-packages/qomui/qomui_service.py", line 58, in __init__ self.bus_name = dbus.service.BusName(BUS_NAME, bus=self.sys_bus) File "/usr/lib/python3.6/site-packages/dbus/service.py", line 131, in __new__ retval = bus.request_name(name, name_flags) File "/usr/lib/python3.6/site-packages/dbus/bus.py", line 303, in request_name 'su', (name, flags)) File "/usr/lib/python3.6/site-packages/dbus/connection.py", line 651, in call_blocking message, timeout) dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Connection ":1.143" is not allowed to own the service "org.qomui.service" due to security policies in the configuration file
I don't know much about the system-dbus but the policy seems to block "unregistered" services by default.
My solution was to create a minimal policy for the service:
/etc/dbus-1/system.d/org.qomui.conf
I'm not actually certain that it is the default setting but I did not change any settings in the dbus-service. Should this be a problem for other users, you may want to place a similar configuration and reload the dbus-service during installation. If this is actually just me, please feel free to close this.
After this change, everything started fine and is working as expected.
Setup used:
Opensuse Leap 15.0
qomui 0.8.0 from corrad1nho's Opensuse repository
The text was updated successfully, but these errors were encountered: