[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

various xsession errors



Hi,

After an upgrade of my knoppix installation  I noticed these errors.  Yes, they may have occurred previously but I don't think they did.  I'm posting them here because I believe the 45xsession and kde-services-knoppix errors are knoppix scripts upgraded from these sources:

# KNOPPIX Sources
deb-src http://debian-knoppix.alioth.debian.org ./
# KNOPPIX Precompiled binaries
deb http://debian-knoppix.alioth.debian.org ./

There are four problems in all that perhaps should be dealt with.  The problem that really concerns me is the last issue in this email, the other three issues are trivial fixes and I'm reporting them out of civic duty.  The three trivial problems you can see in the following output:

root@tb144:~# tail -vf /home/michaelmo/.xsession-errors
==> /home/michaelmo/.xsession-errors <==
Xsession: X session started for michaelmo at Mon Sep 29 13:34:05 NZST 2008
/etc/X11/Xsession.d/45xsession: line 192: [: : integer expression expected
/etc/X11/Xsession.d/45xsession: line 196: [: : integer expression expected
/etc/X11/Xsession.d/45xsession: line 200: [: : integer expression expected
/etc/X11/Xsession.d/45xsession: line 358: /etc/sysconfig/xsession-commands: Permission denied
kbuildsycoca running...
KDE Daemon (kded) already running.
kbuildsycoca running...
Reusing existing ksycoca
Could not find '' executable.
kdesktop is already running!
Error loading new keyboard description
Couldn't interpret _XKB_RULES_NAMES property
Use defaults: rules - 'xorg' model - 'pc105' layout - 'us'
Could not find '' executable.
kbuildsycoca running...
Reusing existing ksycoca
Server has no DPMS extension
/etc/default/kde-services-knoppix: line 1: uncomment: command not found

=====================================
Problem with 45xsession (integer test)
=====================================

Don't believe the line numbers.  I had to change this script (see the last problem description) so the actual lines are these:

Line 192:

if [ ! -e $HOME/.netscape -a "$FREESPACE" -gt 1500 ] && [ -d /etc/skel/.netscape -o -d /usr/share/knoppix/profile/.netscape ]; then

Line 196:

if [ ! -e $HOME/.mozilla -a "$FREESPACE" -gt 1500 ] && [ -d /etc/skel/.mozilla -o -d /usr/share/knoppix/profile/.mozilla ]; then

Line 200:

if [ ! -e $HOME/.mozilla-thunderbird -a "$FREESPACE" -gt 1500 ] && [ -d /etc/skel/.mozilla-thunderbird -o -d /usr/share/knoppix/profile/.mozilla-thunderbird ]; then

=====================================
/etc/sysconfig/xsession-commands: Permission denied
=====================================

Again the line number is out of whack because of some stuff I added (see the last problem description) .  Is this a bash version problem?  Was the script written for a later bash version?

Line 358:

echo "kde_restart" >/etc/sysconfig/xsession-commands 2>/dev/null

root@tb144:~# bash --version
GNU bash, version 3.2.39(1)-release (i486-pc-linux-gnu)
Copyright (C) 2007 Free Software Foundation, Inc.

root@tb144:~# ls -la /etc/X11/Xsession.d/45xsession
-rwxr-xr-x 1 root root 32556 Sep 24 22:12 /etc/X11/Xsession.d/45xsession

=====================================
Problem with kde-services-knoppix:
=====================================

I didn't mess around with this file so I am not sure why the first line is not commented with a #.

root@tb144:~# cat /etc/default/kde-services-knoppix
 uncomment this line to disable the automatic start of the KDE-Services
KDE_SERVICES_ENABLED="false"

=====================================
Problem with xauth in 45xsession
=====================================

The only way I could get the GUI to start for either XDMCP or the normal keyboard login was to comment out this line in /etc/X11/Xsession.d/45xsession:

xauth add "$DISPLAY" MIT-MAGIC-COOKIE-1  "$(mcookie)" >/dev/null 2>&1

KDE would fail to start (failsafe was OK) with the xauth line uncommented.

root@tb144:master_scripts# tail -vf /home/michaelmo/.xsession-errors
Xsession: X session started for michaelmo at Mon Oct  6 21:53:04 NZDT 2008
/etc/X11/Xsession.d/45xsession: line 192: [: : integer expression expected
/etc/X11/Xsession.d/45xsession: line 196: [: : integer expression expected
/etc/X11/Xsession.d/45xsession: line 200: [: : integer expression expected
/etc/X11/Xsession.d/45xsession: line 358: /etc/sysconfig/xsession-commands: Permission denied
Invalid MIT-MAGIC-COOKIE-1 keyksplash: cannot connect to X server michaelmo.test.co.nz:144
Invalid MIT-MAGIC-COOKIE-1 keykdeinit: Can't connect to the X Server.
kdeinit: Might not terminate at end of session.
Invalid MIT-MAGIC-COOKIE-1 keykded: cannot connect to X server michaelmo.test.co.nz:144
DCOP aborting call from 'anonymous-8295' to 'kded'
kded: ERROR: Communication problem with kded, it probably crashed.
Invalid MIT-MAGIC-COOKIE-1 keykcminit_startup: cannot connect to X server michaelmo.test.co.nz:144
Invalid MIT-MAGIC-COOKIE-1 keykded: cannot connect to X server michaelmo.test.co.nz:144
DCOP aborting call from 'anonymous-8299' to 'kded'
kded: ERROR: Communication problem with kded, it probably crashed.
Invalid MIT-MAGIC-COOKIE-1 keykdesktop: cannot connect to X server michaelmo.test.co.nz:144
DCOP aborting call from 'anonymous-8301' to 'kdesktop'
Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keyksmserver: cannot connect to X server michaelmo.test.co.nz:144
klauncher: Exiting on signal 1

Somehow, this cookie generation is causing the magic cookie part to fail.  Presumably this is because we somehow ended up with a null or different cookie than was expected after this new one was generated.  I'm a bit baffled as to how to get this to work.  

When KDE won't start and the xauth line is uncommented:
root@tb144:michaelmo# file .Xauthority
.Xauthority: empty

When KDE will start and the xauth line is commented:
root@tb144:michaelmo# file .Xauthority
.Xauthority: X11 Xauthority data

So it looks like this command empties the ~/.Xauthority file (which is bad), but I don't know why because the line by itself is completely legitimate, I can test it on the CLI and see it working.  I put some debugging in the 45xsession script to see what values it was reading out:

#### From 45xsession ####
echo -e "$0 thinks that DISPLAY = $DISPLAY" >> /tmp/debug-michaelmo
echo -e "$0 thinks that PATH = $PATH" >> /tmp/debug-michaelmo
echo -e "$0 - xauth add "$DISPLAY" MIT-MAGIC-COOKIE-1  "$(mcookie)" >/dev/null 2>&1" >> /tmp/debug-michaelmo
echo -e "$0 - XAUTHORITY is $XAUTHORITY - If not null then possible problem." >> /tmp/debug-michaelmo

Here are the results when the xauth line is uncommented:

root@tb144:~# tail -vf /tmp/debug-michaelmo
==> /tmp/debug-michaelmo <==
/etc/kde3/kdm/Xsession thinks that DISPLAY = michaelmo.test.co.nz:144
/etc/kde3/kdm/Xsession thinks that PATH = /sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/games:/usr/local/bin:.
/etc/kde3/kdm/Xsession - xauth add michaelmo.test.co.nz:144 MIT-MAGIC-COOKIE-1  e35b127c6431cf3ce306b44da5623cad >/dev/null 2>&1
/etc/kde3/kdm/Xsession - XAUTHORITY is  - If not null then possible problem.

root@tb144:~# file /home/michaelmo/.Xauthority
/home/michaelmo/.Xauthority: empty
root@tb144:~# ls -la /home/michaelmo/.Xauthority
-rw------- 1 michaelmo dept 0 Oct  6 22:19 /home/michaelmo/.Xauthority
root@tb144:~# ls -la /home/ | grep michaelmo
drwxrwxrwx  65 michaelmo dept  20480 Oct  6 22:19 michaelmo

I don't know where to go from here.  I think that 45xsession can get all the variables it needs, but for some reason that .Xauthority file always ends up empty (even if it previously had data in it).

Any suggestions?  FWIW, /home is mounted over NFS.  Actually, the whole filesystem is root-over-nfs, the other writable areas (/etc, /tmp, /var/log, etc) are tmpfs.

Regards
Michael.
NOTICE: This message contains privileged and confidential
information intended only for the use of the addressee
named above. If you are not the intended recipient of
this message you are hereby notified that you must not
disseminate, copy or take any action in reliance on it.
If you have received this message in error please
notify Allied Telesis Labs Ltd immediately.
Any views expressed in this message are those of the
individual sender, except where the sender has the
authority to issue and specifically states them to
be the views of Allied Telesis Labs.


Reply to: