Operating System - HP-UX
1819857 Members
3358 Online
109607 Solutions
New Discussion юеВ

Re: error binding stream socket error

 
SOLVED
Go to solution
John Jimenez
Super Advisor

error binding stream socket error

Does any one know how to clear a port. the following port on /etc/services cannot be started

pro5srv 1100/tcp

I get this error

server: error binding stream socket: Address already in use

The only suggestion my database knowledge base. says is to use port 1101. Can I make changes to /etc/services without rebooting on 11i? I would rather clear port 1100. Is there any command that will blow away what ever seems stuck on this port?

Hustle Makes things happen
15 REPLIES 15
Jeff Schussele
Honored Contributor
Solution

Re: error binding stream socket error

Hi John,

You need to determine the process that's binding that port & halt it.
You can use lsof to determine the process - available at:

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.67/

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
John Jimenez
Super Advisor

Re: error binding stream socket error

I tried installing the 11.00. on 11.11
the swinstall passed the Analisis phase but fail when doing the install

OTE: tlinstall is searching filesystem - please be patient
NOTE: Successfully completed * Beginning the Configure Execution Phase. * Summary of Execution Phase: ERROR: Corrupt lsof.lsof-RUN,r=4.67
ERROR: 1 of 1 filesets had Errors. ERROR: The Execution Phase had errors. See the above output for details.
Hustle Makes things happen
John Jimenez
Super Advisor

Re: error binding stream socket error

I ftp'd if from the web site to my PC and then to my Server. but it was a .gz and not a .Z file and the uncompress command would not unzip it. So I unzipped it on my PC and then ftp'd it (binary) to the server. Unzipping it on my PC maybe corrupted the file. How do you uncompress a .gz file?
Thanks again
Hustle Makes things happen
Umapathy S
Honored Contributor

Re: error binding stream socket error

gzip will do it.

gunzip

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Umapathy S
Honored Contributor

Re: error binding stream socket error

If you are using 64bit, then check the attachment.
Or you can get it here
ftp://ftp.fu-berlin.de/pub/unix/tools/lsof/binaries/hpux/B.11.00/vxfs/64/9000_800/

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
John Jimenez
Super Advisor

Re: error binding stream socket error

Awsome the gunzip worked great, and now the swinstall worked.
I have never ran lsof, does any one know what syntax to use to determine what process is using this port? If not I will go thgrough the man pages.

Thanks again for your help
Hustle Makes things happen
Umapathy S
Honored Contributor

Re: error binding stream socket error

John,
Check the -i option of lsof. I have used it long back. Consult the man pages for exact details.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Zigor Buruaga
Esteemed Contributor

Re: error binding stream socket error

Hi,

lsof -i tcp:1100

Kind regards,
Zigor
John Jimenez
Super Advisor

Re: error binding stream socket error

U.S. you were right it looks like I have to deinstall install and reinstall the 64 bit. I got this error

RP7410:root /tmp => #lsof -i tcp:1100
lsof: FATAL: lsof was built for a 32 bit kernel, but this is a 64 bit kernel.
Hustle Makes things happen
John Jimenez
Super Advisor

Re: error binding stream socket error

U.S. Sorry to keep bother everyone, but this is not a depot file. How do I install it?
Hustle Makes things happen
Umapathy S
Honored Contributor

Re: error binding stream socket error

John,
Try the ftp site. I dont have a ftp access. I got this 64bit lsof saved in my machine when somebody posted to this to one of the threads.

try this (courtesy Pete, from my bookmarks)
http://the-other.wiretapped.net/security/host-security/lsof/binaries/hpux/B.11.00/vxfs/64/9000_800/

or check it here
http://forums1.itrc.hp.com/service/forums/parseCurl.do?CURL=%2Fcm%2FQuestionAnswer%2F1%2C%2C0xf58885079106d71190050090279cd0f9%2C00.html&admit=716493758+1066845958804+28353475

you can use at is. It is not a depot file.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
John Jimenez
Super Advisor

Re: error binding stream socket error

It looks like I am using the wrong executable still

RP7410:root /usr/bin => #lsof -i tcp:1100
lsof: WARNING: compiled for HP-UX release B.11.00; this is B.11.11.
lsof: can't read proc table info
Hustle Makes things happen
Zigor Buruaga
Esteemed Contributor

Re: error binding stream socket error

Hi,

Try this link:
http://ftp.cerias.purdue.edu/pub/tools/unix/sysutils/lsof/binaries/hpux/B.11.11/

I don't have HP-UX 11i, so I'm afraid I can't test it.

HTH
Kind regards,
Zigor
Umapathy S
Honored Contributor

Re: error binding stream socket error

John,
Have a look at this thread. Check out Brian's attachment. It works.
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=238432

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
John Jimenez
Super Advisor

Re: error binding stream socket error

I will go ahead and try to install it today.
Yesterday at about 4 PM the operating system released port 1100, but next time I will have the lsof to find out what it going on. Thanks a lot for everyones help

John
Hustle Makes things happen