!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

228 Members
74 Servers

Load older messages


SenderMessageTime
10 Aug 2023
@p14:matrix.orgp14So, I haven't rebooted. Since I've been building these paths.14:30:04
@p14:matrix.orgp14

I've found three bad paths:

path '/nix/store/9kaazhysw3pmzlrslpb1nsgy97hq8hlm-x86_64-unknown-linux-gnu-llvm-binutils-wrapper-15.0.7' was modified! expected hash 'sha256:00fr4fvkwihh37ch61hwiqswn2d451n3d0blqdlzrwxj7xwl76jj', got 'sha256:0x2klzdyhmyivgqnppll5a7jj41vzxjb5lb5a9gs534541vsw0kp'
path '/nix/store/czfw2i8z6yhga8f5397wn4l9d5iivvyh-x86_64-unknown-linux-gnu-llvm-binutils-wrapper-15.0.7' was modified! expected hash 'sha256:02f8fa37y745ww8wh07i74abhgr2p1hr6m5xwkiyqvh4nzx00agr', got 'sha256:1d33lzfsnb8b20cs6lgdy9r8nn7xkar25ynz6wm1dbj4q74vzq34'
path '/nix/store/wpgi1r8dhhlay7x5wbswwqzxhh4mwdyf-llvm-16.0.1-dev' was modified! expected hash 'sha256:0sjbx0sszj4pfrkzpk8ca4n0sfwdbjwfdqa1034q8ics9fh1fbwz', got 'sha256:0k6gy7skgvjqvd448fa1h71rdcf9dzrv5y5wcz9yr1b52vh49d9r'
14:30:24
@p14:matrix.orgp14I think those two gnu-llvm-binutils would have been built at different times.14:30:43
@p14:matrix.orgp14

nix store repair says, e.g.:

path '/nix/store/9kaazhysw3pmzlrslpb1nsgy97hq8hlm-x86_64-unknown-linux-gnu-llvm-binutils-wrapper-15.0.7' is corrupted or missing!
14:31:12
@p14:matrix.orgp14I started building these this morning and my uptime is more than 2 days, so I guess it's not bad FS-or-device-behaviour-under-crash14:31:52
@p14:matrix.orgp14 Could sigquitting nix build explain it in principle? It's a keyboard shortcut I know...# 14:32:14
@p14:matrix.orgp14 * Could sigquitting nix build explain it in principle? It's a keyboard shortcut I know... (not saying I know I used it) 14:32:20
@trofi:matrix.orgtrofi I would hope nix-daemon is atomic in face of most stops. Especially when it comes to calculating the checksum of a finished build. But maybe there are bugs. 14:33:37
@p14:matrix.orgp14I'm hitting the problem of nix store delete ignore liveness not working14:34:30
@trofi:matrix.orgtrofi Worth running a scrub in the filesystem and running a memtest just in case there is a possibility of a hardware fault. 14:34:35
@p14:matrix.orgp14I have run memtest looking for hardware faults. scrub's a good idea14:34:52
@trofi:matrix.orgtrofi It's interesting that you got 2 different store paths with ...-llvm-binutils-wrapper-15.0.7 broken. Those ought to be independent failures unless you use auto-optimise-store = true (Or other deduplication methods) and corruption happened afterwards. 14:37:11
@p14:matrix.orgp14No auto optimizing or dedup14:37:33
@p14:matrix.orgp14Currently trying to delete it from the store and see if it repros.14:37:44
@p14:matrix.orgp14Though putting the daemon under strace seems to have broken it. Now running nix as a normal user I get 'error: opening a connection to remote store 'daemon' previously failed '14:38:07
@p14:matrix.orgp14 I've done systemctl start nix-daemon, and it's running, but seem to have this sticky error 14:38:28
@trofi:matrix.orgtrofi --debug --verbose might spill what fails. 14:39:36
@p14:matrix.orgp14--debug-verbose actually gives zero additional lines of logging, oddly14:40:53
@p14:matrix.orgp14I've been totally unable to delete the corrupted path. I've gone in and removed roots14:41:06
@p14:matrix.orgp14I've become sudo, nix-store --query --roots shows an empty set14:41:15
@p14:matrix.orgp14

And yet:

 nix store delete --ignore-liveness github:nixos/nixpkgs/73f18ca8b33ad1281958193e7e35f63b6ef47e52#pkgsLLVM.llvmPackages_15.compiler-rt-no-libc.stdenv.cc.bintools
0 store paths deleted, 0.00 MiB freed
error: Cannot delete path '/nix/store/9kaazhysw3pmzlrslpb1nsgy97hq8hlm-x86_64-unknown-linux-gnu-llvm-binutils-wrapper-15.0.7' since it is still alive. To find out why, use: nix-store --query --roots

14:41:30
@p14:matrix.orgp14Scrub is at 500GiB so far with no errors found.14:41:59
@trofi:matrix.orgtrofi Try the /nix/store/... path. Flake paths might be very confusing. 14:42:19
@p14:matrix.orgp14I have tried the path itself as well but same error message14:42:35
@trofi:matrix.orgtrofi:(14:42:51
@p14:matrix.orgp14I was wondering if I was hitting that bug where nix saw the path in its own args (or the environment) for example.14:42:54
@p14:matrix.orgp14I'm on nix 2.13.3.14:43:06
@trofi:matrix.orgtrofiI think it used to be the case only when ran via sudo.14:43:16
@p14:matrix.orgp14Gotta run, probably without computer for the rest of the day though will read/respond to messages in fragments of spare time if anyone has any ingenious ideas.14:43:45
@p14:matrix.orgp14(Thanks very much for your input trofi, learned some useful things and also good to know it's not just me this is bonkers for ;-))14:44:54

There are no newer messages yet.


Back to Room ListRoom Version: 9