Taskserver无法在NixOS上启动

时间:2017-05-27 18:29:48

标签: nixos

我有一个带有taskserver包的NixOS 17.03服务器。任务服务器服务不再启动(它曾经启动,但我无法跟踪它停止工作的精确时刻)。

以下是我的configuration.nix与taskserver相关的部分:

  services.taskserver.enable = true;
  services.taskserver.fqdn = config.networking.hostName;
  services.taskserver.listenHost = config.networking.hostName;
  services.taskserver.organisations.myorga.users = [ "henri" ];

安德错误详情:

systemctl status taskserver

● taskserver.service - Taskwarrior Server
   Loaded: loaded (/nix/store/dy9rz3al85s6rxifrwqmm6sf3nsnb6wz-unit-taskserver.service/taskserver.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Sat 2017-05-27 19:52:27 CEST; 15min ago
  Process: 5241 ExecStart=taskd server --ca.cert=/var/lib/taskserver/keys/ca.cert --ciphers= --client.allow= --client.deny= --confirmation=true --daemon=false --debug=false --extensions= --ip.log=false --log=- --queue.size=10 --request.limit=1048576 --server.cert=/var/lib/taskserver/keys/server.cert --server.crl=/var/lib/taskserver/keys/server.crl --server.key=/var/lib/taskserver/keys/server.key --server=myserver:53589 --trust=strict (code=exited, status=255)
  Process: 5239 ExecStartPre=/nix/store/29h8k2nld3cwmvqiqml125jxm7ndl62j-unit-script/bin/taskserver-pre-start (code=exited, status=0/SUCCESS)
 Main PID: 5241 (code=exited, status=255)

May 27 19:52:27 myserver systemd[1]: taskserver.service: Main process exited, code=exited, status=255/n/a
May 27 19:52:27 myserver systemd[1]: taskserver.service: Unit entered failed state.
May 27 19:52:27 myserver systemd[1]: taskserver.service: Failed with result 'exit-code'.
May 27 19:52:27 myserver systemd[1]: taskserver.service: Service hold-off time over, scheduling restart.
May 27 19:52:27 myserver systemd[1]: Stopped Taskwarrior Server.
May 27 19:52:27 myserver systemd[1]: taskserver.service: Start request repeated too quickly.
May 27 19:52:27 myserver systemd[1]: Failed to start Taskwarrior Server.
May 27 19:52:27 myserver systemd[1]: taskserver.service: Unit entered failed state.
May 27 19:52:27 myserver systemd[1]: taskserver.service: Failed with result 'exit-code'.
记者:

May 27 19:52:27 myserver systemd[1]: Starting Initialize CA for TaskServer...
May 27 19:52:27 myserver systemd[1]: Started Initialize CA for TaskServer.
May 27 19:52:27 myserver systemd[1]: Starting Taskwarrior Server...
May 27 19:52:27 myserver systemd[1]: Started Taskwarrior Server.
May 27 19:52:27 myserver taskd[5241]: ERROR: Could not read include file '/nix/store/8g6zs5xf1yvbkv8nzjgjqc3zgwjfy8a8-taskdrc'.
May 27 19:52:27 myserver systemd[1]: taskserver.service: Main process exited, code=exited, status=255/n/a
May 27 19:52:27 myserver systemd[1]: taskserver.service: Unit entered failed state.
May 27 19:52:27 myserver systemd[1]: taskserver.service: Failed with result 'exit-code'.
May 27 19:52:27 myserver systemd[1]: taskserver.service: Service hold-off time over, scheduling restart.
May 27 19:52:27 myserver systemd[1]: Stopped Taskwarrior Server.
May 27 19:52:27 myserver systemd[1]: taskserver-ca.service: Start request repeated too quickly.
May 27 19:52:27 myserver systemd[1]: Failed to start Initialize CA for TaskServer.
May 27 19:52:27 myserver systemd[1]: taskserver-ca.service: Unit entered failed state.
May 27 19:52:27 myserver systemd[1]: taskserver-ca.service: Failed with result 'start-limit-hit'.
May 27 19:52:27 myserver systemd[1]: taskserver.service: Start request repeated too quickly.
May 27 19:52:27 myserver systemd[1]: Failed to start Taskwarrior Server.
May 27 19:52:27 myserver systemd[1]: taskserver.service: Unit entered failed state.
May 27 19:52:27 myserver systemd[1]: taskserver.service: Failed with result 'exit-code'.

/ nix / store / 8g6zs5xf1yvbkv8nzjgjqc3zgwjfy8a8-taskdrc确实不存在。我试图清理商店,更新和重建包,甚至升级到nixos-unstable,都无济于事。

技术细节

  • 系统:NixOS 17.03.1203.58e227052d(大猩猩)
  • Nix版本:1.11.8
  • Nixpkgs版本:17.03.1203.58e227052d
  • 启用沙盒:false

1 个答案:

答案 0 :(得分:1)

latest 17.03 branch has no references to taskdrc,因为that file was removed

但是,读取该提交我们可以看到,对taskdrc文件的引用被写入${cfg.dataDir}/config文件。因此,最有可能的是,您应该从配置中删除include /nix/store/...-tasdrc行以启动服务。

为什么你经历过这样的破坏的原因是Hydra(NixOS CI)目前还没有假设,NixOS有时会升级,such migrations should be tested也是如此。