NixOS/infra

hydra-init.service starts too early

Opened this issue · 0 comments

The hydra-init.service fails when it can't reach its database, which gets provided over a wireguard tunnel. It should likely run after wireguard-wg0.target.

Feb 12 00:20:00 rhea systemd[1]: Starting hydra-init.service...
Feb 12 00:20:00 rhea hydra-init[2100]: DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI connect('dbname=hydra;host=10.254.1.9;user=hydra;;application_name=hydra-init','',...) failed: connection to server at "10.254.1.9", port 5432 failed: No route to host
Feb 12 00:20:00 rhea hydra-init[2100]:         Is the server running on that host and accepting TCP/IP connections? at /nix/store/8hr802y0w5jq5hlkrkil7s96p4f1n1dx-hydra-perl-deps/lib/perl5/site_perl/5.38.2/DBIx/Class/Storage/DBI.pm line 1639. at /nix/store/wcy7v3c83ks0ndyizfm7llm621dnnjhp-hydra-0.1.20240126.838648c/bin/.hydra-init-wrapped line 13
Feb 12 00:20:00 rhea systemd[1]: hydra-init.service: Main process exited, code=exited, status=115/n/a