1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can't start KDM 4.7.2

Discussion in 'KDE' started by alie, Oct 27, 2011.

  1. alie

    alie Member

    Messages:
    576
    Thanks Received:
    50
    Hi,

    I have an issue after upgrading my system to KDE 4.7.2 and have removed local_startup from rc.conf too

    And here is the error:

    Code:
    X Server "/usr/bin/X" cannot be executed
    X server for display :0 can't be started, session disabled.


    Code:
    # where X
    /usr/local/bin/X


    Thanks in advance.
     
  2. alie

    alie Member

    Messages:
    576
    Thanks Received:
    50
    A soft link solved the problem and it takes 1-2 mins to launch KDM, but is there any correct way to solve this issue?
     
  3. avilla@

    avilla@ New Member Developer

    Messages:
    258
    Thanks Received:
    55
    A fix is already in our test repository and will be committed soon.
     
    alie thanks for this.
  4. alie

    alie Member

    Messages:
    576
    Thanks Received:
    50
    And there's no default wallpaper on desktop and kdm. Other than that, nepomuk and konsole also crashes with minimal KDE installation (all unchecked from make config).
     
  5. alie

    alie Member

    Messages:
    576
    Thanks Received:
    50
    New bugs found:
    * Shutdown from plasma desktop not working
    * Unable to launch xterm from Alt-F2 (Run dialog box)
     
  6. avilla@

    avilla@ New Member Developer

    Messages:
    258
    Thanks Received:
    55
    Fixed already, about to commit. Other problems are being looked into.
     
  7. avilla@

    avilla@ New Member Developer

    Messages:
    258
    Thanks Received:
    55
    Can you paste the output of $ konsole launched from a shell?
     
  8. avilla@

    avilla@ New Member Developer

    Messages:
    258
    Thanks Received:
    55
    Please, expand a bit on this.
     
  9. avilla@

    avilla@ New Member Developer

    Messages:
    258
    Thanks Received:
    55
    This is ready to be committed as well.
     
  10. alie

    alie Member

    Messages:
    576
    Thanks Received:
    50

    Here is:
    Code:
    $ konsole
    konsole(6413)/KSharedDataCache ensureFileAllocated: This system misses support for posix_fallocate() -- ensure this partition has room for at least 10526816 bytes.
     
  11. alie

    alie Member

    Messages:
    576
    Thanks Received:
    50
    New bugs found:
    1. Pressing prtsc shows error "Unknown host ksnapshot: Host not found"
    2. nepomuk throwing error during login

    Code:
    Application: Nepomuk Service Stub (nepomukservicestub), signal: Segmentation fault: 11
     
  12. lissyara

    lissyara New Member

    Messages:
    30
    Thanks Received:
    4
    how about it:
    Code:
    klauncher(2632) kdemain: No DBUS session-bus found. Check if you have started the DBUS server. 
    kdeinit4: Communication error with launcher. Exiting!
    kdmgreet(2627)/kdecore (K*TimeZone*): KSystemTimeZones: ktimezoned initialize() D-Bus call failed:  "Not connected to D-Bus server" 
    
    kdmgreet(2627)/kdecore (K*TimeZone*): No time zone information obtained from ktimezoned 
    kdmgreet(2627)/KSharedDataCache ensureFileAllocated: This system misses support for posix_fallocate() -- ensure this partition has room for at least 10547296 bytes. 
    Dropping master 
    Setting master 
    klauncher(2733) kdemain: No DBUS session-bus found. Check if you have started the DBUS server. 
    kdeinit4: Communication error with launcher. Exiting!
    kdmgreet(2728)/kdecore (K*TimeZone*): KSystemTimeZones: ktimezoned initialize() D-Bus call failed:  "Not connected to D-Bus server" 
    
    kdmgreet(2728)/kdecore (K*TimeZone*): No time zone information obtained from ktimezoned 
    kdmgreet(2728)/KSharedDataCache ensureFileAllocated: This system misses support for posix_fallocate() -- ensure this partition has room for at least 10547296 bytes. 
    

    but dbus running, and work...
    startup abort and return to kdm login page, after blinking hdd image
     
  13. avilla@

    avilla@ New Member Developer

    Messages:
    258
    Thanks Received:
    55
    This is not an error. And what does Konsole do? It crashes? Then rebuild x11/konsole with WITH_DEBUG set and get a backtrace.

    What?

    It may happen... I still don't know why. Try removing its files (unless you have something you really want in Nepomuk):

    Code:
    $ find ~/.kde4 -name "*nepomuk*" -exec rm -r '{}' \;
    $ rm -r ~/.strigi


    D-Bus is working? For real? Please, run # service dbus restart and paste the output of $ ps waux | grep dbus.
     
  14. alie

    alie Member

    Messages:
    576
    Thanks Received:
    50
    Yes, I can't take a screenshot with PrtScn button on my keyboard. KDE displays
    Code:
    Unknown host ksnapshot: Host not found
    and the notification bar also shows the same error.
     
  15. lissyara

    lissyara New Member

    Messages:
    30
    Thanks Received:
    4
    Code:
    dc7700p$ ps waux | grep dbus
    messagebus  2135   0,0  0,1  14468   2512 ??  Is   23:23     0:00,08 /usr/local/bin/dbus-daemon --system
    lissyara    2817   0,0  0,1  14468   2264 ??  Is   23:38     0:00,01 /usr/local/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
    lissyara    2816   0,0  0,1  30276   2632  0  I    23:38     0:00,00 dbus-launch --autolaunch=fe7fdebc0a636956d1d468fd0000d0af --binary-syntax --close-stderr
    lissyara   28211   0,0  0,0  16452   1860  2  S+    0:32     0:00,00 grep dbus
    dc7700p$ service dbus restart
    Stopping dbus.
    kill: 2135: Operation not permitted
    dbus already running? (pid=2135).
    dc7700p$ su
    dc7700p# service dbus restart
    Stopping dbus.
    Starting dbus.
    dc7700p# ps waux | grep dbus
    messagebus 28264   0,2  0,1  14468   2476 ??  Ss    0:33     0:00,03 /usr/local/bin/dbus-daemon --system
    lissyara    2817   0,0  0,1  14468   2264 ??  Ss   23:38     0:00,01 /usr/local/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
    lissyara    2816   0,0  0,1  30276   2632  0  I    23:38     0:00,00 dbus-launch --autolaunch=fe7fdebc0a636956d1d468fd0000d0af --binary-syntax --close-stderr
    root       28270   0,0  0,0  16452   1860  2  S+    0:33     0:00,01 grep dbus
    dc7700p# 
     
  16. lissyara

    lissyara New Member

    Messages:
    30
    Thanks Received:
    4
    hmm... strange, pid does not change, after a restart.

    It's not stopped by the rc script:
    Code:
    dc7700p# service dbus stop
    Stopping dbus.
    dc7700p# ps waux | grep dbus
    lissyara   2817   0,0  0,1  14468   2268 ??  Ss   23:38     0:00,02 /usr/local/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
    lissyara   2816   0,0  0,1  30276   2632  0  I    23:38     0:00,00 dbus-launch --autolaunch=fe7fdebc0a636956d1d468fd0000d0af --binary-syntax --close-stderr
    root      28286   0,0  0,0  16452   1860  2  S+    0:35     0:00,01 grep dbus
    dc7700p# kill 2817 2816
    dc7700p# kill 2817 2816
    2817: No such process
    dc7700p# kill 2817 2816
    2817: No such process
    2816: No such process
    dc7700p# service dbus restart
    dbus not running? (check /var/run/dbus/dbus.pid).
    Starting dbus.
    dc7700p# ps waux | grep dbus
    messagebus 28299   0,8  0,1  14468   2448 ??  Ss    0:36     0:00,04 /usr/local/bin/dbus-daemon --system
    root       28305   0,0  0,0  16452   1860  2  S+    0:36     0:00,01 grep dbus
    
     
  17. lissyara

    lissyara New Member

    Messages:
    30
    Thanks Received:
    4
    but, after last action - no running kde, no happy =)
     
  18. avilla@

    avilla@ New Member Developer

    Messages:
    258
    Thanks Received:
    55
    Do you have graphics/ksnapshot installed?

    Have you tried reinstalling devel/dbus and devel/dbus-qt4?

    Pardon?
     
  19. lissyara

    lissyara New Member

    Messages:
    30
    Thanks Received:
    4
    yes, every last 5 days, i reinstall all *hal* && *dbus* =((
    and some other ports...
    KDE not work =)
     
  20. avilla@

    avilla@ New Member Developer

    Messages:
    258
    Thanks Received:
    55
    Let's try some manual startup. Log into console and kill any X instance, then:

    Code:
    # service dbus restart
    # service hald restart
    $ startx


    Then, in xterm:

    Code:
    $ script /tmp/kdelog /usr/local/kde4/bin/startkde


    And paste somewhere (hint: pastebin) /tmp/kdelog.
     
  21. alie

    alie Member

    Messages:
    576
    Thanks Received:
    50
    I do think KDE minimal installation should install graphics/ksnapshot? no ?

    * I have verified most of bugs with portupgrade -ay and verified the crashing issue for x11/konsole and nepomukservicestub still exists and restart my system from KDE menu->Restarts leads my system to hang
    * And i found it still takes 1-2 mins to launch KDM with:
    Code:
    kdm4_enable="YES"
     
  22. alie

    alie Member

    Messages:
    576
    Thanks Received:
    50
    Btw is there any bugs Tracker for KDE-FreeBSD projects ? so i can submit all the bugs on that Tracker instead of here or do people think better to write all the bugs found here ?
     
  23. avilla@

    avilla@ New Member Developer

    Messages:
    258
    Thanks Received:
    55
    No. By the way, what do you mean with "KDE minimal installation"?

    Still, you didn't follow my instructions to debug this. Read the posts above.

    The fix has been committed last night.

    Start KDE by hand and produce a log. Instructions are in my latest post to lissyara.

    The FreeBSD bug tracker.
     
  24. alie

    alie Member

    Messages:
    576
    Thanks Received:
    50
    I mean x11/kdebase4-workspace, x11/kdebase4-runtime, x11/kde4-runtime and x11/kde4-baseapps. x11/kde4-baseapps should install graphics/ksnapshot ?

    Code:
    $ konsole
    konsole(13274)/KSharedDataCache ensureFileAllocated: This system misses support for posix_fallocate() -- ensure this partition has room for at least 10526816 bytes. 
    $ X Error: BadWindow (invalid Window parameter) 3
      Major opcode: 20 (X_GetProperty)
      Resource id:  0x3200150



    Pastebin for "Takes 1-2 minutes to start KDM" issue:
    http://pastebin.com/zZLawJ3c


    And is there any plan to create kde-minimal port ?
     
  25. avilla@

    avilla@ New Member Developer

    Messages:
    258
    Thanks Received:
    55
    Paste the output of $ pkg_info | grep kde.

    No.

    I wrote other things. Anyway, let's postpone this a bit.

    Might be. Anyway, x11/kde4 with all OPTIONS disabled is a kde-lite port.