sty+ct+ap server crash alot.

Topics and posts about all other servers...
Post Reply
XD|VIPer
Average Program
Posts: 76
Joined: Thu Feb 09, 2012 12:53 am

sty+ct+ap server crash alot.

Post by XD|VIPer »

For some reason, the server has been crashing alot lately. I don't really know why or how. It seems to kind of freeze, so the automatic restart script won't restart it. Any suggestions on how to fix it or reasons why it is happening??

User avatar
Light
Reverse Outside Corner Grinder
Posts: 1659
Joined: Thu Oct 20, 2011 2:11 pm

Re: sty+ct+ap server crash alot.

Post by Light »

Give the console logs, and anything else you find helpful up to the crash so possibly the problem could be seen. If you use a regular bash script, you could just add "> console_log.txt" and it will write to it. When it crashes, upload that file.

Possibly the last bit of your ladder log, if there's anything useful there. Might help show where it crashes.

Just whatever you think could be helpful. Just saying "it crashes", will usually get you nowhere.

User avatar
ConVicT
Shutout Match Winner
Posts: 1004
Joined: Fri Feb 17, 2012 2:33 am

Re: sty+ct+ap server crash alot.

Post by ConVicT »

"It crashes"
Attachments
images.jpg
images.jpg (11.94 KiB) Viewed 2544 times

XD|VIPer
Average Program
Posts: 76
Joined: Thu Feb 09, 2012 12:53 am

Re: sty+ct+ap server crash alot.

Post by XD|VIPer »

Light wrote: Give the console logs, and anything else you find helpful up to the crash so possibly the problem could be seen.
Light wrote: Possibly the last bit of your ladder log, if there's anything useful there. Might help show where it crashes.
last few lines of the consolelog.txt

Code: Select all

[2013/05/26-20:28:24] [0] Clearing delayed commands ...
[2013/05/26-20:28:24] [0] racing.php : wait_for_external_script 1 
[2013/05/26-20:28:24] [0] racing.php : target_initial_score 0 
[2013/05/26-20:28:24] [0] racing.php : sp_game_type 0 
[2013/05/26-20:28:24] [0] racing.php : game_type 0 
[2013/05/26-20:28:24] [0] racing.php : sp_finish_type 0 
[2013/05/26-20:28:24] [0] racing.php : finish_type 0 
[2013/05/26-20:28:24] [0] racing.php : sp_num_ais 0 
[2013/05/26-20:28:24] [0] racing.php : num_ais 0 
[2013/05/26-20:28:24] [0] racing.php : shot_seek_update_time 0.1 
[2013/05/26-20:28:24] [0] racing.php : ladderlog_write_all 1|1 
[2013/05/26-20:28:24] [0] Enabled full ladderlog output.
[2013/05/26-20:28:24] [0] racing.php : INCLUDE racer/Rifle.cfg
[2013/05/26-20:28:24] [0] MAP_FILE changed from Lover$Boy/Racing/Animalia-1.0.0.aamap.xml to Lover$Boy/Racing/Rifle-1.0.0.aamap.xml.
[2013/05/26-20:28:24] [0] racing.php : console_message Reading Rifle.txt... 
[2013/05/26-20:28:24] [0] Reading Rifle.txt... 
[2013/05/26-20:28:24] [0] racing.php : console_message Current race: Rifle 
[2013/05/26-20:28:24] [0] Current race: Rifle 
[2013/05/26-20:28:24] [0] racing.php : target_survive_time 61
[2013/05/26-20:28:24] [0] racing.php : console_message You can type /stats   to view high scores for maps. 
[2013/05/26-20:28:24] [0] You can type /stats   to view high scores for maps. 
[2013/05/26-20:28:27] [0] Deleting objects...
[2013/05/26-20:28:27] [0] Deleting grid...
last few lines of the ladderlog.txt

Code: Select all

ROUND_COMMENCING 5 10
WAIT_FOR_EXTERNAL_SCRIPT
ROUND_ENDED 2013-05-26 20:28:27 EDT
ROUND_SCORE 1 [email protected] [email protected]
ROUND_SCORE_TEAM 1 [email protected]
NEW_ROUND 2013-05-26 20:28:27 EDT
ZONE_CREATED 0  2347.59 -917.825 0 0
ZONE_CREATED 1  3145.21 -1221.88 0 0
ZONE_CREATED 2  3237.13 -1187.94 0 0
ZONE_CREATED 3  3213.09 -1448.15 0 0
ZONE_CREATED 4  3326.23 -1312.39 0 0
ZONE_CREATED 5  3534.12 -1074.8 0 0
ZONE_CREATED 6  3416.74 -1425.53 0 0
ZONE_CREATED 7  3552.5 -1493.41 0 0
ZONE_CREATED 8  3461.99 -1267.14 0 0
ZONE_CREATED 9  3575.13 -1357.65 0 0
ZONE_CREATED 10  3682.61 -1187.94 0 0
ZONE_CREATED 11  3688.27 -1448.15 0 0
ZONE_CREATED 12  3778.78 -1312.39 0 0
ZONE_CREATED 13  3914.54 -1221.88 0 0
ZONE_CREATED 14  3846.66 -1425.53 0 0

User avatar
LOVER$BOY
Match Winner
Posts: 725
Joined: Thu Jan 24, 2008 12:46 pm
Contact:

Re: sty+ct+ap server crash alot.

Post by LOVER$BOY »

Interesting... How it just crashes when deleting the grid :P

What OS are you running this in Viper? By the way, wanna show us your restart script? Maybe it has flaws in it?
Image

XD|VIPer
Average Program
Posts: 76
Joined: Thu Feb 09, 2012 12:53 am

Re: sty+ct+ap server crash alot.

Post by XD|VIPer »

restart script:

Code: Select all

#!/bin/bash
0launch http://simamo.de/0install/armagetronad-styctap-dedicated.xml
echo "Server will restart in 3 seconds. Press Ctrl+C to cancel."
sleep 3
<My home location>/.armagetronad-styctap-dedicated/start/script.sh

User avatar
LOVER$BOY
Match Winner
Posts: 725
Joined: Thu Jan 24, 2008 12:46 pm
Contact:

Re: sty+ct+ap server crash alot.

Post by LOVER$BOY »

I don't see why it would restart since you are not looping or connecting where the server will start running from. Although I prefer using a different method to your own:

Code: Select all

$tron="/path/to/server/file"
while true; do
   $tron --vardir $var --userconfigdir $settings --input $command | tee -a $console
   echo "============== SERVER RESTARTING ==============" >> $console
   sleep 5
done
At the part $tron ... is where the script halts since that file is executed and being run. After exiting from that file the script will echo out the restart stuff and then sleeps for 5 seconds. Finally it loops back to the beginning and executes $tron ...


Ok, so what does that
<My home location>/.armagetronad-styctap-dedicated/start/script.sh
do? Does it start the server do the same thing as this or something?

Seems like your using zero launch sequence. Honestly I never bothered to use it myself since I know full well how to compile one in both Ubuntu and Windows. So I prefer handling solid file than using the zero system.
Image

XD|VIPer
Average Program
Posts: 76
Joined: Thu Feb 09, 2012 12:53 am

Re: sty+ct+ap server crash alot.

Post by XD|VIPer »

<My home location> actually has my /home/ whatever on the script... anyways

It just executes the script again.
<My home location>/.armagetronad-styctap-dedicated/start/script.sh

I solved the problem by going back to sty+ct, but I really want sty+ct+ap not to crash in the first place at all. With sty+ct, I cannot use CYCLE_SPEED on the PLAYER_GRIDPOS. I need sty+ct+ap to do that.
Which means I cannot do killing for afk/idle... I have no clue how the other racing server can do it without sty+ct+ap.


Unless the latest sty+ct includes that. But I would need to compile then, wouldn't I?

I think I can compile only on my 32bit laptop rather than my 64bit desktop.

Is this how I would compile 0.4?

Code: Select all

cd 0.4
./bootstrap.sh
./configure
make
make install
not to menchen, the downloading from bzr too.

User avatar
LOVER$BOY
Match Winner
Posts: 725
Joined: Thu Jan 24, 2008 12:46 pm
Contact:

Re: sty+ct+ap server crash alot.

Post by LOVER$BOY »

Well I'm not sure of the real problem here Nelg. So I don't know how I can solve it for you.

As for compiling 0.4...
Yes if you want to be quick. Check here if you want to be detailed:
http://vertrex.tk/wiki/index.php?title= ... u_computer
Image

XD|VIPer
Average Program
Posts: 76
Joined: Thu Feb 09, 2012 12:53 am

Re: sty+ct+ap server crash alot.

Post by XD|VIPer »

You forgot about Protobuf on the depedacys :o

and I don't think you need to "cd /home/{username}/" unless you are on another user (like root) and you want to compile with the folders on that other user with your user.

how do I compile so zonesV2 is enabled?

and compiling works great on my laptop... Who knows why it doesn't work on my desktop?
Thank you for taking the time to read through this tutorial and hopefully you picked up useful things to help you through setting up your server and maybe in future you will be able to start using the advanced things I have mentioned here.
Will you please make it easy to read? Its the worlds longest sentice! (Hey, atleast it makes sense)




EDIT: I had a few compilation problems... But it seems to work overall.

User avatar
Light
Reverse Outside Corner Grinder
Posts: 1659
Joined: Thu Oct 20, 2011 2:11 pm

Re: sty+ct+ap server crash alot.

Post by Light »

If you type "./configure --help" you can see your options.

If you want a more automated way of doing it, you could check out my script.
http://wiki.armagetronad.org/index.php/ ... e_Easy_Way

// Edit: My script is for sty+ct, not 0.4.

User avatar
LOVER$BOY
Match Winner
Posts: 725
Joined: Thu Jan 24, 2008 12:46 pm
Contact:

Re: sty+ct+ap server crash alot.

Post by LOVER$BOY »

XD|VIPer wrote:You forgot about Protobuf on the depedacys :o
Oops... Updated now.
XD|VIPer wrote: and I don't think you need to "cd /home/{username}/" unless you are on another user (like root) and you want to compile with the folders on that other user with your user.
Maybe not, it was only a hint for you to understand.
XD|VIPer wrote:how do I compile so zonesV2 is enabled?
DO NOT put --disable-zonesv2 --enable-zonesv1. The ZonesV2 are automatically enabled so you can compile them like any other server.
XD|VIPer wrote: compiling works great on my laptop... Who knows why it doesn't work on my desktop?
Something must be in the laptop that is not in the desktop.
XD|VIPer wrote:
Thank you for taking the time to read through this tutorial and hopefully you picked up useful things to help you through setting up your server and maybe in future you will be able to start using the advanced things I have mentioned here.
Will you please make it easy to read? Its the worlds longest sentice! (Hey, atleast it makes sense)
After 2 years someone finally shows up to tell me what I had been hoping to hear for so long! I love it :D
XD|VIPer wrote:EDIT: I had a few compilation problems... But it seems to work overall.
Strange since I followed the same steps as always and had no problems at my end. Again, I wrote the tutorials so I guess I did things right and forgot to mention them? :/

For the list of full configuration of ./configure, check this out: http://vertrex.tk/wiki/index.php?title= ... Extensions
Image

Post Reply