Thank you for your donation!


Multicast DNS (mDNS) discovery
#11
(03-08-2019, 06:37 PM)TheOldPresbyope Wrote:
(03-08-2019, 05:58 PM)fabnavigator Wrote:
(03-08-2019, 05:40 PM)Tim Curtis Wrote: Examine the following files and verify correct hostname

/etc/hostname
/etc/hosts

The avahi service name is generated dynamically in this file via %h
/etc/avahi/services/moode.service
Here are my files:

/etc/hostname:

master-bathroom

/etc/hosts:

127.0.0.1       localhost
::1             localhost ip6-localhost ip6-loopback
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters

127.0.1.1       master-bathroom

Found on the ArchWiki (https://wiki.archlinux.org/index.php/avahi)

Quote:Troubleshooting

Hostname changes with appending incrementing numbers

This is a known bug that is caused by a hostname race condition. One possible workaround is disabling IPv6 to attempt to prevent the race condition. If multiple interfaces are present use allow-interfaces to limit Avahi to a single interface. Another possible workaround is to disable the cache to prevent Avahi from checking for host name conflicts altogether, but this prevents Avahi from performing lookups.

Certainly, wasn't known to me  Tongue

Since the bug has never occurred in my environment, I can't attest to the workarounds. Disabling IPv6 would be easy but IPv6 is enabled on my hosts (although not in use) so there you are. Are you perhaps using multiple interfaces?

Regards,
Kent

What do you mean when you ask am I "using multiple interfaces"?
Reply
#12
What is the output from the ifconfig command?

(I'm out the rest of my afternoon to volunteer at local high school so won't respond further til tonight)
Reply
#13
What is the output from the ifconfig command?

(I'm out the rest of my afternoon to volunteer at local high school so won't respond further til tonight)
Reply
#14
(03-08-2019, 07:57 PM)TheOldPresbyope Wrote: What is the output from the ifconfig command?

(I'm out the rest of my afternoon to volunteer at local high school so won't respond further til tonight)

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.85  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 2601:143:500:499c:b732:a618:cd39:91d2  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::14bf:8d14:fe32:2f87  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:27:31:3b  txqueuelen 1000  (Ethernet)
        RX packets 804785  bytes 857073719 (817.3 MiB)
        RX errors 0  dropped 140  overruns 0  frame 0
        TX packets 378427  bytes 53348227 (50.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 65538  bytes 19632397 (18.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 65538  bytes 19632397 (18.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
Reply
#15
Has anything else been installed on that particular Pi that is running it's own instance of avahi or zeroconfig?

Or possibly another host on the network with same hostname "master-bathroom"?
Enjoy the Music!
http://moodeaudio.org | http://twitter.com/MoodeAudio | http://github.com/moodeaudio
Reply
#16
(03-08-2019, 08:12 PM)fabnavigator Wrote:
(03-08-2019, 07:57 PM)TheOldPresbyope Wrote: What is the output from the ifconfig command?

(I'm out the rest of my afternoon to volunteer at local high school so won't respond further til tonight)

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.85  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 2601:143:500:499c:b732:a618:cd39:91d2  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::14bf:8d14:fe32:2f87  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:27:31:3b  txqueuelen 1000  (Ethernet)
        RX packets 804785  bytes 857073719 (817.3 MiB)
        RX errors 0  dropped 140  overruns 0  frame 0
        TX packets 378427  bytes 53348227 (50.8 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 65538  bytes 19632397 (18.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 65538  bytes 19632397 (18.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


Hmmm. Compared to my moOde players running at the moment---one WiFi, one ethernet---You have an extra IPv6 interface:


Code:
inet6 2601:143:500:499c:b732:a618:cd39:91d2  prefixlen 64  scopeid 0x0<global>

Any idea what could be setting up this interface?

Regards,
Kent
Reply
#17
I checked by other two RPIs, and they each have their own host names.

My MoOde RPI is connected to my WD NAS device. I wonder if that could have anything to do with this?
Reply


Forum Jump: