1 (edited by Sani 2010-10-23 15:26:25)

Topic: Linux Teeworlds-Server (without Mod)

Dear,

i try'd to install a Teeworldsserver on a Debian & an Suse OS (!! RootServer !!),

i try'd the booth unix versions and a selfcompiled Server-Version.

Same problem(without and with config):

[4cc2e2a7][engine]: running on unix-linux-amd64
[4cc2e2a7][engine]: arch is little endian
[4cc2e2a7][engine/datadir]: paths used:
[4cc2e2a7][engine/datadir]:     .
[4cc2e2a7][engine/datadir]:     /servers/.teeworlds
[4cc2e2a7][engine/datadir]:     data
[4cc2e2a7][engine/datadir]: saving files to: /servers/.teeworlds
[4cc2e2a7][console]: failed to open 'autoexec.cfg'
[4cc2e2a7][datafile]: datafile loading. filename='maps/dm1.map'
[4cc2e2a7][server]: maps/dm1.map crc is f35c9309
[4cc2e2a7][server]: server name is 'unnamed server'
[4cc2e2a7][datafile]: loading data index=16 size=325 uncompressed=12000
[4cc2e2a7][server]: version 0.5 b67d1f1a1eea234e
[4cc2e2a7][engine/mastersrv]: refreshing master server addresses
[4cc2e2a7][register]: refreshing ip addresses
[4cc2e2a7][engine/mastersrv]: saving addresses
[4cc2e2a7][register]: fetching server counts
[4cc2e2a7][register]: choosen 'master3.teeworlds.com' as master, sending heartbeats
Speicherzugriffsfehler (engl. Segmentation Fault)

any Ideas?
Thanks for you Help!

(Yes i Tryd the Forum-Search and nothing helped!, port seems be open, right version and so on)

2

Re: Linux Teeworlds-Server (without Mod)

did you open the port on the router or just in the firewall.

can you show your config?

3

Re: Linux Teeworlds-Server (without Mod)

Are you using version 0.5.2 or the version from Github?

4

Re: Linux Teeworlds-Server (without Mod)

Snazzy wrote:

did you open the port on the router or just in the firewall.

can you show your config?

Nope, not at the moment or can u tell me the command?

Kottizen wrote:

Are you using version 0.5.2 or the version from Github?

Yep, i using the newest version

5

Re: Linux Teeworlds-Server (without Mod)

Sani wrote:
Snazzy wrote:

did you open the port on the router or just in the firewall.

can you show your config?

Nope, not at the moment or can u tell me the command?

Kottizen wrote:

Are you using version 0.5.2 or the version from Github?

Yep, i using the newest version


you have to open the port in your router too. otherwise it wont work

6 (edited by lamefun 2010-10-23 18:49:36)

Re: Linux Teeworlds-Server (without Mod)

Version 0.5 b67d1f1a1eea234e is 0.5.2, not GIThub version.
Segmentation fault means that the server just crashes. Try to build server_debug, run it under GDB and send us the backtrace:

[you@host teeworlds-0.5.2-src]$ ../bam-0.2.0/src/bam server_debug
[you@host teeworlds-0.5.2-src]$ gdb ./teeworlds_d
(gdb) run -f server.cfg
...
Segmentation fault
(gdb) backtrace

7 (edited by Sani 2010-10-23 19:29:35)

Re: Linux Teeworlds-Server (without Mod)

@ Port it must be open, all other servers (css ts and so on) are still running



see the log attached


Starting program: /servers/???/teeworlds-0.5.2-src/teeworlds_srv_d
Missing separate debuginfo for /lib64/ld-linux-x86-64.so.2
Try: zypper install -C "debuginfo(build-id)=591af1afa33f255704fb6a60859b93d00e205302"
Missing separate debuginfo for /lib64/libpthread.so.0
Try: zypper install -C "debuginfo(build-id)=7bcbabc9da24424f1f5ef7be77b575fd3d796288"
[Thread debugging using libthread_db enabled]
Missing separate debuginfo for /lib64/libz.so.1
Try: zypper install -C "debuginfo(build-id)=763926681ebc75fcd9de7b99f7229ff15c7d1754"
Missing separate debuginfo for /usr/lib64/libstdc++.so.6
Try: zypper install -C "debuginfo(build-id)=62220ad5c8941afb5d332c0c47d32f8beec8ac50"
Missing separate debuginfo for /lib64/libm.so.6
Try: zypper install -C "debuginfo(build-id)=57fc1891d8d9f419fb8c7fc06a8285563b53a47e"
Missing separate debuginfo for /lib64/libgcc_s.so.1
Try: zypper install -C "debuginfo(build-id)=0206e11fa8ca0db0633073adcbf1349a7871e1dc"
Missing separate debuginfo for /lib64/libc.so.6
Try: zypper install -C "debuginfo(build-id)=c5a3dfd66bf61fcdec9bc22153b2fbd0d6697960"
[4cc31a1b][engine]: running on unix-linux-amd64
[4cc31a1b][engine]: arch is little endian
[New Thread 0x7ffff6ed8910 (LWP 7751)]
[4cc31a1b][engine/datadir]: paths used:
[4cc31a1b][engine/datadir]:     .
[4cc31a1b][engine/datadir]:     /root/.teeworlds
[4cc31a1b][engine/datadir]:     data
[4cc31a1b][engine/datadir]: saving files to: /root/.teeworlds
[4cc31a1b][console]: failed to open 'autoexec.cfg'
[4cc31a1b][datafile]: datafile loading. filename='maps/dm1.map'
[4cc31a1b][server]: maps/dm1.map crc is f35c9309
[4cc31a1b][server]: server name is 'unnamed server'
[4cc31a1b][datafile]: loading data index=16 size=325 uncompressed=12000
[4cc31a1b][server]: version 0.5 b67d1f1a1eea234e
[4cc31a1b][engine/mastersrv]: refreshing master server addresses
[4cc31a1b][register]: refreshing ip addresses
[4cc31a1b][engine/mastersrv]: saving addresses
[4cc31a1b][register]: fetching server counts
[4cc31a1b][register]: choosen 'master3.teeworlds.com' as master, sending heartbeats

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6f58a4b in memcpy () from /lib64/libc.so.6

8

Re: Linux Teeworlds-Server (without Mod)

Type "backtrace" in gdb to get more information.

9

Re: Linux Teeworlds-Server (without Mod)

Kottizen wrote:

Type "backtrace" in gdb to get more information.

(gdb) backtrace
#0  0x00007ffff6f58a4b in memcpy () from /lib64/libc.so.6
#1  0x0000000000416946 in mem_copy (dest=0x7ffff66d60a4, source=0x7ffff66d64ba, size=4294967295) at src/base/system.c:231
#2  0x000000000041093e in unpack_packet (buffer=0x7ffff66d64b4 "", size=5, packet=0x7ffff66d6094) at src/engine/e_network.c:231
#3  0x0000000000409a7d in netserver_recv (s=0x7ffff6680030, chunk=0x7fffffffe370) at src/engine/e_network_server.c:321
#4  0x000000000041bf8e in server_pump_network () at src/engine/server/es_server.c:957
#5  0x000000000041c5e8 in server_run () at src/engine/server/es_server.c:1170
#6  0x000000000041cedc in main (argc=1, argv=0x7fffffffe558) at src/engine/server/es_server.c:1375

10 (edited by Kottizen 2010-10-23 21:01:38)

Re: Linux Teeworlds-Server (without Mod)

You're running version 0.5.2, which has a known bug.

Try to install git and then execute the following:
git clone https://github.com/teeworlds/teeworlds.git
git clone https://github.com/matricks/bam.git
cd bam
./make_unix.sh
cd ..
cd teeworlds
../bam/bam config
../bam/bam server_release

Then start that server instead.

11

Re: Linux Teeworlds-Server (without Mod)

Kottizen wrote:

You're running version 0.5.2, which has a known bug.

Try to install git and then execute the following:
git clone https://github.com/teeworlds/teeworlds.git
git clone https://github.com/matricks/bam.git
cd bam
./make_unix.sh
cd ..
cd teeworlds
../bam/bam config
../bam/bam server_release

Then start that server instead.

you dont have to install git, just use wget

wget https://github.com/matricks/bam/tarball/master
wget https://github.com/teeworlds/teeworlds/tarball/master

extract and follow the steps by kottizen

12

Re: Linux Teeworlds-Server (without Mod)

Introduced git for the fact that it's easier to make upgrades when bugs are found.