-
Notifications
You must be signed in to change notification settings - Fork 5
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
systemd dbus activation timeout on first try #61
Comments
Added wireshark trace for both a working and a non working situation Working old style dbus python binding: Non working service using adbus (Times out after 25 seconds) |
Created this gif that should show the issue. busctl method is called (with timeout 10 seconds) for the dbus-sub.domain.tld (reveiver.py) and service is started by systemd as shown in journalctl. But as shown the first call times out after 10 seconds and only the following call works when the service allready is started. |
Resolved with PR #65 |
Hi. Iam trying to create an dbus service that is activated when needed by systemd like described in section (DBus activation) in the following link.
https://fedoraproject.org/wiki/Packaging:Systemd#DBus_activation
My issue is that the service is started but the first dbus call, that activated it, times out but the following calls afterwards works. I have tried to boil it down to the following code that can reproduce it.
Maybe I have misunderstood how to use adbus and I'm still pretty new in the async world. I appreciate any help and hope you can reproduce this issue with the following wall of text :)
I have tried to implement that the same Foo service as show in (which works in the first try):
https://github.com/stylesuxx/python-dbus-examples/blob/master/receiver.py
dbus service (receiver py)
systemd service unit file
systemd system-services
Allow dbus service
Environment
Output
The text was updated successfully, but these errors were encountered: