NAR hash mismatch in input #24

Closed
opened 2022-06-25 21:39:51 +00:00 by happysalada · 4 comments
happysalada commented 2022-06-25 21:39:51 +00:00 (Migrated from github.com)

here is the full log

🤞 Activating configuration non-hermetically on bee via ssh
+ /nix/store/85fcpkyv8qg4kpnv0p2nql2k7qp6q4ab-openssh-9.0p1/bin/ssh -t yt@24.48.87.104 'sudo nixos-rebuild switch --flake /nix/store/ln57g0jd3pqmdwfkb8vmca17hcfm4awv-source#bee'
[sudo] password for yt:
error: NAR hash mismatch in input 'github:nixos/nixpkgs/72d1b0d0fac131df1ea254b65413c85609bdd2ee' (/nix/store/3jvygw6vzsazkfhxcd66w9gcg7y91c3k-source), expected 'sha256-dLqquYHvj6/EYPljULXJVUKcizB/8cbgdIL7aEXTDZY=', got 'sha256-g5Wo75ddDQmWnL70rJCMm+JJlvHbzPFUePUpuMNn5qk='
(use '--show-trace' to show detailed location information)

just started getting this today, no idea why.
I'm executing from a darwin machine to build a nix machine.
I'm not using the hermetic feature. I'm building on "remote" of course.
Not sure where this is coming from.

here is the full log ``` 🤞 Activating configuration non-hermetically on bee via ssh + /nix/store/85fcpkyv8qg4kpnv0p2nql2k7qp6q4ab-openssh-9.0p1/bin/ssh -t yt@24.48.87.104 'sudo nixos-rebuild switch --flake /nix/store/ln57g0jd3pqmdwfkb8vmca17hcfm4awv-source#bee' [sudo] password for yt: error: NAR hash mismatch in input 'github:nixos/nixpkgs/72d1b0d0fac131df1ea254b65413c85609bdd2ee' (/nix/store/3jvygw6vzsazkfhxcd66w9gcg7y91c3k-source), expected 'sha256-dLqquYHvj6/EYPljULXJVUKcizB/8cbgdIL7aEXTDZY=', got 'sha256-g5Wo75ddDQmWnL70rJCMm+JJlvHbzPFUePUpuMNn5qk=' (use '--show-trace' to show detailed location information) ``` just started getting this today, no idea why. I'm executing from a darwin machine to build a nix machine. I'm not using the hermetic feature. I'm building on "remote" of course. Not sure where this is coming from.
MatthewCroughan commented 2022-06-25 23:25:34 +00:00 (Migrated from github.com)

Is your full source code and flake that you're trying to work with available on Github anywhere?

Is your full source code and flake that you're trying to work with available on Github anywhere?
happysalada commented 2022-06-26 00:50:42 +00:00 (Migrated from github.com)

yes it is. I'm trying to build bee https://github.com/happysalada/dotfiles/blob/master/flake.nix#L68
by running nix run .#apps.nixinate.bee
you might just need to change the ip and ssh user and you should be fine.
(l think all files are checked by git).

yes it is. I'm trying to build `bee` https://github.com/happysalada/dotfiles/blob/master/flake.nix#L68 by running `nix run .#apps.nixinate.bee` you might just need to change the ip and ssh user and you should be fine. (l think all files are checked by git).
happysalada commented 2022-06-26 11:36:43 +00:00 (Migrated from github.com)

I thought originally that it was because the nix version was different on both machines and so those were computing the NAR differently. I verified since then that the nix version is the same on both machine.
I'm wondering if it would be a darwin vs nixos thing.
It feels like it has nothing to do with nixinate.

I thought originally that it was because the nix version was different on both machines and so those were computing the NAR differently. I verified since then that the nix version is the same on both machine. I'm wondering if it would be a `darwin` vs `nixos` thing. It feels like it has nothing to do with nixinate.

Closed due to fork migration, feel free to reopen.

Closed due to fork migration, feel free to reopen.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tristan/nixinate#24
No description provided.