Operating System - HP-UX
1822430 Members
2852 Online
109642 Solutions
New Discussion юеВ

Samba Server Error- Not able to start

 
kumar.s
Advisor

Samba Server Error- Not able to start

Hello All,

We are facing a issue while starting samba service ,

while starting the service is saying not able to start samba and the nmbd server is not starting


/opt/samba/bin-> ps -ef |grep samba
root 7975 7928 1 23:07:09 ttyp0 0:00 grep samba
root 22273 1 0 06:38:32 ? 0:00 /opt/samba/bin/smbd -D
/opt/samba/bin-> ps -ef |grep nmbd
root 7977 7928 1 23:07:14 ttyp0 0:00 grep nmbd


/opt/samba/bin-> ./stopsmb
Samba successfully shut down.
/opt/samba/bin-> ps -ef |grep samba
root 10821 7928 0 23:16:57 ttyp0 0:00 grep samba


/opt/samba/bin-> ./startsmb
Unable to start Samba!
For more information, refer to files log.smbd and log.nmbd in /var/opt/samba
error: No such file or directory on file log.nmbd



acomd1:/opt/samba/bin-> tail -f /var/opt/samba/log.nmbd
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2007/01/04 06:38:32, 0] lib/util_sock.c:(804)
bind failed on port 137 socket_addr = 0.0.0.0.
Error = Address already in use
[2007/01/04 23:07:42, 0] nmbd/nmbd.c:(795)
Netbios nameserver version 2.2.12 based HP CIFS Server A.01.11.04 started.
Copyright Andrew Tridgell and the Samba Team 1994-2002
[2007/01/04 23:07:42, 0] lib/util_sock.c:(804)
bind failed on port 137 socket_addr = 0.0.0.0.
Error = Address already in use

/opt/samba/bin-> tail -f /var/opt/samba/log.smbd
Copyright Andrew Tridgell and the Samba Team 1992-2002
[2007/01/04 06:38:32, 0] smbd/server.c:(793)
smbd version 2.2.12 based HP CIFS Server A.01.11.04 started.
Copyright Andrew Tridgell and the Samba Team 1992-2002
[2007/01/04 23:07:42, 0] smbd/server.c:(793)
smbd version 2.2.12 based HP CIFS Server A.01.11.04 started.
Copyright Andrew Tridgell and the Samba Team 1992-2002
[2007/01/04 23:17:23, 0] smbd/server.c:(793)
smbd version 2.2.12 based HP CIFS Server A.01.11.04 started.
Copyright Andrew Tridgell and the Samba Team 1992-2002
/opt/samba/bin->


Expecting your valuable suggestions on this pls

Regards
Kumar.S
6 REPLIES 6
Hemmetter
Esteemed Contributor

Re: Samba Server Error- Not able to start

Hello Kumar.S

"bind failed on port 137 socket_addr = 0.0.0.0.
Error = Address already in use"

Is there someting already bound to port 137?

What is the output of
# lsof -i:137

?

lsof is to download e.g. from:
http://hpux.asknet.de/hppd/hpux/Sysadmin/lsof-4.77/



rgds
HGH
kumar.s
Advisor

Re: Samba Server Error- Not able to start

Hello HGH

thanks for your reply ,

the port 137 is not used by any service
Help me out what is causing the problem
/opt/samba/bin-> lsof -i:137
/opt/samba/bin-> netstat -an |grep 137
tcp 0 0 *.13783 *.* LISTEN
tcp 0 0 *.13782 *.* LISTEN
tcp 0 0 *.13724 *.* LISTEN
tcp 0 0 *.13722 *.* LISTEN
udp 0 0 *.137 *.*
/opt/samba/bin-> netstat -an |grep 139
tcp 0 0 130.29.154.44.139 *.* LISTEN
tcp 0 0 130.29.154.210.139 *.* LISTEN
tcp 0 0 130.29.157.70.139 *.* LISTEN
tcp 0 0 *.139 *.* LISTEN
/opt/samba/bin-> cat /etc/services |grep netbi
netbios_ns 137/tcp # NetBIOS Name Service
netbios_ns 137/udp #
netbios_dgm 138/tcp # NetBIOS Datagram Service
netbios_dgm 138/udp #
netbios_ssn 139/tcp # NetBIOS Session Service
netbios_ssn 139/udp #
/opt/samba/bin-> cat /etc/inetd.conf |grep netbi
#netbios_ssn stream tcp nowait root /opt/samba/bin/smbd smbd
#netbios_ns dgram udp wait root /opt/samba/bin/nmbd nmbd
/opt/samba/bin->
Hemmetter
Esteemed Contributor

Re: Samba Server Error- Not able to start

Hi Kumar

in your "netstat -an" output is the line:

udp 0 0 *.137 *.*
tcp 0 0 *.139 *.* LISTEN

That tells me there are some processes bound to that ports. What additional software is installed on your system?


Can you do again a
# lsof -i:137,138,139,445

Whats the version of lsof you use?


rgds
HGH

Wouter Jagers
Honored Contributor

Re: Samba Server Error- Not able to start

This line is in your output:

udp 0 0 *.137 *.*

I'm pretty sure that means the daemon is registered.. since it's udp, I would suspect it is indeed an nmbd daemon.

Were these lines in your inetd.conf already commented out, or did you do that recently ? In case of the latter, did you reload inetd ?

While you can see the above line from netstat, is there -no- nmbd process ??
an engineer's aim in a discussion is not to persuade, but to clarify.
kumar.s
Advisor

Re: Samba Server Error- Not able to start

Hello HGH

# lsof -i:137,138,139,445
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
NBdaemon 2323 root 2u inet 72,0x72 0t0 TCP Server1:netbios_ssn(LISTEN)
NBdaemon 2323 root 4u inet 72,0x72 0t0 TCP Server2:netbios_ssn (LISTEN)
NBdaemon 2323 root 8u inet 72,0x72 0t0 TCP server3:netbios_ssn (LISTEN)
smbd 12153 root 30u inet 0x6dd40268 0t0 TCP *:netbios_ssn (LISTEN)

version of the LSOF is

Lsof revision 4.66


Wouter,

These Lines in the inetd were already commented out , I tried uncommenting them ,

I also did a inetd -c & Kill -HUP , It dint work .


Help me out to fix samba & nmbd service

Regards
Kumar
Hemmetter
Esteemed Contributor

Re: Samba Server Error- Not able to start

Hi Kumar,

can you do a
# swlist -l files |grep NBdaemon
and look to what Software this NBdaemon belongs?

You may have already installed a software providing CIFS services.

A googlesearch for "NBdaemon" pointed to "samba for mpe/ix" ?

rgds
HGH