Bug 1648880 - XFCE won't come up using lightdm: unable to contact settings server
Summary: XFCE won't come up using lightdm: unable to contact settings server
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: xfce4-session
Version: 29
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Kevin Fenzi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1648927
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-12 11:02 UTC by Tomas Tomecek
Modified: 2018-11-15 21:25 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2018-11-15 21:25:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomas Tomecek 2018-11-12 11:02:29 UTC
Description of problem:
I am using lightdm. When I launch my XFCE session, it won't come up, instead an error message is shown: "Unable to contact settings server" and lightdm gets restarted.

I was able to observe that /run/user/1000 is owned by root, which sounds odd.

There is also this segfault from startxfce4:

Stack trace of thread 3338:                                                                                                                                                                                        #0  0x0000560bab8d4a94 xfsm_manager_get_shutdown_type (xfce4-session)                                                                                                                                              #1  0x0000560bab8c7cdd n/a (xfce4-session)                                                                                                                                                                         #2  0x00007fc23c995816 n/a (libgio-2.0.so.0)                                                                                                                                                                       #3  0x00007fc23c995c20 n/a (libgio-2.0.so.0)                                                                                                                                                                       #4  0x00007fc23c959f74 n/a (libgio-2.0.so.0)                                                                                                                                                                       #5  0x00007fc23c95a8d6 n/a (libgio-2.0.so.0)                                                                                                                                                                       #6  0x00007fc23c988415 n/a (libgio-2.0.so.0)                                                                                                                                                                       
#7  0x00007fc23c959f74 n/a (libgio-2.0.so.0)                                                                                                                                                                       #8  0x00007fc23c959fad n/a (libgio-2.0.so.0)                                                                                                                                                                       #9  0x00007fc23c79db7b n/a (libglib-2.0.so.0)                                                                                                                                                                      #10 0x00007fc23c7a126d g_main_context_dispatch (libglib-2.0.so.0)                                                                                                                                                  #11 0x00007fc23c7a1638 n/a (libglib-2.0.so.0)                                                                                                                                                                      #12 0x00007fc23c7a1962 g_main_loop_run (libglib-2.0.so.0)                                                                                                                                                          #13 0x00007fc23cfbfb5d gtk_main (libgtk-3.so.0)                                                                                                                                                                    #14 0x0000560bab8c15c2 main (xfce4-session)                                                                                                                                                                        
#15 0x00007fc23c590413 __libc_start_main (libc.so.6)                                                                                                                                                               #16 0x0000560bab8c188e _start (xfce4-session)                                                                                                                                                                                                                                                                                                                                                                                         Stack trace of thread 3344:                                                                                                                                                                                        #0  0x00007fc23c65e371 __poll (libc.so.6)                                                                                                                                                                          #1  0x00007fc23c7a15a6 n/a (libglib-2.0.so.0)                                                                                                                                                                      #2  0x00007fc23c7a16d0 g_main_context_iteration (libglib-2.0.so.0)                                                                                                                                                 #3  0x00007fc23c7a1721 n/a (libglib-2.0.so.0)                                                                                                                                                                      
#4  0x00007fc23c7ca48a n/a (libglib-2.0.so.0)                                                                                                                                                                      #5  0x00007fc23c73a58e start_thread (libpthread.so.0)                                                                                                                                                              #6  0x00007fc23c669593 __clone (libc.so.6)                                                                                                                                                                                                                                                                                                                                                                                            Stack trace of thread 3464:                                                                                                                                                                                        #0  0x00007fc23c663ded syscall (libc.so.6)                                                                                                                                                                         #1  0x00007fc23c7e911e g_cond_wait_until (libglib-2.0.so.0)                                                                                                                                                        #2  0x00007fc23c773231 n/a (libglib-2.0.so.0)                                                                                                                                                                      #3  0x00007fc23c7cafd2 n/a (libglib-2.0.so.0)                                                                                                                                                                      
#4  0x00007fc23c7ca48a n/a (libglib-2.0.so.0)                                                                                                                                                                      #5  0x00007fc23c73a58e start_thread (libpthread.so.0)                                                                                                                                                              #6  0x00007fc23c669593 __clone (libc.so.6)    


Version-Release number of selected component (if applicable):
xfce4-session-4.13.1-20.fc29.x86_64
lightdm-1.28.0-2.fc29.x86_64

Right now I switched to gdm which seems to work.

Comment 1 Kevin Fenzi 2018-11-13 17:37:37 UTC
Owned by root on the user dir is definitely wrong... 

what happens if you logout, login as root on alt-f2 vty and do chown -R youruser /run/user/1000 and then switch back to lightdm and try and login as your user?

Comment 2 Tomas Tomecek 2018-11-14 12:14:06 UTC
I don't even log in, that's the problem. When I manually change ownership of the directory I'm still unable to log in. On the other hand, I am able to log in with gnome shell environment (so that I can at least work).

I reported #1648927 to track the ownership issue. I found out that systemd creates and mounts that directory correctly, but *something* else changes the ownership. I have no idea what service or tool is at fault. Lukas Nykryn suggested writing an audit rule to track who touches the directory but unfortunately, there is nothing in the log.

Clearly, this is not an issue of XFCE, so I guess we can close. Even though it should probably not segfault.

Comment 3 Kevin Fenzi 2018-11-15 21:25:44 UTC
Yeah, ok. I'm curious whats doing this, but can follow along on the other bug.


Note You need to log in before you can comment on or make changes to this bug.