Ping Timeouts/Connect reset by peer

These are old archives. They are kept for historic purposes only.
Magician
Posts: 23
Joined: Sun Oct 31, 2004 10:35 pm
Location: Tulsa,Oklahoma

Ping Timeouts/Connect reset by peer

Post by Magician »

Is there any configuring i can do to help with the ping timeouts and connection reset by peer? Please get back to me asap Thanks
Regards,
Magician
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

To fix the ping timeouts, increase the pingfreq in the class blocks.

To fix the peers, get a better ISP
Magician
Posts: 23
Joined: Sun Oct 31, 2004 10:35 pm
Location: Tulsa,Oklahoma

Post by Magician »

Code: Select all

config.status: creating Makefile
mv: Makefile: set owner/group (was: 1351/0): Operation not permitted
config.status: creating src/modules/Makefile
mv: src/modules/Makefile: set owner/group (was: 1351/0): Operation not permitted
config.status: creating unreal
mv: unreal: set owner/group (was: 1351/0): Operation not permitted
config.status: creating ircdcron/ircdchk
mv: ircdcron/ircdchk: set owner/group (was: 1351/0): Operation not permitted
config.status: creating include/setup.h
mv: include/setup.h: set owner/group (was: 1351/0): Operation not permitted
What could be the cause of this? that's on compilation of Unreal3.2.2
Last edited by Magician on Mon Nov 01, 2004 6:38 pm, edited 1 time in total.
Magician
Posts: 23
Joined: Sun Oct 31, 2004 10:35 pm
Location: Tulsa,Oklahoma

Post by Magician »

which i'm assuming that error caused this:

Code: Select all

-bash-3.00$ cd Unreal3.2
-bash-3.00$ ./unreal start
Starting UnrealIRCd
./unreal: /home/username/Unreal3.2/src/ircd: not found
Possible error encountered (IRCd seemily 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
=====================================================
tail: /home/username/Unreal3.2/ircd.log: No such file or directory
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

Magician wrote:

Code: Select all

config.status: creating Makefile
mv: Makefile: set owner/group (was: 1351/0): Operation not permitted
config.status: creating src/modules/Makefile
..etc..
What could be the cause of this? that's on compilation of Unreal3.2.2
This has to do with how your /tmp partition is mounted, the warnings are completely harmless..
which i'm assuming that error caused this:

Code: Select all

..
-bash-3.00$ ./unreal start
Starting UnrealIRCd
./unreal: /home/username/Unreal3.2/src/ircd: not found
No, this means your ircd was not properly compiled (run 'make', and be sure it did indeed finish without any errors).
Magician
Posts: 23
Joined: Sun Oct 31, 2004 10:35 pm
Location: Tulsa,Oklahoma

Post by Magician »

Code: Select all

n.o badwords.o channel.o cloak.o crule.o dbuf.o events.o fdlist.o hash.o help.o ircd.o ircsprintf.o list.o lusers.o match.o modules.o packet.o parse.o res.o res_init.o res_comp.o res_mkquery.o res_skipname.o s_auth.o s_bsd.o s_conf.o s_debug.o s_err.o s_extra.o s_kline.o s_misc.o s_numeric.o s_serv.o s_svs.o  socket.o ssl.o s_user.o scache.o send.o support.o umodes.o version.o webtv.o whowas.o zip.o cidr.o random.o extcmodes.o extbans.o md5.o api-isupport.o api-command.o   -lcrypt  -lz -L/home/username/Unreal3.2/extras/regexp/lib -ltre
cd modules; make 'CFLAGS=-I../include -I/home/username/Unreal3.2/extras/regexp/include -pipe -g -O2 -funsigned-char -DZIP_LINKS -export-dynamic  ' 'CC=gcc' 'IRCDLIBS=-lcrypt  -lz -L/home/username/Unreal3.2/extras/regexp/lib -ltre  ' 'LDFLAGS=' 'IRCDMODE=711' 'BINDIR=/home/username/Unreal3.2/src/ircd' 'INSTALL=/usr/bin/install' 'INCLUDEDIR=../include' 'IRCDDIR=/home/username/Unreal3.2' 'MANDIR=' 'RM=/bin/rm' 'CP=/bin/cp' 'TOUCH=/usr/bin/touch' 'RES=' 'SHELL=/bin/sh' 'STRTOUL=' 'CRYPTOLIB=' 'CRYPTOINCLUDES=' 'URL='  all
make: don't know how to make w. Stop
gmake[1]: *** [mods] Error 2
gmake[1]: Leaving directory `/home/username/Unreal3.2/src'
gmake: *** [build] Error 2
-bash-3.00$
-bash-3.00$ gmake install
Building src
gmake[1]: Entering directory `/home/username/Unreal3.2/src'
cd modules; make 'CFLAGS=-I../include -I/home/username/Unreal3.2/extras/regexp/include -pipe -g -O2 -funsigned-char -DZIP_LINKS -export-dynamic  ' 'CC=gcc' 'IRCDLIBS=-lcrypt  -lz -L/home/username/Unreal3.2/extras/regexp/lib -ltre  ' 'LDFLAGS=' 'IRCDMODE=711' 'BINDIR=/home/username/Unreal3.2/src/ircd' 'INSTALL=/usr/bin/install' 'INCLUDEDIR=../include' 'IRCDDIR=/home/username/Unreal3.2' 'MANDIR=' 'RM=/bin/rm' 'CP=/bin/cp' 'TOUCH=/usr/bin/touch' 'RES=' 'SHELL=/bin/sh' 'STRTOUL=' 'CRYPTOLIB=' 'CRYPTOINCLUDES=' 'URL='  all
make: don't know how to make w. Stop
gmake[1]: *** [mods] Error 2
gmake[1]: Leaving directory `/home/username/Unreal3.2/src'
gmake: *** [build] Error 2
That's the output of gmake and gmake install
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

I kinda forgot what that was, well.. it's something with (g)make, that's for sure ;).
What exact OS are you on (uname -a)?
FYI, it worked fine on: Linux, FreeBSD 5.2.1, FreeBSD 4.7 and OpenBSD 3.5.
(those OS's are the ones I tested 15 minutes before 3.2.2 release).

Anyway, try:
gmake MAKE=gmake
Magician
Posts: 23
Joined: Sun Oct 31, 2004 10:35 pm
Location: Tulsa,Oklahoma

Post by Magician »

uname -a :
FreeBSD box.hostname.com 5.1-RELEASE FreeBSD 5.1-RELEASE #1: Mon Oct 11 21:18:28 MST 2004 [email protected]:/usr/src/sys/i386/compile/BLCC i386
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

Why can't it be a traffic problem? The fact that it is a LAN actually increases that possibility! Most people run a LAN with a cheap Linksys/Dlink/Netgear router. Such routers are often not very good at handling a large load (ever wonder why Linksys is $40 and Cisco is $4000?) so if you have many people on a LAN connecting to the IRC server, and the router is not very good, this is exactly the situation that could cause the problem.
-- codemastr
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

The error message indicates some form of TCP/IP error. It has nothing to do with the load on the server or anything like that.
-- codemastr
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

Well yes, if the OS freaks (eg: starting to get out of mem.), it tends to disconnect a few (like 10) or a lot (like 80) of clients... I've seen it happen on FreeBSD, Linux, Windows... but all only if you are really hitting the limits, usually the memory limit, so with Linux/win I had that with like >5k-10k clients, or with fewer if flooding. For some reason I saw it a lot more (like: with fewer clients) on FreeBSD than Linux/win but I guess that was because I didn't finetune everything and for some reason FreeBSD hates me anyway ;).

I kinda forgot what exact quit msgs you get but there are like 2-3 variants, one of them clearly being one with buffering (eg:'Buffer allocation error').
On the other hand, can this crap be due to quitely high server load?
Yes, counterstrike server w/256mb ram is not unlikely to have this problem. Btw, -n 20 (well '19') is very low, I don't really think that's a good idea since AFAIK if another process eats a lot of cpu then it rarely gets any cputime ;). 19 is pretty much 'idle priority'.

'Ping timeout' is a whole different thing, the free-memory limits and stuff I just talked about doesn't really apply to that.. although, if the OS is completely unresponsive for several minutes you get it of course, but that's more like in case of insane load avgs [like >30, >60..], in which case you have extreme lag anyway. If you get 'ping timeout' on a LAN, then that's quite odd, I wouldn't really suspect Unreal then.

pingfreq 90 is fine, it's also the value that I like most. Anything above 300 and you are more likely to get into weird problems (and pretty much garanteed with >600/900) due to NAT timeouts.
Or, maybe it is fault our irc client? (it's a configured irc client and shared to all users via ftp, so almost all users use only it) What is the chance that there're some wrong settings?
My idea:
1. Put it on a normal priority, if you want it more 'nice'.. then at least use a range of 0-10, not more
2. Run a standard client @client, so I would suggest mIRC (w/o any script).
3. On the same client, run a ping to the server, pinging every second... like (windows) ping -t a.b.c.d >log. Then, if the client got disconnected that night, look back and make sure there was really no packetloss (especially at the time of disconnect).
4. Alternative: if 3 didn't help, try with a "/timer 0 5 /msg #dummychan I'M ALIVE!" or something, and see what happens around the "time of death" (well, from another client perspective, preferably something like an irssi on localhost @ the server)

About big names/brands and stuff, well.. I had someone once I coded a module for and he was wondering why the connection to the mysql server was so unstable.. it turned out to be a faulty $10K switch/router/whatever. It really depends, I've been running a low-budget network with ~100 pcs, 4 main switches (16port), ~20 smaller ones, and never had packetloss or other issues (constant monitoring etc)... Also at home with a cheap switch, always have been able to reach top-speeds (10Mbyte/sec), then I bought another cheap 100mbit one and wasn't able to reach more than 3-4Mb/s.. So yes, those cheap things are probably more likely to have problems, but not per se ;).

Sidenote, I agree that this is unlikely to be an Unreal problem, but.. just to help.
Post Reply