Solved Killed my sddm, please help!

Argentum

Well-Known Member

Reaction score: 180
Messages: 395

Hello!

Upgrading ports on my desktop computer (actually on two of them) I came to the point where my perfectly running x11/sddm does not work any more.

In the tail -n 10 /var/log/sddm.log:

Code:
[08:58:18.600] (II) DAEMON: Initializing...
[08:58:18.666] (II) DAEMON: Starting...
[08:58:18.666] (II) DAEMON: No session manager found
[08:58:18.666] (II) DAEMON: Adding new display on vt 9 ...
[08:58:18.690] (II) DAEMON: Loading theme configuration from ""
[08:58:18.690] (II) DAEMON: Display server starting...
[08:58:18.690] (II) DAEMON: Adding cookie to "/var/run/sddm/{a9a5aa24-5a19-4fb3-bd74-11af61769756}"
[08:58:18.692] (EE) DAEMON: Failed to write xauth file
[08:58:18.692] (EE) DAEMON: Could not start Display server on vt 9
[08:59:10.604] (WW) DAEMON: Signal received: SIGTERM
The last line in that log is that I terminated sddm.

The service starts and keeps running, but there is no login screen.

Rebuilt the port with portupgrade -fR with no improvement.
I have ran out of ideas.

For testing and shortcut I installed the x11/slim. It works, and saved my day, but just one day. My mate comes up and works fine.

But I used sddm for multiple wm (MATE, Xfce, KDE Plasma and Gnome) login. Actually liked sddm, but it is dead now :(

Please help! What can I do to revive it?
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 10,974
Messages: 36,915

Turn off SDDM and check if your Xorg still works with startx. Also check the permissions of ~/.Xauthority, it seems to be complaining about that. Make sure you're logged off and remove that file if necessary.

But I used sddm for multiple wm (MATE, Xfce, KDE Plasma and Gnome) login.
You know SLiM can do that too, right? Just hit F1 to cycle through the options.
 
OP
Argentum

Argentum

Well-Known Member

Reaction score: 180
Messages: 395

Turn off SDDM and check if your Xorg still works with startx. Also check the permissions of ~/.Xauthority, it seems to be complaining about that. Make sure you're logged off and remove that file if necessary.
Xorg works and also when I replaced the ssdm with slim, I get the MATE running. Everything works with slim, but I can not use sddm any more.
 
OP
Argentum

Argentum

Well-Known Member

Reaction score: 180
Messages: 395

check the perm on your /home /tmp and the free storage space
No change in permissions. I have over 1T of free ZFS storage space on that computer. The smallest has hundreds of gigabytes.

As I have told, I get it running with slim, but not with sddm any more (after upgrading some ports). I have recursively recompiled and installed it, but no improvement.
 
OP
Argentum

Argentum

Well-Known Member

Reaction score: 180
Messages: 395

Also check the permissions of ~/.Xauthority, it seems to be complaining about that. Make sure you're logged off and remove that file if necessary.
There was no ~/.Xauthority, created that with user write permissions. Still sddm fails. After stopping the sddm service, the ~/.Xauthority is gone. So, it accesses the file and deletes it after finishing.

Also, when starting service sddm onestart I get sh: /usr/local/bin/xauth: not found message on terminal.

The question is still, why it worked and then stopped working after upgrading the ports. All the configuration remained the same.

Is there anybody here who uses the latest sddm-0.19.0?
Before that I had sddm-0.18.1 installed. Must confess that I have not tried ports-mgmt/portdowngrade
 
OP
Argentum

Argentum

Well-Known Member

Reaction score: 180
Messages: 395

sddm 0.19 and plasma5 work here.
Good to know, but it also rises questions. On my computers it worked just recently, but after upgrading ports it does not. With other ports, also upgraded Xorg to xorg-server-1.20.9_1,1. Trying to recursively reinstall everything I have upgraded, but no help :(
 

T-Daemon

Daemon

Reaction score: 693
Messages: 1,461

The question is still, why it worked and then stopped working after upgrading the ports. All the configuration remained the same.

It may need changing the location, this is from the post-install pkg-message ( pkg info -D sddm):

Rich (BB code):
    If upgrading from < 0.18.1_4:
        SDDM user's home directory have been moved to /var/lib/sddm. It is advised to run
        following commands as root:
        # pw usermod -n sddm -d /var/lib/sddm
        # pwd_mkdb /etc/master.passwd
        # mv /usr/local/etc/sddm/home/state.conf /var/lib/sddm/state.conf
        # rm -rf /usr/local/etc/sddm/home
Is there anybody here who uses the latest sddm-0.19.0?
Before that I had sddm-0.18.1 installed.
 
OP
Argentum

Argentum

Well-Known Member

Reaction score: 180
Messages: 395

It may need changing the location, this is from the post-install pkg-message ( pkg info -D sddm):

Rich (BB code):
    If upgrading from < 0.18.1_4:
        SDDM user's home directory have been moved to /var/lib/sddm. It is advised to run
        following commands as root:
        # pw usermod -n sddm -d /var/lib/sddm
        # pwd_mkdb /etc/master.passwd
        # mv /usr/local/etc/sddm/home/state.conf /var/lib/sddm/state.conf
        # rm -rf /usr/local/etc/sddm/home
That worked! Thank You!

My SDDM is back in life again :)

Agree, it is good to read post-install messages, but upgrading with something like portupgrade --batch -R '*' takes some time and I am not sitting behind the screen.

P.S. I must confess, that x11/xauth was also needed. It worked without that before, but not now. Wonder why there is no dependency in the main port.

And now, the logfile looks like this 👍 :
Code:
[19:24:54.000] (II) DAEMON: Initializing...
[19:24:54.007] (II) DAEMON: Starting...
[19:24:54.007] (II) DAEMON: No session manager found
[19:24:54.007] (II) DAEMON: Adding new display on vt 9 ...
[19:24:54.008] (II) DAEMON: Loading theme configuration from ""
[19:24:54.008] (II) DAEMON: Display server starting...
[19:24:54.008] (II) DAEMON: Adding cookie to "/var/run/sddm/{454cfac7-697a-4bae-a92d-c8d6f566444d}"
[19:24:54.011] (II) DAEMON: Running: /usr/local/bin/X -nolisten tcp -auth /var/run/sddm/{454cfac7-697a-4bae-a92d-c8d6f566444d} -backgrou
nd none -noreset -displayfd 19 -seat seat0 vt9
[19:24:54.427] (II) DAEMON: Setting default cursor
[19:24:54.429] (WW) DAEMON: Could not setup default cursor
[19:24:54.429] (II) DAEMON: Running display setup script  "/usr/local/share/sddm/scripts/Xsetup"
[19:24:54.432] (II) DAEMON: Display server started.
[19:24:54.432] (II) DAEMON: Socket server starting...
[19:24:54.432] (II) DAEMON: Socket server started.
[19:24:54.433] (II) DAEMON: Loading theme configuration from "/usr/local/share/sddm/themes/breeze/theme.conf"
[19:24:54.433] (II) DAEMON: Greeter starting...
[19:24:54.444] (II) HELPER: [PAM] Starting...
[19:24:54.444] (II) HELPER: [PAM] Authenticating...
[19:24:54.444] (II) HELPER: [PAM] returning.
[19:24:54.445] (II) HELPER: Starting: "/usr/local/share/sddm/scripts/Xsession /usr/local/bin/sddm-greeter --socket /tmp/sddm-:0-bjFijT -
-theme /usr/local/share/sddm/themes/breeze"
[19:24:54.448] (II) DAEMON: Greeter session started successfully
[19:24:55.265] (II) DAEMON: Message received from greeter: Connect
[19:25:04.770] (II) DAEMON: Message received from greeter: Login
[19:25:04.770] (II) DAEMON: Reading from "/usr/local/share/xsessions/mate.desktop"
[19:25:04.771] (II) DAEMON: Reading from "/usr/local/share/xsessions/mate.desktop"
[19:25:04.771] (II) DAEMON: Session "/usr/local/share/xsessions/mate.desktop" selected, command: "mate-session"
[19:25:04.783] (II) HELPER: [PAM] Starting...
[19:25:04.783] (II) HELPER: [PAM] Authenticating...
[19:25:04.783] (II) HELPER: [PAM] Preparing to converse...
[19:25:04.783] (II) HELPER: [PAM] Conversation with 1 messages
[19:25:04.786] (II) HELPER: [PAM] returning.
[19:25:04.787] (II) DAEMON: Authenticated successfully
[19:25:04.787] (II) HELPER: [PAM] Preparing to converse...
[19:25:04.787] (II) HELPER: [PAM] Conversation with 1 messages
[19:25:04.787] (WW) DAEMON: Authentication information: "Last login: Thu Dec  3 18:36:08 from :0"
[19:25:04.788] (II) HELPER: Starting: "/usr/local/share/sddm/scripts/Xsession mate-session"
[19:25:04.790] (II) HELPER: Adding cookie to "/home/ott/.Xauthority"
[19:25:04.795] (II) DAEMON: Session started
[19:25:04.840] (II) HELPER: [PAM] Closing session
[19:25:04.841] (II) HELPER: [PAM] Ended.
[19:25:04.842] (II) DAEMON: Auth: sddm-helper exited successfully
[19:25:04.842] (II) DAEMON: Greeter stopped.

:beer:
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 10,974
Messages: 36,915

Agree, it is good to read post-install messages, but upgrading with something like portupgrade --batch -R '*' takes some time and I am not sitting behind the screen.
pkg info -Da
Code:
     -a, --all
             Display all installed packages.
Code:
     -D, --pkg-message
             Show the pkg-message for matching packages.
 
Top