Upgrading an existing config deleted nix-daemon.service file and broke everything #79
Labels
No labels
Compat/Breaking
Context/drive-by
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status/Fixed On Main
Status
Need More Info
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lix-project/lix-installer#79
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?
maybe I'm stupid and did something wrong, but running
on an existing (2.95.1, yes i know i'm dumb, i forgot i'd already upgraded) config uninstalled (among other things)
nix-daemon.serviceand then was unable to start it again, completely breaking everything. this also means i don't have nix in my path anymore, so i can't take the "upgrade" path anymore, and instead have to reinstall everything. (i tried to justrm /nix/receipt.json && /nix/nix-installer install, but for some reason it fails, complaining about eithererror: you don't have sufficient rights to use this commandorerror: could not connect to any lix socket (tried /nix/var/nix/daemon-socket/socket)when trying to--load-db.)Here is the original installer error, after which nix was unusable:
For completeness, I've also attached the full terminal session as
nix-install.log(yes, there's a lot of repetition in there, sorry ;-;)Sounds like there might be a bug in the upgrade-lix script?
This technically isn't related to the installer -- the installer isn't used for the upgrade-lix path; it's only responsible for bootstrapping new installs, not upgrades.
I'm cc'ing @qyriad; hopefully she can make an issue in the core lix repo and figure out what's going on with the script.
i hesitated on whether this should be in lix or lix-installer; i'll open an issue in the core repo
EDIT: done
Running the script on a system that already has 2.95 is not a case we tested, I think… still not sure why that broke so spectacularly though. We will investigate.
I'm really sorry about this. To be clear: your system is back up and in a usable state again now?
yep, i had to completely wipe the old install and install again, but after an hour of patience i'm pretty much back where i started (just forgot to backup my
/etc/nix/nix.confbefore uninstalling D: but that's me being stupid). i'm just glad this was on a machine where i have a terminal emulator that isn't nix-managed x)nix-daemon.serviceand broke everything #1189That's good to hear.
I've reproduced the issue, and it does seem at least that the store paths remain intact, just the
/nix/var/nix/profilesand files in/etc/are goneOkay, there is an installer bug here on why
/nix/nix-installer repairdoes not fix the issue: