1

Topic: The server does not start

Hi all,

I got the binaries for Linux 0.6.1 x86_x64 for my Debian 7 Wheezy,

I have chown the entire file to the user and I chmow 777 binary teeworlds_srv, but when I execute I try to start the server with the command line "sh teeworlds_srv-f / teeworlds / serverconfig.cfg "I get the following error:
teeworlds_srv: 1: teeworlds_srv: Syntax error: "(" unexpected

I do not understand what is happening, do you have any idea?

Thank you,

2 (edited by GBKing 2012-08-28 00:27:22)

Re: The server does not start

You are not starting the server properly. The command is: ./teeworlds_srv -f /teeworlds/serverconfig.cfg

EDIT: I didn't even know that Debian 7 is out! big_smile

3 (edited by Ohax 2012-08-28 11:16:08)

Re: The server does not start

My command was good, it was just modified by the translator I use...

I tried "sh teeworlds_srv -f /teeworlds/serverconfig.cfg" and "./teeworlds_srv -f /teeworlds/serverconfig.cfg", But nothing to do.

Debian 7 is not yet officially released, it is a matter of weeks and it works really well on other server I use.

4

Re: The server does not start

I was not really intending to run a possibly unstable version, but yeah, it works like normal. Anyway, are you sure that the Teeworlds folder is in the base folder "/", because that is what you are telling the system there.

5

Re: The server does not start

You probably have a x86 binary for your amd64 system.
Try out this one here: http://www.teeworlds.com/files/teeworld … _64.tar.gz
Or install ia32-libs to run x86 binarys. apt-get install ia32-libs

6

Re: The server does not start

Hello,

The path is /teeworlds and not ~/teeworlds or another folder.

Teeworlds user is owner of the folder /teeworlds (recursive) and binary are chmodes 777

I have downloaded the x64 version, I just even try your binary, but the error is the same.

ia32-libs does not seem to exist on this version of Ubuntu, but I have ia32-libs-gtk installed servers for Counter Strike Global Offensive.

7

Re: The server does not start

Remove the 'sh' in front of the command, if I add it, I get the same error.

8 (edited by Ohax 2012-08-28 18:37:07)

Re: The server does not start

Dont work :

teeworlds@178-33********:/teeworlds$ teeworlds_srv -f serverconfig.cfg
bash: teeworlds_srv: command not found


OR


teeworlds@178-33********:/:/teeworlds$ teeworlds_srv_amd64 -f serverconfig.cfg
bash: teeworlds_srv_amd64: command not found

9 (edited by BotoX 2012-08-28 18:42:50)

Re: The server does not start

./teeworlds_srv not teeworlds_srv
Edit: Use nohup ./teeworlds_srv & that the server wont close when you close the console.
"ps ax | grep teeworlds_srv" to get the process id
and "kill process id" to kill the server.

10 (edited by Malachite 2012-08-28 18:40:56)

Re: The server does not start

To run a program if you are inside its directory:

./program --param-list -x

EDIT: BotoX was faster…

11 (edited by Ohax 2012-08-28 18:43:33)

Re: The server does not start

teeworlds@178-33-****:/teeworlds$ ./teeworlds_srv
bash: ./teeworlds_srv: No such file or directory
teeworlds@178-33--****:/:/teeworlds$ ./teeworlds_srv_amd64
bash: ./teeworlds_srv_amd64: No such file or directory

EDIT :

teeworlds@178-33-****:/teeworlds$ ls -hl
total 1.8M
drwxr-xr-x 10 teeworlds teeworlds 4.0K Aug 27 20:37 data
-rw-r--r--  1 teeworlds teeworlds 1.3K Aug 27 21:41 license.txt
-rw-r--r--  1 teeworlds teeworlds  356 Aug 27 21:41 readme.txt
-rwxr-xr-x  1 teeworlds teeworlds  203 Aug 27 21:46 serverconfig.cfg
-rw-r--r--  1 teeworlds teeworlds  862 Aug 27 21:41 storage.cfg
-rwxrwxrwx  1 teeworlds teeworlds 912K Aug 27 21:41 teeworlds
-rwxrwxrwx  1 teeworlds teeworlds 433K Aug 27 21:41 teeworlds_srv
-rwxrwxrwx  1 teeworlds teeworlds 457K Aug 28 16:19 teeworlds_srv_amd64

12 (edited by BotoX 2012-08-28 18:47:00)

Re: The server does not start

then you don't have a teeworlds_srv in that folder...
type ls to list all files and directorys


Edit: Try to compile teeworlds by yourself:

apt-get install gcc g++ python
wget https://github.com/downloads/matricks/bam/bam-0.4.0.tar.gz --no-check-certificate
tar -xvzf bam*
cd matricks*
./make_unix.sh
mv bam /usr/bin
cd ..
wget https://github.com/teeworlds/teeworlds/tarball/0.6-endofline --no-check-certificate
tar -xvzf 0.6-endofline
cd teeworlds-*
bam server_release
./teeworlds_srv

13

Re: The server does not start

See my edit :-)

14 (edited by Malachite 2012-08-28 18:59:06)

Re: The server does not start

Sure that it's not in a subdir?
Try

ls -laR /teeworlds|grep teeworlds_srv

(Yes, you could use find too, but ls and grep are shell functions, while find is usually installed in /usr/bin/ and not always accessible)

15 (edited by BotoX 2012-08-28 18:53:53)

Re: The server does not start

Malachite wrote:

Sure that it's not in a subdir?
Try

ls -laR /teeworlds|grep teeworlds_srv

Reading helps. (His edit)

See my post and try to compile the binary by yourself.

16 (edited by Ohax 2012-08-28 18:55:53)

Re: The server does not start

Sure :

teeworlds@178-33-****:/teeworlds$ ls -laR /teeworlds|grep teeworlds_srv
-rwxrwxrwx  1 teeworlds teeworlds 442718 Aug 27 21:41 teeworlds_srv
-rwxrwxrwx  1 teeworlds teeworlds 467608 Aug 28 16:19 teeworlds_srv_amd64

:-S

17 (edited by heinrich5991 2012-08-28 18:58:42)

Re: The server does not start

Ohax wrote:

Sure :

teeworlds@178-33-****:/teeworlds$ ls -laR /teeworlds|grep teeworlds_srv
-rwxrwxrwx  1 teeworlds teeworlds 442718 Aug 27 21:41 teeworlds_srv
-rwxrwxrwx  1 teeworlds teeworlds 467608 Aug 28 16:19 teeworlds_srv_amd64

:-S

download the x86 pack and try again.

EDIT:
or give us the output of uname -a

18

Re: The server does not start

Could you please try out this:

sudo apt-get install gcc g++ python
wget https://github.com/downloads/matricks/bam/bam-0.4.0.tar.gz --no-check-certificate
tar -xvzf bam*
cd matricks*
./make_unix.sh
mv bam /usr/bin
cd ..
wget https://github.com/teeworlds/teeworlds/tarball/0.6-endofline --no-check-certificate
tar -xvzf 0.6-endofline
cd teeworlds-teeworlds*
bam server_release
./teeworlds_srv

19 (edited by Ohax 2012-08-28 19:13:39)

Re: The server does not start

I use x64 :
Linux 178-33-**** 2.6.32-11-pve #1 SMP Wed Apr 11 07:17:05 CEST 2012 i686 GNU/Linux

This is a OpenVZ virtual machine, but there is no reason why it does not work. Other game servers much more already running greedy on this VM.

At worst I can do a test on a VM based on QEMU / KVM

20 (edited by BotoX 2012-08-28 19:08:46)

Re: The server does not start

i686 means x86 (32bit) .....
Use this binary: http://www.teeworlds.com/files/teeworld … x86.tar.gz

21 (edited by Ohax 2012-08-28 19:16:40)

Re: The server does not start

The compilation seems to work:

root@178-33-****:/teeworlds-test/teeworlds-teeworlds-e0b99c1# ./teeworlds_srv
[503cfbe6][engine]: running on unix-linux-ia32
[503cfbe6][engine]: arch is little endian
[503cfbe6][storage]: added path '$USERDIR' ('/root/.teeworlds')
[503cfbe6][storage]: added path '$DATADIR' ('data')
[503cfbe6][storage]: added path '$CURRENTDIR' ('/teeworlds-test/teeworlds-teeworlds-e0b99c1')
[503cfbe6][console]: failed to open 'autoexec.cfg'
[503cfbe6][server]: starting...
[503cfbe6][datafile]: loading. filename='maps/dm1.map'
[503cfbe6][datafile]: allocsize=2560
[503cfbe6][datafile]: readsize=2396
[503cfbe6][datafile]: swaplen=2416
[503cfbe6][datafile]: item_size=2012
[503cfbe6][datafile]: loading done. datafile='maps/dm1.map'
[503cfbe6][server]: maps/dm1.map crc is f2159e6e
[503cfbe6][server]: server name is 'unnamed server'
[503cfbe6][datafile]: loading data index=17 size=325 uncompressed=12000
[503cfbe6][server]: version 0.6 626fce9a778df4d4
[503cfbe6][engine/mastersrv]: refreshing master server addresses
[503cfbe6][register]: refreshing ip addresses
[503cfc05][engine/mastersrv]: saving addresses
[503cfc05][register]: fetching server counts
[503cfc05][register]: chose 'master3.teeworlds.com' as master, sending heartbeats
[503cfc05][register]: no firewall/nat problems detected
[503cfc05][register]: server registered


Edit : As it is compiled, how do I do if I want to uninstall cleanly?

Edit 2 : The package also http://www.teeworlds.com/files/teeworld … x86.tar.gz seems to work ...

I'm not 64-bit?

22

Re: The server does not start

Ohax wrote:

The compilation seems to work:
I'm not 64-bit?

No your system is running with 32bit.

23

Re: The server does not start

It's weird with OpenVZ is the kernel of the host that is shared.

Can you help me uninstall the compilation? So I'll use the x86 binaries that I have been offered.

thank you

24

Re: The server does not start

Ohax wrote:

It's weird with OpenVZ is the kernel of the host that is shared.

Can you help me uninstall the compilation? So I'll use the x86 binaries that I have been offered.

thank you

Just delete the 2 folders with rm -R

rm -R matricks*
rm -R teeworlds-teeworlds*

and you can remove bam from your bin folder with rm /usr/bin/bam but maybe you need to compile something again with bam and it wont hurt leaving it there smile

25

Re: The server does not start

Ok to uninstall, I tried with conventional methods, but it did not work.

The server is running, it will probably be a Team DM.

Thank you for your help, I'll make a small donation to encourage developpers!