This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[RESOLVED] KDE don't start :: .xsession-errors (serviceType "KDEDModule")

Tags: None
(comma "," separated)
User avatar
m1k0
Registered Member
Posts
21
Karma
0
I trying to install KDE on fresh system (Gentoo Linux) and I have a big problem.
KDE 4.1 (4.2 beta too) after loading screen showing a chessboard without any elements like menu or plasmoid.

in file ~/.xsession-errors I have
Code: Select all
startkde: Starting up...
kdeinit4: preparing to launch /usr/lib/kde4/libexec/klauncher
kdeinit4: preparing to launch /usr/bin/kded4
kdeinit4: preparing to launch /usr/bin/kbuildsycoca4
kbuildsycoca4 running...
kdeinit4: preparing to launch /usr/lib/kde4/libexec/kconf_update
kded(5280)/kdecore (trader) KServiceTypeTrader::defaultOffers: KServiceTypeTrader: serviceType  "KDEDModule"  not found
kdeinit4: preparing to launch /usr/bin/kcminit_startup
kcminit(5286)/kdecore (trader) KServiceTypeTrader::defaultOffers: KServiceTypeTrader: serviceType  "KCModuleInit"  not found
kdeinit4: preparing to launch /usr/bin/ksmserver
findServiceByDesktopPath: kded/kdedglobalaccel.desktop not found

I don't know how to fix it. Maybe this fix help me.

Last edited by m1k0 on Thu Dec 18, 2008 6:30 am, edited 1 time in total.


m1k0, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Do these files exist on your computer?
Code: Select all
/usr/share/kde4/servicetypes/kdedmodule.desktop
/usr/share/kde4/servicetypes/kcmoduleinit.desktop
/usr/share/kde4/services/kded/kdedglobalaccel.desktop


If they do not, ensure you have installed kdesupport + kdelibs + kdebase. If they do, then your KSycoca database must be corrupted. Try running it like so "kbuildsycoca4 --noincremental" which should force it to completely rebuild it.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
m1k0
Registered Member
Posts
21
Karma
0
I have this files. After "kbuildsycoca4 --noincremental" I have still chessboard without any elements.

Now, file ~/.xsession-errors looks
Code: Select all
startkde: Starting up...
kdeinit4: preparing to launch /usr/lib/kde4/libexec/klauncher
kdeinit4: preparing to launch /usr/bin/kded4
kdeinit4: preparing to launch /usr/bin/kbuildsycoca4
kbuildsycoca4 running...
kdeinit4: preparing to launch /usr/lib/kde4/libexec/kconf_update
kded(5474): Communication problem with  "kded" , it probably crashed.
Error message was:  "org.freedesktop.DBus.Error.NoReply" : " "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken." "

kdeinit4: preparing to launch /usr/bin/kcminit_startup
kcminit(5505)/kdecore (trader) KServiceTypeTrader::defaultOffers: KServiceTypeTrader: serviceType  "KCModuleInit"  not found
kdeinit4: preparing to launch /usr/bin/ksmserver
kded(5475): "KLauncher could not be reached via D-Bus. Error when calling kdeinit_exec_wait:
empty
"

findServiceByDesktopPath: kded/kdedglobalaccel.desktop not found


m1k0, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Could you please post the output of these two commands?
Code: Select all
ps ux | grep dbus
qdbus
It looks like you have another session already running as this user which it is trying to communicate with, either that or dbus for your session is broken.

These commands will list all processes containing the name dbus, and get a listing of all services connected to your session bus.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
m1k0
Registered Member
Posts
21
Karma
0
Code: Select all
desktop ~ # ps ux | grep dbus
root      5217  0.0  0.1   3124   748 ?        S    16:45   0:00 dbus-launch --autolaunch 0ebedd0e409e7b7e9575f10046177da8 --binary-syntax --close-stderr
root      5218  0.0  0.1   2292   692 ?        Ss   16:45   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
root      5715  0.0  0.1   2244   820 pts/0    S+   17:03   0:00 grep --colour=auto dbus
desktop ~ # qdbus
Could not connect to D-Bus server: org.freedesktop.DBus.Error.Spawn.ExecFailed: dbus-launch failed to autolaunch D-Bus session: Autolaunch error: X11 initialization failed.

desktop ~ #


m1k0, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Was that on a virtual terminal, or in a XTerm shell? It looks like it couldn't connect to the X server. If you were doing it in a XTerm shell then try removing the files ~/.Xauthorit*
If you were doing it in a virtual terminal, could you retry in a XTerm terminal ( KDM normally has a failsafe feature for this )

Also could you check for the presence of $KDEDIR and $KDEDIRS if they are set they should be to /usr. Note that if you have a 3.x installation elsewhere then doing this may break it.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
m1k0
Registered Member
Posts
21
Karma
0
bcooksley wrote:Was that on a virtual terminal, or in a XTerm shell?

I operate on terminal from [ctrl]+[alt]+[F1]. From X I cannon run anything.
bcooksley wrote:Also could you check for the presence of $KDEDIR and $KDEDIRS

I don't have $KDEDIR or $KDEDIRS set, but on my laptop with successfuly running KDE 4.1 $KDEDIR and $KDEDIRS don't set too.


m1k0, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Ok, that means we can't use qdbus then... have you tried moving ~/.kde4 to another location?

Try also removing /var/tmp/kdecache- and /tmp/kde- as well.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
m1k0
Registered Member
Posts
21
Karma
0
many times I deleted this files... without success in lanching KDE.
My screencast:
http://www.sendspace.pl/file/URcnzk9q/


m1k0, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Ok. Did you login as your normal user in that screenshot in KDM? ( sorry, I couldn't see it, it was too faint ) I believe that logging in as root doesn't work in KDE 4.

Could you try setting $KDEDIR to /usr explicitly in your ~/.bashrc? Something could be setting it in KDM. Also, could you please post the output of "kde4-config --prefix" before and after running that command?

You could also try adding a script to execute Konsole in ~/.kde4/Autostart/ so you are given a console to work with in a X environment.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
m1k0
Registered Member
Posts
21
Karma
0
bcooksley wrote:Ok. Did you login as your normal user in that screenshot in KDM? ( sorry, I couldn't see it, it was too faint ) I believe that logging in as root doesn't work in KDE 4.

login normal user: m1k0
screen resolution is very big 1920x1080
bcooksley wrote:Could you try setting $KDEDIR to /usr explicitly in your ~/.bashrc? Something could be setting it in KDM. Also, could you please post the output of "kde4-config --prefix" before and after running that command?

before and after I have the same : /usr
bcooksley wrote:You could also try adding a script to execute Konsole in ~/.kde4/Autostart/ so you are given a console to work with in a X environment.

Wow, now I have console :) But only console :(
OK, what's now?
How to re-launch KDE?
---------
From konsole I can launch many programs.
ksysguard showing:

Code: Select all
init
|
- kdeinit4
  - klaucher

There aren't kio_file, kio_http,...

Last edited by m1k0 on Mon Dec 15, 2008 7:16 pm, edited 1 time in total.


m1k0, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
From there could you try running "qdbus" again. Now that we are in an X session it should work now.

You could also try executing parts of KDE manually. I would recommend trying these ones first if they are not already running:
Code: Select all
kded4
kwin --replace
ksmserver
krunner
plasma


Regarding the kio_* processes, they are launched on demand as they are needed, one for each connection usually ( in the case of kio_http )

Last edited by bcooksley on Tue Dec 16, 2008 3:27 am, edited 1 time in total.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
m1k0
Registered Member
Posts
21
Karma
0
Code: Select all
m1k0@desktop ~ $ qdbus                                                                                                                                                 
:1.1                                                                                                                                                                   
org.kde.klauncher                                                                                                                                                     
:1.10                                                                                                                                                                 
org.kde.knotify                                                                                                                                                       
:1.12                                                                                                                                                                 
org.kde.plasma                                                                                                                                                         
:1.14                                                                                                                                                                 
org.freedesktop.ScreenSaver                                                                                                                                           
org.kde.krunner                                                                                                                                                       
org.kde.screensaver                                                                                                                                                   
:1.16                                                                                                                                                                 
org.kde.klipper                                                                                                                                                       
:1.18                                                                                                                                                                 
org.kde.konsole                                                                                                                                                       
:1.2                                                                                                                                                                   
org.kde.kded                                                                                                                                                           
:1.20                                                                                                                                                                 
:1.6                                                                                                                                                                   
org.kde.ksmserver                                                                                                                                                     
org.kde.ksmserver-5624                                                                                                                                                 
:1.7                                                                                                                                                                   
org.kde.kwin                                                                                                                                                           
org.kde.kwin-5626                                                                                                                                                     
:1.8                                                                                                                                                                   
org.kde.NepomukServer                                                                                                                                                 
org.freedesktop.DBus                                                                                                                                                   
m1k0@desktop ~ $ kded4                                                                                                                                                 
KDE Daemon (kded) already running.                                                                                                                                     
m1k0@desktop ~ $ kwin --replace &                                                                                                                                     
[1] 5671                                                                                                                                                               
m1k0@desktop ~ $ ksmserver                                                                                                                                             
Could not register with D-BUS. Aborting.                                                                                                                               
m1k0@desktop ~ $ krunner                                                                                                                                               
m1k0@desktop ~ $ plasma                                                                                                                                               
plasma                plasmaengineexplorer  plasmapkg                                                                                                                 
m1k0@desktop ~ $ plasma                                                                                                                                               
ps aux                                                                                                                                                                 
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND                                                                                               
root         1  0.0  0.1   1632   560 ?        Ss   07:03   0:00 init [3]                                                                                             
root         2  0.0  0.0      0     0 ?        S<   07:03   0:00 [kthreadd]                                                                                           
root         3  0.0  0.0      0     0 ?        S<   07:03   0:00 [ksoftirqd/0]                                                                                         
root         4  0.0  0.0      0     0 ?        S<   07:03   0:00 [watchdog/0]                                                                                         
root         5  0.0  0.0      0     0 ?        S<   07:03   0:00 [events/0]                                                                                           
root         6  0.0  0.0      0     0 ?        S<   07:03   0:00 [khelper]                                                                                             
root        92  0.0  0.0      0     0 ?        S<   07:03   0:00 [kblockd/0]                                                                                           
root        95  0.0  0.0      0     0 ?        S<   07:03   0:00 [kacpid]                                                                                             
root        96  0.0  0.0      0     0 ?        S<   07:03   0:00 [kacpi_notify]                                                                                       
root       151  0.0  0.0      0     0 ?        S<   07:03   0:00 [ata/0]                                                                                               
root       152  0.0  0.0      0     0 ?        S<   07:03   0:00 [ata_aux]                                                                                             
root       153  0.0  0.0      0     0 ?        S<   07:03   0:00 [ksuspend_usbd]                                                                                       
root       159  0.0  0.0      0     0 ?        S<   07:03   0:00 [khubd]                                                                                               
root       162  0.0  0.0      0     0 ?        S<   07:03   0:00 [kseriod]                                                                                             
root       172  0.0  0.0      0     0 ?        S<   07:03   0:00 [btaddconn]                                                                                           
root       173  0.0  0.0      0     0 ?        S<   07:03   0:00 [btdelconn]                                                                                           
root       208  0.0  0.0      0     0 ?        S    07:03   0:00 [pdflush]                                                                                             
root       209  0.0  0.0      0     0 ?        S    07:03   0:00 [pdflush]                                                                                             
root       210  0.0  0.0      0     0 ?        S<   07:03   0:00 [kswapd0]                                                                                             
root       211  0.0  0.0      0     0 ?        S<   07:03   0:00 [aio/0]                                                                                               
root       212  0.0  0.0      0     0 ?        S<   07:03   0:00 [nfsiod]                                                                                             
root       903  0.0  0.0      0     0 ?        S<   07:03   0:00 [khpsbpkt]                                                                                           
root       912  0.0  0.0      0     0 ?        S<   07:03   0:00 [knodemgrd_0]                                                                                         
root       960  0.0  0.0      0     0 ?        S<   07:03   0:00 [kpsmoused]                                                                                           
root       965  0.0  0.0      0     0 ?        S<   07:03   0:00 [exec-osm/0]                                                                                         
root       977  0.0  0.0      0     0 ?        S<   07:03   0:00 [edac-poller]                                                                                         
root      1007  0.0  0.0      0     0 ?        S<   07:03   0:00 [krfcommd]                                                                                           
root      1008  0.0  0.0      0     0 ?        S<   07:03   0:00 [rpciod/0]                                                                                           
root      1012  0.0  0.0      0     0 ?        S<   07:03   0:00 [kjournald]                                                                                           
root      1204  0.0  0.2   2656  1388 ?        S<s  07:03   0:00 /sbin/udevd --daemon                                                                                 
root      2280  0.0  0.0      0     0 ?        S<   07:03   0:00 [kjournald]                                                                                           
root      3985  0.0  0.1   2980   792 ?        Ss   07:03   0:00 /usr/sbin/syslog-ng                                                                                   
101       4045  0.0  0.1   2292   912 ?        Ss   07:03   0:00 /usr/bin/dbus-daemon --system                                                                         
avahi     4637  0.0  0.3   2888  1616 ?        Ss   07:03   0:00 avahi-daemon: running [desktop.local]                                                                 
avahi     4638  0.0  0.0   2748   500 ?        Ss   07:03   0:00 avahi-daemon: chroot helper                                                                           
root      4689  0.0  0.1   1784   520 ?        Ss   07:03   0:00 /usr/sbin/avahi-dnsconfd -D                                                                           
102       4743  0.0  0.6   5296  3472 ?        Ss   07:03   0:00 /usr/sbin/hald --use-syslog --verbose=no                                                             
root      4744  0.0  0.2   3180  1068 ?        S    07:03   0:00 hald-runner                                                                                           
root      4747  0.0  0.2   3244  1056 ?        S    07:03   0:00 hald-addon-input: Listening on /dev/input/event3 /dev/input/event2 /dev/input/event1 /dev/input/event0
102       4755  0.0  0.1   2136   920 ?        S    07:03   0:00 hald-addon-acpi: listening on acpi kernel interface /proc/acpi/event                                 
root      4762  0.0  0.2   3248  1048 ?        S    07:03   0:00 hald-addon-storage: polling /dev/hdc (every 2 sec)                                                   
root      4920  0.0  0.4  12604  2468 ?        Ss   07:04   0:00 /usr/sbin/smbd -D                                                                                     
root      4929  0.0  0.2  12604  1128 ?        S    07:04   0:00 /usr/sbin/smbd -D                                                                                     
root      4930  0.0  0.2   7576  1380 ?        Ss   07:04   0:00 /usr/sbin/nmbd -D                                                                                     
root      4988  0.0  0.2   5556  1036 ?        Ss   07:04   0:00 /usr/sbin/sshd                                                                                       
root      5045  0.0  0.1   2360   688 ?        Ss   07:04   0:00 /usr/sbin/cron                                                                                       
root      5132  0.0  0.1   3944   784 ?        Ss   07:04   0:00 /usr/bin/kdm                                                                                         
root      5197  0.0  0.2   2568  1300 tty1     Ss   07:04   0:00 /bin/login --                                                                                         
root      5199  0.0  0.1   1768   768 tty2     Ss+  07:04   0:00 /sbin/agetty 38400 tty2 linux                                                                         
root      5200  0.0  0.1   1768   760 tty3     Ss+  07:04   0:00 /sbin/agetty 38400 tty3 linux                                                                         
root      5201  0.0  0.1   1768   760 tty4     Ss+  07:04   0:00 /sbin/agetty 38400 tty4 linux                                                                         
root      5202  0.0  0.1   1768   764 tty5     Ss+  07:04   0:00 /sbin/agetty 38400 tty5 linux                                                                         
root      5203  0.0  0.1   1768   764 tty6     Ss+  07:04   0:00 /sbin/agetty 38400 tty6 linux
root      5233  0.0  0.3   3420  1788 tty1     S    07:07   0:00 -bash
root      5238  0.0  0.6   6388  3284 tty1     S+   07:07   0:00 mc
root      5239  0.0  0.0   1704   424 ?        Ss   07:07   0:00 cons.saver /dev/tty1
root      5240  0.0  0.3   3420  1764 pts/0    Ss+  07:07   0:00 bash -rcfile .bashrc
m1k0      5307  0.0  0.2   2760  1112 ?        S    07:07   0:00 /usr/libexec/gam_server
root      5543  7.5  7.8  45832 40312 tty7     Ss+  07:21   0:29 /usr/bin/X -br -novtswitch -nolisten tcp :0 vt7 -auth /var/run/xauth/A:0-AeeFST
root      5548  0.0  0.3   4684  1736 ?        S    07:21   0:00 -:0
root      5554  0.0  0.1   2292   692 ?        Ss   07:21   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
root      5555  0.0  0.1   3124   748 ?        S    07:21   0:00 dbus-launch --autolaunch 0ebedd0e409e7b7e9575f10046177da8 --binary-syntax --close-stderr
m1k0      5561  0.0  0.2   3336  1324 ?        Ss   07:21   0:00 /bin/sh /usr/bin/startkde
m1k0      5609  0.2  0.1   2424   896 ?        Ss   07:21   0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
m1k0      5610  0.0  0.1   3124   720 ?        S    07:21   0:00 dbus-launch --sh-syntax --exit-with-session
m1k0      5615  0.0  1.0  33332  5336 ?        Ss   07:21   0:00 kdeinit4: kdeinit4 Running...
m1k0      5616  0.0  1.7  33736  9252 ?        S    07:21   0:00 klauncher
m1k0      5618  0.3  1.8  56756  9564 ?        S    07:21   0:01 kded4
m1k0      5623  0.0  0.0   1612   364 ?        S    07:21   0:00 kwrapper4 ksmserver
m1k0      5624  0.0  2.8  76900 14816 ?        Sl   07:21   0:00 ksmserver
m1k0      5631  0.0  1.7  51236  8936 ?        S    07:21   0:00 /usr/bin/nepomukserver
m1k0      5632  0.5  3.6  99456 18868 ?        S    07:21   0:02 /usr/bin/knotify4
m1k0      5633  0.1  2.4  69084 12656 ?        S    07:21   0:00 /usr/bin/plasma
m1k0      5635  0.5  3.2  71048 16936 ?        S    07:21   0:02 /usr/bin/krunner
m1k0      5638  0.1  2.1  52440 11024 ?        S    07:21   0:00 /usr/bin/klipper
m1k0      5640  3.5  3.9  73712 20268 ?        Sl   07:21   0:13 /usr/bin/konsole
m1k0      5647  0.0  0.3   3680  1780 pts/1    Ss   07:21   0:00 /bin/bash
m1k0      5653  0.0  0.3   3680  1812 pts/2    Ss+  07:22   0:00 /bin/bash
m1k0      5658  0.2  0.6   7764  3388 pts/1    S+   07:22   0:00 mc
m1k0      5660  0.0  0.3   3684  1752 pts/3    Ss+  07:22   0:00 bash -rcfile .bashrc
m1k0      5671  0.7  2.9  51992 15196 pts/2    S    07:24   0:01 kwin --replace


kwin - some screen changes with background from KDM, finally no changes
krunner - started, but not working
plasma - started without any (visual) effects.


m1k0, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Don't panic about ksmserver failing to start when you asked it to, that was because it was already on its feet and running. So is kded4, krunner and plasma, but they are all failing to find critical *.desktop files needed.

Could you try running systemsettings and seeing which modules are found? If it finds the "Service Manager" module in the Advanced tab, could you please provide a listing of what is there?

Are the permissions correct for the files I previously listed?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
m1k0
Registered Member
Posts
21
Karma
0
permissions...
I set read and executed for grouu and others for all directories /usr/share/kde4/ and set read for group and others for all files whitih this directories.
removed ~/.kde4 and now everythings looks great :)
Big thanks


m1k0, proud to be a member of KDE forums since 2008-Oct.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]