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

Activation fails with "not a directory" if a file becomes a directory #523

Open
Ma27 opened this issue Apr 1, 2024 · 1 comment
Open

Comments

@Ma27
Copy link
Contributor

Ma27 commented Apr 1, 2024

Suppose you had a secret deployed like this:

{ sops.secrets.foo = {}; }

Now, when deploying a new change with the following secret:

{ sops.secrets."foo/bar" = {}; }

The activation fails like this:

Activation script snippet 'setupSecrets' failed (1)
sops-install-secrets: Imported /etc/ssh/ssh_host_ed25519_key as age key with fingerprint ...
/nix/store/1dilq2rayqd2alchs0bmhssmwni8mbxv-sops-install-secrets-0.0.1/bin/sops-install-secrets: Cannot request units to restart: open /run/secrets/foo/bar: not a directory
@illode
Copy link

illode commented Sep 21, 2024

I also ran into this. Easily fixed by deleting the existing secrets and re-activating the new configuration.

sudo rm -r /run/secrets
sudo /run/current-system/activate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants