Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
consolekit does not set login-session-id = ''
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1404

PostPosted: Tue Nov 29, 2011 5:54 am    Post subject: consolekit does not set login-session-id = '' Reply with quote

launching a session from kdm and xterm neither set login:
Code:
 ck-list-sessions
Session1:
        unix-user = '1001'
        realname = '(null)'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2011-11-29T05:33:32.546485Z'
        login-session-id = ''
Session2:
        unix-user = '1001'
        realname = '(null)'
        seat = 'Seat2'
        session-type = ''
        active = FALSE
        x11-display = ':0.0'
        x11-display-device = '/dev/tty7'
        display-device = '/dev/pts/1'
        remote-host-name = ''
        is-local = FALSE
        on-since = '2011-11-29T05:53:54.067439Z'
        login-session-id = ''

Code:
grep -e 'CONFIG_AUDITSYSCALL' -e 'CONFIG_USB_SUSPEND' -e 'CONFIG_IDE ' /usr/src/linux/.config
CONFIG_AUDITSYSCALL=y
# CONFIG_IDE is not set
CONFIG_USB_SUSPEND=y

did a
Code:
emerge -1 dev-libs/dbus-glib

Followed instructions here

EDIT: More debugging info:
Code:
console-kit-daemon[22771]: DEBUG: Running programs in /usr/lib/ConsoleKit/run-seat.d for action seat_added
console-kit-daemon[22771]: DEBUG: Allocated ChildData 0x9a223e0
console-kit-daemon[22771]: DEBUG: Waiting for child with pid 22834
missing action

console-kit-daemon[22771]: DEBUG: In _child_watch for pid 22834
console-kit-daemon[22771]: DEBUG: Done waiting for child with pid 22834
console-kit-daemon[22771]: DEBUG: Freeing ChildData 0x9a223e0
console-kit-daemon[22771]: DEBUG: Emitting seat-added: /org/freedesktop/ConsoleKit/Seat1
console-kit-daemon[22771]: DEBUG: Writing log for event: 1322547725.229 type=SEAT_ADDED : seat-id='Seat1' seat-kind=0
console-kit-daemon[22771]: WARNING: Failed to acquire org.freedesktop.ConsoleKit
console-kit-daemon[22771]: WARNING: Could not acquire name; bailing out

_________________
Donate to Gentoo


Last edited by turtles on Fri Dec 02, 2011 10:27 pm; edited 1 time in total
Back to top
View user's profile Send private message
GES
Tux's lil' helper
Tux's lil' helper


Joined: 12 Jun 2005
Posts: 108
Location: Budapest, Hungary

PostPosted: Tue Nov 29, 2011 4:23 pm    Post subject: Reply with quote

?
Code:
# zgrep -E 'AUDITSYSCALL|PM_RUNTIME|USB_SUSPEND' /proc/config.gz
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1404

PostPosted: Tue Nov 29, 2011 5:12 pm    Post subject: Reply with quote

Code:
 zgrep -E 'AUDITSYSCALL|PM_RUNTIME|USB_SUSPEND' /proc/config.gz
CONFIG_AUDITSYSCALL=y
CONFIG_PM_RUNTIME=y
CONFIG_USB_SUSPEND=y


kdm.log is quite full of these:
Code:
ERROR: Running KSycoca failed.
klauncher(14271) kdemain: No DBUS session-bus found. Check if you have started t
he DBUS server.
kdeinit4: Communication error with launcher. Exiting!
kdmgreet(13855)/kdecore (K*TimeZone*): KSystemTimeZones: ktimezoned initialize()
 D-Bus call failed:  "Not connected to D-Bus server"

klauncher(20127) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
kdeinit4: Communication error with launcher. Exiting!
kdmgreet(20118)/kdecore (K*TimeZone*): KSystemTimeZones: ktimezoned initialize() D-Bus call failed:  "Not connected to D-Bus server"

like perhaps 1000 lines.
Code:
/etc/init.d/dbus status
 * status: started
 ps -C dbus-launch -o pid=
 3293


The guide and bug 365479indicates that mixing net-libs/glib-networking and KDE can not be installed on the same system.
However there appears to not be a blocker so I assume the bug is resolved.
What can I do to get kdeinit to give up after a few tries instead of soft locking my system?
Is there a alternative to the it JustWorks(tm) method perhaps somehow I can manually set up a link from dbus to the window manager?
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1404

PostPosted: Wed Nov 30, 2011 12:20 am    Post subject: Reply with quote

Is there any way to manually set
Code:
login-session-id = ''
?
Still cant figure out what is wrong here.
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6194

PostPosted: Wed Nov 30, 2011 3:51 am    Post subject: Reply with quote

It seems dbus session bus isn't started (cause I kinda doubt reading /proc/self/sessionid could fail).
(well, it's not exactly what ck-list-session does there, but close enough)
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1404

PostPosted: Wed Nov 30, 2011 4:20 am    Post subject: Reply with quote

Thanks for your thoughts.
Code:
/etc/init.d/dbus status
 * status: started
 ps -C dbus-launch -o pid=
 3293

Is there a manual way to probe dbus?

Code:
 dbus-launch
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-XnwP0fp1Ul,guid=ab5178d70098361d363de776000036c5
DBUS_SESSION_BUS_PID=6706
DBUS_SESSION_BUS_WINDOWID=27262977


Code:

# ck-list-sessions
Session3:
        unix-user = '1001'
        realname = '(null)'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2011-11-30T00:12:57.967378Z'
        login-session-id = ''

There are other probably other configurations in the system that are preventing them from talking that the devs did not anticipate like pam_mount, there are tons of use flags like webkit and libproxy in incompatible bits of different DE's as well not to mention all the encryption stuff.
There should have been a parallel path for users to keep hal.

Code:
 /usr/libexec/polkitd start
Entering main event loop
Connected to the system bus
Registering null backend at priority -10
** (polkitd:7440): DEBUG: Added `/var/lib/polkit-1/localauthority/10-vendor.d' a
s a local authorization store
** (polkitd:7440): DEBUG: Added `/etc/polkit-1/localauthority/10-vendor.d' as a
local authorization store
** (polkitd:7440): DEBUG: Added `/var/lib/polkit-1/localauthority/20-org.d' as a
 local authorization store
** (polkitd:7440): DEBUG: Added `/etc/polkit-1/localauthority/20-org.d' as a loc
al authorization store
** (polkitd:7440): DEBUG: Added `/var/lib/polkit-1/localauthority/30-site.d' as
a local authorization store
** (polkitd:7440): DEBUG: Added `/etc/polkit-1/localauthority/30-site.d' as a lo
cal authorization store
** (polkitd:7440): DEBUG: Added `/var/lib/polkit-1/localauthority/50-local.d' as
 a local authorization store
** (polkitd:7440): DEBUG: Added `/etc/polkit-1/localauthority/50-local.d' as a l
ocal authorization store
** (polkitd:7440): DEBUG: Added `/var/lib/polkit-1/localauthority/90-mandatory.d
' as a local authorization store
** (polkitd:7440): DEBUG: Added `/etc/polkit-1/localauthority/90-mandatory.d' as
 a local authorization store
** (polkitd:7440): DEBUG: Monitoring `/var/lib/polkit-1/localauthority' for chan
ges
** (polkitd:7440): DEBUG: Monitoring `/etc/polkit-1/localauthority' for changes
Using authority class PolkitBackendLocalAuthority
Lost the name org.freedesktop.PolicyKit1 - exiting
Shutting down
** (polkitd:7440): DEBUG: Purged all local authorization stores
Exiting with code 0



console kit log:
Code:

 tail history
1322611940.733 type=SEAT_ACTIVE_SESSION_CHANGED : seat-id='Seat1' session-id=''
1322611951.082 type=SEAT_SESSION_ADDED : seat-id='Seat1' session-id='Session2' session-type='' session-x11-display=':0' session-x11-display-device='/dev/tty7' session-display-device='' session-remote-host-name='' session-is-local=TRUE session-unix-user=1003 session-creation-time='2011-11-30T00:12:31.061158Z'
1322611951.130 type=SEAT_ACTIVE_SESSION_CHANGED : seat-id='Seat1' session-id='Session2'
1322611955.293 type=SEAT_SESSION_REMOVED : seat-id='Seat1' session-id='Session2' session-type='' session-x11-display=':0' session-x11-display-device='/dev/tty7' session-display-device='' session-remote-host-name='' session-is-local=TRUE session-unix-user=1003 session-creation-time='2011-11-30T00:12:31.061158Z'
1322611955.309 type=SEAT_ACTIVE_SESSION_CHANGED : seat-id='Seat1' session-id=''
1322611977.989 type=SEAT_SESSION_ADDED : seat-id='Seat1' session-id='Session3' session-type='' session-x11-display=':0' session-x11-display-device='/dev/tty7' session-display-device='' session-remote-host-name='' session-is-local=TRUE session-unix-user=1001 session-creation-time='2011-11-30T00:12:57.967378Z'
1322611978.004 type=SEAT_ACTIVE_SESSION_CHANGED : seat-id='Seat1' session-id='Session3'
1322612418.967 type=SYSTEM_RESTART :
1322612707.414 type=SEAT_ADDED : seat-id='Seat1' seat-kind=0
1322612719.542 type=SEAT_ADDED : seat-id='Seat1' seat-kind=0


I know it is not Gentoo's fault i think the devs here are doing better than ever.
non-documetation
is the problem
This whole race to dump hal certainly does not JustWork(TM)

EDIT:
Code:
cat /proc/self/sessionid
4294967295
Works
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum