Bug 7419 - nmbd logs error: "interface 1 has NULL IP address"
nmbd logs error: "interface 1 has NULL IP address"
Status: NEW
Product: Samba 3.5
Classification: Unclassified
Component: Nmbd
3.5.2
Other Linux
: P3 normal
: ---
Assigned To: Jeremy Allison
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-09 10:49 UTC by Chris Smith (bugmail disabled due to bounces)
Modified: 2010-05-27 05:56 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Smith (bugmail disabled due to bounces) 2010-05-09 10:49:53 UTC
Running samba-3.5.2 I notice this in the log.nmbd file after starting samba:
===============================================================
[2010/05/08 19:10:44.652249,  0] nmbd/nmbd_packets.c:738(queue_query_name)
 queue_query_name: interface 1 has NULL IP address !
[2010/05/08 19:10:44.652298,  0] nmbd/nmbd_packets.c:738(queue_query_name)
 queue_query_name: interface 1 has NULL IP address !
===============================================================

I discovered that this occurs with:
bind interfaces only = Yes
and one of the following:
===========================
interfaces = 192.168.107.6 lo
or
interfaces = eth0 lo
===========================

no other combinations cause the issue:
===========================
interfaces = 192.168.107.6 127.0.0.1
or
interfaces = lo 192.168.107.6
or
interfaces = lo eth0
or
interfaces = 127.0.0.1 192.168.107.6
or
interfaces = 127.0.0.1 eth0
===========================

Basically only when "lo" is specified second by name is the problem
seen, "lo"'s IP address works in all cases either first or second.

Adding the output of "ip addr" in case that helps:
========================================================
# ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
   link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
   inet 127.0.0.1/8 scope host lo
   inet6 ::1/128 scope host
      valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP qlen 1000
   link/ether 00:16:76:aa:bf:70 brd ff:ff:ff:ff:ff:ff
   inet 192.168.107.6/24 brd 192.168.107.255 scope global eth0
   inet 192.168.107.66/24 brd 192.168.107.255 scope global secondary eth0
   inet6 fe80::216:76ff:feaa:bf70/64 scope link
      valid_lft forever preferred_lft forever
========================================================
Comment 1 Guenther Deschner 2010-05-27 05:42:53 UTC
Metze, Jeremy, does this ring a bell ?
Comment 2 Stefan Metzmacher 2010-05-27 05:56:45 UTC
not for me...