Home > Informatika, IRC, Linux, Networking > Booting – The OS enforces a limit on max open files

Booting – The OS enforces a limit on max open files

February 24th, 2010 Leave a comment Go to comments
tux-kecil@ns1.bagelen.net:~/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.
---------------------------------------------------------------------
The OS enforces a limit on max open files
Hard Limit: 512 MAXCONNECTIONS: 1024
Fix MAXCONNECTIONS
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

Problem :
If you get error message like this:

The OS enforces a limit on max open files
Hard Limit: 512 MAXCONNECTIONS: 1024
Fix MAXCONNECTIONS

or something similar, then your OS is limiting your maximum number of open files/sockets.

Solution:
1. You need to rerun ./Config and answer the number showed in “Hard Limit” (512 in this example) to the question :

How many file descriptors (or sockets) can the IRCd use?
[512] ->  

2. recompile (make clean; make).

tux-kecil@ns1.bagelen.net:~/Unreal3.2$ $ make
Building src
cd modules; make 'CFLAGS=-I../include -I/usr/home/adhen/Unreal3.2/extras/regexp/include -I/usr/home/adhen/Unreal3.2/extras/c-ares/include -L../extras/c-ares/lib -pipe -g -O2 -funsigned-char -fno-strict-aliasing -Wno-pointer-sign -export-dynamic  ' 'CC=gcc' 'IRCDLIBS=-lcrypt  -L../extras/regexp/lib -ltre -lcares'  'LDFLAGS=' 'IRCDMODE=711'  'BINDIR=/usr/home/adhen/Unreal3.2/src/ircd' 'INSTALL=/usr/bin/install'  'INCLUDEDIR=../include' 'IRCDDIR=/usr/home/adhen/Unreal3.2'  'MANDIR=' 'RM=/bin/rm' 'CP=/bin/cp' 'TOUCH=/usr/bin/touch'  'RES=' 'SHELL=/bin/sh' 'STRTOUL='  'CRYPTOLIB='  'CRYPTOINCLUDES=' 'URL=' all
 __________________________________________________
| Compile is now complete.                         |
| You should now read the documentation and learn  |
| how to configure your IRCd.                      |
|                                                  |
| If you really like UnrealIRCd, and would like to |
| make a donation, please read the Donation file in|
| this archive. :)                                 |
|                                                  |
| Thanks for using Unreal IRCd! If you are in need |
| for any kind of help regarding the IRCd please   |
| read the Unreal.nfo file.                        |
|__________________________________________________|

And then try to run unreal. 🙂

tux-kecil@ns1.bagelen.net $ ./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.
---------------------------------------------------------------------

Referency :
1. http://www.unrealircd.com
2. Google

Categories: Informatika, IRC, Linux, Networking Tags: ,
  1. No comments yet.
  1. No trackbacks yet.

*

Bad Behavior has blocked 1472 access attempts in the last 7 days.