Multiple failed to bind errors

These are old archives. They are kept for historic purposes only.
Post Reply
sabot
Posts: 7
Joined: Sun Nov 13, 2011 1:01 am

Multiple failed to bind errors

Post by sabot »

First off, allow me to say hello to all, and thanks for reading/replying in advance!

I've got Unreal 3.2.8.1 on a Centos virtual server, and have gone through the unrealircd.conf setup (quite thoroughly if i do say so), and have cleared out all of the kinks and errors...except when trying to run the program, I get the following output:


[Sat Nov 12 17:00:20 2011] - Failed to bind to 204.174.60.213:6667
[Sat Nov 12 17:00:20 2011] - Error binding stream socket to IP 204.174.60.213 port 8067 - 204.174.60.213[204.174.60.213.8067]:Address already in use
[Sat Nov 12 17:00:20 2011] - Failed to bind to 204.174.60.213:8067
[Sat Nov 12 17:00:20 2011] - Error binding stream socket to IP 204.174.60.213 port 6697 - 204.174.60.213[204.174.60.213.6697]:Address already in use
[Sat Nov 12 17:00:20 2011] - Failed to bind to 204.174.60.213:6697

I have the listen settings set to the direct IP you see above, as after doing some reading this appeared to be the thing to do in my situation. I've read that these errors generally show up when there are multiple instances running (which there is not), or that it is being run in a shell (which to my knowledge I am). I tried the settings as *:6667 and got the same errors.

also, this may be a dumb question, but I have used the direct IP of my server in many areas of the .conf where examples tend to use domain names (I don't have one to use, so I assumed the IP as a substitute would be the way to go). could this be a possible problem?

thanks in advance to all readers and repliers.
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: Multiple failed to bind errors

Post by Jobe »

Can you show us the output of the following command please:
netstat -anp | grep "LISTEN" | grep ":6667"
Your IP: Image
Your Country: Image
sabot
Posts: 7
Joined: Sun Nov 13, 2011 1:01 am

Re: Multiple failed to bind errors

Post by sabot »

[sabot@comp270-vm-xen ~]$ netstat -anp | grep "LISTEN" | grep ":6667"
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:6667 0.0.0.0:* LIST EN 1617/ircd


I'm not too sure how to interpret this (I'm fairly novice to *nix, so please be patient with me). regardless, I am fairly sure I don't want 0.0.0.0 there. any suggestions?

thanks very much.
sabot
Posts: 7
Joined: Sun Nov 13, 2011 1:01 am

Re: Multiple failed to bind errors

Post by sabot »

As well, this is my current unrealircd.conf listen configuration..originally the listen lines were set to *:<port> but I have changed them to the host/server IP.


listen 204.174.60.213:6697
{
options
{

clientsonly;
};
};

listen 204.174.60.213:8067;
listen 204.174.60.213:6660-6669;
sabot
Posts: 7
Joined: Sun Nov 13, 2011 1:01 am

Re: Multiple failed to bind errors

Post by sabot »

have now changed the listen options to as follows (for simplification purposes):

listen *:5000;

I now get the errors:


[Mon Nov 14 20:20:42 2011] - TIME SYNCH: Unable to synchronize time: Timeout. This happens sometimes, no error on your part.
[Mon Nov 14 20:22:09 2011] - TIME SYNCH: Unable to synchronize time: Timeout. This happens sometimes, no error on your part.
[Mon Nov 14 20:22:51 2011] - TIME SYNCH: Unable to synchronize time: Timeout. This happens sometimes, no error on your part.
[Mon Nov 14 20:25:37 2011] - TIME SYNCH: Unable to synchronize time: Timeout. This happens sometimes, no error on your part.
[Mon Nov 14 20:30:06 2011] - Error binding stream socket to IP 0.0.0.0 port 5000 - 204.174.60.213[]:Address already in use

I am unsure of how to resolve the last one, which I believe is the real problem.
sabot
Posts: 7
Joined: Sun Nov 13, 2011 1:01 am

Re: Multiple failed to bind errors

Post by sabot »

I have since fixed the binding errors (Thank you Cronus). Still having the time synch errors, which I would like to work out, but I believe that I should be able to connect to the server at this point. loads as follows (also, does anyone know why it's giving me FIVE time synch errors?)

[root@comp270-vm-xen Unreal3.2]# ./unreal start
Starting UnrealIRCd
_ _ _ ___________ _____ _
| | | | | |_ _| ___ \/ __ \ | |
| | | |_ __ _ __ ___ __ _| | | | | |_/ /| / \/ __| |
| | | | '_ \| '__/ _ \/ _` | | | | | / | | / _` |
| |_| | | | | | | __/ (_| | |_| |_| |\ \ | \__/\ (_| |
\___/|_| |_|_| \___|\__,_|_|\___/\_| \_| \____/\__,_|
v3.2.8.1
using TRE 0.7.5 (LGPL)

* Loading IRCd configuration ..
* Configuration loaded without any problems ..
* Loading tunefile..
* Dynamic configuration initialized .. booting IRCd.
---------------------------------------------------------------------
Possible error encountered (IRCd seemingly not started)
=====================================================
Check above for possible errors, and this output of
ircd.log. If you cannot solve the problem, read
Unreal.nfo on where to get support
=====================================================
[Mon Nov 14 20:33:33 2011] - TIME SYNCH: Unable to synchronize time: Timeout. This happens sometimes, no error on your part.
[Mon Nov 14 20:35:13 2011] - TIME SYNCH: Unable to synchronize time: Timeout. This happens sometimes, no error on your part.
[Mon Nov 14 20:51:34 2011] - TIME SYNCH: Unable to synchronize time: Timeout. This happens sometimes, no error on your part.
[Mon Nov 14 21:04:57 2011] - TIME SYNCH: Unable to synchronize time: Timeout. This happens sometimes, no error on your part.
[Mon Nov 14 21:12:03 2011] - TIME SYNCH: Unable to synchronize time: Timeout. This happens sometimes, no error on your part.



However, I am unable to...the following is attempted on mIRC:

/server 204.174.60.213 5000
Connecting to 204.174.60.213 (5000)
Unable to connect to server (Connection timed out)

I have a pastebin of my .conf file up...if anyone sees anything glaringly obvious or wrong, please let me know, would be greatly appreciated.

http://pastebin.com/BXNhBN5E
sabot
Posts: 7
Joined: Sun Nov 13, 2011 1:01 am

Re: Multiple failed to bind errors

Post by sabot »

Problem Solved!

I had Lokkit running which was blocking all ports I hadn't otherwise specified, so after unblocking 5000, I can now connect.

Thanks again to Cronus on #unreal-support for helping me with the .conf, +10 internets for him.
Post Reply