Skip to content

I'm running into a super strange issue with /run/secrets not working #659

@dkowis

Description

@dkowis

I suspect it may have something to do with recent changes that mention moving this directory around:

My problem is that when the system reboots, I don't get a proper /run/secrets directory that is a symlink to the right location.
I have a directory /run/secrets/rendered instead of it being a symlink to /run/secrets.d/1 with a rendered directory in it?

This host has an early secrets-for-users in a template, that probably doesn't need to be in a template, but I think that's what's happening.

I get this error on activation:

[root@sarafan:/etc/nixos]# nixos-rebuild switch
building the system configuration...
activating the configuration...
sops-install-secrets: Imported /etc/ssh/ssh_host_rsa_key as GPG key with fingerprint 8205c05ea62380d8950426c019a42470335483ff
sops-install-secrets: Imported /etc/ssh/ssh_host_ed25519_key as age key with fingerprint age18g8r7drww22ulsw3728n4nz9g5kcn0tvvvsw0dql89kkufttxe3s72j6fj
setting up /etc...
sops-install-secrets: Imported /etc/ssh/ssh_host_rsa_key as GPG key with fingerprint 8205c05ea62380d8950426c019a42470335483ff
sops-install-secrets: Imported /etc/ssh/ssh_host_ed25519_key as age key with fingerprint age18g8r7drww22ulsw3728n4nz9g5kcn0tvvvsw0dql89kkufttxe3s72j6fj
/nix/store/aax7zp4j2pi18mnig3xmzb64j9axvmww-sops-install-secrets-0.0.1/bin/sops-install-secrets: failed to prepare new secrets directory: cannot access /run/secrets: readlink /run/secrets: invalid argument
Activation script snippet 'setupSecrets' failed (1)
reloading user units for nixboi...
restarting sysinit-reactivation.target
warning: the following units failed: mysql.service, postgresql.service

And since my ssl key is sops'd it doesn't show up. So far, the only solution I've had is to go back in time generation wise, built on 9 Nov 2024.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions