我有一个NixOS服务器,在我重新启动它之后,它在引导时被卡住了。它正在显示以下消息:A start job is running for Waiting for NixOps keys (1d 3h / no limit)
系统正在等待的任务是系统服务。我做了一些研究,我和我发现,当这个问题发生时,它通常在一定的时间后,系统启动。然而,在我的例子中,它已经被困了一天多了。有什么办法绕过那个州吗?
发布于 2017-06-08 13:11:03
根据NixOps手册..。
来自deployment.keys的密钥存储在/run/在临时文件系统下,并且不会在所有nixops命令在适当情况下隐式上传密钥的reboot...Note中持久化,因此只有在无人值守的重新启动之后才需要手动发送密钥。
尝试nixops send-keys命令。
nixops send-keys [ --include machine-name... ] [ --exclude machine-name... ]
Description
This command uploads the keys described in deployment.keys to remote machines in the /run/keys/ directory.
Keys are not persisted across reboots by default. If a machine reboot is triggered from outside nixops, it will need nixops send-keys to repopulate its keys.
Note that nixops deploy does an implicit send-keys where appropriate, so manually sending keys is only necessary after unattended reboots.
Options
--include machine-name...
Only operate on the machines explicitly mentioned here, excluding other machines.
--exclude machine-name...
Only operate on the machines that are not mentioned here.https://unix.stackexchange.com/questions/369924
复制相似问题