Skip to content

hydra-init fails if sudo is disabled #155357

@sbourdeauducq

Description

@sbourdeauducq

Describe the bug

hydra-init (and the rest of hydra) fails if sudo is disabled.

systemd[1]: Starting hydra-init.service...
sudo[2278042]:     root : unable to stat /etc/sudoers : No such file or directory ; PWD=/ ; USER=postgres ;
hydra-init-pre-start[2278042]: sudo: unable to stat /etc/sudoers: No such file or directory
hydra-init-pre-start[2278042]: sudo: no valid sudoers sources found, quitting
hydra-init-pre-start[2278042]: sudo: error initializing audit plugin sudoers_audit
systemd[1]: hydra-init.service: Control process exited, code=exited, status=1/FAILURE

Steps To Reproduce

Install hydra and set security.sudo.enable = false

Expected behavior

Hydra works.

NixOS 21.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions