Questions tagged [dbus]
33 questions
47
votes
6 answers
How to find other end of unix socket connection?
I have a process (dbus-daemon) which has many open connection over UNIX sockets. One of these connections is fd #36:
=$ ps uw -p 23284
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
depesz 23284 0.0 0.0 24680 1772 ? …
user13185
22
votes
4 answers
How to configure D-Bus and SSH X-Forwarding to prevent SSH from hanging on exit?
I am attempting to run various Gnome applications via X11 Forwarding and SSH. Some applications will cause the 'dbus-launch' application to be spawned first. The problem is that dbus-launch doesn't close when the X application is exited, and…
taftster
- 323
- 1
- 2
- 7
18
votes
1 answer
Starting systemd services sharing a session D-Bus on headless system
I need help starting services that communicate via a session (not system) D-Bus on a headless Linux system. The key is that no-one will be logged in on the headless system.
So far I've been able to start a D-Bus daemon and test the D-Bus…
Ole Wolf
- 400
- 1
- 4
- 13
11
votes
3 answers
Cannot use `systemctl --user` due to "Failed to get D-bus connection: permission denied"
I'm trying to set up user-level services, using this answer to a similar question. I have create the required files and rebooted.
I'm making progress because I now get "Failed to get D-bus connection: permission denied" when it was "Failed to get…
xenoid
- 233
- 1
- 2
- 10
8
votes
2 answers
Access D-Bus remotely using socat
Description:
I'd like to access a D-Bus system service from another machine, knowing only machine's IP address and the service to connect to.
What I have recently found is Gabriel (D-Bus over SSH). I have compiled its GIT version (hosted on…
schedar
- 161
- 1
- 7
6
votes
2 answers
Slow authentication on Fedora VM due to /var/run/dbus/system_bus_socket connect timeout
I have this Fedora VM that for some reason after a while always starts having very slow "sudo" authentication (or an authentication in general, like GUI apps asking for credentials). It's will work normally until at some moment (*) it starts waiting…
Quintesse
- 161
- 1
3
votes
0 answers
Obscure systemd-logind message on Centos 7 running on OpenVZ 7
I am seeing the message below appear several times at random times on a Centos 7 64-bit virtual private server running on OpenVZ 7. I have no idea what it means, how to fix it or if it can be safely ignored. Any insights would be greatly…
Esteban
- 35
- 7
3
votes
2 answers
Getting "Couldn't connect to realm service" error while joining rhel7 instance to a domain
I am trying to join a rhel7 node to a domain using a chef cookbook but getting error:
realm: Couldn't connect to realm service: Error calling
StartServiceByName for org.freedesktop.realmd:
GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Activation…
Sameer T
- 31
- 1
- 2
3
votes
1 answer
How do I determine the Linux user/group which executes systemd manager jobs?
I am trying to determine which Linux user/group runs systemd jobs so that I can set D-Bus permissions accordingly.
When I do this:
sudo systemctl start myservice
That ultimately calls an executable which attempts to register itself on D-Bus,…
RandomUser
- 265
- 1
- 3
- 9
3
votes
1 answer
How do I properly launch a dbus-monitor --session as root?
I am working on a script that will detect if and when a Gnome session is "locked" by a user in order to kick that user and prevent people locking screens in a public use lab. However, it seems the only way to do this is to launch a dbus-monitor as…
Merglyn
- 33
- 1
- 1
- 3
3
votes
0 answers
Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
My server on Centos 6.6 went down Phusion Passanger refuses to start of with following error:
stdin: is not a tty
/etc/init/delayed_job.conf: line 7: description: command not found
start: Unable to connect to system bus: Failed to connect to socket…
skatkov
- 33
- 1
- 6
3
votes
2 answers
system suspend - dbus upower signals are not seen
I want to get notifications via dbus when the system resumes from suspended state.
Following these existing questions:
What DBus signal is sent on system suspend?
How do I detect when my system wakes up from suspend via DBus or similar in a python…
totaam
- 191
- 4
- 15
2
votes
1 answer
Is there a way to reliably check that systemd supports --user?
I'm trying to set up some user services using Ansible and systemd.
On Ubuntu and RHEL 7 I'm getting
# systemctl --user status
Failed to get D-Bus connection: Connection refused
For Ubuntu I clarified the error, it's because of…
oblio
- 375
- 3
- 11
2
votes
2 answers
Why is dbus-org.freedesktop.timedate1 started so frequently?
I have some Ubuntu 18.04.1 servers. They all show this service being started rougly every 10 minutes.
Jan 7 06:29:05 csrf-prod1-vm dbus-daemon[434]: [system] Activating via systemd: service name='org.freedesktop.timedate1'…
OrangeDog
- 519
- 4
- 20
2
votes
1 answer
SELinux: pam_systemd(sudo:session): Failed to connect to system bus: Permission denied
On one of CentOS 7 servers I cannot perform sudo from nrpe user (Nagios daemon remote monitoring).
Error message:
Dec 31 08:28:10 ip-172-31-36-176 sudo: pam_unix(sudo:session): session opened for user root by (uid=0)
Dec 31 08:28:10 ip-172-31-36-176…
Alexander Gerasimov
- 193
- 2
- 11