You are not logged in.

#26 2021-10-12 22:23:12

p-scvtvlatvs
Member
Registered: 2021-10-11
Posts: 26

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

seth wrote:

You can probably plaster over the the original problem by "export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus" in your zprofile before the startx segment, but that will just hide the problem and I'm running out of ideas why it might not be set.

Is /run/user/1000/bus a directory?

Offline

#27 2021-10-12 22:24:37

seth
Member
Registered: 2012-09-03
Posts: 23,866

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

socket (in /run/user/1000/ - 1000 is your likely UID)

Offline

#28 2021-10-12 22:25:38

p-scvtvlatvs
Member
Registered: 2021-10-11
Posts: 26

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

seth wrote:

socket (in /run/user/1000/ - 1000 is your likely UID)

Should we start a new Post?  I would really like to pinpoint what is happening...

Last edited by p-scvtvlatvs (2021-10-12 22:28:08)

Offline

#29 2021-10-12 22:31:12

seth
Member
Registered: 2012-09-03
Posts: 23,866

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

Why? It's still the original problem.
I assume that exporting the variable before starting X11 (and gnome) will prevent gnome-session from dbus-launching itself what should give you a clean session and make the original issue go away. We just didn't figure the underlying cause.

Offline

#30 2021-10-12 22:44:54

p-scvtvlatvs
Member
Registered: 2021-10-11
Posts: 26

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

Ok, I've just logout and login with my Zsh and here's the following output:

echo $DBUS_SESSION_BUS_ADDRESS
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-I5eaKRNqVq,guid=8798ef72fb4332c2c0aa969561660e7c

And here's loginctl session-status update:

    https://termbin.com/cscw

How should I proceed?

Last edited by p-scvtvlatvs (2021-10-12 23:01:19)

Offline

#31 2021-10-13 00:06:49

loqs
Member
Registered: 2014-03-06
Posts: 13,940

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

Do any of that users startup files use dbus-launch or export DBUS_SESSION_BUS_ADDRESS?
If you create a new user,  log into the new user from a terminal does the new users environment have

DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/something,guid=somethingelse

or is it

unix:path=/run/user/$UID/bus

Offline

#32 2021-10-13 17:40:16

p-scvtvlatvs
Member
Registered: 2021-10-11
Posts: 26

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

None of the user startup files use dbus-launch nor exports DBUS_SESSION_BUS_ADDRESS.

The user has the following:

loqs wrote:

DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/something,guid=somethingelse

Offline

#33 2021-10-13 21:37:30

seth
Member
Registered: 2012-09-03
Posts: 23,866

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

Is this from a console login or also gnome?

ls /etc/skel
loginctl session-status # for the new user

Offline

#34 2021-10-13 22:59:16

p-scvtvlatvs
Member
Registered: 2021-10-11
Posts: 26

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

ls /etc/skel

    https://termbin.com/xmom


loginctl session-status

    https://termbin.com/dzru

Offline

#35 2021-10-14 06:29:42

seth
Member
Registered: 2012-09-03
Posts: 23,866

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

Paste all the files in /etc/skel - where do they come from?
(Don't say you don't remember, you're "relatively new to Arch" - everyone's meanwhile secretly well aware that this is either a derivate or you used some crap script or followed a shitty youtube tutorial. Knowing the broken source will give us at least a chance to tell you what is broken about it before the thread gets binnded)

You're running a GUI session w/ the user "servus" - don't.
We want to figure the state of the system *before* gnome dbus-launches itself (though I expect in that case $DBUS_SESSION_BUS_ADDRESS will likewise not be set)

Offline

#36 2021-10-14 14:29:46

p-scvtvlatvs
Member
Registered: 2021-10-11
Posts: 26

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

Here are all the /etc/skel file content(s):

.bashrc
https://termbin.com/pikr

.bash_profile
https://termbin.com/yzfh

.bash_logout
https://termbin.com/167iu


I was using Zsh by the way and here's the updated loginctl session-status:

https://termbin.com/foji


I changed the SHELL to /bin/bash and here's the output of:

loginctl session-status

https://termbin.com/emmf

Last edited by p-scvtvlatvs (2021-10-14 14:56:22)

Offline

#37 2021-10-14 14:31:49

p-scvtvlatvs
Member
Registered: 2021-10-11
Posts: 26

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

If I do

env | grep DBUS

nothing is returned, just like you just said.

Last edited by p-scvtvlatvs (2021-10-14 14:54:42)

Offline

#38 2021-10-14 15:45:32

seth
Member
Registered: 2012-09-03
Posts: 23,866

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

So there's nothing special in those files, but you haven't explained how they ended up being there.
There's something severely broken about the login process and we need to know how you installed the system in order to get a remote chance to figure what it is.

Sanity check

grep -r systemd /usr/lib/pam.d

Offline

#39 2021-10-14 15:49:21

p-scvtvlatvs
Member
Registered: 2021-10-11
Posts: 26

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

I installed Arch following the Installation Guide:

https://wiki.archlinux.org/title/Installation_guide


The sanity check:

https://termbin.com/bc9c

Offline

#40 2021-10-14 15:57:08

seth
Member
Registered: 2012-09-03
Posts: 23,866

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

Ok, sorry  - the skel's are actually in bash (since 11 years) - I'll have to pay closer attention to my next bash update on why they're not extracted here… (not in NoExtract)

The pam config looks ok.
Again: you can probably plaster over the problm by exporting the proper DBUS_SESSION_BUS_ADDRESS before starting gnome, but I've really no idea why pam_systemd doesn't set them…

Have you ever posted a complete system journal (sudo journalctl -b) in this thread?

Offline

#41 2021-10-14 15:59:38

p-scvtvlatvs
Member
Registered: 2021-10-11
Posts: 26

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

seth wrote:

Have you ever posted a complete system journal (sudo journalctl -b) in this thread?

No, I haven't...  here it goes:

https://termbin.com/thcuf

Offline

#42 2021-10-14 16:11:16

seth
Member
Registered: 2012-09-03
Posts: 23,866

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

That's a session log, "sudo" is important here.

Offline

#43 2021-10-14 16:16:51

p-scvtvlatvs
Member
Registered: 2021-10-11
Posts: 26

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

seth wrote:

That's a session log, "sudo" is important here.

Got it, here you go:

https://termbin.com/ocpm

Offline

#44 2021-10-14 20:13:04

seth
Member
Registered: 2012-09-03
Posts: 23,866

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

It sure looks like systemd-logind is used, gnome whines around

Oct 12 21:07:25 hydrivm gnome-session[391]: gnome-session-binary[391]: WARNING: Failed to upload environment to systemd: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Oct 12 21:07:25 hydrivm gnome-session-binary[391]: WARNING: Failed to upload environment to systemd: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Oct 12 21:07:25 hydrivm gnome-session[391]: gnome-session-binary[391]: WARNING: Failed to reset failed state of units: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Oct 12 21:07:25 hydrivm gnome-session-binary[391]: WARNING: Failed to reset failed state of units: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Oct 12 21:07:25 hydrivm gnome-session[391]: gnome-session-binary[391]: WARNING: Falling back to non-systemd startup procedure due to error: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Oct 12 21:07:25 hydrivm gnome-session-binary[391]: WARNING: Falling back to non-systemd startup procedure due to error: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Oct 12 21:07:25 hydrivm gnome-session[391]: gnome-session-binary[391]: WARNING: Could not get session id for session. Check that logind is properly installed and pam_systemd is getting used at login.
Oct 12 21:07:25 hydrivm gnome-session-binary[391]: WARNING: Could not get session id for session. Check that logind is properly installed and pam_systemd is getting used at login.

because it's using the wrong™ dbus socket…

Do you unset the environment? Your shell scripts all have /bin/env for a shebang. Why and is there maybe somewhere some "env -i"?

grep -r DBUS_SESSION_BUS_ADDRESS ~ /etc

Offline

#45 2021-10-14 21:04:34

p-scvtvlatvs
Member
Registered: 2021-10-11
Posts: 26

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

seth wrote:

It sure looks like systemd-logind is used, gnome whines around
Do you unset the environment? Your shell scripts all have /bin/env for a shebang. Why and is there maybe somewhere some "env -i"?

No, I don't use "env -i".  I just use

#!/usr/bin/env /usr/bin/zsh

I remember I was studying from an LPI certification book and it recommended the use of env, but I'm not sure why...

Here's grep -r DBUS_SESSION_BUS_ADDRESS ~ /etc output:

    https://termbin.com/yo4z

Last edited by p-scvtvlatvs (2021-10-14 21:06:37)

Offline

#46 2021-10-14 21:12:29

seth
Member
Registered: 2012-09-03
Posts: 23,866

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

Let's see /home/servus/.xdg/runtime/nvim/bundle/vimtex/doc/vimtex.txt, /home/servus/.xdg/config/zsh/.zshrc and /home/servus/.xdg/config/zsh/.zshrc.zni

Offline

#47 2021-10-14 21:25:57

p-scvtvlatvs
Member
Registered: 2021-10-11
Posts: 26

Re: dbus-daemon: Failed to activate service 'org.freedesktop.secrets'

~/.xdg/runtime/nvim/bundle/vimtex/doc/vimtex.txt:
https://termbin.com/fyfg

~/.xdg/config/zsh/.zshrc
https://termbin.com/azkj

~/.xdg/config/zsh/.zshrc.zni
https://termbin.com/6qg4

Last edited by p-scvtvlatvs (2021-10-15 18:25:50)

Offline

Board footer

Powered by FluxBB