You are not logged in.

#1 2019-10-14 20:48:33

Az53
Member
Registered: 2019-10-14
Posts: 6

Vym and dbus server error

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

#2 2019-10-14 21:56:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Vym and dbus server error

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

#3 2019-10-14 23:12:11

Az53
Member
Registered: 2019-10-14
Posts: 6

Re: Vym and dbus server error

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

#4 2019-10-14 23:54:38

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: Vym and dbus server error

What is the output of

printenv DBUS_SESSION_BUS_ADDRESS

Offline

#5 2019-10-15 06:49:24

Az53
Member
Registered: 2019-10-14
Posts: 6

Re: Vym and dbus server error

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

#6 2019-10-15 13:09:06

Az53
Member
Registered: 2019-10-14
Posts: 6

Re: Vym and dbus server error

UPD2:
when I run:
dbus-run-session vym
The programm starts

Last edited by Az53 (2019-10-15 13:11:49)

Offline

#7 2019-10-15 13:53:42

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: Vym and dbus server error

Broken session?  If you login at the console is DBUS_SESSION_BUS_ADDRESS set in that session?

Offline

#8 2019-10-15 16:26:21

Az53
Member
Registered: 2019-10-14
Posts: 6

Re: Vym and dbus server error

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

#9 2019-10-15 16:33:52

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: Vym and dbus server error

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

#10 2019-10-15 16:45:48

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: Vym and dbus server error

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

#11 2019-10-15 17:23:58

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: Vym and dbus server error

Also the output of

file /run/user/$UID/bus

Offline

#12 2019-10-22 21:13:33

Az53
Member
Registered: 2019-10-14
Posts: 6

Re: Vym and dbus server error

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

#13 2019-10-22 21:54:21

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: Vym and dbus server error

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

Board footer

Powered by FluxBB