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 260 Views
    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
      beechclose
      last edited by

      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

      dennypageD 1 Reply Last reply Reply Quote 0
      • dennypageD
        dennypage @beechclose
        last edited by dennypage

        @beechclose You need to post your entire Avahi config.

        1 Reply Last reply Reply Quote 1
        • B
          beechclose
          last edited by

          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...

          dennypageD 2 Replies Last reply Reply Quote 0
          • dennypageD
            dennypage @beechclose
            last edited by

            @beechclose Good to know, thanks.

            1 Reply Last reply Reply Quote 1
            • dennypageD
              dennypage @beechclose
              last edited by

              @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
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.