gbtb / nix-stable-diffusion

Flake for running SD on NixOS
113 stars 21 forks source link

Fails to build safetensors due to hash mismatch #20

Closed cody-quinn closed 1 year ago

cody-quinn commented 1 year ago

When I try running the invokeai.amd output (using nix run .#invokeai.amd -- --web --root_dir "root") it results in the following error.

error: hash mismatch in fixed-output derivation '/nix/store/80nhd3bcsfzliwjkamiln206fl5gp020-safetensors-0.2.8-vendor.tar.gz.drv':
         specified: sha256-0yE18d+jRs5IodacuBIsmUeZJcZobLz9oLWL+tZKY18=
            got:    sha256-ylpf82NXlpo4+u5HZVYeJI8I6VBFAukzC7Er6BZk1Ik=
error: 1 dependencies of derivation '/nix/store/9gjlvxjy4ilmmh56704khkvy2divvsbk-python3.10-safetensors-0.2.8.drv' failed to build
error: 1 dependencies of derivation '/nix/store/i8hwr4lccbc24lqgy9r893lgnzrqi3id-invokeai-2.3.1.drv' failed to build
gbtb commented 1 year ago

Hi. Thank you for reporting this issue. Don't know exactly how it happened, but I think I might committed one hash for a nested rust derivation inside of safetensors python package, and then updated outer source part with some minor change. It affected true hash for a nested derivation, but since it was already cached nix just didn't rebuild the package.

lgehr commented 9 months ago

I have the same problem on master

$ nix run .#invokeai.amd -- --web
error: hash mismatch in fixed-output derivation '/nix/store/x61qnng9yshji0f8nddqvidrjf68dkkh-safetensors-0.3.1-vendor.tar.gz.drv':
         specified: sha256-3SluST4muwNxgt+GQ6ZuZ62TfMr5ZYiYN9M0QyhmsWc=
            got:    sha256-QCON2X4VBwwf4crftl8XBkAUnajvp8MjTWL/ym3tMmk=
error: 1 dependencies of derivation '/nix/store/ak2fhwd3dvcx5h5smpz1lzgbjl6clk3g-python3.10-safetensors-0.3.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/nwgwwdrksh7dk7gwss8g3v9w27wia41d-invokeai-2.3.5.drv' failed to build