You are not logged in.

#1 2013-11-30 21:52:46

axper
Member
Registered: 2013-01-25
Posts: 115

DBUS connection fails when starting programs as non root

EDIT: Please see https://bbs.archlinux.org/viewtopic.php … 0#p1355510 for updated information.
I think I might have done something stupid.
After changing some major system configuaration (don't remember what) many programs started malfunctioning.

  • in the output of ls -l shows user id instead of username
    Edit: Here's an example output of "ls -la /home":

    drwxr-xr-x  4    0 root  4096 Sep  3 23:28 .
    drwxr-xr-x 18    0 root  4096 Oct 30 23:37 ..
    drwx------  6 1001 skype 4096 Oct 20 16:56 skype
    drwxr-xr-x 46 1000 users 4096 Dec  1 10:39 void
  • when starting libreoffice it fails with the following message:
    The application cannot be started.
    User installation could not be completed.

  • when starting firefox I get this message:
    An error occurred while loading or saving configuration information for firefox. Some of your configuration settings may not work properly.
    When I click details button in that messagebox it says "No D-BUS daemon running" 4 times.

  • etc

Here's output of dmesg after reboot: http://pastebin.com/4wbhU5pW
Please help.

Last edited by axper (2013-12-01 08:48:13)

Offline

#2 2013-11-30 22:14:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: DBUS connection fails when starting programs as non root

Maybe you can just use your backup to make things as they were?

Offline

#3 2013-11-30 22:18:12

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: DBUS connection fails when starting programs as non root

axper wrote:

After changing some major system configuaration (don't remember what).

Try. Retrace your steps. If it helps jog your memory, I suspect that you've merged a number of pacnew files into their namesake files, destroying any changes you have made to the default configuration. 1000 appearing instead of a username suggests that /etc/password was one of the affected files, though the fact that you can still log in rocks the foundation of this theory.

The problems may also be a product of a corrupt filesystem, or a full filesystem, so check df and run a fsck (from a live environment, preferably).


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2013-11-30 22:18:35

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: DBUS connection fails when starting programs as non root

How on earth can you change " some major system configuaration" and "don't remember what"?


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#5 2013-11-30 23:20:33

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: DBUS connection fails when starting programs as non root

WorMzy wrote:
axper wrote:

After changing some major system configuaration (don't remember what).

Try. Retrace your steps. If it helps jog your memory, I suspect that you've merged a number of pacnew files into their namesake files, destroying any changes you have made to the default configuration. 1000 appearing instead of a username suggests that /etc/password was one of the affected files, though the fact that you can still log in rocks the foundation of this theory.

The /etc/group file is another possibility.

Offline

#6 2013-12-01 01:06:44

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: DBUS connection fails when starting programs as non root

If it is the username that is not showing up and instead has the uid, it is going to be the /etc/passwd file.  Though if the group ownership of the files is a gid as well, then I would think that it was /etc/group.

Offline

#7 2013-12-01 07:38:58

axper
Member
Registered: 2013-01-25
Posts: 115

Re: DBUS connection fails when starting programs as non root

  • "updatedb && locate .pacnew" finds nothing - I always merge the changes smile

  • /etc/group and /etc/passwd haven't been modified since september 28. Here's my /etc/group: http://pastebin.com/8k9gjB5v and /etc/passwd: http://pastebin.com/pNnA2fFF

  • "df -h" says:

    /dev/sda1        33G   30G  1.6G  95% /
    dev             1.9G     0  1.9G   0% /dev
    run             1.9G  856K  1.9G   1% /run
    tmpfs           1.9G     0  1.9G   0% /dev/shm
    tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
    tmpfs           1.9G   36K  1.9G   1% /tmp
    /dev/sda2       261G  197G   51G  80% /media/storage

    looks good to me

  • I ran "fsck /dev/sda1" and "fsck /dev/sda2" from a live cd and it didn't report any errors

  • For an example ouput of ls ran as my user, see the edit in the originial post

  • When I create a test user who belongs only to "users" group, for him "ls -l" shows user id as well

  • The interesting part: when I log in as root (or run "sudo ls -l"), ls works correctly - it shows username and not the user id (again for all files). Same for libreoffice and firefox - they work correctly when run as root.

  • EDIT: Ok found more stuff: "sudo systemctl --failed" says:

    UNIT           LOAD   ACTIVE SUB    DESCRIPTION
    polkit.service loaded failed failed Authorization Manager
    upower.service loaded failed failed Daemon for power management

    When trying to manually "systemctl start polkit" it hangs for ~1 minute and after that here's my journalctl -xn:

    -- Logs begin at Sun 2013-12-01 11:20:07 AMT, end at Sun 2013-12-01 12:08:51 AMT. --
    Dec 01 12:07:09 void_hostname_laptop sudo[2631]: pam_unix(sudo:session): session opened for user root by (uid=0)
    Dec 01 12:07:09 void_hostname_laptop systemd[1]: Cannot add dependency job for unit acpid.socket, ignoring: Unit acpid.socket failed to load: No such file or directory.
    Dec 01 12:07:09 void_hostname_laptop systemd[1]: Starting Authorization Manager...
    -- Subject: Unit polkit.service has begun with start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- 
    -- Unit polkit.service has begun starting up.
    Dec 01 12:07:09 void_hostname_laptop polkitd[2634]: Started polkitd version 0.112
    Dec 01 12:08:39 void_hostname_laptop systemd[1]: polkit.service operation timed out. Terminating.
    Dec 01 12:08:39 void_hostname_laptop systemd[1]: Failed to start Authorization Manager.
    -- Subject: Unit polkit.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
    -- 
    -- Unit polkit.service has failed.
    -- 
    -- The result is failed.
    Dec 01 12:08:39 void_hostname_laptop systemd[1]: Unit polkit.service entered failed state.
    Dec 01 12:08:39 void_hostname_laptop sudo[2631]: pam_unix(sudo:session): session closed for user root
    Dec 01 12:08:51 void_hostname_laptop sudo[2707]: void : TTY=pts/3 ; PWD=/home/void ; USER=root ; COMMAND=/usr/bin/journalctl -xn
    Dec 01 12:08:51 void_hostname_laptop sudo[2707]: pam_unix(sudo:session): session opened for user root by (uid=0)

    Also this topic seems to be related: https://bbs.archlinux.org/viewtopic.php?id=163257 however there's no solution found.

  • EDIT2: There seem to be a few thousand threads about the same issue (with different error messages, but I beleive they are all related), but none of them have found any solution.
    https://bbs.archlinux.org/viewtopic.php?id=172446
    https://bugzilla.redhat.com/show_bug.cgi?id=1010572
    https://bbs.archlinux.org/viewtopic.php?id=163257
    https://bbs.archlinux.org/viewtopic.php?pid=957454
    https://bbs.archlinux.org/viewtopic.php?pid=899232
    http://gimper.net/viewtopic.php?t=3185
    http://web.archiveorange.com/archive/v/ … 7Y4yBaoOoC
    https://bbs.archlinux.org/viewtopic.php?id=89000
    http://unix.stackexchange.com/questions … l-specifie
    http://www.raspberrypi.org/phpBB3/viewt … 6&p=461942

I am really out of ideas.

Last edited by axper (2013-12-01 09:26:15)

Offline

#8 2013-12-01 09:19:27

axper
Member
Registered: 2013-01-25
Posts: 115

Re: DBUS connection fails when starting programs as non root

Any last things to try or logs to save before I reinstall?

Offline

Board footer

Powered by FluxBB