Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDDM silently hangs up when /var/lib is full #1120

Open
dvalter opened this issue Jan 7, 2019 · 6 comments
Open

SDDM silently hangs up when /var/lib is full #1120

dvalter opened this issue Jan 7, 2019 · 6 comments
Assignees
Milestone

Comments

@dvalter
Copy link

dvalter commented Jan 7, 2019

When there's no free disk space on /var/lib/sddm, sddm neither starts properly nor quits with helpful log message. It leaves black screen with cursor instead.

Steps to reproduce

  1. Log out
  2. Stop sddm (systemctl stop sddm for systemd distros)
  3. Fill all the disk space at the /var/lib/sddm mountpoint (dd if=/dev/zero of=/var/lib/zerofile bs=1M if mountpoint is /var/lib) WARNING! It may cause some damage to your system or/and services
  4. Start sddm (systemctl start sddm for systemd distros)
  5. Observe the broken SDDM and non-informatimve logs (journalctl -eu sddm for systemd distros)
    Note, that if /var/log mountpoint is full either, systemd may leave your logs incomplete

Reproduced on

  • Fedora 28 x86_64, sddm-0.17.0-3.fc28.x86_64
  • KDE Neon (Ubuntu 18.04 amd64), sddm 0.17.0+p18.04+git20181011.1524-0 amd64
@plfiorini
Copy link
Member

plfiorini commented Jan 7, 2019

You cannot expect a service to check the status of your machine instead of you (the system administrator).

@ryanmusante
Copy link

ryanmusante commented Jan 8, 2019

@dvalter When there is no free disk space, many other things will fail ahead of SDDM, no?

@dvalter
Copy link
Author

dvalter commented Jan 8, 2019

You cannot expect a service to check the status of your machine instead of you (the system administrator).

SDDM actually does it when it receives write error and fails to initialize properly.
But it does not provide any information about the сause.
Possibly sddm-helper could provide such an output. but due to #1081 it does not work

@dvalter
Copy link
Author

dvalter commented Jan 8, 2019

@dvalter When there is no free disk space, many other things will fail ahead of SDDM, no?

Not quite. SDDM runs as sddm, not root (at least in Neon and Fedora), so it means SDDM is not enabled to use reserved space. So system works mostly fine, but SDDM does not.

@plfiorini
Copy link
Member

All we can do here is warn if the state file in /var/lib/sddm cannot be saved, reporting whatever generic error the operating system gives us but you might not see it if /var/log is full too.

@plfiorini plfiorini removed the wontfix label Jan 8, 2019
@plfiorini plfiorini added this to the 0.19 milestone Jan 8, 2019
@plfiorini plfiorini self-assigned this Jan 8, 2019
@Pointedstick
Copy link
Collaborator

Similar issue with a non-interactive black screen + cursor seen in #1132 after setting a custom image background in the KDE Plasma SDDM KCM.

@plfiorini plfiorini modified the milestones: 0.19, 0.20 Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants