• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Avahi service stops / won't start when enabling reflection

Scheduled Pinned Locked Moved pfSense Packages
5 Posts 2 Posters 393 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    beechclose
    last edited by Jul 5, 2024, 6:06 PM

    Hi everyone,

    I am having trouble with Avahi on v24.03, specifically with enabling the reflector. When checked, the service stops immediately and jumps back on when I disable it.

    The log file returns this error message:

    Missing assignment in /usr/local/etc/avahi/avahi-daemon.conf:29: <cal,_pdl-datastream._tcp.local,_printer._tcp.local,_printer._tcp.local.....

    However, I cannot find any errors in line 29 of the daemon config file, no extra spaces, no rogue characters...just nothing wrong with it as far as I can tell.

    Would somebody please be so kind and post their daemon config file from a working setup...really need to get this going.

    Many thanks,
    Chris

    D 1 Reply Last reply Jul 5, 2024, 8:25 PM Reply Quote 0
    • D Offline
      dennypage @beechclose
      last edited by dennypage Jul 5, 2024, 8:26 PM Jul 5, 2024, 8:25 PM

      @beechclose You need to post your entire Avahi config.

      1 Reply Last reply Reply Quote 1
      • B Offline
        beechclose
        last edited by Jul 5, 2024, 9:56 PM

        OK, figured it out, it's working now...looks like a bug.

        I've deleted most reflectors via the GUI, bringing down the list to 13 entries. This seems to be the maximum amount...add one more and the service stops. This is 100% replicable.

        Although I cannot confirm this for sure, I assume this must be somehow related to line break in the daemon config file as the reflectors live in a single row seperated by commas.

        When inspecting the file with vi, there are no errors discernable. Weird.

        God this did my head in...

        D 2 Replies Last reply Jul 5, 2024, 10:35 PM Reply Quote 0
        • D Offline
          dennypage @beechclose
          last edited by Jul 5, 2024, 10:35 PM

          @beechclose Good to know, thanks.

          1 Reply Last reply Reply Quote 1
          • D Offline
            dennypage @beechclose
            last edited by Jul 6, 2024, 10:12 PM

            @beechclose FWIW, it turns out the limit isn't number of reflectors, but just the line length. There is a hard coded line length limit of 256 characters for the ini file. It is a known issue.

            I put up a PR to increase this to 1024.

            1 Reply Last reply Reply Quote 1
            5 out of 5
            • First post
              5/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
              This community forum collects and processes your personal information.
              consent.not_received