Guest User

Untitled

a guest
Feb 1st, 2021
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.17 KB | None | 0 0
  1. # gitlab.nix
  2. { config, pkgs, ... }:
  3.  
  4. {
  5. services.gitlab = {
  6. enable = true;
  7. databaseHost = "git";
  8. databasePasswordFile = "/var/keys/gitlab/db_password";
  9. initialRootPasswordFile = "/var/keys/gitlab/root_password";
  10. https = true;
  11. host = "git.example.com";
  12. port = 443;
  13. user = "git";
  14. group = "git";
  15. smtp = {
  16. enable = true;
  17. address = "localhost";
  18. port = 25;
  19. };
  20. secrets = {
  21. dbFile = "/var/keys/gitlab/db";
  22. secretFile = "/var/keys/gitlab/secret";
  23. otpFile = "/var/keys/gitlab/otp";
  24. jwsFile = "/var/keys/gitlab/jws";
  25. };
  26. extraConfig = {
  27. gitlab = {
  28. email_from = "[email protected]";
  29. email_display_name = "Example GitLab";
  30. email_reply_to = "[email protected]";
  31. default_projects_features = { builds = false; };
  32. };
  33. };
  34. };
  35. }
  36.  
  37.  
  38. # systemd out
  39. ● gitlab.service
  40. Loaded: loaded (/nix/store/2k4am4kakbqz5gzlbxmyp9qanxq6i12y-unit-gitlab.service/gitlab.service; enabled; vendor preset: enabled)
  41. Active: failed (Result: exit-code) since Mon 2021-02-01 14:55:35 UTC; 9min ago
  42. Process: 17330 ExecStartPre=/nix/store/afjvsqln0y3vfwp15lr9qkbfcdicq1p6-gitlab-pre-start-full-privileges (code=exited, status=0/SUCCESS)
  43. Process: 17335 ExecStartPre=/nix/store/ismhcb7n83a4am3kz0n6a6y2mb2vyr0v-gitlab-pre-start (code=exited, status=1/FAILURE)
  44. IP: 0B in, 0B out
  45. CPU: 267ms
  46.  
  47. Feb 01 14:55:35 nixos systemd[1]: gitlab.service: Scheduled restart job, restart counter is at 5.
  48. Feb 01 14:55:35 nixos systemd[1]: Stopped gitlab.service.
  49. Feb 01 14:55:35 nixos systemd[1]: gitlab.service: Start request repeated too quickly.
  50. Feb 01 14:55:35 nixos systemd[1]: gitlab.service: Failed with result 'exit-code'.
  51. Feb 01 14:55:35 nixos systemd[1]: Failed to start gitlab.service.
  52.  
  53.  
  54.  
  55. # journalctl -xe
  56. Feb 01 14:58:53 nixos systemd[1]: gitlab-sidekiq.service: Failed with result 'exit-code'.
  57. ░░ Subject: Unit failed
  58. ░░ Defined-By: systemd
  59. ░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
  60. ░░
  61. ░░ The unit gitlab-sidekiq.service has entered the 'failed' state with result 'exit-code'.
  62.  
  63.  
  64.  
  65. # ls /var/gitlab/state/log
  66. > empty
Advertisement
Add Comment
Please, Sign In to add comment