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

logcheck service can't be built #31738

Closed
r-raymond opened this issue Nov 16, 2017 · 2 comments
Closed

logcheck service can't be built #31738

r-raymond opened this issue Nov 16, 2017 · 2 comments

Comments

@r-raymond
Copy link
Contributor

r-raymond commented Nov 16, 2017

Issue description

enabling logcheck and rebuilding fails with

rm: cannot remove '/nix/store/hpb436ns0596slhmak5kr6qqscx1jpa3-logcheck-default-rules/logcheck.logfiles.d': Is a directory
builder for ‘/nix/store/q9j4wg379rm120b1iy2j7sq5sgv87zjc-logcheck-default-rules.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/0lb0k7nz6v6sj2vp8b0qq530lpiapbmg-logcheck-rules-dir.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/javg11sqs1ray7q4vd5hb84p1d1hfxzg-system-crontab.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/5xylxy6s949x9sj0g02a9d8lk5ysf5z0-crontabs.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/33gg6cr43wjv2qi8199nm03009917fkv-etc.drv’: 1 dependencies couldn't be built
cannot build derivation ‘/nix/store/54jsznh81gfwmwzdqa3vljkn19qlc2kf-nixos-system-desktop-17.09.2029.ab36c74390.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/54jsznh81gfwmwzdqa3vljkn19qlc2kf-nixos-system-desktop-17.09.2029.ab36c74390.drv’ failed

Steps to reproduce

add

services.logcheck.enable = true;

to configuration.nix then nixos-rebuilt switch

Technical details

  • system: "x86_64-linux"
  • host os: Linux 4.9.61, NixOS, 17.09.2029.ab36c74390 (Hummingbird)
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 1.11.15
  • channels(root): "nixos-17.09.2029.ab36c74390, unstable-17.09pre110213.01c3847b9c"
  • channels(user): ""
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
@phdoerfler
Copy link
Contributor

This looks like a duplicate of #29906 to me.

@r-raymond
Copy link
Contributor Author

Absolutely. Don't know how I missed that. Whoever wants to investigate this, the obvious fix of adding -r to

"fixes" the problem. I didn't investigate if I want that folder though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants