Samba fails to bind IPv6 on boot

Bug #649189 reported by Alex Kiernan
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Confirmed
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

Revision history for this message
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
Revision history for this message
Jos Zonneveld (jos-fam-zonneveld) wrote :

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?

Revision history for this message
Jos Zonneveld (jos-fam-zonneveld) wrote :

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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.