[SOLVED] user cannot login into KDE session after upgrade

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[SOLVED] user cannot login into KDE session after upgrade

Postby magfan » May 31st, '12, 13:27

Upgrading from Mageia 1 to Mageia 2 went smoothly as mentioned before. But another strange thing is that only one user cannot login into a KDE session. Removing ".kde4" from the $HOME-directorty did not work. Deleting the user (but keeping the $HOME-directory) and re-creating him did also not work. What else could I try to make that users account accessible again?

I just realized that only this user gets some .xsession-errors:

Code: Select all
localhost being added to access control list
startkde: Starting up...
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
kbuildsycoca4 running...
kded(13874) Kded::loadModule: Could not load library "kded_powerdevil" . [ "Bibliothek /usr/lib64/kde4/kded_powerdevil.so kann nicht geladen werden: (libodbc.so.1: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden)" ]
QObject::connect: Cannot connect (null)::deviceFound(Device*) to BlueDevilDaemon::deviceFound(Device*)
QObject::connect: Cannot connect QTimer::timeout() to (null)::stopDiscovery()
kded(13874) Kded::loadModule: Could not load library "kded_keyboard" . [ "Bibliothek /usr/lib64/kde4/kded_keyboard.so kann nicht geladen werden: (libodbc.so.1: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden)" ]
Could not open library ksmserver: Cannot load library /usr/lib64/libkdeinit4_ksmserver.so: (libodbc.so.1: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden)
ksmserver: error while loading shared libraries: libodbc.so.1: cannot open shared object file: No such file or directory
startkde: Shutting down...
klauncher: Exiting on signal 1
startkde: Running shutdown scripts...
startkde: Done.
kded4: Fatal IO error: client killed
Last edited by magfan on Jun 1st, '12, 13:07, edited 2 times in total.
magfan
 
Posts: 334
Joined: Apr 3rd, '12, 12:33

Re: only one user cannot login into KDE session after upgrad

Postby djennings » May 31st, '12, 15:00

check the ownership of the users /home You may have a mismatch in uid or gid numbers
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: only one user cannot login into KDE session after upgrad

Postby doktor5000 » May 31st, '12, 21:55

Please show the output of
Code: Select all
ls -la /home
and the output of
Code: Select all
id username
(replace username by the name of the user who has those problems)
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18056
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: only one user cannot login into KDE session after upgrad

Postby magfan » Jun 1st, '12, 07:06

To me it looks fine. The bad thing is that "mer" is my own account...

Code: Select all
[root@cortex]# ls -la /home
insgesamt 120
drwxr-xr-x  9 root   root    4096 Mär 13 11:59 ./
drwxr-xr-x 32 root   root    4096 Jun  1 04:42 ../
drwx------  7 dcm    dicom   4096 Jan 31 10:16 dcm/
drwx------  2 root   root   16384 Nov  8  2010 lost+found/
drwxr-xr-x 63 mer    users   4096 Mai 31 14:17 mer/
drwx------ 13 nas    nas     4096 Jul 21  2011 nas/
drwxrwx--- 58 spm    users  77824 Jun  1 06:52 spm/
drwx------  5 tex    users   4096 Mai 18 13:33 tex/
drwxr-xr-x  5 xguest xguest  4096 Apr 18 07:34 xguest/
[root@cortex]# id mer
uid=1000(mer) gid=100(users) Gruppen=100(users)
[root@cortex]#
magfan
 
Posts: 334
Joined: Apr 3rd, '12, 12:33

Re: only one user cannot login into KDE session after upgrad

Postby magfan » Jun 1st, '12, 09:56

Well, deleting the user including the $HOME directory and re-create the same user including a new $HOME directory solved the problem. What remains is copying personal data back (thanks for a good backup!)

I know I should mark this topic as [solved], but can edit only three more letters in "Subject:"


Added:
I finally found the reason after copying thousands of files. But to keep the message short:

Never set QTDIR in .bashrc!!!

In Mageia 1 it was still OK. But now it seems to me that when a user logs in a KDE session and in .bashrc the system value of QTDIR is changed all paths for KDE programs are mixed - which results in an immediate shutdown of the KDE session.
magfan
 
Posts: 334
Joined: Apr 3rd, '12, 12:33

Re: only one user cannot login into KDE session after upgrad

Postby isadora » Jun 1st, '12, 13:02

Maybe try editing the title of your initial text, or shortening it somehow. ;)
..........bird from paradise..........

Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away.
—Antoine de Saint-Exupéry
User avatar
isadora
 
Posts: 2766
Joined: Mar 25th, '11, 16:03
Location: Netherlands

Re: only one user cannot login into KDE session after upgrad

Postby doktor5000 » Jun 2nd, '12, 19:08

magfan wrote:I finally found the reason after copying thousands of files. But to keep the message short:

Never set QTDIR in .bashrc!!!

In Mageia 1 it was still OK. But now it seems to me that when a user logs in a KDE session and in .bashrc the system value of QTDIR is changed all paths for KDE programs are mixed - which results in an immediate shutdown of the KDE session.


Being curious, for what purpose did you put it there?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18056
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [SOLVED] user cannot login into KDE session after upgrad

Postby magfan » Jun 2nd, '12, 21:14

Well, sometimes I have to develop programs with Qt and often it happened that the version I was using was newer than the systems Qt version. But this time it is the opposite case. My laziness killed two days. Of course I should set QTDIR only in my IDE. You know, it is a habit from the times when I developed software only in an xterminal.
magfan
 
Posts: 334
Joined: Apr 3rd, '12, 12:33


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest