devenv: `devenv up` stuck
Describe the bug
When I run devenv up in a brand new arch linux machine it gets stuck and never finishes at the Building shell stage. The same devenv.nix works in a separate arch linux machine, also up-to-date.
To reproduce Devenv files: https://gist.github.com/MarceColl/bf5f924cb23b16f2efab99ac5775f451
[seikaku@seikaku seikaku]$ uname -a
Linux seikaku 6.6.52-1-lts #1 SMP PREEMPT_DYNAMIC Wed, 18 Sep 2024 19:02:04 +0000 x86_64 GNU/Linux
I also need --max-jobs=4 in this case for some reason.
[seikaku@seikaku seikaku]$ devenv up --max-jobs=4
• Building processes ...
• Using Cachix: devenv
these 3 derivations will be built:
/nix/store/q37ckd0zi65qfzkzvzs38akxhbijl3ki-devenv-profile.drv
/nix/store/8l7v5p81gsfb3zlf27r4sadnabr19nw9-process-compose.yaml.drv
/nix/store/7zd2ysl9i2fgxrk9gk2drs2v159kxh21-devenv-up.drv
building '/nix/store/q37ckd0zi65qfzkzvzs38akxhbijl3ki-devenv-profile.drv'
created 833 symlinks in user environment
building '/nix/store/8l7v5p81gsfb3zlf27r4sadnabr19nw9-process-compose.yaml.drv'
building '/nix/store/7zd2ysl9i2fgxrk9gk2drs2v159kxh21-devenv-up.drv'
✔ Building processes in 6.1s.
• Starting processes ...
• Building shell ...
building '/nix/store/vjzm8xxzjg7x0y6xkfykndyiqlgxywmy-devenv-shell-env.drv'
User seikaku is part of nixbld.
[seikaku@seikaku seikaku]$ groups
wheel nixbld seikaku
Version
devenv 1.3.0 (x86_64-linux)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 29 (17 by maintainers)
I managed to replicate the issue when only 1 cpu is available (@dunderrrrrr and @dsalaza4, thanks for investigating this). For a local repro, running devenv with
taskset --cpu-list 1is enough to get it to hang. https://github.com/cachix/devenv/pull/1714 should fix that particular case.Sorry, I’m super sleep deprived, I wanted to send this part as well, it gets stuck on
Both
devenv shellanddevenv upget stuck in the same place.Pushed a fix for max_jobs in https://github.com/cachix/devenv/commit/dc7ebaf872306526ea6dcbb2122acca792680701