[Samba] Getting some fails in log.nmbd

Marcin Czajkowski marczajk1 at student.pg.gda.pl
Fri Dec 5 14:28:51 MST 2014


Hi

I've got a home-made, small file server running on Samba 2.4.1.11 from 
Debian Wheezy backports repo. I've noticed following lines in log.nmbd file:

[2014/11/17 22:54:00,  0] nmbd/nmbd.c:66(terminate)
   Got SIGTERM: going down...
[2014/11/17 22:54:00,  0] libsmb/nmblib.c:856(send_udp)
   Packet send failed to 127.0.0.1(137) ERRNO=Operation not permitted
[2014/11/17 22:54:00,  0] nmbd/nmbd_packets.c:179(send_netbios_packet)
   send_netbios_packet: send_packet() to IP 127.0.0.1 port 137 failed
[2014/11/17 22:54:00,  0] nmbd/nmbd_namerelease.c:166(wins_release_name)
   release_name: Failed to send packet trying to release name 
WORKGROUP<1b> IP 192.168.1.1
[2014/11/17 22:54:00,  0] libsmb/nmblib.c:856(send_udp)
   Packet send failed to 127.0.0.1(137) ERRNO=Operation not permitted
[2014/11/17 22:54:00,  0] nmbd/nmbd_packets.c:179(send_netbios_packet)
   send_netbios_packet: send_packet() to IP 127.0.0.1 port 137 failed
[2014/11/17 22:54:00,  0] nmbd/nmbd_namerelease.c:166(wins_release_name)
   release_name: Failed to send packet trying to release name 
WORKGROUP<1e> IP 192.168.1.1
[2014/11/17 22:54:00,  0] libsmb/nmblib.c:856(send_udp)
   Packet send failed to 127.0.0.1(137) ERRNO=Operation not permitted
[2014/11/17 22:54:00,  0] nmbd/nmbd_packets.c:179(send_netbios_packet)
   send_netbios_packet: send_packet() to IP 127.0.0.1 port 137 failed
[2014/11/17 22:54:00,  0] nmbd/nmbd_namerelease.c:166(wins_release_name)
   release_name: Failed to send packet trying to release name 
WORKGROUP<00> IP 192.168.1.1
[2014/11/17 22:54:00,  0] libsmb/nmblib.c:856(send_udp)
   Packet send failed to 127.0.0.1(137) ERRNO=Operation not permitted
[2014/11/17 22:54:00,  0] nmbd/nmbd_packets.c:179(send_netbios_packet)
   send_netbios_packet: send_packet() to IP 127.0.0.1 port 137 failed
[2014/11/17 22:54:00,  0] nmbd/nmbd_namerelease.c:166(wins_release_name)
   release_name: Failed to send packet trying to release name 
DZIECIATKO<00> IP 192.168.1.1
[2014/11/17 22:54:00,  0] libsmb/nmblib.c:856(send_udp)
   Packet send failed to 127.0.0.1(137) ERRNO=Operation not permitted
[2014/11/17 22:54:00,  0] nmbd/nmbd_packets.c:179(send_netbios_packet)
   send_netbios_packet: send_packet() to IP 127.0.0.1 port 137 failed
[2014/11/17 22:54:00,  0] nmbd/nmbd_namerelease.c:166(wins_release_name)
   release_name: Failed to send packet trying to release name 
DZIECIATKO<03> IP 192.168.1.1
[2014/11/17 22:54:00,  0] libsmb/nmblib.c:856(send_udp)
   Packet send failed to 127.0.0.1(137) ERRNO=Operation not permitted
[2014/11/17 22:54:00,  0] nmbd/nmbd_packets.c:179(send_netbios_packet)
   send_netbios_packet: send_packet() to IP 127.0.0.1 port 137 failed
[2014/11/17 22:54:00,  0] nmbd/nmbd_namerelease.c:166(wins_release_name)
   release_name: Failed to send packet trying to release name 
DZIECIATKO<20> IP 192.168.1.1
[2014/11/17 22:54:00,  0] libsmb/nmblib.c:856(send_udp)
   Packet send failed to 192.168.1.255(138) ERRNO=Operation not permitted
[2014/11/17 22:54:00,  0] libsmb/nmblib.c:856(send_udp)
   Packet send failed to 192.168.1.255(138) ERRNO=Operation not permitted


This fails occurs when I turning off server by pressing power button. 
When I turn off only daemon by '/etc/init.d/samba stop' Samba stops 
properly - last line of nmbd log is "Got SIGTERM" message:

[2014/11/18 20:24:13,  0] nmbd/nmbd.c:66(terminate)
   Got SIGTERM: going down...


I don't block any of UDP ports mentioned in log.nmbd, sever shares file 
for client computers correctly. My smb.conf if as follows:

[global]
    netbios name = DZIECIATKO
    server string = DZIECIATKO
    dns proxy = no
    load printers = no
    printing = bsd
    printcap name = /dev/null
#SIEC
    bind interfaces only = yes
    interfaces = br0
    hosts allow = 192.168.1.
#DEBUG
    log file = /var/log/samba/log.%m
    max log size = 1000
    syslog = 0
    panic action = /usr/share/samba/panic-action %d
#UWIEZYTELNIANIE
    encrypt passwords = true
    guest account = nobody
    unix password sync = no
    smb passwd file = /etc/samba/smbpasswd
    passwd program = /usr/bin/passwd %u
    passwd chat = *Enter\snew\s*\spassword:* %n\n 
*Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
#DOMENA
    os level = 200
    domain master = yes
    local master = yes
    prefered master = yes
    time server = yes
    wins support = yes
#WYDAJNOSC
    socket options = IPTOS_LOWDELAY TCP_NODELAY
#   SO_SNDBUF=8192
#   SO_RCVBUF=8192
    write cache size = 65536


nmbd start logging this fails after that I removed 'lo' interface from 
"interfaces" property due to "spam" in log.nmbd lines like this:

[2014/11/17 16:27:01,  0] nmbd/nmbd_packets.c:759(queue_query_name)
   queue_query_name: interface 1 has NULL IP address !


Could you help me figuring out what is the source of this fails?

-- 
Greetings,
  Marcin Czajkowski


More information about the samba mailing list