Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hash mismatch error #28

Open
mrnetlex opened this issue Feb 19, 2024 · 2 comments
Open

Hash mismatch error #28

mrnetlex opened this issue Feb 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@mrnetlex
Copy link

When trying to run nix run .#invokeai.amd -- --web --root_dir "path/to/dir" I get error:

error: hash mismatch in fixed-output derivation '/nix/store/x61qnng9yshji0f8nddqvidrjf68dkkh-safetensors-0.3.1-vendor.tar.gz.drv':
         specified: sha256-3SluST4muwNxgt+GQ6ZuZ62TfMr5ZYiYN9M0QyhmsWc=
            got:    sha256-jpFjZk5iNiLXbg2fAy08c5scruW9rW36NDAVzZEBQUE=
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

The same things happen with Automatic1111 webui.

@gbtb gbtb added the bug Something isn't working label Feb 20, 2024
@gbtb
Copy link
Owner

gbtb commented Feb 20, 2024

Hi.
Unfortunately, this is a problem with safetensors & rust|nix lock integration. Sometimes hash computed from Cargo.lock is environment-dependent. I'm not aware of the right way to fix it, so the only thing you can do is to fork this repo and set hash to value that is computed for your environment.

@mrnetlex
Copy link
Author

Thanks, it worked.

@gbtb gbtb pinned this issue Feb 21, 2024
attilaolah added a commit to attilaolah/nix-stable-diffusion that referenced this issue Aug 2, 2024
See gbtb#28 for an explanation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants