• 6.12.1 Bonjour Not Working


    Taddeusz
    • Closed

    On my Mac I have this app called AutoMounter. It has an option "Mount using Bonjour". This is how it's been set forever. If I uncheck the option the SMB shares mount successfully. If it's set it gives the error "Bonjour Not Available". I checked the share.cfg file and avahi is enabled. Not sure what happened to avahi in 6.12?

    unraid-diagnostics-20230621-1029.zip




    User Feedback

    Recommended Comments

    In Unraid version 6.12.1 the avahi service binds to the available interfaces of the server.

    This is from your log. Avahi is listening on 192.168.22.90

    Jun 20 15:59:33 unRAID root: Starting Avahi mDNS/DNS-SD Daemon: /usr/sbin/avahi-daemon -D
    Jun 20 15:59:33 unRAID avahi-daemon[5784]: Found user 'avahi' (UID 61) and group 'avahi' (GID 214).
    Jun 20 15:59:33 unRAID avahi-daemon[5784]: Successfully dropped root privileges.
    Jun 20 15:59:33 unRAID avahi-daemon[5784]: avahi-daemon 0.8 starting up.
    Jun 20 15:59:33 unRAID avahi-daemon[5784]: Successfully called chroot().
    Jun 20 15:59:33 unRAID avahi-daemon[5784]: Successfully dropped remaining capabilities.
    Jun 20 15:59:33 unRAID avahi-daemon[5784]: Loading service file /services/sftp-ssh.service.
    Jun 20 15:59:33 unRAID avahi-daemon[5784]: Loading service file /services/smb.service.
    Jun 20 15:59:33 unRAID avahi-daemon[5784]: Loading service file /services/ssh.service.
    Jun 20 15:59:33 unRAID avahi-daemon[5784]: Joining mDNS multicast group on interface br0.IPv4 with address 192.168.22.90.
    Jun 20 15:59:33 unRAID avahi-daemon[5784]: New relevant interface br0.IPv4 for mDNS.
    Jun 20 15:59:33 unRAID avahi-daemon[5784]: Network interface enumeration completed.
    Jun 20 15:59:33 unRAID avahi-daemon[5784]: Registering new address record for fe80::1a31:bfff:fedf:11a2 on br0.*.
    Jun 20 15:59:33 unRAID avahi-daemon[5784]: Registering new address record for 192.168.22.90 on br0.IPv4.
    Jun 20 15:59:33 unRAID emhttpd: shcmd (87): /etc/rc.d/rc.avahidnsconfd restart
    Jun 20 15:59:33 unRAID root: Stopping Avahi mDNS/DNS-SD DNS Server Configuration Daemon: stopped
    Jun 20 15:59:33 unRAID root: Starting Avahi mDNS/DNS-SD DNS Server Configuration Daemon:  /usr/sbin/avahi-dnsconfd -D
    Jun 20 15:59:33 unRAID avahi-dnsconfd[5793]: Successfully connected to Avahi daemon.
    Jun 20 15:59:33 unRAID emhttpd: shcmd (97): /usr/local/sbin/mount_image '/mnt/cache/system/docker/docker.img' /var/lib/docker 40
    Jun 20 15:59:34 unRAID avahi-daemon[5784]: Server startup complete. Host name is unRAID.local. Local service cookie is 1453313680.
    Jun 20 15:59:35 unRAID avahi-daemon[5784]: Service "unRAID" (/services/ssh.service) successfully established.
    Jun 20 15:59:35 unRAID avahi-daemon[5784]: Service "unRAID" (/services/smb.service) successfully established.
    Jun 20 15:59:35 unRAID avahi-daemon[5784]: Service "unRAID" (/services/sftp-ssh.service) successfully established.

     

     I am not familar with bonjour, perhaps it requires the specific address?

     

    Link to comment

    I changed the AutoMounter host from unraid.bean.local to 192.168.22.90 and that worked. Why would it not work using the fq host name?

    Link to comment
    34 minutes ago, Taddeusz said:

    I changed the AutoMounter host from unraid.bean.local to 192.168.22.90 and that worked. Why would it not work using the fq host name?

    'avahi' is the name of the Linux package that implements mDNS protocol and 'bonjour' is the name of MacOS package that does same.  These packages are responsible for resolving network hostnames that end in ".local".  If 'avahi' is not configured properly then name resolution won't work, but you can always refer to a host by it's IP address.  If disabling ipv6 does not work for you, please post contents of this file from your server:

     

    /etc/avahi/avahi-daemon.conf

    Link to comment

    I've disabled ipv6. 192.168.22.90 and unraid.local work but unraid.bean.local still does not work. I'd like to not use "unraid.local" since AFAIK mDNS does not work over VPN with different subnets. I'm using pfSense and have a host override for unraid since it's a static IP. nslookup resolves it correctly on my Mac.

     

    Here is the contents of the avahi-daemon.conf file:

     

    # This file is part of avahi.
    #
    # avahi is free software; you can redistribute it and/or modify it
    # under the terms of the GNU Lesser General Public License as
    # published by the Free Software Foundation; either version 2 of the
    # License, or (at your option) any later version.
    #
    # avahi is distributed in the hope that it will be useful, but WITHOUT
    # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
    # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
    # License for more details.
    #
    # You should have received a copy of the GNU Lesser General Public
    # License along with avahi; if not, write to the Free Software
    # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
    # USA.
    
    # See avahi-daemon.conf(5) for more information on this configuration
    # file!
    
    [server]
    #host-name=foo
    #domain-name=local
    #browse-domains=0pointer.de, zeroconf.org
    use-ipv4=yes
    use-ipv6=no
    allow-interfaces=br0
    #deny-interfaces=eth1
    #check-response-ttl=no
    #use-iff-running=no
    #enable-dbus=yes
    #disallow-other-stacks=no
    #allow-point-to-point=no
    #cache-entries-max=4096
    #clients-max=4096
    #objects-per-client-max=1024
    #entries-per-entry-group-max=32
    ratelimit-interval-usec=1000000
    ratelimit-burst=1000
    
    [wide-area]
    enable-wide-area=yes
    
    [publish]
    #disable-publishing=no
    #disable-user-service-publishing=no
    #add-service-cookie=no
    #publish-addresses=yes
    publish-hinfo=no
    publish-workstation=no
    #publish-domain=yes
    #publish-dns-servers=192.168.50.1, 192.168.50.2
    #publish-resolv-conf-dns-servers=yes
    #publish-aaaa-on-ipv4=yes
    #publish-a-on-ipv6=no
    
    [reflector]
    #enable-reflector=no
    #reflect-ipv=no
    #reflect-filters=_airplay._tcp.local,_raop._tcp.local
    
    [rlimits]
    #rlimit-as=
    #rlimit-core=0
    #rlimit-data=8388608
    #rlimit-fsize=0
    #rlimit-nofile=768
    #rlimit-stack=8388608
    #rlimit-nproc=3

     

    Link to comment


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.