Skip to content

nixos/distccd: enabling the zeroconf option causes the service to fail #383780

Open
@arximboldi

Description

Nixpkgs version

  • Stable (24.11)

Describe the bug

When enabling zeroconf = true, the some avahi permission error comes out.

Steps to reproduce

Add this to configuration.nix and switch.

  services.distccd = {
    enable = true;
    zeroconf = true;
}

Expected behaviour

The service is enabled and the zeroconf feature works.

Screenshots

No response

Relevant log output

× distccd.service - Distributed C, C++ and Objective-C compiler
     Loaded: loaded (/etc/systemd/system/distccd.service; enabled; preset: ignored)
     Active: failed (Result: exit-code) since Fri 2025-02-21 00:28:59 CET; 196ms ago
   Duration: 90ms
 Invocation: 775d32919f9e4275acd3d3f6fe291b20
       Docs: man:distccd(1)
    Process: 70015 ExecStart=/nix/store/1l78cr7nif7qj2daph47i3n1rivydnks-start-distccd (code=exited, status=134)
   Main PID: 70015 (code=exited, status=134)
         IP: 0B in, 0B out
         IO: 0B read, 0B written
   Mem peak: 1.5M
        CPU: 10ms

Feb 21 00:28:59 ce1 systemd[1]: Started Distributed C, C++ and Objective-C compiler.
Feb 21 00:28:59 ce1 distccd[70016]: (register_stuff) CRITICAL! Failed to create entry group: Not permitted
Feb 21 00:28:59 ce1 1l78cr7nif7qj2daph47i3n1rivydnks-start-distccd[70016]: distccd: thread-watch.c:165: avahi_threaded_poll_quit: Assertion `pthread_equal(pthread_self(), p->thread_id)' failed.
Feb 21 00:28:59 ce1 1l78cr7nif7qj2daph47i3n1rivydnks-start-distccd[70015]: /nix/store/1l78cr7nif7qj2daph47i3n1rivydnks-start-distccd: line 15: 70016 Aborted                 (core dumped) /nix/store/vkkb1qqgah3ghls63rqs397kxvbz0yf7-distcc-2021-03-11/bin/distccd --no-detach --daemon --enable-tcp-insecure --port 3632 --log-level warning --zeroconf --allow 10.0.0.0/8 --allow 192.168.0.0/16 --allow 172.16.0.0/12 --allow 127.0.0.0/8
Feb 21 00:28:59 ce1 systemd[1]: distccd.service: Main process exited, code=exited, status=134/n/a
Feb 21 00:28:59 ce1 systemd[1]: distccd.service: Failed with result 'exit-code'.

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.6.74, NixOS, 24.11 (Vicuna), 24.11.714033.f6687779bf4c
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.24.12
  • channels(root): "nixos-24.11, nixos-18.03-18.03, nixos-18.09-18.09, nixos-19.03-19.03, nixos-19.09-19.09, nixos-20.03-20.03, nixos-20.09-20.09, nixos-21.11-21.11, nixos-22.05-22.05, nixos-22.11-22.11, nixos-23.05-23.05, nixos-23.11-23.11, nixos-24.05-24.05, nixos-24.11-24.11, nixos-unstable"
  • channels(raskolnikov): "nixgl, nixpkgs"
  • nixpkgs: /home/raskolnikov/.nix-defexpr/channels/nixpkgs

Notify maintainers

@anderspapitto


Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

Activity

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

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken6.topic: nixosIssues or PRs affecting NixOS modules, or package usability issues specific to NixOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions