[Samba] nmb.service fails on pure IPv6 system

Andrew Bartlett abartlet at samba.org
Wed Jul 26 20:40:17 UTC 2023


On Wed, 2023-07-26 at 11:41 -0700, Jeremy Allison via samba wrote:
> On Wed, Jul 26, 2023 at 01:13:57PM -0500, Tim Hoke via samba wrote:
> > I have an IPv6 only system (no IPv4 addresses) and nmb.service goes
> > into afailed state saying:
> > Status: "nmbd: No local IPv4 non-loopback interfaces available,
> > waiting forinterface ..."
> > I've seen several references to a previous bug where the service
> > wasn'twaitingfor networking to be ready. That's _not_ my case here.
> > Instead, I have noIPv4addresses, so I think it's stuck in the loop
> > looking for non-loopback IPv4addresses.
> 
> nmbd is not IPv6 aware and can't serve IPv6 queries. Just disableit
> on an IPv6-only box.

Tim,
In one sense this isn't something we can 'fix' as we don't know that an
IPv4 interface won't come up shortly.
But we could change:		DEBUG(0,("NOTE: NetBIOS name resolution
is not supported for "			 "Internet Protocol Version 6
(IPv6).\n"));to DBG_NOTICEThis should stop systemd from saying we are
'failed'. 
To not be be at level 0 per  
https://bugzilla.samba.org/show_bug.cgi?id=4143 
https://gitlab.com/samba-team/samba/-/merge_requests/3123and similar to
https://bugzilla.samba.org/show_bug.cgi?id=15377 
https://gitlab.com/samba-team/samba/-/merge_requests/3113 
Would you like to give that a go?  
If so, the (painful - sorry!) process is at 
https://wiki.samba.org/index.php/Contribute
Andrew

-- 
Andrew Bartlett (he/him)       https://samba.org/~abartlet/Samba Team Member (since 2001) https://samba.orgSamba Team Lead                https://catalyst.net.nz/services/sambaCatalyst.Net Ltd
Proudly developing Samba for Catalyst.Net Ltd - a Catalyst IT group
company
Samba Development and Support: https://catalyst.net.nz/services/samba
Catalyst IT - Expert Open Source Solutions


More information about the samba mailing list