LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware64 14.2 Xfce Exit Slooowwww (https://www.linuxquestions.org/questions/slackware-14/slackware64-14-2-xfce-exit-slooowwww-4175587436/)

tronayne 08-19-2016 10:15 AM

Slackware64 14.2 Xfce Exit Slooowwww
 
Using Slackware64 14.2 Xfce.

Going to the Applications Menu and selecting Log Out, it takes roughly three minutes for the pop-up menu to show; also, once selected the window manager seems to stop responding, for example GKrellM freezes after a few seconds when Log Out is selected from the Applications Menu.

I can't see anything that would cause this -- can anybody else?

Richard Cranium 08-19-2016 11:15 AM

Maybe the home filesystem is full and saving the session state takes longer than normal? Or the disk holding the home filesystem is dying, which you might not notice until you save something like the session state in it.

Are you using kdm to log in? ~/.xsession-errors may tell you something in that case.

the3dfxdude 08-19-2016 11:28 AM

Yes, I know a few things on what causes this. The logout issues are caused by the *kits and they do not provide any helpful messages when they fail. But I figured out the obscure ways they run.

Make sure upower is running by running "upower --dump". If it returns "unable to query", it's likely upower can't run due to a runtime loaded dependency

Make sure polkit's binaries has its libraries satisfied "ldd /usr/lib/polkit-1/*"

Generally you'll need js185, libimobiledevice, and usbmuxd, I think.

tronayne 08-19-2016 01:36 PM

Nope, the /home directory is not full (and I checked the existing file systems) it's about 26% used.

upower --dump produces interesting error messages:
Code:

upower --dump

(upower:2225): libupower-glib-WARNING **: Couldn't enumerate devices: Message recipient disconnected from message bus without replying

(upower:2225): UPower-WARNING **: failed to enumerate: Message recipient disconnected from message bus without replying

Power management is on.

The list you provided
Code:

polkit appears to be there (it's a long list of stuff)
js185 appears to be there

locate js185
/var/log/scripts/js185-1.0.0-x86_64-1
/var/log/packages/js185-1.0.0-x86_64-1
/usr/doc/js185-1.0.0
/usr/doc/js185-1.0.0/README
/usr/doc/js185-1.0.0/README.html
/usr/lib64/libmozjs185.so.1.0.0
/usr/lib64/libmozjs185.so
/usr/lib64/libmozjs185.so.1.0
/usr/lib64/pkgconfig/mozjs185.pc

locate libimobiledevice produces a long list of stuff

locate usbmuxd produces a long list of stuff

And, I have no clue what to do about the upower messages.

This is a full install of Slackware 64 14.2 (the root partition is formatted when I install Slackware, other partitions are not formatted, simply added to /etc/fstab).

Tiz a puzzlement.

Oops, forgot, I'm logged in as root so there is no problems with the /home (or any other) directory. The freezing up problem exists with logging out root and with logging out users.

the3dfxdude 08-19-2016 01:51 PM

Maybe upowerd is not started. Can you try running: /usr/libexec/upowerd

You have stated that you did a full install, but can you still please check ldd on these binaries?

Diantre 08-19-2016 02:03 PM

FWIW, upower should return something like this:

Code:

# upower --dump
Daemon:
  daemon-version:  0.9.23
  can-suspend:    yes
  can-hibernate:  yes
  on-battery:      no
  on-low-battery:  no
  lid-is-closed:  no
  lid-is-present:  no
  is-docked:      no


tronayne 08-20-2016 08:01 AM

Quote:

Originally Posted by the3dfxdude (Post 5593206)
Maybe upowerd is not started. Can you try running: /usr/libexec/upowerd

You have stated that you did a full install, but can you still please check ldd on these binaries?

OK:
Code:

ldd /usr/lib/polkit-1/* | pg
/usr/lib/polkit-1/polkit-agent-helper-1:
        linux-vdso.so.1 (0x00007ffff7bde000)
        libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fc7b4faa000)
        libpolkit-gobject-1.so.0 => /usr/lib64/../lib64/libpolkit-gobject-1.so.0 (0x00007fc7b4d8d000)
        libgobject-2.0.so.0 => /usr/lib64/../lib64/libgobject-2.0.so.0 (0x00007fc7b4b3c000)
        libglib-2.0.so.0 => /usr/lib64/../lib64/libglib-2.0.so.0 (0x00007fc7b4806000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc7b45e8000)
        libc.so.6 => /lib64/libc.so.6 (0x00007fc7b421f000)
        libgio-2.0.so.0 => /usr/lib64/../lib64/libgio-2.0.so.0 (0x00007fc7b3ea3000)
        libgmodule-2.0.so.0 => /usr/lib64/../lib64/libgmodule-2.0.so.0 (0x00007fc7b3c9f000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007fc7b3a9b000)
        libz.so.1 => /usr/lib64/../lib64/libz.so.1 (0x00007fc7b3886000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fc7b366a000)
        libffi.so.6 => /usr/lib64/../lib64/libffi.so.6 (0x00007fc7b3462000)
        /lib64/ld-linux-x86-64.so.2 (0x0000564b3d7e2000)
/usr/lib/polkit-1/polkitd:
        linux-vdso.so.1 (0x00007ffe6b1d2000)
        libpolkit-gobject-1.so.0 => /usr/lib64/../lib64/libpolkit-gobject-1.so.0 (0x00007f72987a0000)
        libgio-2.0.so.0 => /usr/lib64/../lib64/libgio-2.0.so.0 (0x00007f7298423000)
        libgobject-2.0.so.0 => /usr/lib64/../lib64/libgobject-2.0.so.0 (0x00007f72981d2000)
        libglib-2.0.so.0 => /usr/lib64/../lib64/libglib-2.0.so.0 (0x00007f7297e9c000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f7297c46000)
        libexpat.so.1 => /usr/lib64/../lib64/libexpat.so.1 (0x00007f7297a1d000)
        libmozjs185.so.1.0 => /usr/lib64/../lib64/libmozjs185.so.1.0 (0x00007f729752b000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f7297161000)
        libgmodule-2.0.so.0 => /usr/lib64/../lib64/libgmodule-2.0.so.0 (0x00007f7296f5e000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f7296d5a000)
        libz.so.1 => /usr/lib64/../lib64/libz.so.1 (0x00007f7296b44000)
        libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f7296929000)
        libffi.so.6 => /usr/lib64/../lib64/libffi.so.6 (0x00007f7296721000)
        /lib64/ld-linux-x86-64.so.2 (0x000055d912071000)
        libplds4.so => /usr/lib64/../lib64/libplds4.so (0x00007f729651c000)
        libplc4.so => /usr/lib64/../lib64/libplc4.so (0x00007f7296317000)
        libnspr4.so => /usr/lib64/../lib64/libnspr4.so (0x00007f72960d9000)
        libstdc++.so.6 => /usr/lib64/../lib64/libstdc++.so.6 (0x00007f7295d5e000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f7295a55000)
        libgcc_s.so.1 => /usr/lib64/../lib64/libgcc_s.so.1 (0x00007f729583e000)
        librt.so.1 => /lib64/librt.so.1 (0x00007f7295635000)
(EOF):

Seems like (as far as I can see).

And the daemon:
Code:

pita-root-/root: /usr/libexec/upowerd

(upowerd:30183): UPower-ERROR **: failed to get pokit authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1
Trace/BPT trap

Holy toot. I have no clue.

the3dfxdude 08-20-2016 08:42 AM

Bah, a spidery mess. Ok, can you check if polkitd is running now? If it is not, can you run it?

/usr/lib64/polkit-1/polkitd

If it's not that, and it is running ok, then the only thing left I see on my XFCE is

/usr/libexec/polkit-gnome-authentication-agent-1

Check that out too, but make sure polkitd is running first.

tronayne 08-20-2016 10:10 AM

Gosh, this is getting to be fun.
Code:

/usr/lib/polkit-1/polkitd
Error switcing to user polkitd: Error calling getpwnam(): Success
Exiting with code 1

So, no it's not running. Also, it's not in /usr/lib64, it's in /usr/lib (at least on the laptop as well as on a stable 14.1 desktop).

I'm wondering about the error message "switching the user polkitd." Is there supposed to be a user polkitd somewhere or other? I mean, why the heck would it be calling getpwnam in the first place?

I'm also wondering about
Code:

pita-root-/var/log/packages: ls *polkit*
polkit-0.113-x86_64-2
polkit-gnome-0.105-x86_64-1
polkit-kde-agent-1-9d74ae3_20120104git-x86_64-2
polkit-kde-kcmodules-1-001bdf7_20120111git-x86_64-2
polkit-qt-1-0.103.0-x86_64-1

And if one of those is screwed up or missing some dependency.

This is getting just a little weird.

Gerard Lally 08-20-2016 11:17 AM

Quote:

Originally Posted by tronayne (Post 5593549)
Gosh, this is getting to be fun.

Perhaps this is not a *kit issue at all, but rather DNS- or NFS-related. Or something to do with your iptables rules.

Richard Cranium 08-20-2016 11:26 AM

Quote:

Originally Posted by tronayne (Post 5593549)
Gosh, this is getting to be fun.
Code:

/usr/lib/polkit-1/polkitd
Error switcing to user polkitd: Error calling getpwnam(): Success
Exiting with code 1

So, no it's not running. Also, it's not in /usr/lib64, it's in /usr/lib (at least on the laptop as well as on a stable 14.1 desktop).

I'm wondering about the error message "switching the user polkitd." Is there supposed to be a user polkitd somewhere or other? I mean, why the heck would it be calling getpwnam in the first place?

I'm also wondering about
Code:

pita-root-/var/log/packages: ls *polkit*
polkit-0.113-x86_64-2
polkit-gnome-0.105-x86_64-1
polkit-kde-agent-1-9d74ae3_20120104git-x86_64-2
polkit-kde-kcmodules-1-001bdf7_20120111git-x86_64-2
polkit-qt-1-0.103.0-x86_64-1

And if one of those is screwed up or missing some dependency.

This is getting just a little weird.

Yes, there should be.

Code:

$ grep polkitd /etc/passwd
polkitd:x:87:87:PolicyKit daemon owner:/var/lib/polkit:/bin/false

$ grep polkitd /etc/group
polkitd:x:87:


tronayne 08-20-2016 11:36 AM

Quote:

Originally Posted by gezley (Post 5593563)
Perhaps this is not a *kit issue at all, but rather DNS- or NFS-related. Or something to do with your iptables rules.

Probably not -- DNS is not running, nor is NFS or iptables. I use fixed-IP for all systems with /etc/resolv.conf and /etc/hosts. I have HughsNet satellite service and use their DNS servers (that, I believe, are on the satellites). Only thing available around here and you can't get to my servers from the outside world -- Hughes doesn't want anybody running a web page on their services and you just can't get from there to here.

Plus, the next post may just have the answer.

Thanks for the thought.

the3dfxdude 08-20-2016 12:06 PM

I jumped the gun a little bit on the polkitd path since I saw you were on a 64-bit system. No big deal.

So I think the message above really just means we're launching it incorrectly, so we need to go at this a different angle. So I double checked how polkit is launched from XFCE, and its /usr/libexec/polkit-gnome-authentication-agent-1. Please try running that at the command line.

Also please check ~/.xsession-errors or the tty you launched startx from like mentioned earlier. We might need to check for messages on the xfce session or console kit...

tronayne 08-20-2016 12:56 PM

Quote:

Originally Posted by Richard Cranium (Post 5593566)
Yes, there should be.

Code:

$ grep polkitd /etc/passwd
polkitd:x:87:87:PolicyKit daemon owner:/var/lib/polkit:/bin/false

$ grep polkitd /etc/group
polkitd:x:87:


Yup, that was the problem, no polkitd in /etc/passwd. Put the entry in /etc/passwd, /etc/group and /etc/shadow (yeah I know you're not supposed to do that but I triple-checked it).

And, I know why it was not there (because it wasn't there in Slackware 14.1).

And, it's my own damned fault.

Thank you all for your input and taking the time and trouble to do so, every bit certainly helped.

What I do when a new release comes is copy /etc to a general-purpose partition I have named, for no really good reason I can remember, /spares. This has worked through I don't know how many Slackware releases, so I boot the DVD, run setup and let the root partition get formatted but do not format any of the others, including /opt, /usr/local, /spares, /var/lib/virtual, /var/lib/mysql, /var/lib/postpgl and a couple others.

That way, hundreds of gigabytes of files, add-on software, and whatever else does not get blown away (and I don't have burn DVDs or copy to another server and all that). I just leave 'em in place and add the partitions to /etc/fstab. I can get away with that because all my systems are mapped the same even though there is different stuff on different systems -- two data base servers, on MariaDB/MySQL and the other PostgreSQL.

The Slackware distribution installs everything in the root partition; used to be some things got put in /opt but not any more. The whole thing in one partition and it's about 8.1 G.

So, back to the copy of /etc in /spares (here's where I burnt my own fingers): I simply copy /etc/passwd, /etc/group and /etc/shadow from /spares/etc in /etc.

That has worked wonderfully for years and I've gotten lazy and don't check to see if there are any changes in /etc/passwd. From 14.1 to 14.2 polkitd was added and that was exactly why the problems I created happened.

I'm pretty sure that there is somewhere in the documentation a note about polkikd in the passwd file. Did I read any of the doc? Why, no, I did not because I've always done it this way and it's always worked just fine (it takes about 20 minutes from boot to functional system the way I've been doing it for, like, years).

From now on it's going to be diff passwd, group and shadow before just blindly copying and, oh, yeah, RTFM stupid,

Thank you

Richard Cranium 08-20-2016 02:04 PM

You shouldn't think you're the only one who has done that to themselves. :D


All times are GMT -5. The time now is 06:38 PM.