nix-daemon crash on upgrade from 2.95.1 to 2.95.2 via nix upgrade-nix #1207
Labels
No labels
Affects/CppNix
Affects/Nightly
Affects/Only nightly
Affects/Stable
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/lix ci
Area/nix-eval-jobs
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/repl/debugger
Area/store
awaiting
author
awaiting
contributors
bug
Context
contributors
Context
drive-by
Context
maintainers
Context
RFD
crash 💥
Cross Compilation
devx
diagnostics
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
Feature/S3
Importance
High
Importance
Low
imported
Language/Bash
Language/C++
Language/NixLang
Language/Python
Language/Rust
Needs Langver
OS/Linux
OS/macOS
performance
regression
Release Blocking
Non-urgent
Release Blocking
Urgent
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
Topic/Large Scale Installations
Urgency
High
Urgency
Low
ux
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lix-project/lix#1207
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
A clear and concise description of what the bug is.
While running the nix-daemon from lix version 2.95.1 the nix-daemon crashes in the middle of the upgrade.
I will note that I am aware that the nix-daemon needs to be restarted after the update but I never got that far.
If you have a problem with a specific package or NixOS,
you probably want to file an issue at https://github.com/NixOS/nixpkgs/issues.
Steps To Reproduce
sudo nix upgrade-nixorcurl -sSf -L "https://git.lix.systems/lix-project/lix/raw/tag/2.95.1/misc/upgrade-lix.sh" | sudo --preserve-env=PATH bash -s -- 2.95.2)the output of the nix upgrade-nix command (in this case using
profiledefault although without is is pretty much exactly the same):Expected behavior
A clear and concise description of what you expected to happen.
Being able to upgrade? /s
nix --versionoutputAdditional context
Add any other context about the problem here.
I was able to recover my nix profile by using an older generation and trying again which allowed me to get a traceback from
nix-daemon(the traceback below is from the nix version above)my workaround:
sudo ln -Ffs /nix/store/vk77mkl9vqnpfwlk875j6b80df37yw01-user-environment /nix/var/nix/profiles/defaulteffectively rolling back the default profile to an older version which was functional and then was able to run the upgrade all the way up.I had the same error when upgrading to both 2.95.1 and 2.95.2. (I thought it was just me the first time.)
Thank you for the report, we are on the double looking into this. Apologies for the operational issues.
nix-daemon crash on upgradeto nix-daemon crash on upgrade from 2.95.1 to 2.95.2nix-daemon crash on upgrade from 2.95.1 to 2.95.2to nix-daemon crash on upgrade from 2.95.1 to 2.95.2 vianix upgrade-nixWe have identified the issue and a fix is open at https://gerrit.lix.systems/c/lix/+/5567. We will shortly be releasing 2.95.3 quickly to enable upgrades.
This issue was mentioned on Gerrit on the following CLs: