[Pkg-samba-maint] Bug#501075: samba: Daemons don't start on boot because network is not yet up

Juergen Stuber juergen at jstuber.net
Fri Oct 3 20:53:13 UTC 2008


Package: samba
Version: 2:3.2.3-1
Severity: normal


smbd and nmbd failed to start up at boot, I started them manually from swat.
It seems this is due to the network not being up at the time,
it only comes up some seconds later.

Juergen


/var/log/samba/samba.log:
[2008/10/02 21:11:50,  0] lib/interface.c:load_interfaces(540)
  WARNING: no network interfaces found
[2008/10/02 21:11:50,  0] smbd/server.c:open_sockets_smbd(548)
  open_sockets_smbd: No sockets available to bind to.

/var/log/daemon.log:
Oct  2 21:11:46 piano dhclient: Internet Systems Consortium DHCP Client V3.1.1
Oct  2 21:11:46 piano dhclient: Copyright 2004-2008 Internet Systems Consortium.
Oct  2 21:11:46 piano dhclient: All rights reserved.
Oct  2 21:11:46 piano dhclient: For info, please visit http://www.isc.org/sw/dhcp/
Oct  2 21:11:46 piano dhclient: 
Oct  2 21:11:47 piano dhclient: Listening on LPF/eth0/00:1f:d0:85:6a:2c
Oct  2 21:11:47 piano dhclient: Sending on   LPF/eth0/00:1f:d0:85:6a:2c
Oct  2 21:11:47 piano dhclient: Sending on   Socket/fallback
Oct  2 21:11:50 piano avahi-daemon[2892]: Found user 'avahi' (UID 104) and group 'avahi' (GID 105).
Oct  2 21:11:50 piano avahi-daemon[2892]: Successfully dropped root privileges.
Oct  2 21:11:50 piano avahi-daemon[2892]: avahi-daemon 0.6.22 starting up.
Oct  2 21:11:50 piano avahi-daemon[2892]: Successfully called chroot().
Oct  2 21:11:50 piano avahi-daemon[2892]: Successfully dropped remaining capabilities.
Oct  2 21:11:50 piano avahi-daemon[2892]: No service file found in /etc/avahi/services.
Oct  2 21:11:50 piano avahi-daemon[2892]: Joining mDNS multicast group on interface eth0.IPv6 with address fe80::21f:d0ff:fe85:6a2c.
Oct  2 21:11:50 piano avahi-daemon[2892]: New relevant interface eth0.IPv6 for mDNS.
Oct  2 21:11:50 piano avahi-daemon[2892]: Network interface enumeration completed.
Oct  2 21:11:50 piano avahi-daemon[2892]: Registering new address record for fe80::21f:d0ff:fe85:6a2c on eth0.*.
Oct  2 21:11:50 piano avahi-daemon[2892]: Registering HINFO record with values 'I686'/'LINUX'.
Oct  2 21:11:51 piano dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
Oct  2 21:11:51 piano avahi-daemon[2892]: Server startup complete. Host name is piano.local. Local service cookie is 749374880.
Oct  2 21:11:51 piano acpid: client connected from 2942[105:108] 
Oct  2 21:11:51 piano hcid[2959]: Bluetooth HCI daemon
Oct  2 21:11:51 piano hcid[2959]: Parsing /etc/bluetooth/main.conf failed: No such file or directory
Oct  2 21:11:51 piano hcid[2959]: Starting SDP server
Oct  2 21:11:51 piano hcid[2959]: Unix socket created: 11
Oct  2 21:11:51 piano hcid[2959]: Registered manager path:/org/bluez/audio
Oct  2 21:11:52 piano dhclient: DHCPOFFER from 10.158.2.1
Oct  2 21:11:52 piano dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  2 21:11:52 piano dhclient: DHCPACK from 10.158.2.1
Oct  2 21:11:52 piano NetworkManager: <info>  starting... 
Oct  2 21:11:52 piano avahi-daemon[2892]: Joining mDNS multicast group on interface eth0.IPv4 with address 10.158.2.30.
Oct  2 21:11:52 piano avahi-daemon[2892]: New relevant interface eth0.IPv4 for mDNS.
Oct  2 21:11:52 piano avahi-daemon[2892]: Registering new address record for 10.158.2.30 on eth0.IPv4.
Oct  2 21:11:52 piano avahi-daemon[2892]: Withdrawing address record for 10.158.2.30 on eth0.
Oct  2 21:11:52 piano avahi-daemon[2892]: Leaving mDNS multicast group on interface eth0.IPv4 with address 10.158.2.30.
Oct  2 21:11:52 piano avahi-daemon[2892]: Interface eth0.IPv4 no longer relevant for mDNS.
Oct  2 21:11:52 piano avahi-daemon[2892]: Joining mDNS multicast group on interface eth0.IPv4 with address 10.158.2.30.
Oct  2 21:11:52 piano avahi-daemon[2892]: New relevant interface eth0.IPv4 for mDNS.
Oct  2 21:11:52 piano avahi-daemon[2892]: Registering new address record for 10.158.2.30 on eth0.IPv4.
Oct  2 21:11:52 piano NetworkManager: <info>  New VPN service 'vpnc' (org.freedesktop.NetworkManager.vpnc). 
Oct  2 21:11:52 piano NetworkManager: <info>  New VPN service 'openvpn' (org.freedesktop.NetworkManager.openvpn). 
Oct  2 21:11:52 piano NetworkManager: <info>  eth0: Device is fully-supported using driver 'r8169'. 
Oct  2 21:11:52 piano NetworkManager: <info>  nm_device_init(): waiting for device's worker thread to start 
Oct  2 21:11:52 piano NetworkManager: <info>  nm_device_init(): device's worker thread started, continuing. 
Oct  2 21:11:52 piano NetworkManager: <info>  Now managing wired Ethernet (802.3) device 'eth0'. 
Oct  2 21:11:52 piano NetworkManager: <info>  Deactivating device eth0. 
Oct  2 21:11:52 piano avahi-daemon[2892]: Withdrawing address record for 10.158.2.30 on eth0.
Oct  2 21:11:52 piano avahi-daemon[2892]: Leaving mDNS multicast group on interface eth0.IPv4 with address 10.158.2.30.
Oct  2 21:11:52 piano avahi-daemon[2892]: Interface eth0.IPv4 no longer relevant for mDNS.
Oct  2 21:11:52 piano avahi-daemon[2892]: Withdrawing address record for fe80::21f:d0ff:fe85:6a2c on eth0.
Oct  2 21:11:52 piano avahi-daemon[2892]: Leaving mDNS multicast group on interface eth0.IPv6 with address fe80::21f:d0ff:fe85:6a2c.
Oct  2 21:11:52 piano avahi-daemon[2892]: Interface eth0.IPv6 no longer relevant for mDNS.
Oct  2 21:11:52 piano NetworkManager: <info>  Will activate wired connection 'eth0' because it now has a link. 
Oct  2 21:11:52 piano NetworkManager: <info>  SWITCH: no current connection, found better connection 'eth0'. 
Oct  2 21:11:52 piano dhclient: bound to 10.158.2.30 -- renewal in 366040 seconds.
Oct  2 21:11:52 piano ntpdate[3099]: can't find host 0.debian.pool.ntp.org 
Oct  2 21:11:52 piano ntpdate[3099]: can't find host 1.debian.pool.ntp.org 
Oct  2 21:11:52 piano ntpdate[3099]: can't find host 2.debian.pool.ntp.org 
Oct  2 21:11:52 piano ntpdate[3099]: can't find host 3.debian.pool.ntp.org 
Oct  2 21:11:52 piano ntpdate[3099]: no servers can be used, exiting
Oct  2 21:11:53 piano NetworkManager: <info>  Will activate connection 'eth0'. 
Oct  2 21:11:53 piano NetworkManager: <info>  Device eth0 activation scheduled... 
Oct  2 21:11:53 piano NetworkManager: <info>  Activation (eth0) started... 
Oct  2 21:11:53 piano NetworkManager: <info>  Activation (eth0) Stage 1 of 5 (Device Prepare) scheduled... 
Oct  2 21:11:53 piano NetworkManager: <info>  Activation (eth0) Stage 1 of 5 (Device Prepare) started... 
Oct  2 21:11:53 piano NetworkManager: <info>  Activation (eth0) Stage 2 of 5 (Device Configure) scheduled... 
Oct  2 21:11:53 piano NetworkManager: <info>  Activation (eth0) Stage 1 of 5 (Device Prepare) complete. 
Oct  2 21:11:53 piano NetworkManager: <info>  Activation (eth0) Stage 2 of 5 (Device Configure) starting... 
Oct  2 21:11:53 piano NetworkManager: <info>  Activation (eth0) Stage 2 of 5 (Device Configure) successful. 
Oct  2 21:11:53 piano NetworkManager: <info>  Activation (eth0) Stage 3 of 5 (IP Configure Start) scheduled. 
Oct  2 21:11:53 piano NetworkManager: <info>  Activation (eth0) Stage 2 of 5 (Device Configure) complete. 
Oct  2 21:11:53 piano NetworkManager: <info>  Activation (eth0) Stage 3 of 5 (IP Configure Start) started... 
Oct  2 21:11:54 piano NetworkManager: <info>  Activation (eth0) Beginning DHCP transaction. 
Oct  2 21:11:54 piano NetworkManager: <info>  Activation (eth0) Stage 3 of 5 (IP Configure Start) complete. 
Oct  2 21:11:54 piano NetworkManager: <info>  DHCP daemon state is now 12 (successfully started) for interface eth0 
Oct  2 21:11:55 piano NetworkManager: <info>  DHCP daemon state is now 1 (starting) for interface eth0 
Oct  2 21:11:56 piano dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Oct  2 21:11:56 piano dhclient: DHCPACK from 10.158.2.1
Oct  2 21:11:56 piano avahi-daemon[2892]: Joining mDNS multicast group on interface eth0.IPv4 with address 10.158.2.30.
Oct  2 21:11:56 piano avahi-daemon[2892]: New relevant interface eth0.IPv4 for mDNS.
Oct  2 21:11:56 piano avahi-daemon[2892]: Registering new address record for 10.158.2.30 on eth0.IPv4.
Oct  2 21:11:56 piano avahi-daemon[2892]: Withdrawing address record for 10.158.2.30 on eth0.
Oct  2 21:11:56 piano avahi-daemon[2892]: Leaving mDNS multicast group on interface eth0.IPv4 with address 10.158.2.30.
Oct  2 21:11:56 piano avahi-daemon[2892]: Interface eth0.IPv4 no longer relevant for mDNS.
Oct  2 21:11:56 piano avahi-daemon[2892]: Joining mDNS multicast group on interface eth0.IPv4 with address 10.158.2.30.
Oct  2 21:11:56 piano avahi-daemon[2892]: New relevant interface eth0.IPv4 for mDNS.
Oct  2 21:11:56 piano avahi-daemon[2892]: Registering new address record for 10.158.2.30 on eth0.IPv4.
Oct  2 21:11:56 piano NetworkManager: <info>  DHCP daemon state is now 4 (reboot) for interface eth0 
Oct  2 21:11:56 piano NetworkManager: <info>  Activation (eth0) Stage 4 of 5 (IP Configure Get) scheduled... 
Oct  2 21:11:56 piano NetworkManager: <info>  Activation (eth0) Stage 4 of 5 (IP Configure Get) started... 
Oct  2 21:11:56 piano dhclient: bound to 10.158.2.30 -- renewal in 391946 seconds.
Oct  2 21:11:56 piano NetworkManager: <info>  Retrieved the following IP4 configuration from the DHCP daemon: 
Oct  2 21:11:56 piano NetworkManager: <info>    address 10.158.2.30 
Oct  2 21:11:56 piano NetworkManager: <info>    netmask 255.255.255.0 
Oct  2 21:11:56 piano NetworkManager: <info>    broadcast 10.158.2.255 
Oct  2 21:11:56 piano NetworkManager: <info>    gateway 10.158.2.1 
Oct  2 21:11:56 piano NetworkManager: <info>    nameserver 10.158.2.1 
Oct  2 21:11:56 piano NetworkManager: <info>  Activation (eth0) Stage 5 of 5 (IP Configure Commit) scheduled... 
Oct  2 21:11:56 piano NetworkManager: <info>  Activation (eth0) Stage 4 of 5 (IP Configure Get) complete. 
Oct  2 21:11:56 piano NetworkManager: <info>  Activation (eth0) Stage 5 of 5 (IP Configure Commit) started... 
Oct  2 21:11:56 piano avahi-daemon[2892]: Withdrawing address record for 10.158.2.30 on eth0.
Oct  2 21:11:56 piano avahi-daemon[2892]: Leaving mDNS multicast group on interface eth0.IPv4 with address 10.158.2.30.
Oct  2 21:11:56 piano avahi-daemon[2892]: Interface eth0.IPv4 no longer relevant for mDNS.
Oct  2 21:11:56 piano avahi-daemon[2892]: Joining mDNS multicast group on interface eth0.IPv4 with address 10.158.2.30.
Oct  2 21:11:56 piano avahi-daemon[2892]: New relevant interface eth0.IPv4 for mDNS.
Oct  2 21:11:56 piano avahi-daemon[2892]: Registering new address record for 10.158.2.30 on eth0.IPv4.
Oct  2 21:11:57 piano NetworkManager: <info>  DHCP returned name servers but system has disabled dynamic modification! 
Oct  2 21:11:57 piano NetworkManager: <info>  Activation (eth0) successful, device activated. 
Oct  2 21:11:57 piano NetworkManager: <info>  Activation (eth0) Finish handler scheduled. 
Oct  2 21:11:57 piano NetworkManager: <info>  Activation (eth0) Stage 5 of 5 (IP Configure Commit) complete. 
Oct  2 21:11:58 piano avahi-daemon[2892]: Joining mDNS multicast group on interface eth0.IPv6 with address fe80::21f:d0ff:fe85:6a2c.
Oct  2 21:11:58 piano avahi-daemon[2892]: New relevant interface eth0.IPv6 for mDNS.
Oct  2 21:11:58 piano avahi-daemon[2892]: Registering new address record for fe80::21f:d0ff:fe85:6a2c on eth0.*.
Oct  2 21:12:02 piano ntpdate[3230]: step time server 131.234.137.24 offset 1.655880 sec


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages samba depends on:
ii  adduser              3.110               add and remove users and groups
ii  debconf [debconf-2.0 1.5.22              Debian configuration management sy
ii  libacl1              2.2.47-2            Access control list shared library
ii  libattr1             1:2.4.43-1          Extended attribute shared library
ii  libc6                2.7-13              GNU C Library: Shared libraries
ii  libcomerr2           1.41.0-3            common error description library
ii  libcups2             1.3.8-1lenny1       Common UNIX Printing System(tm) - 
ii  libgnutls26          2.4.1-1             the GNU TLS library - runtime libr
ii  libkrb53             1.6.dfsg.4~beta1-4  MIT Kerberos runtime libraries
ii  libldap-2.4-2        2.4.10-3            OpenLDAP libraries
ii  libpam-modules       1.0.1-4             Pluggable Authentication Modules f
ii  libpam-runtime       1.0.1-4             Runtime support for the PAM librar
ii  libpam0g             1.0.1-4             Pluggable Authentication Modules l
ii  libpopt0             1.14-4              lib for parsing cmdline parameters
ii  libtalloc1           1.2.0~git20080616-1 hierarchical pool based memory all
ii  libwbclient0         2:3.2.3-1           client library for interfacing wit
ii  logrotate            3.7.1-3             Log rotation utility
ii  lsb-base             3.2-20              Linux Standard Base 3.2 init scrip
ii  procps               1:3.2.7-8           /proc file system utilities
ii  samba-common         2:3.2.3-1           Samba common files used by both th
ii  update-inetd         4.31                inetd configuration file updater
ii  zlib1g               1:1.2.3.3.dfsg-12   compression library - runtime

samba recommends no packages.

Versions of packages samba suggests:
ii  openbsd-inetd [inet-superse 0.20080125-1 The OpenBSD Internet Superserver
pn  smbldap-tools               <none>       (no description available)

-- debconf information:
  samba/run_mode: daemons
  samba/generate_smbpasswd: true





More information about the Pkg-samba-maint mailing list