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

hydra service fails to start on nixos-18.03 #37848

smatting opened this issue Mar 26, 2018 · 1 comment


Copy link

commented Mar 26, 2018

Issue description

With this service declartaion in configuration.nix

  services.hydra = {
    enable = true;
    port = 3000;
    hydraURL = "http://*ip-of-server*:3000";
    notificationSender = "";

the hydra-server.service fails to start:

  hydra-evaluator.service                                   loaded active running   hydra-evaluator.service
  hydra-init.service                                        loaded active exited    hydra-init.service
  hydra-queue-runner.service                                loaded active running   hydra-queue-runner.service
  hydra-send-stats.service                                  loaded active running   hydra-send-stats.service
● hydra-server.service                                      loaded failed failed    hydra-server.service

The logs show

Mar 26 09:27:10 nixos systemd[1]: Started hydra-server.service.
Mar 26 09:27:11 nixos hydra-server[4557]: [warn] Unicode::Encoding plugin is auto-applied, please remove this from your appclass and make sure to define "encoding" config
Mar 26 09:27:11 nixos hydra-server[4557]: Open of share file /var/lib/hydra/www/session_data failed: Permission denied at /nix/store/7s8hhkdb2spii3ydzlwmmglm8ssakrqw-hydra-perl-deps/lib/perl5/site_perl/5.24.3/x86_64-linux-thread-multi/Cache/ line 640.
Mar 26 09:27:11 nixos hydra-server[4557]: Compilation failed in require at /nix/store/7s8hhkdb2spii3ydzlwmmglm8ssakrqw-hydra-perl-deps/lib/perl5/site_perl/5.24.3/Catalyst/ line 50.
Mar 26 09:27:11 nixos systemd[1]: hydra-server.service: Main process exited, code=exited, status=13/n/a
Mar 26 09:27:11 nixos systemd[1]: hydra-server.service: Failed with result 'exit-code'.

Steps to reproduce

systemctl start hydra-server.service

Technical details

  • system: "x86_64-linux"
  • host os: Linux 4.14.29, NixOS, 18.03pre131562.d843d7f21a6 (Impala)
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 2.0
  • channels(root): "nixos-18.03"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs

This comment has been minimized.

Copy link
Contributor Author

commented Mar 26, 2018

I seemed to have run hydra-server as root on that machine before, which caused /var/lib/hydra/www/session_data to be owned by root, creating the issue.

@smatting smatting closed this Mar 26, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.