Samba fails to bind IPv6 on boot

Bug #649189 reported by Alex Kiernan on 2010-09-27
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Low
Unassigned

Bug Description

Binary package hint: samba

On cold boot, smbd/nmbd just bind to IPv4:

$ netstat -an|grep 445
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN
$ netstat -an|grep 139
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN

Once the box is fully up (IPv6 is statically configured in /etc/network/interfaces on the box in question), when restarted they both correctly listen on IPv6:

$ sudo service nmbd restart
nmbd start/running, process 3107
$ sudo service smbd restart
smbd start/running, process 3113
$ netstat -an|grep 139
tcp6 0 0 :::139 :::* LISTEN
$ netstat -an|grep 445
tcp6 0 0 :::445 :::* LISTEN

This is samba 2:3.4.7~dfsg-1ubuntu3.2 on Ubuntu 10.04.1 LTS

Mathias Gug (mathiaz) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

This is due to the upstart job:

  start on (local-filesystems and net-device-up IFACE!=lo)

samba may need to be restarted once an interface is brought up via if /etc/network/if-up.d/.

Changed in samba (Ubuntu):
importance: Undecided → Low
status: New → Confirmed

I experienced the same bug, when /etc/network/interfaces was configured for dynamic ip.
After I configured /etc/network/interfaces to static ipv4 address, the problem was resolved.

So it seems that Samba binds only to local address, before the dhcp client received a address from the dhcp server.
Maybe there is a upstart event that fires when the network is available?

I forgot.
this was on Ubuntu 12.10, samba 2:3.6.6-3ubuntu5

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers