Closed magnetophon closed 6 years ago
Is there any reason that you have both those session variable settings, but defaultLocale = "en_US.UTF-8";
? Regardless, it's odd because all locales should be supported by default.
I don't think the main issue is related to the locale though. Is there anything in the journal that might explain why X (I'm assuming you're using it?) stops?
@lheckemann I want time, currency etcetera in Dutch, and language in English.
Yes, I'm using X. This part of the journal seems relevant:
May 01 05:27:08 thinknix systemd[1]: Stopping Load/Save Random Seed...
May 01 05:27:08 thinknix systemd[1]: Unmounting /run/wrappers...
May 01 05:27:08 thinknix systemd[1]: Unmounting POSIX Message Queue File System...
May 01 05:27:08 thinknix systemd[1]: Closed /dev/initctl Compatibility Named Pipe.
May 01 05:27:08 thinknix wpa_supplicant[1149]: nl80211: deinit ifname=wlp3s0 disabled_11b_rates=0
May 01 05:27:08 thinknix systemd[1]: Stopping Network Time Synchronization...
May 01 05:27:08 thinknix systemd[1]: Stopping X11 Server...
May 01 05:27:08 thinknix wpa_supplicant[1149]: wlp3s0: CTRL-EVENT-TERMINATING
May 01 05:27:08 thinknix compton[1202]: [ 441236.66 ] error 9 BadDrawable request 139 minor 4 XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
May 01 05:27:08 thinknix compton[1202]: after 31507302 requests (31507302 known processed) with 0 events remaining.
May 01 05:27:08 thinknix systemd[1]: Stopping Load/Save Screen Backlight Brightness of backlight:acpi_video0...
May 01 05:27:09 thinknix unclutter[1200]: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
May 01 05:27:09 thinknix unclutter[1200]: after 11168 requests (11167 known processed) with 0 events remaining.
May 01 05:27:09 thinknix display-manager[912]: slim: unexpected signal 15
May 01 05:27:09 thinknix display-manager[912]: slim: connection to X server lost.
May 01 05:27:09 thinknix umount[31279]: umount: /run/user/1000: target is busy.
May 01 05:27:08 thinknix systemd[1137]: unclutter-xfixes.service: Main process exited, code=exited, status=1/FAILURE
May 01 05:27:09 thinknix dunst[1201]: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0"
May 01 05:27:09 thinknix dunst[1201]: after 1172 requests (1172 known processed) with 0 events remaining.
May 01 05:27:09 thinknix compton[1202]: serial 29875810: "BadDrawable (invalid Pixmap or Window parameter)"
May 01 05:27:09 thinknix compton[1202]: [ 441236.66 ] error 143 BadPicture request 139 minor 8 serial 29875811: "RenderBadPicture (invalid Picture parameter)"
May 01 05:27:09 thinknix compton[1202]: [ 441236.67 ] error 143 BadPicture request 139 minor 7 serial 29875925: "RenderBadPicture (invalid Picture parameter)"
May 01 05:27:09 thinknix compton[1202]: [ 441236.67 ] error 4 BadPixmap request 54 minor 0 serial 29875926: "BadPixmap (invalid Pixmap parameter)"
May 01 05:27:09 thinknix compton[1202]: [ 468872.85 ] error 9 BadDrawable request 139 minor 4 serial 31440841: "BadDrawable (invalid Pixmap or Window parameter)"
May 01 05:27:09 thinknix compton[1202]: [ 468872.85 ] error 143 BadPicture request 139 minor 8 serial 31440842: "RenderBadPicture (invalid Picture parameter)"
May 01 05:27:09 thinknix compton[1202]: [ 468872.85 ] error 143 BadPicture request 139 minor 7 serial 31440938: "RenderBadPicture (invalid Picture parameter)"
May 01 05:27:09 thinknix compton[1202]: [ 468872.85 ] error 4 BadPixmap request 54 minor 0 serial 31440939: "BadPixmap (invalid Pixmap parameter)"
May 01 05:27:09 thinknix sshd[921]: Received signal 15; terminating.
May 01 05:27:09 thinknix systemd[1]: Unmounting Kernel Debug File System...
May 01 05:27:09 thinknix systemd[1]: Stopped Load Kernel Modules.
May 01 05:27:09 thinknix systemd[1137]: unclutter-xfixes.service: Failed with result 'exit-code'.
May 01 05:27:09 thinknix systemd[1]: Stopping Update UTMP about System Boot/Shutdown...
May 01 05:27:09 thinknix systemd[1]: Stopping SSH Daemon...
May 01 05:27:09 thinknix systemd[1]: Stopping Authorization Manager...
May 01 05:27:09 thinknix systemd[1137]: compton.service: Main process exited, code=exited, status=1/FAILURE
May 01 05:27:09 thinknix systemd[1137]: compton.service: Failed with result 'exit-code'.
May 01 05:27:09 thinknix systemd[1137]: dunst.service: Main process exited, code=exited, status=1/FAILURE
May 01 05:27:09 thinknix systemd[1137]: dunst.service: Failed with result 'exit-code'.
May 01 05:27:09 thinknix systemd[1]: Stopped S.M.A.R.T. Daemon.
May 01 05:27:09 thinknix systemd[1]: Stopped Thinkfan.
May 01 05:27:09 thinknix xsession[1144]: Exiting due to signal.
May 01 05:27:09 thinknix systemd[1]: Stopped SSH Daemon.
May 01 05:27:09 thinknix systemd[1]: Stopped Getty on tty1.
May 01 05:27:09 thinknix systemd[1]: Stopped CUPS Scheduler.
May 01 05:27:09 thinknix systemd[1]: Stopped WPA supplicant.
May 01 05:27:09 thinknix ..udiskie-wrapp[1203]: .udiskie-wrapped: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
May 01 05:27:09 thinknix xsession[1144]: 05:27:09 WARNING: The X11 connection broke: I/O error (code 1)
May 01 05:27:09 thinknix xsession[1144]: XIO: fatal IO error 0 (Success) on X server ":0.0"
May 01 05:27:09 thinknix xsession[1144]: after 448401 requests (448401 known processed) with 0 events remaining.
May 01 05:27:09 thinknix systemd[1]: Stopped Udisks2 service.
May 01 05:27:09 thinknix systemd[1]: Stopped Authorization Manager.
May 01 05:27:09 thinknix systemd[1137]: udiskie.service: Main process exited, code=exited, status=1/FAILURE
May 01 05:27:09 thinknix systemd[1137]: udiskie.service: Failed with result 'exit-code'.
May 01 05:27:09 thinknix systemd[1]: Stopped udev Kernel Device Manager.
May 01 05:27:09 thinknix .termite-wrappe[22580]: termite: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
May 01 05:27:09 thinknix systemd[1]: Stopped Network Time Synchronization.
May 01 05:27:09 thinknix python3[1199]: .clipster-wrapped: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
May 01 05:27:09 thinknix xsession[1144]: [libi3] libi3/font.c Using Pango font FontAwesome 8,Terminus, size 8
May 01 05:27:09 thinknix systemd[1]: run-user-1000.mount: Mount process exited, code=exited status=32
I have the same issue, with a similar locale issue in my log:
$ nixos-rebuild switch
building Nix...
building the system configuration...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "en_US.UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
stopping the following units: accounts-daemon.service, acpid.service, audit.service, cpufreq.service, kmod-static-nodes.service, network-local-commands.service, network-manager.service, network-setup.service, nix-daemon.service, nix-daemon.socket, nscd.service, rngd.service, rtkit-daemon.service, system.slice, systemd-modules-load.service, systemd-sysctl.service, systemd-timesyncd.service, systemd-tmpfiles-clean.timer, systemd-tmpfiles-setup-dev.service, systemd-udev-settle.service, systemd-udev-trigger.service, systemd-udevd-control.socket, systemd-udevd-kernel.socket, systemd-udevd.service, upower.service
Most of the time it reboots directly, but sometimes I land to a broken tty.
This is highly similar to bug #18158 no?
(Edit: more details. I'm not using --upgrade
and I'm on nixos-unstable
channel, updated yesterday)
Also getting this, nothing fancy with locales in my configuration. Here's some journal dumps:
At some point I ctrl-alt-del to reboot and that's not visible from those messages, probably because it says "journal stopped" at the end, but it's a bit confusing.
Might be related to #38991 somehow after all?
Ok, I've managed to find the reason for this.
Due to an upstream change that removed the system.slice
unit file (https://github.com/systemd/systemd/commit/d8e5a9338278d6602a0c552f01f298771a384798), switch-to-configuration.pl
was stopping system.slice
:
[...]
if (-e $prevUnitFile && ($state->{state} eq "active" || $state->{state} eq "activating")) {
if (! -e $newUnitFile || abs_path($newUnitFile) eq "/dev/null") {
my $unitInfo = parseUnit($prevUnitFile);
$unitsToStop{$unit} = 1 if boolIsTrue($unitInfo->{'X-StopOnRemoval'} // "yes");
}
[...]
This is unfortunate but at least it means that this won't happen again.
Great, thanks @primeos! Would you like me to test this, and if so, how?
@magnetophon Sorry, I've completely forgotten to answer... :o There was no need to test it (but ofc it never hurts) but thanks for your offer :)
I initially thought that this wouldn't matter anymore but it turned out that 18.03 still has a unit file for system.slice
(missed that when I initially checked it...). https://github.com/NixOS/nixpkgs/pull/43682 (also backported to 18.03) should prevent this problem from occurring again (when switching from 18.03 to 18.09). I'm closing this issue, if you don't mind, since it should be solved by now (at least for 18.03 -> 18.09/nixos-unstable).
Issue description
When I run
nixos-rebuild switch --upgrade
, NixOS goes to tty1, and I can't login there: nothing I type shows up in the screen.I get the following output:
It might be related to these lines in my config.
Technical details
"x86_64-linux"
Linux 4.16.5, NixOS, 18.09pre138687.1b1be29bf82 (Jellyfish)
no
yes
nix-env (Nix) 2.0.1
""
"nixos"
/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs