[Samba] Startup issue with Samba

Malcolm Sievwright Malcolm.Sievwright at btopenworld.com
Sun Jul 3 11:09:05 MDT 2011


Hi Folks,

 

I am looking to try and find a solution to the following problem and hope
someone can help.

 

I have just installed Samba on an HP Proliant Microserver at home to share
disk with my Windows 7 PC and Vista laptop.  I have managed to get
everything set up but I have an issue where on a reboot the Windows 7 PC
looses the share.  If I restart samba (using /etc/ini.d/samba restart) then
everything works ok and the Share re-appears over the network.  It looks
like a startup issue where Samba is not binding to port 139 and 445 using
the IP address of the server only the loopback.

 

It is similar to the issue in this post:

 


http://ubuntuforums.org/showthread.php?t=1576293

 

but the solution does not fit as I can't find an smbd.conf file in
/etc/init.

 

I have the following errors in the smbd log at startup:

 

[2011/07/03 15:29:23.569090,  0] lib/util_sock.c:880(open_socket_in)

  bind failed on port 445 socket_addr = fe80::9a4b:e1ff:fe06:c899%eth0.

  Error = Cannot assign requested address

[2011/07/03 15:29:23.569346,  0] smbd/server.c:500(smbd_open_one_socket)

  smbd_open_once_socket: open_socket_in: Cannot assign requested address

[2011/07/03 15:29:23.569378,  0] lib/util_sock.c:880(open_socket_in)

  bind failed on port 139 socket_addr = fe80::9a4b:e1ff:fe06:c899%eth0.

  Error = Cannot assign requested address

[2011/07/03 15:29:23.569427,  0] smbd/server.c:500(smbd_open_one_socket)

  smbd_open_once_socket: open_socket_in: Cannot assign requested address

 

and have startup orders:

 

root at debian:/var/log/samba# ls -l /etc/rcS.d/*net*

lrwxrwxrwx 1 root root 20 Jul  2 09:58 /etc/rcS.d/S13networking ->
../init.d/networking

root at debian:/var/log/samba# ls -l /etc/rc2.d/*samba*

lrwxrwxrwx 1 root root 15 Jul  2 10:09 /etc/rc2.d/S01samba ->
../init.d/samba

root at debian:/var/log/samba#

 

I think I need to try and change samba to start up after the netork
interfaces have started but am not totally sure.

 

Any help would be gratefully received,


Cheers,

 

Malcolm.

 

 



More information about the samba mailing list