> When you are the only user logged in, there should usually be two dbus-daemon
> processes. One is the system bus (runs as user messagebus, listens on
> /var/run/dbus/system_bus_socket) and the other is the session bus (runs as your
> own user ID, listens on some address involving /tmp which you can get from the
> $DBUS_SESSION_BUS_ADDRESS environment variable). If you debug the wrong one,
> the results aren't likely to be very useful.
Also if I could use a little of your specific knowledge about dbus to know more about my specific problem with dbus involved and what are the methods of debugging the source of this problem.
My other dbus instance is here:
$ echo $DBUS_SESSION_BUS_ADDRESS
unix:abstract=/tmp/dbus-4Lf6aHxvqg,guid=a5ec76744e9723954bcaa3f10000001e
Also I can see it in netstat:
$ netstat -nap --unix | grep LISTEN | grep dbus | head -n1
unix 2 [ ACC ] STREAM LISTENING 13380 1970/dbus-daemon @/tmp/dbus-4Lf6aHxvqg
But the problem is, that /tmp/dbus-4Lf6aHxvqg doesn't exist.
$ ll /tmp/dbus-4Lf6aHxvqg
ls: cannot access /tmp/dbus-4Lf6aHxvqg: No such file or directory
$ netstat -nap --unix | grep 4Lf6aHxvqg | wc -l
71
items are connected to this bus socket which doesn't exist.
Or maybe there is some better and cleaner way of diagnosing the problem.
Also how do I use --print-pid option in practical way to print actual PID of processes which are connecting to dbus?
I've the following dbus process, how do I restart it without killing my machine to see standard output.
kenorb 1970 0.0 0.1 30000 5856 ? Ss Sep19 0:07 //bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
When I restart it, my connection is lost, when I kill it, my system is crashing, so I'm not sure how do restart it to see what's on standard output (as it says in manual - 'Print the process ID of the message bus to standard output').
> When you are the only user logged in, there should usually be two dbus-daemon dbus/system_ bus_socket) and the other is the session bus (runs as your BUS_ADDRESS environment variable). If you debug the wrong one,
> processes. One is the system bus (runs as user messagebus, listens on
> /var/run/
> own user ID, listens on some address involving /tmp which you can get from the
> $DBUS_SESSION_
> the results aren't likely to be very useful.
Also if I could use a little of your specific knowledge about dbus to know more about my specific problem with dbus involved and what are the methods of debugging the source of this problem.
My other dbus instance is here: BUS_ADDRESS /tmp/dbus- 4Lf6aHxvqg, guid=a5ec76744e 9723954bcaa3f10 000001e
$ echo $DBUS_SESSION_
unix:abstract=
Also I can see it in netstat: 4Lf6aHxvqg
$ netstat -nap --unix | grep LISTEN | grep dbus | head -n1
unix 2 [ ACC ] STREAM LISTENING 13380 1970/dbus-daemon @/tmp/dbus-
But the problem is, that /tmp/dbus- 4Lf6aHxvqg doesn't exist.
$ ll /tmp/dbus- 4Lf6aHxvqg 4Lf6aHxvqg: No such file or directory
ls: cannot access /tmp/dbus-
$ netstat -nap --unix | grep 4Lf6aHxvqg | wc -l
71
items are connected to this bus socket which doesn't exist.
This could be also the reason of that problem?
Also when debugging dbus-daemon, it gives me this: 1)=[{"l\ 1\0\1\0\ 0\0\0\262\ 35\0\0\ 233\0\0\ 0\1\1o\ 0 \0\0\0/ org/freedesktop /PowerManagemen t\0\0\0\ 0\0\0\0\ 0\6\1s\ 0\37\0\ 0\0org. freedesktop. PowerManagement \0\2\1s\ 0\37\0\ 0\0org. freedesktop. PowerManagement \0\3\1s\ 0\22\0\ 0\0GetPowerSave Status\ 0\0\0\0\ 0\0\0edesktop. DBus',interface ='org.freedeskt op.DBus' ,member= 'NameOwnerChang ed',arg0= 'org.kde. ksmserver' \0\0\1\ 0\1\0\0\ 0\0\312\ 33\0\0t\ 0\0\0\1\ 1o\0\n\ 0\0\0/KSMServer \0\0\0\ 0\0\0\6\ 1s\0\21\ 0\0\0org. kde.ksmserver\ 0\0\0\0\ 0\0\0\2\ 1s\0\32\ 0\0\0org. kde.KSMServerIn terface\ 0\0\0\0\ 0\0\3\1s\ 0\v\0\0\ 0canShutdown\ 0\0\0\0\ 0\0dMatch\ 0\0\0\0\ 0\0\0\0\ 10\1g\0\ 1s\0\0\ 215\0\0\ 0type=' signal' ,sender= 'org.kde. StatusNotifierI tem-2242- 1',path= '/StatusNotifie rItem', interface= 'org.kde. StatusNotifierI tem',member= 'NewStatus' \0\0rlayIcon' \0\0e=' signal' ,sender= 'org.freedeskto p.DBus' ,interface= 'org.freedeskto p.DBus' ,member= 'NameOwnerChang ed',arg0= 'org.kde. ksmserver' \0\0reedesktop. DBus\0\ 0\0\0\3\ 1s\0\10\ 0\0\0AddMatch\ 0\0\0\0\ 0\0\0\0\ 10\1g\0\ 1s\0\0\ 255\0\0\ 0type=' signal' ,sender= 'org.kde. networkmanageme nt',path= '/org/kde/ networkmanageme nt/Activatable/ 1',interface= 'org.kde. networkmanageme nt.Activatable' ,member= 'propertiesChan ged'\0" ..., 2048}], msg_controllen=0, msg_flags= MSG_CMSG_ CLOEXEC} , MSG_CMSG_CLOEXEC) = 176 1)=[{"l\ 4\1\1\0\ 0\0\0\271\ 5\0\0[\ 0\0\0\1\ 1o\0\23\ 0\0\0/StatusNot ifierItem\ 0\0\0\0\ 0\2\1s\ 0\32\0\ 0\0org. kde.StatusNotif ierItem\ 0\0\0\0\ 0\0\3\1s\ 0\n\0\0\ 0NewToolTip\ 0\0\0\0\ 0\0\0\1g\ 0\1s\0\ 0\6\0\0\ 0Active\ 0\0\0\0\ 0\0\10\ 1g\0\2su\ 0!\0\0\ 0org.kde. StatusNotifierI tem-2450- "..., 2048}], msg_controllen=0, msg_flags= MSG_CMSG_ CLOEXEC} , MSG_CMSG_CLOEXEC) = 112
recvmsg(17, {msg_name(0)=NULL, msg_iov(
recvmsg(17, 0x7fffde52f3e0, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=9, events=POLLOUT}], 1, 0) = 0 (Timeout)
..
recvmsg(59, {msg_name(0)=NULL, msg_iov(
recvmsg(59, 0x7fffde52f3e0, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
Or maybe there is some better and cleaner way of diagnosing the problem.
Also how do I use --print-pid option in practical way to print actual PID of processes which are connecting to dbus?
I've the following dbus process, how do I restart it without killing my machine to see standard output.
kenorb 1970 0.0 0.1 30000 5856 ? Ss Sep19 0:07 //bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
When I restart it, my connection is lost, when I kill it, my system is crashing, so I'm not sure how do restart it to see what's on standard output (as it says in manual - 'Print the process ID of the message bus to standard output').