The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 address already in use? Why?
Author: tjhilder 
Date:   13-08-05 05:27

Hi,

for a time i've been getting this weird message on freebsd, not sure why, it repeats itself every 10 minutes, so after about an hour, it looks like this...

Aug 13 04:47:12 junior inetd[485]: ssh/tcp: bind: Address already in use
Aug 13 04:57:12 junior inetd[485]: ssh/tcp: bind: Address already in use
Aug 13 05:07:12 junior inetd[485]: ssh/tcp: bind: Address already in use
Aug 13 05:17:12 junior inetd[485]: ssh/tcp: bind: Address already in use
Aug 13 05:27:12 junior inetd[485]: ssh/tcp: bind: Address already in use

can anyone explain to me why it keeps doing this? and if possible, a cure?

a cure for this problem would be most welcome.

TJ

Reply To This Message
 
 Re: address already in use? Why?
Author: d_jabsd 
Date:   15-08-05 15:37

By default, sshd runs as a daemon, not from inetd. Comment out the sshd line in inetd.conf and restart inetd.



Reply To This Message
 
 Re: address already in use? Why?
Author: tjhilder 
Date:   17-08-05 16:57

how do I restart inetd? can you tell me the command please? thanks.

TJ

Reply To This Message
 
 Re: address already in use? Why?
Author: d_jabsd 
Date:   18-08-05 15:05

kill -HUP `cat /var/run/inetd.pid`


make sure you use backticks (`), not single quotes (')



Reply To This Message
 
 Re: address already in use? Why?
Author: tjhilder 
Date:   25-08-05 13:40

ok i did what you told me to do. now instead of saying ssh it's doing this error now, and it does it twice every 10 minutes, 5 seconds apart.

Aug 25 14:36:44 junior inetd[2661]: ftp/tcp: bind: Address already in use
Aug 25 14:36:49 junior inetd[2663]: ftp/tcp: bind: Address already in use
Aug 25 14:46:44 junior inetd[2661]: ftp/tcp: bind: Address already in use
Aug 25 14:46:49 junior inetd[2663]: ftp/tcp: bind: Address already in use

any idea how to solve this? after a while of doing this, it will mess freebsd up so I have to restart it, I don't want to have to keep doing that.



Post Edited (25-08-05 08:14)

Reply To This Message
 
 Re: address already in use? Why?
Author: d_jabsd 
Date:   25-08-05 15:56

Are you running an ftp server other than the default in inetd? proftpd? some other ftp daemon?

Inetd isn't needed for much any more. If you aren't running anything from inetd, just kill it and edit your rc.conf to prevent it from starting at boot.

I only use it for the tftp server. everything else is replacable with a daemon.

until you know what you need or not, you can always comment everything out in inetd.conf and kill -HUP the pid, then if you find you need something, only uncomment its line.



Reply To This Message
 
 Re: address already in use? Why?
Author: tjhilder 
Date:   26-08-05 00:48

I have got ftp uncommented in inetd.conf but my brother says that if i commented ftp won't work, so what should I do to correct this error?

Reply To This Message
 
 Re: address already in use? Why?
Author: d_jabsd 
Date:   26-08-05 15:48

it depends how you want to run ftp and which ftp server you are using.

If you are using the default FreeBSD ftp server, then you need to keep ftp uncommented.

If you are using another ftp server that you installed from ports or source, you want comment out the ftp line in inetd.

based on the error meesages you are getting, i'm thinking you are running an ftp server installed from ports that runs as a daemon instead of from inetd (it has a start script in /usr/local/etc/rc.d). In that case, your brother is incorrect. You must comment out the ftp line, or set up the new ftp server to use inetd instead of running as a daemon.



Reply To This Message
 
 Re: address already in use? Why?
Author: tjhilder 
Date:   31-08-05 14:45

I restarted my Server and the errors seem to have disappeared, not got any for days, dunno why it stopped, but glad it did so no problems anymore, thanks for help :)

TJ

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org