I moved an entire RH 6.2 server from one CPU to a new one using a tape backup/restore. Everything from the old server is working on the new server, but when SysV starts up smb, the nmbd daemon (2.0.6) exits with an error: create_subnets: No local interfaces! eth0 has already started according to the logs and console. Any ideas? Thanks. ______________________ Greg Kelley, IT Director SSA, EAA, AOPA, N5506M Londavia, Inc. Pease Int'l Tradeport 68 New Hampshire Ave. Portsmouth, NH 03801 603.766.3005 http://www.londavia.com
Hi, I have installed Samba 2.0.3 on a SCO unix server running SCO Open Server Enterprise System 5.0.2c and I am not able to get nmbd to start. See log file below. How do i find out what is using the address than nmbd attempts to bind to or how do I resolve this problem. [2001/10/23 11:31:01, 1] nmbd/nmbd.c:(672) Netbios nameserver version 2.0.3 started. Copyright Andrew Tridgell 1994-1998 [2001/10/23 11:31:01, 0] lib/util_sock.c:(671) bind failed on port 137 socket_addr=0.0.0.0 (Address already in use) smbd runs fine and I can use swat to configure various samba options. I have smbd and nmbd set in inetd.conf as per the installation instructions to run on request. Below are these files. /etc/services ntalk dgram udp wait nouser /etc/talkd talkd # If running tftpd in secure mode, use bootpd with "-c securedir" # where securedir is the argument to tftpd -s. #bootps dgram udp wait root /etc/bootpd bootpd tcpmux stream tcp nowait root internal echo stream tcp nowait root internal discard stream tcp nowait root internal chargen stream tcp nowait root internal daytime stream tcp nowait root internal time stream tcp nowait root internal echo dgram udp wait root internal discard dgram udp wait root internal chargen dgram udp wait root internal daytime dgram udp wait root internal time dgram udp wait root internal #pop3 stream tcp nowait root /etc/popper popper -M smtp stream tcp nowait mmdf /usr/mmdf/chans/smtpd smtpd /usr/mmdf/ch ans/smtpsrvr smtp # swat stream tcp nowait.400 root /usr/local/samba/bin/swat swat nb-ns dgram udp nowait root /usr/local/samba/bin/nmbd nb-ssn stream tcp wait root /usr/local/samba/bin/smbd smbd /etc/inetd.conf sftp 115/tcp uucp-path 117/tcp nntp 119/tcp readnews untp # USENET News Transfer Protocol ntp 123/tcp # network time protocol ntp 123/udp # network time protocol nb-ns 137/udp nbns netbios-nameservice nb-ns 137/tcp nbns netbios-nameservice nb-dgm 138/udp nbdgm netbios-datagram nb-dgm 138/tcp nbdgm netbios-datagram nb-ssn 139/tcp nbssn netbios-session snmp 161/udp snmp-trap 162/udp bgp 179/tcp smux 199/tcp # # UNIX specific services # exec 512/tcp biff 512/udp comsat login 513/tcp who 513/udp whod shell 514/tcp cmd # no passwords used syslog 514/udp printer 515/tcp spooler # line printer spooler Help would be greatly appreciated. Alan -------------- next part -------------- HTML attachment scrubbed and removed
What do you see with netstat -anp | grep 137 ? (Not sure if you have all those options to netstat in SCO unix.) I would guess that you have configured inetd to watch that port already. That would make it hard to start nmbd from the command line as a daemon. Joel On Tue, Oct 23, 2001 at 12:46:19PM +0800, email wrote:> Hi, > I have installed Samba 2.0.3 on a SCO unix server running SCO Open Server Enterprise System 5.0.2c and I am not able to get nmbd to start. See log file below. How do i find out what is using the address than nmbd attempts to bind to or how do I resolve this problem. > > [2001/10/23 11:31:01, 1] nmbd/nmbd.c:(672) > Netbios nameserver version 2.0.3 started. > Copyright Andrew Tridgell 1994-1998 > [2001/10/23 11:31:01, 0] lib/util_sock.c:(671) > bind failed on port 137 socket_addr=0.0.0.0 (Address already in use) > > smbd runs fine and I can use swat to configure various samba options. I have smbd and nmbd set in inetd.conf as per the installation instructions to run on request. Below are these files. > > /etc/services > > swat stream tcp nowait.400 root /usr/local/samba/bin/swat swat > nb-ns dgram udp nowait root /usr/local/samba/bin/nmbd > nb-ssn stream tcp wait root /usr/local/samba/bin/smbd smbd > > > /etc/inetd.conf > > nb-ns 137/udp nbns netbios-nameservice > nb-ns 137/tcp nbns netbios-nameservice > nb-dgm 138/udp nbdgm netbios-datagram > nb-dgm 138/tcp nbdgm netbios-datagram > nb-ssn 139/tcp nbssn netbios-session
On Tue, Oct 23, 2001 at 01:44:19PM +0800, Alan Boffey wrote:> > What do you see with netstat -anp | grep 137 ? > > Hi Joel, > > >From netstat -an (p option not available under sco) i see the following: > > # netstat -an |grep 137 > udp 0 0 *.137 *.* > # >This is what I see in linux when I have nmbd running as a stand alone daemon with netstat -an | grep 137. udp 0 0 0.0.0.0:137 0.0.0.0:* There seems to be a process listening to port 137. Could that be your inetd? Just for fun, stop inetd and see if you can start nmbd from the command line. Or cancel out all references to nmbd in your inetd.conf file and restart inetd. Joel
tirsdag 23 oktober 2001 14:00 skrev Joel Hammer:> > This is what I see in linux when I have nmbd running as a stand alone > daemon with netstat -an | grep 137. > udp 0 0 0.0.0.0:137 0.0.0.0:* > There seems to be a process listening to port 137. Could that be > your inetd? Just for fun, stop inetd and see if you can start nmbd from the > command line. Or cancel out all references to nmbd in your inetd.conf file > and restart inetd.Or use the -p flag to see which process that owns this port # netstat -pna udp 0 0 192.168.1.2:137 0.0.0.0:* 1231/nmbd -- Mvh Ragnar Wisl?ff ---------- life is a reach. then you gybe
hi, if I try to start the nmbd-service with or without options like -D -d 2 -G ... -n ... , I cannot see the service in [ps ax], only the smbd-service is starting and can be seen in [ps ax] where can I look for the reason about this behavior - has anyone an idea ? thanks for helping hans schneidhofer
Fortunately I found the log. Here it is: [2002/10/01 11:40:51, 0] /samba-2.2.3a/source/./nmbd/nmbd.c:main(783) Netbios nameserver version 2.2.3a started. Copyright Andrew Tridgell and the Samba Team 1994-2002 [2002/10/01 11:40:51, 0, pid=9411, effective(0, 0), real(0, 0)] /samba-2.2.3a/so urce/./nmbd/nmbd_subnetdb.c:create_subnets(240) create_subnets: No local interfaces ! [2002/10/01 11:40:51, 0, pid=9411, effective(0, 0), real(0, 0)] /samba-2.2.3a/so urce/./nmbd/nmbd.c:main(861) ERROR: Failed when creating subnet lists. Exiting. I entered an interfaces=eth0 statement in the global section of smb.conf and restarted both daemons (smbd and nmbd), but this did not help. Testparm reflects this change and one other to the log file name format. Curiously, the old log file name still captures the updates. Thanks in advance for your suggestions. Regards, Ken Illingsworth
Silly question: If you type testparm it tests the /etc/samba/smb.conf file. If you type testparm /usr/local/samba/lib/smb.conf which is where samba-2.2.3 allocate the smb.file, you test the real smb.file. So if you have had an older version of samba installed, this could be confusing. --- Kenneth Illingsworth <ILLINGSK@cityofrochester.gov> skrev: > Fortunately I found the log. Here it is:> > [2002/10/01 11:40:51, 0] > /samba-2.2.3a/source/./nmbd/nmbd.c:main(783) > Netbios nameserver version 2.2.3a started. > Copyright Andrew Tridgell and the Samba Team > 1994-2002 > [2002/10/01 11:40:51, 0, pid=9411, effective(0, 0), > real(0, 0)] /samba-2.2.3a/so > urce/./nmbd/nmbd_subnetdb.c:create_subnets(240) > create_subnets: No local interfaces ! > [2002/10/01 11:40:51, 0, pid=9411, effective(0, 0), > real(0, 0)] /samba-2.2.3a/so > urce/./nmbd/nmbd.c:main(861) > ERROR: Failed when creating subnet lists. Exiting. > > I entered an interfaces=eth0 statement in the global > section of smb.conf and restarted both daemons (smbd > and nmbd), but this did not help. Testparm reflects > this change and one other to the log file name > format. Curiously, the old log file name still > captures the updates. > > Thanks in advance for your suggestions. > > Regards, > Ken Illingsworth > > -- > To unsubscribe from this list go to the following > URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba______________________________________________________ Se den nye Yahoo! Mail p? http://no.yahoo.com/ Nytt design, enklere ? bruke, alltid tilgang til Adressebok, Kalender og Notisbok