FAForever / server

The servercode for the Forged Alliance Forever lobby
http://www.faforever.com
GNU General Public License v3.0
66 stars 61 forks source link

IRC "ERROR All connections in use" #235

Closed duk3luk3 closed 7 years ago

duk3luk3 commented 8 years ago

When connecting:

20:38:30 [faf] -!- Irssi: Looking up faforever.com
20:38:30 [faf] -!- Irssi: Connecting to faforever.com [37.58.123.3] port 8067
20:38:30 [faf] -!- Irssi: Connection to faforever.com established
20:38:30 [faf] -!- ERROR All connections in use
20:38:30 [faf] -!- Irssi: Connection lost to faforever.com
20:38:50 -!- Irssi: Removed reconnection to server faforever.com port 8067
20:38:50 [faf] -!- Irssi: Looking up faforever.com
20:38:50 [faf] -!- Irssi: Reconnecting to faforever.com [37.58.123.3] port 8067 - use /RMRECONNS to abort
20:38:50 [faf] -!- Irssi: Connection to faforever.com established
20:38:50 [faf] !irc.faforever.com *** Looking up your hostname...
20:38:50 [faf] !irc.faforever.com *** Found your hostname
20:38:51 [faf] -!- Welcome to the FAForever IRC Network TheDuke!luke@leda.lerlacher.de
20:38:51 [faf] -!- Your host is irc.faforever.com, running version UnrealIRCd-4.0.1
20:38:51 [faf] -!- This server was created Sun Jan 31 2016 at 14:47:13 UTC
20:38:51 [faf] -!- irc.faforever.com UnrealIRCd-4.0.1 iowrsxzdHtIRqpWGTSB lvhopsmntikraqbeIzMQNRTOVKDdGLPZSCcf
20:38:51 [faf] -!- CMDS=USERIP,STARTTLS,KNOCK,DCCALLOW,MAP UHNAMES NAMESX SAFELIST HCN MAXCHANNELS=20 CHANLIMIT=#:20 
          MAXLIST=b:60,e:60,I:60 MAXNICKLEN=30 NICKLEN=30 CHANNELLEN=32 TOPICLEN=307 KICKLEN=307 are supported by this 
          server
20:38:51 [faf] -!- AWAYLEN=307 MAXTARGETS=20 WALLCHOPS WATCH=128 WATCHOPTS=A SILENCE=15 MODES=12 CHANTYPES=# 
          PREFIX=(qaohv)~&@%+ CHANMODES=beI,kLf,l,psmntirzMQNRTOVKDdGPZSCc NETWORK=FAForever CASEMAPPING=ascii 
          EXTBAN=~,SOcaRrnqj are supported by this server
20:38:51 [faf] -!- ELIST=MNUCT STATUSMSG=~&@%+ EXCEPTS INVEX are supported by this server
20:38:51 [faf] -!- Clk-F050A8EE.lerlacher.de is now your displayed host
20:38:51 [faf] -!- There are 1 users and 999 invisible on 2 servers
20:38:51 [faf] -!- 12 operator(s) online
20:38:51 [faf] -!- 1 unknown connection(s)
20:38:51 [faf] -!- 90 channels formed
20:38:51 [faf] -!- I have 989 clients and 1 servers                                                                    20:38:51 [faf] -!- 989 992 Current local users 989, max 992
20:38:51 [faf] -!- 1000 1003 Current global users 1000, max 1003                                                       20:38:51 [faf] -!- - irc.faforever.com Message of the Day - 
20:38:51 [faf] -!- - 27/9/2016 17:50                                                                                   20:38:51 [faf] -!- - Welcome to the FA Forever IRC server                                                              20:38:51 [faf] -!- End of /MOTD command.                                                                               20:38:51 [faf] -!- Mode change [+iwx] for user TheDuke                                                                 20:39:34 [faf] -!- Mode change [+r] for user 001R1O678                                                                 

I suppose this limit should be increased. It sounds like a ulimit problem (http://stackoverflow.com/questions/24955883/what-is-the-max-opened-files-limitation-on-linux), but could also be FDSETSIZE problem if irc server version is old and uses select() (http://man7.org/linux/man-pages/man2/select.2.html).

Crotalus commented 8 years ago

ulimit -n 2048

duk3luk3 commented 8 years ago

Do you mean that should fix it or do you mean it's already set to that?

Sheeo commented 8 years ago

It's not ulimit. Unreal has a default max clients setting of ~1000.

duk3luk3 commented 8 years ago

Well then. :-)

Viba commented 8 years ago

https://www.unrealircd.org/faq#86

Crotalus commented 8 years ago

Ugh, seems like one have to recompile the binary to change MAXCONNECTIONS...

Sheeo commented 8 years ago

Seemingly so, yes. I did change the conf and rehash a while ago, but that's not enough.

Viba commented 8 years ago

Another solution https://www.unrealircd.org/docs/Tutorial:_Linking_servers

duk3luk3 commented 7 years ago

Fix is probably to add MAXCONNECTIONS var to config file like here: https://github.com/duk3luk3/docker-unrealircd/commit/3510b8c77cf247f6990601e6f7fa07b443eec7a6

However, the current version of this docker image is broken: https://github.com/dockerimages/docker-unrealircd/issues/3

So need to find a version (of anope?) that isn't broken first.

GrotheFAF commented 7 years ago

guess you can close this?

duk3luk3 commented 7 years ago

Indeed. thanks.