LTSP client authenticates but logs out immediately

Asked by Simon Mark Holland

I have installed LTSP on a 64 bit server, and built the 32bit client system without issues. My terminals boot up, and I can login, but the session terminates within a couple of seconds after the 'verifying password, please wait' message.

The only change I can remember making to the system is changing the dhcp.conf ip addresses from 192.168.0.* to 192.168.1.* . Afterwards I ran the "sudo ltsp-update-sshkeys" then "ltsp-update-image -a i386". There are a couple of errors in the auth.log (below) which are received regardless of user.

One symptom I should mention is that after attempting to log in the display on my server starts to distort and break up. The only way to rectify the screen problem is to press 'CTRL'+ 'ALT' + 'F1' to revert to cli then 'CTRL'+ 'ALT' + 'F7'. I tried logging into a client with two separate users as to ensure it wasn't a problem with having the same user logged in twice.

This is a dump of my auth.log :
Jun 21 13:34:30 ltsp polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session15 (system bus name :1.132 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Jun 21 13:34:33 ltsp gnome-keyring-daemon[6274]: dbus failure unregistering from session: Connection is closed
Jun 21 13:34:33 ltsp gnome-keyring-daemon[6274]: dbus failure unregistering from session: Connection is closed
Jun 21 13:34:33 ltsp sshd[6208]: Received disconnect from 192.168.1.20: 11: disconnected by user
Jun 21 13:34:33 ltsp sshd[6146]: pam_unix(sshd:session): session closed for user yang2
Jun 21 13:34:33 ltsp polkitd(authority=local): Unregistered Authentication Agent for session /org/freedesktop/ConsoleKit/Session15 (system bus name :1.132, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Jun 21 13:37:14 ltsp sshd[6423]: Accepted password for yang2 from 192.168.1.20 port 41279 ssh2
Jun 21 13:37:14 ltsp sshd[6423]: pam_unix(sshd:session): session opened for user yang2 by (uid=0)
Jun 21 13:37:17 ltsp sshd[6484]: subsystem request for sftp
Jun 21 13:37:18 ltsp polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session17 (system bus name :1.149 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Jun 21 13:37:23 ltsp polkitd(authority=local): Unregistered Authentication Agent for session /org/freedesktop/ConsoleKit/Session17 (system bus name :1.149, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Jun 21 13:37:23 ltsp gnome-keyring-daemon[6550]: dbus failure unregistering from session: Connection is closed
Jun 21 13:37:23 ltsp gnome-keyring-daemon[6550]: dbus failure unregistering from session: Connection is closed
Jun 21 13:37:23 ltsp sshd[6484]: Received disconnect from 192.168.1.20: 11: disconnected by user
Jun 21 13:37:23 ltsp sshd[6423]: pam_unix(sshd:session): session closed for user yang2
Jun 21 13:37:44 ltsp sshd[6664]: Accepted password for simon from 192.168.1.20 port 41282 ssh2
Jun 21 13:37:44 ltsp sshd[6664]: pam_unix(sshd:session): session opened for user simon by (uid=0)
Jun 21 13:37:45 ltsp sshd[6725]: subsystem request for sftp
Jun 21 13:37:47 ltsp polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session19 (system bus name :1.167 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.utf8)
Jun 21 13:37:48 ltsp sshd[6725]: channel 17: open failed: administratively prohibited: open failed
Jun 21 13:37:48 ltsp gnome-keyring-daemon[6791]: dbus failure unregistering from session: Connection is closed
Jun 21 13:37:48 ltsp gnome-keyring-daemon[6791]: dbus failure unregistering from session: Connection is closed
Jun 21 13:37:48 ltsp sshd[6725]: Received disconnect from 192.168.1.20: 11: disconnected by user
Jun 21 13:37:48 ltsp sshd[6664]: pam_unix(sshd:session): session closed for user simon
Jun 21 13:37:48 ltsp polkitd(authority=local): Unregistered Authentication Agent for session /org/freedesktop/ConsoleKit/Session19 (system bus name :1.167, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.utf8) (disconnected from bus)

Question information

Language:
English Edit question
Status:
Solved
For:
LTSP5 Edit question
Assignee:
No assignee Edit question
Solved by:
Shrenik
Solved:
Last query:
Last reply:
Revision history for this message
Simon Mark Holland (simonmarkholland) said :
#1

Okay so I can now confirm that this bug affects only 32bit clients operating off a 64bit servers. My 64bit laptop will PXE boot and login without issues. It is just the 32bit clients who fail. I have attached the auth.log showing an unsuccessful attempt to log on to a 32bit, followed by the successful 64bit log on.

Its about 9:45 am here now (I'm in North Sumatra) so have an entire day to get more information on this to help get a fix. I have a 32bit and 64bit client setup and am willing to do anything I can to help but I just don't know enough to progress on my own. If I don't get a response soon though I will have to format the server and install a 32bit server which is obviously not ideal as more and more LTSP clients will be 64bit in the future.

I have chroot and am doing another apt-get update, but seeing as I had a similar issue on 9.10 as well, I am sure this is a bug in LTSP or Ubuntu. The last time I logged in I got all the way to seeing icons on the desktop before it killed the connection.

---------------- auth.log --------------------
Jun 22 09:27:29 ltsp sshd[1707]: Accepted password for simon from 192.168.1.20 port 53201 ssh2
Jun 22 09:27:29 ltsp sshd[1707]: pam_unix(sshd:session): session opened for user simon by (uid=0)
Jun 22 09:27:31 ltsp sshd[1768]: subsystem request for sftp
Jun 22 09:27:32 ltsp polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session4 (system bus name :1.58 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.utf8)
Jun 22 09:27:38 ltsp gnome-keyring-daemon[1834]: dbus failure unregistering from session: Connection is closed
Jun 22 09:27:38 ltsp gnome-keyring-daemon[1834]: dbus failure unregistering from session: Connection is closed
Jun 22 09:27:38 ltsp polkitd(authority=local): Unregistered Authentication Agent for session /org/freedesktop/ConsoleKit/Session4 (system bus name :1.58, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.utf8) (disconnected from bus)
Jun 22 09:27:38 ltsp sshd[1768]: Received disconnect from 192.168.1.20: 11: disconnected by user
Jun 22 09:27:38 ltsp sshd[1707]: pam_unix(sshd:session): session closed for user simon
Jun 22 09:30:45 ltsp sshd[1992]: Accepted password for yang2 from 192.168.1.21 port 50869 ssh2
Jun 22 09:30:45 ltsp sshd[1992]: pam_unix(sshd:session): session opened for user yang2 by (uid=0)
Jun 22 09:30:45 ltsp sshd[2053]: subsystem request for sftp
Jun 22 09:30:47 ltsp polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session6 (system bus name :1.73 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)

Revision history for this message
Simon Mark Holland (simonmarkholland) said :
#2

*** If I run "ltsp-update-sshkeys" on the server does it update all the chroot environments??? Or just the default?

e.g. This is a 64bit server so does "ltsp-update-sshkeys" just update the 64bit client? There is no "-a i386" command line arg like with "ltsp-update-image -a i386". Just a thought as it appears the ssh connection is being prematurely cut off (even though it loads the desktop icons first). ***

Revision history for this message
Best Shrenik (shrenik-bhura) said :
#3

Could it be a compiz issue:

Try this as per help from #ltsp channel angels ;) I tried this solution, and it worked for me.

Just disable compiz for all users.

[CODE]

sudo gconftool-2 --direct --config-source xml:readwrite:-/etc/gconf/gconf.xml.mandatory --type string --set /desktop/gnome/session/required_components/windowmanager metacity

[/CODE]

Revision history for this message
Simon Mark Holland (simonmarkholland) said :
#4

Hi Shrenik,

Thanks that solved the issue. Some developer did give me the same fix when I raised a bug but he didn't explain it was a compiz issue. Thanks for the extra info, I have now removed compiz as well.

Revision history for this message
Simon Mark Holland (simonmarkholland) said :
#5

Thanks Shrenik, that solved my question.

Revision history for this message
Niko87 (nikolas-milbredt-lka) said :
#6

Hello!
I need help :(
I think I have the same problem but sometimes only!
If I try to log on I hear the Ubuntu-Sounds but the screen is black and I will be back in the log on screen...
I don't know the reason but I think It's a problem with my 64-bit-server und the 32-bit-clients...
The solution from Shrenik doesn't work because I can't find the files (no such file found).
My Ubuntu version: Lucid Lynx 10.04 Server

My logs:

auth.log 1 (S0101 = server, t0101 = user/client):

Aug 23 08:43:43 S0101 sshd[4115]: Accepted password for t0101 from 192.168.0.22 port 54713 ssh2
Aug 23 08:43:43 S0101 sshd[4115]: pam_unix(sshd:session): session opened for user t0101 by (uid=0)
Aug 23 08:43:44 S0101 sshd[4189]: subsystem request for sftp
Aug 23 08:43:45 S0101 polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session10 (system bus name :1.119 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale de_DE.UTF-8)
Aug 23 08:43:46 S0101 polkitd(authority=local): Unregistered Authentication Agent for session /org/freedesktop/ConsoleKit/Session10 (system bus name :1.119, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale de_DE.UTF-8) (disconnected from bus)
Aug 23 08:43:46 S0101 gnome-keyring-daemon[4259]: dbus failure unregistering from session: Connection is closed
Aug 23 08:43:46 S0101 gnome-keyring-daemon[4259]: dbus failure unregistering from session: Connection is closed
Aug 23 08:43:46 S0101 sshd[4189]: Received disconnect from 192.168.0.22: 11: disconnected by user
Aug 23 08:43:46 S0101 sshd[4115]: pam_unix(sshd:session): session closed for user t0101
Aug 23 08:44:10 S0101 sshd[4370]: Accepted password for t0101 from 192.168.0.22 port 54716 ssh2
Aug 23 08:44:10 S0101 sshd[4370]: pam_unix(sshd:session): session opened for user t0101 by (uid=0)
Aug 23 08:44:12 S0101 sshd[4443]: subsystem request for sftp

auth.log 2 (S0101 = server, t0103 = user/client):

Aug 23 10:57:18 S0101 polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session10 (system bus name :1.126 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale de_DE.UTF-8)
Aug 23 10:57:24 S0101 sshd[2977]: Accepted password for t0103 from 192.168.0.25 port 58917 ssh2
Aug 23 10:57:24 S0101 sshd[2977]: pam_unix(sshd:session): session opened for user t0103 by (uid=0)
Aug 23 10:57:25 S0101 sshd[3296]: subsystem request for sftp
Aug 23 10:57:26 S0101 polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session12 (system bus name :1.145 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale de_DE.UTF-8)
Aug 23 10:57:27 S0101 gnome-keyring-daemon[3361]: dbus failure unregistering from session: Connection is closed
Aug 23 10:57:27 S0101 polkitd(authority=local): Unregistered Authentication Agent for session /org/freedesktop/ConsoleKit/Session12 (system bus name :1.145, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale de_DE.UTF-8) (disconnected from bus)
Aug 23 10:57:27 S0101 gnome-keyring-daemon[3361]: dbus failure unregistering from session: Connection is closed
Aug 23 10:57:27 S0101 sshd[3296]: Received disconnect from 192.168.0.25: 11: disconnected by user
Aug 23 10:57:27 S0101 sshd[2977]: pam_unix(sshd:session): session closed for user t0103
Aug 23 10:58:05 S0101 sshd[3482]: Accepted password for t0103 from 192.168.0.25 port 58920 ssh2
Aug 23 10:58:05 S0101 sshd[3482]: pam_unix(sshd:session): session opened for user t0103 by (uid=0)
Aug 23 10:58:07 S0101 sshd[3564]: subsystem request for sftp
Aug 23 10:58:07 S0101 polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session14 (system bus name :1.163 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale de_DE.UTF-8)
Aug 23 10:58:09 S0101 gnome-keyring-daemon[3632]: dbus failure unregistering from session: Connection is closed
Aug 23 10:58:09 S0101 gnome-keyring-daemon[3632]: dbus failure unregistering from session: Connection is closed
Aug 23 10:58:09 S0101 polkitd(authority=local): Unregistered Authentication Agent for session /org/freedesktop/ConsoleKit/Session14 (system bus name :1.163, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale de_DE.UTF-8) (disconnected from bus)
Aug 23 10:58:09 S0101 sshd[3564]: Received disconnect from 192.168.0.25: 11: disconnected by user
Aug 23 10:58:09 S0101 sshd[3482]: pam_unix(sshd:session): session closed for user t0103
Aug 23 10:58:32 S0101 sshd[3741]: Accepted password for t0103 from 192.168.0.25 port 58923 ssh2
Aug 23 10:58:32 S0101 sshd[3741]: pam_unix(sshd:session): session opened for user t0103 by (uid=0)
Aug 23 10:58:33 S0101 sshd[3833]: subsystem request for sftp
Aug 23 10:58:34 S0101 polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session16 (system bus name :1.181 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale de_DE.UTF-8)
Aug 23 10:58:35 S0101 polkitd(authority=local): Unregistered Authentication Agent for session /org/freedesktop/ConsoleKit/Session16 (system bus name :1.181, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale de_DE.UTF-8) (disconnected from bus)
Aug 23 10:58:35 S0101 sshd[3833]: Received disconnect from 192.168.0.25: 11: disconnected by user
Aug 23 10:58:35 S0101 gnome-keyring-daemon[3901]: dbus failure unregistering from session: Connection is closed
Aug 23 10:58:35 S0101 sshd[3741]: pam_unix(sshd:session): session closed for user t0103
Aug 23 10:58:35 S0101 gnome-keyring-daemon[3901]: dbus failure unregistering from session: Connection is closed
Aug 23 10:58:58 S0101 sshd[4003]: Accepted password for t0103 from 192.168.0.25 port 58926 ssh2
Aug 23 10:58:58 S0101 sshd[4003]: pam_unix(sshd:session): session opened for user t0103 by (uid=0)
Aug 23 10:58:59 S0101 sshd[4088]: subsystem request for sftp
Aug 23 10:59:00 S0101 polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session18 (system bus name :1.196 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale de_DE.UTF-8)
Aug 23 10:59:01 S0101 gnome-keyring-daemon[4156]: dbus failure unregistering from session: Connection is closed
Aug 23 10:59:01 S0101 polkitd(authority=local): Unregistered Authentication Agent for session /org/freedesktop/ConsoleKit/Session18 (system bus name :1.196, object path /org/gnome/PolicyKit1/AuthenticationAgent, locale de_DE.UTF-8) (disconnected from bus)
Aug 23 10:59:01 S0101 gnome-keyring-daemon[4156]: dbus failure unregistering from session: Connection is closed
Aug 23 10:59:01 S0101 sshd[4088]: Received disconnect from 192.168.0.25: 11: disconnected by user
Aug 23 10:59:01 S0101 sshd[4003]: pam_unix(sshd:session): session closed for user t0103
Aug 23 10:59:24 S0101 sshd[4259]: Accepted password for t0103 from 192.168.0.25 port 58929 ssh2
Aug 23 10:59:24 S0101 sshd[4259]: pam_unix(sshd:session): session opened for user t0103 by (uid=0)
Aug 23 10:59:25 S0101 sshd[4344]: subsystem request for sftp
Aug 23 10:59:26 S0101 polkitd(authority=local): Registered Authentication Agent for session /org/freedesktop/ConsoleKit/Session20 (system bus name :1.210 [/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1], object path /org/gnome/PolicyKit1/AuthenticationAgent, locale de_DE.UTF-8)

I am very very thankful

Revision history for this message
Shrenik (shrenik-bhura) said :
#7

Try this: (removed an extra '-')

sudo gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /desktop/gnome/session/required_components/windowmanager metacity