-
-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
nixos-rebuild switch/test issue with GNOME #21439
Comments
I suspect restarting some of the services is a problem for gnome. Xfce once had this problem with dbus (the desktop just restarted). |
This seems fixed now. |
It happens again now on recent master. |
Well, I don't see that error message in the journal. But "nixos-rebuild switch" on recent master kills the desktop. Some of the "switch'es" cause a restart of display-manager (so I can login immediately) while others have left me at the console and had to "sudo systemctl stop + start display-manager" to get it back. |
Can confirm I'm experiencing this issue with gnome3/nixos 17.03. It happens with both options, test and switch. |
I have been experiencing this issue for months now in 17.03; didn't know I could access the virtual terminals, I once accidentally hard-reset the machine due to the issue and corrupted my boot partition. Here are some logs from my latest crash. |
I think this is related to #28053 (comment) |
A workaround is to use |
@teh are you still experiencing GDM changing every time you rebuild? |
@eqyiel I use
If you are still experiencing this it's probably a new problem. Can you find anything in the logs that would point to the reason for restarting? |
@teh which master are you referring too? |
I experience this on my machine too. Gnome desktop alwayes crashes and gets stuck on blank screen with flashing "_" after I ran nixos-rebuild switch within gnome environment. I'm currently on: |
That's strange. The fix was picked to 17.09 as 24f0aec, a few weeks before your version. |
The problem still persist. X11 breaks while systemd is going to be restarted. I can't even change tty after x11 breaks. I only can leave the blank screen by shutting down the machine. There was someone on #nixos irc encoutering this still too. |
@teh there's a bunch of stuff in the logs that looks suspicious:
I haven't gotten around to investigating all of this, but thank you for getting back to me - i just reached out because I remembered you had a similar problem. 😄 |
This happens to me as well, as long as gdm is enabled every rebuild (I do not even have to change my config) kills my graphical environment. |
Hm, I haven't experienced any trouble like this lately. (So if it wasn't for others here, I'd close the issue.) (UPDATE: I was wrong, "nixos-rebuild switch" restarts the desktop on NixOS 17.09 when using GNOME.) But just to rule out statefulness in $HOME, try adding a "test" user to your system and use that for a bit. I'm saying this because I just had trouble with screen locking not working in GNOME. When pressing Super+L I only got |
Hi @bjornfor |
Once I remove
from nixos/modules/services/x11/display-managers/gdm.nix I can do a |
I wrote:
But I was wrong. I am affected by this on NixOS 17.09. |
That "conflicts" line was added in b73e3b6 ("GNOME: 3.22 -> 3.24") at the end of august. One month later, just before NixOS 17.09 release, another related fix was added: 48465ae ("Revert "kbd service: use /dev/tty1 for systemd-vconsole-setup"). @jnugh: Will you submit a PR to remove the |
- fix restart of display-manager due to a conflict with getty@tty1 - fixes #21439
The conflict between
|
More specific: The conflict between getty@tt1 and gdm on boot happens only with NVIDIA binary drivers now. On intel cards, both getty@tty1 and gdm can run simultaneously and getty on tty1 will appear whenever you stop gdm (display-manager) |
This should be reopened, as it is occurring again since has been merged #31003. |
Cross-linking: roastiek@d761e66#commitcomment-25382880 Seems like that's the approach we should use. |
Ha, the main difference is whether GDM runs on wayland or xserver. Only wayland supports sharing |
- Fixes nixos-rebuild switch/test issue with GNOME NixOS#21439 - The solution was given here: roastiek@d761e66#commitcomment-25382880
- Fixes nixos-rebuild switch/test issue with GNOME #21439 - The solution was given here: roastiek@d761e66#commitcomment-25382880
Fixed on master as of c46d4da. |
- Fixes nixos-rebuild switch/test issue with GNOME NixOS#21439 - The solution was given here: roastiek@d761e66#commitcomment-25382880 (cherry picked from commit 37875c4)
GDM is now killed if tty1 is started after gdm is launched. This follows upstream's gdm service config. This might cause problems with nixos-rebuild switch though. See the reasoning and work that led to not following upstream on this: #21439 4a180da c46d4da
GDM is now killed if tty1 is started after gdm is launched. This follows upstream's gdm service config. This might cause problems with nixos-rebuild switch though. See the reasoning and work that led to not following upstream on this: #21439 4a180da c46d4da
GDM is now killed if tty1 is started after gdm is launched. This follows upstream's gdm service config. This might cause problems with nixos-rebuild switch though. See the reasoning and work that led to not following upstream on this: #21439 4a180da c46d4da
Still happens on nixos-unstable (20.03pre196586.b943338e) |
The fix hasn't landed in a channel yet (last nixos-unstable channel build failed on an urelated timeout https://hydra.nixos.org/job/nixos/trunk-combined/tested#tabs-constituents ) |
Using Tha main reason is part of https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/system/activation/switch-to-configuration.pl#L170-L268, which restart |
Issue description
A couple of times now I've been "locked out" of the GNOME desktop after having run "nixos-rebuild switch/test" on nixpkgs master branch. What happens is the graphical session disappears (black screen) and I can only access virtual terminals on Ctrl-Alt+F2..F6.
When this happens, I see this in the journal:
Steps to reproduce
Doing "nixos-rebuild switch/test" on a NixOS unstable system with GNOME, where the currently running configuration is old/different enough (compared to new) to affect the desktop session. (As far as I can tell.)
Technical details
The text was updated successfully, but these errors were encountered: