Avahi service stops / won't start when enabling reflection
-
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 -
@beechclose You need to post your entire Avahi config.
-
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...
-
@beechclose Good to know, thanks.
-
@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.