LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-19-2016, 10:15 AM   #1
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
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?
 
Old 08-19-2016, 11:15 AM   #2
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
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.
 
Old 08-19-2016, 11:28 AM   #3
the3dfxdude
Member
 
Registered: May 2007
Posts: 730

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
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.
 
1 members found this post helpful.
Old 08-19-2016, 01:36 PM   #4
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Original Poster
Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
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.

Last edited by tronayne; 08-19-2016 at 01:39 PM.
 
Old 08-19-2016, 01:51 PM   #5
the3dfxdude
Member
 
Registered: May 2007
Posts: 730

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
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?
 
1 members found this post helpful.
Old 08-19-2016, 02:03 PM   #6
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
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
 
1 members found this post helpful.
Old 08-20-2016, 08:01 AM   #7
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Original Poster
Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Quote:
Originally Posted by the3dfxdude View Post
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.
 
Old 08-20-2016, 08:42 AM   #8
the3dfxdude
Member
 
Registered: May 2007
Posts: 730

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
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.
 
1 members found this post helpful.
Old 08-20-2016, 10:10 AM   #9
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Original Poster
Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
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.
 
Old 08-20-2016, 11:17 AM   #10
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Leinster, IE
Distribution: Slackware, NetBSD
Posts: 2,177

Rep: Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761Reputation: 1761
Quote:
Originally Posted by tronayne View Post
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.
 
Old 08-20-2016, 11:26 AM   #11
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by tronayne View Post
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:
 
1 members found this post helpful.
Old 08-20-2016, 11:36 AM   #12
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Original Poster
Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Quote:
Originally Posted by gezley View Post
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.
 
Old 08-20-2016, 12:06 PM   #13
the3dfxdude
Member
 
Registered: May 2007
Posts: 730

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
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...
 
Old 08-20-2016, 12:56 PM   #14
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Original Poster
Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Quote:
Originally Posted by Richard Cranium View Post
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
 
1 members found this post helpful.
Old 08-20-2016, 02:04 PM   #15
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware64 14.2 / Xfce / PulseAudio dimm0k Slackware 7 08-11-2016 12:13 PM
XFCE icons missing in Slackware64-14.1 chicken76 Slackware 6 09-06-2015 05:55 AM
[SOLVED] Slackware64 13.37 with XFCE 4.8... can't start GIMP kikinovak Slackware 1 08-11-2012 06:18 PM
fglrx 11.11 + XFCE 4.8 + Slackware64 13.37 can not resume mlpa Slackware 3 11-28-2011 10:10 AM
KPPP Dies Exit Status 16 with Nortel/Verizon USB760 Slackware64 13.1 tronayne Slackware 3 09-27-2010 07:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration