PDA

View Full Version : Linux Server Startup Issues


highone
08-15-2007, 03:24 PM
Ran as root & the user I set it up with and got the same thing...

"./run.sh +exec server.cfg" is what I tried to start it up with.

intel p4 dual core 2.8 x2
1 gig of ram
Redhat Enterprise

Initializing global UI namespaces
...23 namespaces
...227 properties
signal caught: 'Segmentation fault', si_code 128
callstack:
0x418652c0
[0x082cbcc1]
[0x082bbfff]
[0x400586b8]
[0x401d2cf0]
[0x419881d3]
[0x41872e77]
[0x41879dfb]
[0x08189b2c]
[0x0818d38e]
[0x0818d7ea]
[0x0818da0e]
[0x082cee84]
[0x401c162d]
[0x0804bc21]
Trying to exit gracefully..
------------ Game Shutdown -----------
--------- Game Map Shutdown ----------
double fault: 'Segmentation fault', bailing out
Segmentation fault


Anyone running across this problem yet?

spirit
08-15-2007, 03:26 PM
Nope. Waht about some info on your system?

highone
08-15-2007, 03:35 PM
yeah i just edited it...

anything specific you think I need to post about the system other than that?

I'm in some ways a linux nub as I taught myself what I know... however I've been running this hosted server for a few years now and running rtcw, quake4, cod2, etc just fine on it...

I think I'm just overlooking something simple... as that's usually the case.

Especially since I haven't found anyone else with this problem.

Nuxil
08-15-2007, 04:46 PM
might be some lib's you are missing.. check the readme file for the requirements and compare that with what you got installed..

highone
08-15-2007, 04:53 PM
I don't see anything in the actual RADME.txt file that's included about libraries...

however this is what I found for my distro

Linux version 2.4.20-31.9smp (bhcompile@daffy.perf.redhat.com) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 SMP Tue Apr 13 17:40:10 EDT 2004

Thanks for any help on this... I'm just a little confused since I'm not really a linux admin per say... although I admin this linux server.

Nuxil
08-15-2007, 05:52 PM
very old kernel... but that should not have any thing to do with it i guess.. however. you got a old gcc version.. try installing version 4

highone
08-15-2007, 06:06 PM
i'm looking into updating the kernel...

but first im going to do what you said and update to the latest stable gcc version.

Thanks for the advice... if anyone else knows how to help I would appreciate anything you got.

Thanks to everyone so far that's replied.

highone
08-15-2007, 08:50 PM
here is some more output from the server starting up that's confusing me...

couldn't exec 'etqwconfig.cfg'
execing 'localization/english/defaultbinds.cfg'
couldn't exec 'etqwbinds.cfg'
execing 'autoexec.cfg'
TODO: Sys_GetGfxDeviceIdentification
Vendor: Device:
/proc/cpuinfo CPU frequency: 2392.1 MHz
TODO: Sys_CPUCount
Detected
1 2.39 GHz CPU
1008 MB of System memory
128 MB of Video memory on an optimal video architecture



Can anyone tell me why it's looking for the regular configs generated from the client version of ET:QW whenever this is supposed to be a lite server?

I'm not sure I'm on the right track but that is confusing to me... is there a startup option I need to set like +set dedicated 2 or something?

HELP!

highone
08-15-2007, 09:00 PM
OK so I tried to run the .x86 file manually and got this...

./etqwded.x86 &

I ended up with this error...

error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Apologies for my linux nubness but what do I need to install for this to work?

Thanks in advance for the help

Nuxil
08-15-2007, 09:19 PM
alright,, your getting somewhere now :)

install the gnu standard c++ library v3

i dont know RH,., does it use yum ?
is so look for a rpm called something like libstdc++6

:cool:

highone
08-15-2007, 09:35 PM
Thanks Nuxill... I will do this ASAP.

I appreciate all your help brother. You've been great.

I'll post what happens whenever I install those binaries.

Your the man.

highone
08-16-2007, 01:05 AM
So this server requires libraries that my Red Hat 9 box doesn't have RPM's for... since support is no longer available for Red Hat 9.0 it won't be coming either...

I would also need to install a glib update and I don't know wtf I'm doing half the time on this thing when it comes to system issues and libraries like this chances are I'd end up screwing everything worse than the way it is now.

Sigh.. why god why?

Nuxil
08-16-2007, 05:06 AM
try http://search.rpmseek.com/

you could always build it from source though..

but if i where you.. i do a distro upgrade. install ubuntu server. or fedora core.
ubuntu is always up to date...

Lekdevil.NL
08-18-2007, 02:18 AM
From the readme:
Minimum system requirements:
----------------------------

- GNU/Linux x86 system
x64/amd64 systems supported through 32 bit emulation layer only
BSD systems through Linux emulation
- Pentium(r) 4 2.0 GHz or Athlon(tm) XP 2000+ processor
- 512MB RAM
- Kernel 2.6, configured for 1000Hz tick and other low latency settings

You're running a 2.4 kernel, which isn't supported. You will need to upgrade to a new 2.6 kernel (it's probably easiest to pick a new, recent distro). Unfortunately, some comments by Nuxil above are wrong or misleading. You do not need gcc installed, and ETQW comes with precompiled libraries in its base directory (libgcc_s.so.1, libjpeg.so.62 and libstdc++.so.6). To add the base directory to the library path, you need to start the server using the run.sh script. Do not run etqwded.x86 directly or ETQW won't be able to find those libraries. Good luck.

escapedturkey
08-19-2007, 01:59 AM
Please copy and paste your server.cfg (minus any passwords) so we can all examine it.

You should do a yum search and install the libraries so you are not dependent on a script.

nohup ./etqwded.x86 +set net_serverDedicated 1 +set in_tty 0 +set net_ip INSERTIPADDRESSHERE +set net_port 27733 +set fs_basepath /home/INSERTUSERNAMEHERE/quakewars +set fs_savepath /home/INSERTUSERNAMEHERE/quakewars +set fs_devpath /home/INSERTUSERNAMEHERE/quakewars +set net_serverPunkbusterEnabled 1 +set fs_game "" +set fs_game_base base +exec server.cfg &

BattleRat
08-19-2007, 07:19 PM
isnt screen-dms more easy to manage than nohup?

escapedturkey
08-19-2007, 10:38 PM
Screen uses more resources. :cool:

=WFL= Sgt Bilko
10-03-2007, 12:07 PM
Please copy and paste your server.cfg (minus any passwords) so we can all examine it.
Hmmm I don't think the server.cfg has anything to do with this error, it crashes long before it even reads the server.cfg file.

./etqwded.x86 &
I ended up with this error...
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
The reason you get missing libs if you run ./etqwded.x86 is that you are not setting the LD_LIBRARY_PATH variable.
You should start with ./etqw-dedicated instead (which is just a sh script), it sets the variable and then runs ./etqwded.x86.

The necessary libs seems to be included in the install and setting this variable will make sure gameengine knows where to find them.

I crash at same place in start up with same error message as highone and I'm running on a 2.6.16.19 kernel

My testbox running 2.6.15-23 kernel runs fine though (go figure :eek: )

Anyone found a solution???

Tomme
10-03-2007, 05:34 PM
Hi can you guys help.
I start my linux etqw server with a .sh and have tried other ways but afterabout 20-60 seconds the server shutsdown and says nothing in logs or console it just stops.
my .sh is this:
#! /bin/sh

#
# QuakeWars Server Startscipt
#
#
#
#


NAME="QuakeWarsServer"
DESC="QuakeWarsServer"
PARAMS="+exec server.cfg +set net_serverDedicated 2 +set vm_game 0 +set in_tty 0 +set net_port 27733 +set net_serverPunkbusterEnabled 1 +set fs_game_base base"
DIR=/home/gameserver/servers/89.163.147.36_27733
SCRIPT=etqw-dedicated

DAEMON=$DIR/$SCRIPT

case "$1" in
start)
echo "Starte $DESC: $NAME"
cd $DIR
screen -d -m -S $NAME $DAEMON $PARAMS
;;

stop)
if [[ `screen -ls |grep $NAME` ]]
then
echo -n "Stoppe $DESC: $NAME"
kill `screen -ls |grep $NAME |awk -F . '{print $1}'|awk '{print $1}'`
echo " ... Server gestoppt."
else
echo "Konnte keinen laufenden Server mit PID -- $DESC -- nicht finden"
fi
;;

restart)
if [[ `screen -ls |grep $NAME` ]]
then
echo -n "Stoppe $DESC: $NAME"
kill `screen -ls |grep $NAME |awk -F . '{print $1}'|awk '{print $1}'`
echo " ... Server gestoppt ... Kommando Start wird ausgeführt"
sleep 2
else
echo "Konnte keinen laufenden Server mit PID -- $DESC -- finden ... Kommando Start wird ausgeführt"
fi

echo -n "Starte $DESC: $NAME"
cd $DIR
screen -d -m -S $NAME $DAEMON $PARAMS
echo " ... Server gestartet."
;;

*)
echo "Usage: $0 Parameter eingeben {start|stop|restart}"
exit 1
;;
esac

exit 0



Thanks Tomme!

Ziki
10-10-2007, 11:10 AM
Hi everyone,

I've the same problem here. I've one server running correctly on one machine and not on another. It's probably due to a different library version but I don't know how to find it.

Here's an strace of the crash:

---------------------------------------------------------
open("/home/qwtest/etqw/base/pak003.pk4", O_RDONLY) = 16
_llseek(9, 74928128, [74928128], SEEK_SET) = 0
read(9, "\0#\207\0257\20\322\363\341%\1\0\0\364\2\0\0\35\0\ 0\0\0"..., 4096) = 4096
read(9, "\30\373\1\0\0\330\4\0\0\"\0\0\0\0\0\0\0\0\0 \0\0\0\204"..., 4096) = 4096
fstat64(16, {st_mode=S_IFREG|S_ISGID|S_ISVTX|0745, st_size=75103514, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x41be2000
_llseek(16, 71053312, [71053312], SEEK_SET) = 0
read(16, ":^T\25\366i\303\254\211[\375\2127^l:\273%gi\277$\277\327"..., 2436) = 2436
read(16, "PK\3\4\24\0\0\0\10\0#\207\0257\272\306\244\30\373\ 1\0\0"..., 4096) = 4096
_llseek(16, 74928128, [74928128], SEEK_SET) = 0
read(16, "\0#\207\0257\20\322\363\341%\1\0\0\364\2\0\0\35\0\ 0\0\0"..., 4096) = 4096
read(16, "\30\373\1\0\0\330\4\0\0\"\0\0\0\0\0\0\0\0\0 \0\0\0\204"..., 4096) = 4096
_llseek(16, 71053312, [71053312], SEEK_SET) = 0
read(16, ":^T\25\366i\303\254\211[\375\2127^l:\273%gi\277$\277\327"..., 4096) = 4096
_llseek(16, 71057408, [71057408], SEEK_SET) = 0
close(16) = 0
munmap(0x41be2000, 4096) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
write(1, "signal caught: \'Segmentation fau"..., 49) = 49
write(1, "callstack:\n0x411ed9d0\n[0x082cab6"..., 204) = 204
write(1, "Trying to exit gracefully..\n", 28) = 28
write(1, "------------ Game Shutdown -----"..., 39) = 39
write(1, "--------- Game Map Shutdown ----"..., 39) = 39
brk(0) = 0x9692000
brk(0x9697000) = 0x9697000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
write(1, "double fault: \'Segmentation faul"..., 48) = 48
unlink("/home/qwtest/.etqw//etqw.pid") = 0
rt_sigaction(SIGHUP, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGILL, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGTRAP, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGABRT, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGBUS, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGFPE, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGSEGV, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGPIPE, {SIG_DFL}, NULL, 8) = 0
rt_sigaction(SIGABRT, {SIG_DFL}, NULL, 8) = 0
munmap(0x40f9d000, 512000) = 0
munmap(0x40864000, 3403776) = 0
close(15) = 0
munmap(0x407f3000, 266240) = 0
munmap(0x40e39000, 266240) = 0
munmap(0x40dd9000, 266240) = 0
munmap(0x40e7a000, 266240) = 0
munmap(0x40d6a000, 266240) = 0
close(13) = 0
munmap(0x4068f000, 135168) = 0
munmap(0x4064e000, 135168) = 0
munmap(0x405ec000, 266240) = 0
munmap(0x404eb000, 1052672) = 0
munmap(0x402e2000, 266240) = 0
munmap(0x4032a000, 266240) = 0
munmap(0x4039d000, 266240) = 0
munmap(0x403de000, 266240) = 0
munmap(0x40ba3000, 266240) = 0
munmap(0x40be4000, 266240) = 0
munmap(0x40c25000, 266240) = 0
munmap(0x40c66000, 266240) = 0
munmap(0x40ca7000, 266240) = 0
munmap(0x40ce8000, 266240) = 0
munmap(0x40d29000, 266240) = 0
munmap(0x40420000, 266240) = 0
munmap(0x40461000, 266240) = 0
munmap(0x41be3000, 266240) = 0
munmap(0x41c24000, 266240) = 0
write(12, "`\360\5@\7\0\0\0\360\235\5@\354\332\377\277\224\33 2\377"..., 148) = 148
rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
rt_sigsuspend([] <unfinished ...>
--- SIGRTMIN (Unknown signal 32) @ 0 (0) ---
<... rt_sigsuspend resumed> ) = -1 EINTR (Interrupted system call)
sigreturn() = ? (mask now [RTMIN])
write(12, "`\360\5@\2\0\0\0\v\0\0\0M\371\32@\200M\1@\254e\32@ d\333"..., 148) = 148
rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0
rt_sigsuspend([] <unfinished ...>
--- SIGRTMIN (Unknown signal 32) @ 0 (0) ---
<... rt_sigsuspend resumed> ) = -1 EINTR (Interrupted system call)
sigreturn() = ? (mask now [RTMIN])
wait4(708, NULL, __WCLONE, NULL) = 708
munmap(0x40323000, 4096) = 0
exit_group(11) = ?
---------------------------------------------------------

and another running fine on another machine at the same strace position:

---------------------------------------------------------
open("/home/ekeepwn/etqw/base/pak003.pk4", O_RDONLY) = 20
_llseek(9, 75001856, [75001856], SEEK_SET) = 0
read(9, "\0\0\321hj\4generated/declb/materials/"..., 4096) = 4096
fstat64(20, {st_mode=S_IFREG|S_ISGID|S_ISVTX|0745, st_size=75103514, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb46db000
_llseek(20, 74084352, [74084352], SEEK_SET) = 0
read(20, "wql\10y\200\366\231\303<\301\7F\2231\277\277\216\2516\343"..., 1459) = 1459
read(20, "PK\3\4\24\0\0\0\10\0#\207\0257\330\230{\370\250\3\ 0\000"..., 4096) = 4096
_llseek(20, 75001856, [75001856], SEEK_SET) = 0
read(20, "\0\0\321hj\4generated/declb/materials/"..., 4096) = 4096
_llseek(20, 74084352, [74084352], SEEK_SET) = 0
read(20, "wql\10y\200\366\231\303<\301\7F\2231\277\277\216\2516\343"..., 4096) = 4096
_llseek(20, 74088448, [74088448], SEEK_SET) = 0
close(20) = 0
munmap(0xb46db000, 4096) = 0
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb469b000
munmap(0xb469b000, 266240) = 0
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb469b000
munmap(0xb469b000, 266240) = 0
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb469b000
munmap(0xb469b000, 266240) = 0
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb469b000
munmap(0xb469b000, 266240) = 0
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb469b000
munmap(0xb469b000, 266240) = 0
mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb469b000
munmap(0xb469b000, 266240) = 0
...
---------------------------------------------------------

I've noticed that one server is using old_mmap and the other mmap2 but I don't know what it means.

Anyone have an idea?

Cyrille

Ziki
10-10-2007, 03:09 PM
It seems that this problem is related to glibc version. Upgrading to a newer version is the solution, however, I cannot upgrade all my servers because this cause dependency problems.

glibc versions <= 2.3.4 are not working, glibc >=2.3.5 are working. Isn't it possible to have a server version compatible with all versions?

=WFL= Sgt Bilko
10-11-2007, 08:58 PM
Initializing global UI namespaces
...23 namespaces
...227 properties
signal caught: 'Segmentation fault', si_code 128
callstack:
0x418652c0
[0x082cbcc1]
[0x082bbfff]
[0x400586b8]
[0x401d2cf0]
[0x419881d3]
[0x41872e77]
[0x41879dfb]
[0x08189b2c]
[0x0818d38e]
[0x0818d7ea]
[0x0818da0e]
[0x082cee84]
[0x401c162d]
[0x0804bc21]
Trying to exit gracefully..
------------ Game Shutdown -----------
--------- Game Map Shutdown ----------
double fault: 'Segmentation fault', bailing out
Segmentation fault
These problems (that I had on a 2.6.16.19 kernel) seems to be gone after the installing the r4 version of the dedicated server.

Played thru all 4 campaigns (though I was solo and no bots).