You are not logged in.
Pages: 1
Hi everyone!
I faced a problem, that I'm not able to solve.
My problem is that program 'vym' from community repository is not starting. When I call it from command line it tells me:
'Not connected to Dbus server'
But 'systemctl status dbus.service' tells me that dbus is running and working correctly.
The system is up to date. I also reinstalled vym, qt5-tools and dbus, but it doesn't solved the problem.
Strace attached below.
Any ideas how to fix this?
P.S.
I also have a Manjaro system on the other machine and vym is working there fine. So, I guess it's not the vym's missbehaviour
strace: https://pastebin.com/6z4NdWXP
Offline
How do you start X? Please post the relevant configs/start-up files for X (e.g., xinitrc for startx/xinit).
Last edited by Trilby (2019-10-14 21:57:15)
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Well... my guess is that I'm starting X with lxdm.service in systemd. So, I'm not using some special startup files for X.
so, the contents of my lxdm.service is:
[Unit]
Description=LXDE Display Manager
Conflicts=getty@tty1.service plymouth-quit.service
After=systemd-user-sessions.service getty@tty1.service plymouth-quit.service
[Service]
ExecStart=/usr/sbin/lxdm
Restart=always
IgnoreSIGPIPE=no
[Install]
Alias=display-manager.service
and /etc/lxdm.conf contains:
[base]
## greeter used to welcome the user
greeter=/usr/lib/lxdm/lxdm-greeter-gtk
[server]
## arg used to start xserver, not fully function
arg=/usr/bin/X -background vt1
[display]
## gtk theme used by greeter
gtk_theme=Adwaita
## if show bottom pane
bottom_pane=1
## if show language select control
lang=1
## if show keyboard layout select control
keyboard=0
## the theme of greeter
theme=Industrial
[input]
[userlist]
## if disable the user list control at greeter
disable=0
## whitelist user
white=
## blacklist user
black=
If I'm wrong. please warn me, I think that systemd calls lxdm and it in turn calls startx
The DE is Openbox.
Last edited by Az53 (2019-10-15 10:38:48)
Offline
What is the output of
printenv DBUS_SESSION_BUS_ADDRESS
Offline
This command exits with nothing. So this variable is not defined in my system
UPD:
I also tried to set it manualy. To do this I found lxdm-session pid and looked into /proc/$lxdmpid/environ. I found that it does not contain any DBUS_SESSION_BUS_ADDRESS variables. It's logically fine though...
Last edited by Az53 (2019-10-15 08:38:54)
Offline
UPD2:
when I run:
dbus-run-session vym
The programm starts
Last edited by Az53 (2019-10-15 13:11:49)
Offline
Broken session? If you login at the console is DBUS_SESSION_BUS_ADDRESS set in that session?
Offline
No, from console the same thing - nothing, variable is not set. And it seems that it is not Broken session.
BUT!
I found interesting bug-thread at github.... How I love systemd developers)
In short, systemd dbus unit doesn't export DBUS_SESSION_BUS_ADDRESS var anymore because it is not right and other applications don't need it.
https://github.com/systemd/systemd/issues/1600
SO the problem now looks like: how to modify systemd dbus unit to export this variable?
I read the thread and solution suggested there doesn't helped me - the result was dbus didn't started when I modified dbus.socket file.
Offline
The commit that removed exporting DBUS_SESSION_BUS_ADDRESS was reverted.
On this system DBUS_SESSION_BUS_ADDRESS is set correctly.
Last edited by loqs (2019-10-15 16:34:17)
Offline
You are refering to an outdated discussion whose resolution has already been implemented properly
systemctl --user cat dbus.socket
# /usr/lib/systemd/user/dbus.socket
[Unit]
Description=D-Bus User Message Bus Socket
[Socket]
ListenStream=%t/bus
ExecStartPost=-/usr/bin/systemctl --user set-environment DBUS_SESSION_BUS_ADDRESS=unix:path=%t/bus
The question is why is this not executed in your case. FWIW post
systemctl --user status dbus
are you unsetting that anywhere? Maybe post your openbox startup files. I'd say grep through your home dir and or lxdm set up files on whether you have something configured here.
In doubt maybe rule out lxdm, and try a proper configured startx
Online
Also the output of
file /run/user/$UID/bus
Offline
Sorry for not answering for a long time - I was away from my PC!
***********
systemctl --user status dbus
resulst with
Failed to connect to bus: No such file or directory
***********
file /run/user/$UID/bus
results with
/run/user/1000/bus: cannot open `/run/user/1000/bus' (No such file or directory)
I have no openbox startup files at all
And I have no xinitrc in my home directory.
So... how can I roule out lxdm? (nube question, I khow... but I really don't understand)
Last edited by Az53 (2019-10-22 21:32:51)
Offline
If you log in as root can you access the journal? If not boot installation media, chroot in and post the journal for a boot of the installed system.
Offline
Pages: 1