lorri icon indicating copy to clipboard operation
lorri copied to clipboard

Lorri daemon service refuses to start

Open samuela opened this issue 5 years ago • 2 comments

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:

  1. Run Ubuntu 20.04 with home-manager, and follow the steps in the README:
  2. 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

samuela avatar Aug 08 '20 23:08 samuela

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.

samuela avatar Aug 08 '20 23:08 samuela

After stopping all existing manually started daemons and running systemctl --user enable --now lorri.socket it's now working.

Does this mean we are missing a step in the tutorial?

Profpatsch avatar Sep 09 '20 12:09 Profpatsch