age: error: no identity matched any of the recipients #49

Closed
opened 2025-12-29 04:21:04 +01:00 by adam · 1 comment
Owner

Originally created by @Tragyn on GitHub (Nov 20, 2024).

Hi,

I was trying to follow your secrets.nix setup because it makes more sense to me than others I've tried. I have it working on one host (crate-laptop) but trying to set it up on another host (crate-desktop) gives the following error:

decrypting '/nix/store/0302mwrnmkjssbd091bkaxkf68zmkkqc-source/secrets/xxx.age' to '/run/agenix.d/2/xxx'...
age: error: no identity matched any of the recipients
age: report unexpected or unhelpful errors at https://filippo.io/age/report
chmod: cannot access '/run/agenix.d/2/xxx.tmp': No such file or directory
mv: cannot stat '/run/agenix.d/2/xxx.tmp': No such file or directory

I'm assuming I've made an error somewhere, but I don't understand SSH to really see where I've gone wrong.

EDIT: USER ERROR. Had to manually update my flake; I assumed the rebuild would pull the nix-secrets from my repo, but I guess not.

Originally created by @Tragyn on GitHub (Nov 20, 2024). Hi, I was trying to follow your secrets.nix setup because it makes more sense to me than others I've tried. I have it working on one host (crate-laptop) but trying to set it up on another host (crate-desktop) gives the following error: ``` decrypting '/nix/store/0302mwrnmkjssbd091bkaxkf68zmkkqc-source/secrets/xxx.age' to '/run/agenix.d/2/xxx'... age: error: no identity matched any of the recipients age: report unexpected or unhelpful errors at https://filippo.io/age/report chmod: cannot access '/run/agenix.d/2/xxx.tmp': No such file or directory mv: cannot stat '/run/agenix.d/2/xxx.tmp': No such file or directory ``` I'm assuming I've made an error somewhere, but I don't understand SSH to really see where I've gone wrong. EDIT: USER ERROR. Had to manually update my flake; I assumed the rebuild would pull the nix-secrets from my repo, but I guess not.
adam closed this issue 2025-12-29 04:21:05 +01:00
Author
Owner

@ryan4yin commented on GitHub (Nov 21, 2024):

Yeah, your secrets’ git hash is recorded in your flake.lock. You need to run nix flake update manually to update your secrets to the latest version.

@ryan4yin commented on GitHub (Nov 21, 2024): Yeah, your secrets’ git hash is recorded in your flake.lock. You need to run `nix flake update` manually to update your secrets to the latest version.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/nix-config-ryan4yin#49