Lorri daemon service refuses to start
Describe the bug After following the install and setup directions in the README, I'm still faced with messages
❯ cd difftaichi
direnv: loading ~/dev/difftaichi/.envrc
Aug 08 16:31:19.286 WARN lorri daemon is not running and this project has not yet been evaluated, please run `lorri daemon`, expr: /home/skainswo/dev/difftaichi/shell.nix
direnv: export +IN_NIX_SHELL
To Reproduce Steps to reproduce the behavior:
- Run Ubuntu 20.04 with home-manager, and follow the steps in the README:
- Add
services.lorri.enable = true;
programs.direnv.enable = true;
to your home-manager config. Run a home-manager switch to activate those changes.
3. Run systemctl --user daemon-reload to start the lorri daemon following the cautionary note in the readme.
4. cd into a directory that has been lorri inited.
❯ cd difftaichi
direnv: loading ~/dev/difftaichi/.envrc
Aug 08 16:31:19.286 WARN lorri daemon is not running and this project has not yet been evaluated, please run `lorri daemon`, expr: /home/skainswo/dev/difftaichi/shell.nix
direnv: export +IN_NIX_SHELL
Expected behavior
The lorri daemon to have been successfully started, either in the home-manager switch or systemctl --user daemon-reload steps.
Metadata
$ lorri info
error: The following required arguments were not provided:
--shell-file <nix_file>
USAGE:
lorri info --shell-file <nix_file>
For more information try --help
$ uname -a
Linux skainswo-X58A-UD3R 5.4.0-42-generic #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 GNU/Linux
Additional context
n/a
Following some debugging based on https://github.com/target/lorri/blob/master/contrib/daemon.md#verify-the-setup I found:
❯ systemctl --user is-enabled lorri.socket
enabled
❯ systemctl --user is-active lorri.socket
inactive
After stopping all existing manually started daemons and running systemctl --user enable --now lorri.socket it's now working.
After stopping all existing manually started daemons and running
systemctl --user enable --now lorri.socketit's now working.
Does this mean we are missing a step in the tutorial?