12 Jul 2025 |
raitobezarius | builtins.convertHash for example | 17:44:44 |
| georgyo joined the room. | 20:29:10 |
Crystal | Hi Lix folks, does anyone know how paths get resolved in Lix through the store-api? I have a corrupted path... somewhere and I don't know where it's stored:
crystal@seafoam ~ [1]> nix-store --verify --check-contents --debug
performing daemon worker op: 35
reading the Nix store...
checking path existence...
error: path '/nix/store/60yyr6awiyzfjwnpzc8syzm7wbziks6h-pyth/n3.12-setuptools-78.1.0.drv' is not in the Nix store
I suspect the o in python was corrupted to / do to drive issues (or network issues), as they differ only by one bit. Just trying to find where this is coming from so I can delete it, as I can't do any verify checks while this path cache is broken.
| 20:47:20 |
Crystal | * Hi Lix folks, does anyone know how paths get resolved in Lix through the store-api? I have a corrupted path... somewhere and I don't know where it's stored:
crystal@seafoam ~ [1]> nix-store --verify --check-contents --debug
performing daemon worker op: 35
reading the Nix store...
checking path existence...
error: path '/nix/store/60yyr6awiyzfjwnpzc8syzm7wbziks6h-pyth/n3.12-setuptools-78.1.0.drv' is not in the Nix store
I suspect the o in python was corrupted to / due to drive issues (or network issues), as they differ only by one bit. Just trying to find where this is coming from so I can delete it, as I can't do any verify checks while this path cache is broken.
| 20:49:00 |
Crystal | My current best guess is some db directory that contains some sqlite, based on this line here: https://git.lix.systems/lix-project/lix/src/commit/6e7c0812c78c50c1b06da9a0f326a5e21a1fab6f/lix/libstore/local-store.cc#L96 | 20:52:14 |
Crystal | Actually, spelling that out and finding /nix/var/nix/db/db.sqlite was pretty easy, and indeed there's just a bad entry in that. Uh. Can I just delete this db?... | 20:54:09 |
emily | (do not just delete the DB) | 21:00:02 |
Crystal | Unless Lix has a more functional nix store --init than cppnix, it seems that there's no fix beyond a reinstall, which is very frustrating? https://github.com/NixOS/nix/issues/3091#issuecomment-1931597244 | 21:03:20 |
Crystal | * Unless Lix has a more functional nix-store --init than cppnix, it seems that there's no fix beyond a reinstall, which is very frustrating? https://github.com/NixOS/nix/issues/3091#issuecomment-1931597244 | 21:03:52 |
FireFly | I would wait a bit for some of the lix devs more familiar with the internals to show up and pitch in before doing anything, if I were you.. it also does seem like something that probably should be safeguarded more against in the future, I guess | 21:06:45 |
Lunaphied | In reply to @crystallord:matrix.org Actually, spelling that out and finding /nix/var/nix/db/db.sqlite was pretty easy, and indeed there's just a bad entry in that. Uh. Can I just delete this db?... you could delete that entry from the database but you don't want to delete the database entirely as reconstructing it requires data that's not simply present in the store | 21:32:52 |
Lunaphied | I can get back to you in a little bit with a more meaningful recommendation | 21:33:07 |
Lunaphied | Can you send me that sqlite database? | 21:36:34 |
Crystal | Can do, though after dumping it, the entry is gone. It's only visible when looking at the binary directly. So I will send the binary over. | 21:38:02 |
13 May 2024 |
| zrsk joined the room. | 13:37:30 |
| dariof4 joined the room. | 14:16:05 |
| abbe joined the room. | 14:42:22 |
mjm | lix is now in nixos-unstable, what's the best way to use it in a NixOS config? | 15:47:41 |
K900 | nix.package = pkgs.lix | 15:47:54 |
K900 | Probably | 15:47:58 |
K900 | Or just keep using the module | 15:48:02 |
puck | you can use nix.package = pkgs.lix; if you want; but using the overlay will guarantee more updates (tho less binary cache) | 15:48:44 |
mjm | well, the module/overlay doesn't easily support using the one from nixpkgs | 15:48:44 |
mjm | i do want more binary cache | 15:49:21 |
mjm | yeah i guess i'll just do nix.package then | 15:50:43 |
raitobezarius | to have binary cache and HEAD, we will probably need to track the channels and bolt a lix on there and rebuild with our own CI then push in our binary cache | 17:33:17 |
Charles | What's lix using as its binary cache? Attic? | 17:34:36 |
| Arian left the room. | 17:37:44 |
@tc424:glasgow.social | Last I heard they were using garage as the back end, and think about attic | 17:39:11 |
@tc424:glasgow.social | I don't know if that means they're just pushing directly into garage's s3 interface for the moment | 17:39:36 |