( search forums )
Error on linux server Plz Help!
Soldat Forums - Server Talk - Server Help
NoRecoil
March 25, 2005, 5:08 pm
I am kinda new to linux. I installed SoldatServer and SoldatMonitor.I extracted SoldatMonitor in the SoldatServer folder... So here what it gives like error...


[norecoil@localhost ~]$ su
Password:
[root@localhost norecoil]# cd soldat/soldat121
[root@localhost soldat121]# ./soldatserver

-= Soldat Dedicated Server 1.2.1 - BETA 2.2.61 =-

----------------------------------------------------------------
Caution! This software is still in BETA phase.
Soldat Dedicated Server initializing...
----------------------------------------------------------------

Hit CTRL+C twice to exit
Please command the server using the Soldat Admin program
Welcome to Soldat 1.2.1
Exception EIdCouldNotBindSocket in module soldatserver at 08076E27.
Could not bind socket. Address and port are already in use.

Or with soldatmonitor

[root@localhost soldat121]# ./soldatmonitor
[Thu Mar 24 12:05:03 2005] Server: Test Server
[Thu Mar 24 12:05:03 2005] Port: 23073
[Thu Mar 24 12:05:03 2005] Process ID: 4577
[Thu Mar 24 12:05:03 2005] -= Soldat Dedicated Server 1.2.1 - BETA 2.2.61 =-
[Thu Mar 24 12:05:03 2005] ----------------------------------------------------------------
[Thu Mar 24 12:05:03 2005] Caution! This software is still in BETA phase.
[Thu Mar 24 12:05:03 2005] Soldat Dedicated Server initializing...
[Thu Mar 24 12:05:03 2005] ----------------------------------------------------------------
[Thu Mar 24 12:05:04 2005] Hit CTRL+C twice to exit
[Thu Mar 24 12:05:04 2005] Please command the server using the Soldat Admin program
[Thu Mar 24 12:05:04 2005] Welcome to Soldat 1.2.1
[Thu Mar 24 12:05:04 2005] Exception EIdCouldNotBindSocket in module soldatserver at 08076E27.
[Thu Mar 24 12:05:04 2005] Could not bind socket. Address and port are already in use.
[Thu Mar 24 12:05:04 2005] Soldat process exiting.

Anyone had the same problem? Someone can help me? Wha am I doing wrong... here are the files I have in soldat121 folder:


anims IO.so objects Socket.so Tty.so
banned.txt lobby_servers.txt POSIX.so soldat.ini weapons.ini
bots logs readme-pl.txt soldatmonitor weapons.zip
Fcntl.so maps readme.txt soldatmonitor.log
HiRes.so mapslist.txt remote.txt soldatserver

I tried disabling my firewall... but same problem I dunno how to check wich ports are in use with linux... so if someone knows how show me plz.

Thx




Denacke
March 25, 2005, 5:20 pm
Aye I had this problem before.
It happened to me when I had ran a previous soldat server and stopped it, and then ran another server again. To get it to be able to us the socket again you will need to kill the soldatserver process that only stopped half and is still taking up a socket.
find out its PID (socklist or top) and do
kill -9 PID
eg if soldatser PID would be 9154
kill -9 9154

Afterwards you should be able to run it again I hope :)

NoRecoil
March 25, 2005, 6:16 pm
Thx alot it works! But now how do I control my server as admin? It does:
oot@localhost soldat121]# ./soldatserver

-= Soldat Dedicated Server 1.2.1 - BETA 2.2.61 =-

----------------------------------------------------------------
Caution! This software is still in BETA phase.
Soldat Dedicated Server initializing...
----------------------------------------------------------------

Hit CTRL+C twice to exit
Please command the server using the Soldat Admin program
Welcome to Soldat 1.2.1
Server name: Knife server- Knife only
Kampf
Server IP: 127.0.0.1 Port: 23073
Connection for file server started. Port: 23083
Registering server @ lobby.soldat.pl
Game server added to lobby server @ 65.113.210.3


And it stays like that...
and when I stop it ctrl+c it does
Exception EControlC in module soldatserver at 08058B3D.
Control-C hit.

Any idea? Sorry if these are noobish questions

NoRecoil
March 25, 2005, 7:00 pm
Oh and now im getting a new error..Segmentation fault
... dunno how I got this... and also when it was working it just kept reconnecting to lobby.... after like 3 minutes

Well if anyone has an awnser thanks

Denacke
March 25, 2005, 7:01 pm
now you will have to log on with soldat admin or sarj using your server IP, port and admin password.
Soldat admin(official): http://www.soldat.pl/downloads/soldatadmin12.zip
Sarj(Java soldat admin, better looking and more options :)): http://sarj.freeserverhost.com/

Something else you might be intrested is installing "screen"
this will allow you to start the soldat server in the background, and access it again later.
http://www.gnu.org/software/screen/

Hope it helps :)

PureGrain
March 25, 2005, 10:52 pm
YOu need to set up a user account to run SOLDAT under in linux, I would not suggest running any programs as root.

Also, to kill all processes of soldat when trying too gain ports you can try.

killall -9 soldatserver
or
killall -9 soldatmonitor

Which ever one your running.

I will be writing another tutorial again soon on the control panel I set up for Webmin, I just been busy all week. Also, Iwill be waiting too see what happeneds with the newer version, I may be writing a tutorial for the installation using soldatmonitor as well.

Who knows???




Denacke
March 26, 2005, 2:32 am
I only know you have to get started on that control panel tutorial quickly :D

I'm getting impatient xD