[Bug 836849] Re: Samba starts before static IPs set in network manager

camden lindsay 836849 at bugs.launchpad.net
Sat Sep 3 08:57:02 UTC 2011


Okay, let me see if i can touch on all of your points here.

I do not have  IFACE=eth0 in the "start on' clause of /etc/init/smb.conf

However, i do have the following line in /etc/samba/smb.conf, and it does not 'just work' as you indicate it should, unfortunately. :(
interfaces = eth0  


Note that this bug is the same as https://bugs.launchpad.net/ubuntu/+source/samba/+bug/374589 essentially.


Attached are single startup /var/log/samba/log.smbd, /var/log/samba/log.nmbd, and /etc/samba/smb.conf, as well as a successful startup of smbd after the system is up and running.

Note the following in log.smbd:

[2011/09/03 01:45:29,  2] lib/interface.c:389(interpret_interface)
  interpret_interface: Can't find address for eth0
[2011/09/03 01:45:29,  0] lib/interface.c:550(load_interfaces)
  WARNING: no network interfaces found
[2011/09/03 01:45:29,  0] smbd/server.c:1115(main)
  standard input is not a socket, assuming -D option
[2011/09/03 01:45:29,  0] smbd/server.c:616(open_sockets_smbd)
  open_sockets_smbd: No sockets available to bind to.
[2011/09/03 01:45:29,  0] smbd/server.c:837(exit_server_common)
  ===============================================================
[2011/09/03 01:45:29,  0] smbd/server.c:839(exit_server_common)
  Abnormal server exit: open_sockets_smbd() failed
[2011/09/03 01:45:29,  0] smbd/server.c:840(exit_server_common)
  ===============================================================
[2011/09/03 01:45:29,  0] lib/util.c:1584(log_stack_trace)
  BACKTRACE: 6 stack frames:
   #0 smbd(log_stack_trace+0x1a) [0x7fd9fbc2695a]
   #1 smbd(+0x5a9f90) [0x7fd9fbeb5f90]
   #2 smbd(+0x5aa161) [0x7fd9fbeb6161]
   #3 smbd(main+0x90d) [0x7fd9fbeb6ebd]
   #4 /lib/libc.so.6(__libc_start_main+0xfd) [0x7fd9f83b3c4d]
   #5 smbd(+0xc0a49) [0x7fd9fb9cca49]
[2011/09/03 01:45:29,  0] lib/fault.c:326(dump_core)
  dumping core in /var/log/samba/cores/smbd


** Attachment added: "log.smbd showing core dump when it cannot bind to a socket because no ethernet device found"
   https://bugs.launchpad.net/ubuntu/+source/samba/+bug/836849/+attachment/2347554/+files/log.smbd

** Changed in: samba (Ubuntu)
       Status: Invalid => New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/836849

Title:
  Samba starts before static IPs set in network manager

Status in “samba” package in Ubuntu:
  New

Bug description:
  dylan at strut-google-server:/var/log/samba$ lsb_release -rd
  Description:    Ubuntu 10.04.3 LTS
  Release:        10.04

  _______________________________

  
  dylan at strut-google-server:/var/log/samba$ apt-cache policy samba
  samba:
    Installed: 2:3.4.7~dfsg-1ubuntu3.7
    Candidate: 2:3.4.7~dfsg-1ubuntu3.7
    Version table:
   *** 2:3.4.7~dfsg-1ubuntu3.7 0
          500 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main Packages
          500 http://security.ubuntu.com/ubuntu/ lucid-security/main Packages
          100 /var/lib/dpkg/status
       2:3.4.7~dfsg-1ubuntu3 0
          500 http://us.archive.ubuntu.com/ubuntu/ lucid/main Packages
  _____________________________________

  Expect that samba will start up provided the interface assigned in
  it's config has a static IP address.

  Instead, Samba starts before the network manager manages to set up the static IP address on the machine.
  See attached log file.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/836849/+subscriptions




More information about the foundations-bugs mailing list