Hi Markos,

After creating this service file, if you check the contents of
/var/log/syslog, you will see that Avahi gave an error parsing the file:

May 10 16:01:30 optane avahi-daemon[1260]: Loading service file 
/services/test.service.
May 10 16:01:30 optane avahi-daemon[1260]: /services/test.service: parse 
failure: didn't expect element <Network_Scanner>.
May 10 16:01:30 optane avahi-daemon[1260]: XML_ParseBuffer() failed at line 4: 
mismatched tag.
May 10 16:01:30 optane avahi-daemon[1260]: Failed to load service group file 
/services/test.service, ignoring.

The error here is that you used the "<" and ">" characters in the name
of your service "<Network_Scanner>" but as this is an XML format file,
those characters are reserved for the format of the XML itself. For XML,
to include such characters in the name, you need to escape them similar
to HTML by using the token &lt; ("Less Than" or the < symbol) and &gt;
("Greater Than" or the > symbol)

Once you do that, you will see the service file loads successfully:
May 10 16:03:49 optane avahi-daemon[1260]: Service "optane <Network_Scanner>" 
(/services/test.service) successfully established.

And it is now visible in avahi-browse:
=    br0 IPv6 optane <Network_Scanner>                      _uscan._tcp         
 local
   hostname = [optane.local]
   address = [fe80::76d4:35ff:fee0:f74c]
   port = [80]
   txt = []


Most likely a real _uscan._tcp service may need more info than this such as TXT 
records describing the service but hopefully it at least gets you going.

I am setting this bug as Invalid as it is not an actual bug, but simply
an error using the software. But hopefully I was able to get you in the
right direction!

Regards,
Trent

** Changed in: avahi (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1828516

Title:
  avahi-daemon seems unable to advertise _uscan._tcp??

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/avahi/+bug/1828516/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to