You are not logged in.

#1 2021-09-29 13:57:59

emes
Member
Registered: 2014-01-28
Posts: 19

nix-build terminates my session both on console and X

Hi,

I noticed very strange behavior. Both `nix build` and even `archlinux-nix bootstrap` cause my session to terminate after about 10-20 seconds.

When running in terminal window, I get kicked out to GDM.
When running from text console, I get back to empty login screen.

There's no trace of anything either in `dmesg` or `journalctl` output. When watched by `top`, the memory usage stays low until the crash

How could I even investigate it?

Otherwise, the hardware causes no problems in everyday use. I also keep to work on periodically updated system, not older than a month.

Offline

#2 2021-09-30 09:30:57

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,696

Re: nix-build terminates my session both on console and X

https://wiki.archlinux.org/title/Nix wrote:

There are three choices for a Nix installation, one is supported by Arch Linux, the next officially supported by Nix, and the last not being supported at all.

Which of those 3 methods ( repo package, nix install script, aur package) are you using  ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2021-09-30 09:39:39

emes
Member
Registered: 2014-01-28
Posts: 19

Re: nix-build terminates my session both on console and X

I had `archlinux-nix` installed, however I've already cleaned all the stuff and will try today with `nix` repo package only.

Offline

#4 2021-10-03 11:29:53

emes
Member
Registered: 2014-01-28
Posts: 19

Re: nix-build terminates my session both on console and X

I tried with `nix` and failed on the channel update:

$ nix-channel --update
unpacking channels...
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
while setting up the build environment: executing '/usr/bin/bash': No such file or directory
builder for '/nix/store/xiisqyswdwaf0msxnigf2bj3ph40li0q-nixpkgs-21.11pre318361.a3a23d9599b.drv' failed with exit code 1
error: build of '/nix/store/xiisqyswdwaf0msxnigf2bj3ph40li0q-nixpkgs-21.11pre318361.a3a23d9599b.drv' failed
error: program '/usr/bin/nix-env' failed with exit code 100

I had finally to install `archlinux-nix` and bootstrap from there, but this time it did not crash.

Offline

Board footer

Powered by FluxBB