Bug 941106 - Can't log in to text console because Systemd messages clobber text consoles every second if X doesn't work
Summary: Can't log in to text console because Systemd messages clobber text consoles e...
Status: REOPENED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: x86-64 SUSE Other
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-10 09:51 UTC by Stefan Hundhammer
Modified: 2024-06-04 08:41 UTC (History)
3 users (show)

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
output of sudo zypper lr --url (2.65 KB, text/plain)
2015-08-10 09:55 UTC, Stefan Hundhammer
Details
output of rpm -qa (105.21 KB, text/plain)
2015-08-10 09:56 UTC, Stefan Hundhammer
Details
output of sudo journalctl --since "2015-08-10 09:00" (474.22 KB, application/x-bzip)
2015-08-10 10:00 UTC, Stefan Hundhammer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Hundhammer 2015-08-10 09:51:58 UTC
After updating all packages to the latest Tumbleweed, I got a new kernel, had to reboot, and wanted to reinstall the NVidia drivers. But I was never able to even log in (on a text console) because I got messages from systemd every second (or faster):

systemd[1]: Stopping User Manager for UID 470...
systemd[1]: Stopped User Manager for UID 470.
systemd[1]: Starting User Manager for UID 470...
systemd[1]: Stopping User Manager for UID 470...
systemd[1]: Stopped User Manager for UID 470.
systemd[1]: Starting User Manager for UID 470...
systemd[1]: Stopping User Manager for UID 470...
systemd[1]: Stopped User Manager for UID 470.
systemd[1]: Starting User Manager for UID 470...
systemd[1]: Stopping User Manager for UID 470...
systemd[1]: Stopped User Manager for UID 470.
systemd[1]: Starting User Manager for UID 470...

etc.

Switching to text console 2 / 3 / 4 didn't help: It would immediately switch back to text console 1 with those messages.

UID 470 is 'gdm' (the Gnome Display Manager). The message by itself is perfectly legal because X11 didn't work at that time (still trying to use the old NVidia kernel module and X11 driver), but repeating it forever does not make any sense.

Basically, this made my system completely unusable: No X11 login, no text console login. I could only fix it with ssh login from another machine.

For a normal user, this kind of thing is probably a complete showstopper that would make him reinstall the system.
Comment 1 Stefan Hundhammer 2015-08-10 09:55:43 UTC
Created attachment 643305 [details]
output of   sudo zypper lr --url
Comment 2 Stefan Hundhammer 2015-08-10 09:56:54 UTC
Created attachment 643306 [details]
output of   rpm -qa

Updated to latest Tumbleweed (sudo zypper dup) on 2015-08-10 10:30
Comment 3 Stefan Hundhammer 2015-08-10 10:00:01 UTC
Created attachment 643307 [details]
output of     sudo journalctl --since "2015-08-10 09:00"
Comment 4 Stefan Hundhammer 2015-08-10 10:01:18 UTC
BTW this happened to me before. It seems to be easy to reproduce: Every time X11 doesn't work and I reboot before trying to reinstall the NVidia drivers, I get this.
Comment 5 Dr. Werner Fink 2015-08-12 10:40:54 UTC
Install package syslog-service and be happy ... with this you get

  /usr/lib/systemd/system/klog.service

which indeed uses /usr/sbin/klogconsole to switch console messages to /dev/tty10
Comment 6 Ludwig Nussel 2016-01-28 10:57:09 UTC
I'll reopen this and move to gnome. I think gdm used to have a mechanism to detect crashing X that should prevent it from trying infinitely. Maybe that check got broken somehow.
Comment 7 Stefan Hundhammer 2016-09-29 08:15:58 UTC
Better yet, systemd should not try forever to restart *anything*, or at least drastically increase the interval between attempts after a number of failures.
Comment 8 Dr. Werner Fink 2016-10-11 06:27:24 UTC
(In reply to Stefan Hundhammer from comment #7)

> Better yet, systemd should not try forever to restart *anything*, or at least 
> drastically increase the interval between attempts after a number of failures.

You might set/change DefaultRestartSec in /etc/systemd/system.conf see systemd-system.conf(5) ... or set per service unit the parameters

  RestartPreventExitStatus=

or even harder with

  Restart=

see systemd.service(5)
Comment 9 Steffen Winterfeldt 2020-02-17 10:46:07 UTC
I've also run into this and I must say it's very annoying.

And it's important that the *default* config is something usable. There's no
point in knowing which config file to tweak as systemd simply stops you
from accomplishing anything at that moment.

I see no reason why it couldn't stop after a few tries.

Not sure why this was assigned to gnome people...
Comment 10 Stefan Hundhammer 2024-06-04 08:41:23 UTC
I reported this 8 years ago. I was brushed aside (which is not a solution, of course), then moved from systemd to GNOME, and years later it was reopened.

Is there a solution now? Do we now have a systemd default configuration that avoids this problem?

Was there any move to at least increase the restart interval for systemd services that keep failing?

Was there at least a local solution for GDM not restarting forever in a one-second interval; which is completely pointless to begin with?