[XAseco] XAseco crash rebooter

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [XAseco] XAseco crash rebooter

Post by Ant » 03 Feb 2010 03:41

ok I changed $dedi_debug, refresh and timeout values in this section

Code: Select all

// how many seconds before retrying connection
$dedi_timeout = 60;  // 1 mins
// how many seconds before reannouncing server
$dedi_refresh = 120;   // 2 mins
// minimum author & finish times that are still accepted
$dedi_minauth = 8000;  // 8 secs
$dedi_mintime = 6000;  // 6 secs
$dedi_debug = 4;  // max debug level = 4
and got this

Code: Select all

[XAseco] Connection established successfully !
[Local DB] Load settings file [localdatabase.xml]
[Local DB] Try to connect to MySQL server on '127.0.0.1' with database 'xaseco'
[Local DB] MySQL Server Version is 5.1.41
[RASP] Cleaning up unused data
*-*-*-*-*-* RASP is running! *-*-*-*-*-*
|...Loading Settings
|...Loaded!
|...Checking database structure
|...Structure OK!
|...Calculating ranks
|...Done!
[RASP] Pruning records/rs_times for deleted tracks
[02/03,03:34:26] Load default style [styles/DarkBlur.xml]
[02/03,03:34:26] Load default admin panel [panels/AdminBelowChat.xml]
[02/03,03:34:26] Load default donate panel [panels/DonateBelowCPList.xml]
[02/03,03:34:26] Load default records panel [panels/RecordsRightBottom.xml]
[02/03,03:34:26] Load default vote panel [panels/VoteBelowChat.xml]
[02/03,03:34:26] ## ## ##  Lottery initialized! Ignored players: 0  ## ## ##
[02/03,03:34:26] ************* (Dedimania) *************
[02/03,03:34:26] * Dataserver connection on Dedimania ...
[02/03,03:34:26] * Try connection on http://dedimania.net:8018/Dedimania ...
[02/03,03:34:26] Webaccess (dedimania.net:80): send: deflate, receive: gzip
databaseInit - response
Array
(
    [methodResponse] => dedimania.ValidateAccount
    [params] => Array
        (
            [Status] => 1
            [Messages] => Array
                (
                    [0] => Array
                        (
                            [Date] => 08/05
                            [Text] => news
                        )

                )

        )

    [errors] => 
    [TTR] => 1.00000000001E-5
    [globalTTR] => 0.00172
)

[02/03,03:34:26] * Connection and status ok! :)
[02/03,03:34:26] * NEWS (Dedimania, 08/05): news
[02/03,03:34:26] ------------- (Dedimania) -------------
[02/03,03:34:26] Load stats panel [panels/StatsUnited.xml]
###############################################################################
  XASECO v1.10 running on 127.0.0.1:5003
  Name   : XXX-Ant Forever - xxxantunited
  Game   : TmForever United - Stadium - TimeAttack
  Version: 2.11.23 / 2009-11-19
  Authors: Florian Schnell & Assembler Maniac
  Re-Authored: Xymph
###############################################################################
Begin Challenge
dedimania_newchallenge - challenge
Challenge Object
(
    [id] => 97
    [name] => $w$f00XXX $0f0Community $fffTrack
    [uid] => 4LUvw9elxtfWUQ6yMXZ_mbAOBJd
    [filename] => Challenges\My Challenges\$w$f00XXX $0f0Community $fffTrack.Challenge.Gbx
    [author] => XXX_Community
    [environment] => Stadium
    [mood] => Day
    [bronzetime] => 74000
    [silvertime] => 61000
    [goldtime] => 55000
    [authortime] => 51740
    [copperprice] => 3790
    [laprace] => 
    [forcedlaps] => 0
    [nblaps] => 0
    [nbchecks] => 9
    [score] => 
    [votes] => 0
    [starttime] => 
    [gbx] => GBXChallengeFetcher Object
        (
            [filename] => C:\TrackmaniaServer_2009-11-19\GameData\Tracks\Challenges\My Challenges\$w$f00XXX $0f0Community $fffTrack.Challenge.Gbx
            [parsexml] => 1
            [tnimage] => 
            [uid] => 4LUvw9elxtfWUQ6yMXZ_mbAOBJd
            [version] => 4
            [name] => $w$f00XXX $0f0Community $fffTrack
            [author] => XXX_Community
            [type] => Race
            [envir] => Stadium
            [mood] => Day
            [pub] => Nadeo
            [authortm] => 51740
            [goldtm] => 55000
            [silvertm] => 61000
            [bronzetm] => 74000
            [coppers] => 3790
            [multi] => 
            [unknown] => 0
            [unknown2] => 
            [ascore] => 218
            [password] => 1A62B9441713
            [xml] => <header type="challenge" version="TMc.5" exever="0.1.7.8">
<ident uid="4LUvw9elxtfWUQ6yMXZ_mbAOBJd" name="%24w%24f00XXX+%240f0Community+%24fffTrack" author="XXX_Community"/>
<desc envir="Stadium" mood="Day" type="Race" nblaps="0" price="3790" />
<times bronze="74000" silver="61000" gold="55000" authortime="51740" authorscore="218"/>
<deps>
<dep file="Any\Advertisement\SignRight.bik"/>
<dep file="Any\Advertisement\SignDown.bik"/>
<dep file="Any\Advertisement\xxx-wales2.jpg"/>
<dep file="Any\Advertisement\SignWarning.bik"/>
<dep file="Any\Advertisement\SignUp.bik"/>
<dep file="Any\Advertisement\SignLeft.bik"/>
<dep file="ChallengeMusics\Blur-Song2.mux"/>
<dep file="MediaTracker\Images\xxx-wales2.jpg"/>
</deps>
</header>
            [parsedxml] => Array
                (
                    [HEADER] => Array
                        (
                            [TYPE] => challenge
                            [VERSION] => TMc.5
                            [EXEVER] => 0.1.7.8
                        )

                    [IDENT] => Array
                        (
                            [UID] => 4LUvw9elxtfWUQ6yMXZ_mbAOBJd
                            [NAME] => $w$f00XXX $0f0Community $fffTrack
                            [AUTHOR] => XXX_Community
                        )

                    [DESC] => Array
                        (
                            [ENVIR] => Stadium
                            [MOOD] => Day
                            [TYPE] => Race
                            [NBLAPS] => 0
                            [PRICE] => 3790
                        )

                    [TIMES] => Array
                        (
                            [BRONZE] => 74000
                            [SILVER] => 61000
                            [GOLD] => 55000
                            [AUTHORTIME] => 51740
                            [AUTHORSCORE] => 218
                        )

                    [DEPS] => Array
                        (
                            [0] => Array
                                (
                                    [FILE] => Any\Advertisement\SignRight.bik
                                )

                            [1] => Array
                                (
                                    [FILE] => Any\Advertisement\SignDown.bik
                                )

                            [2] => Array
                                (
                                    [FILE] => Any\Advertisement\xxx-wales2.jpg
                                )

                            [3] => Array
                                (
                                    [FILE] => Any\Advertisement\SignWarning.bik
                                )

                            [4] => Array
                                (
                                    [FILE] => Any\Advertisement\SignUp.bik
                                )

                            [5] => Array
                                (
                                    [FILE] => Any\Advertisement\SignLeft.bik
                                )

                            [6] => Array
                                (
                                    [FILE] => ChallengeMusics\Blur-Song2.mux
                                )

                            [7] => Array
                                (
                                    [FILE] => MediaTracker\Images\xxx-wales2.jpg
                                )

                        )

                )

            [xmlver] => TMc.5
            [exever] => 0.1.7.8
            [nblaps] => 0
            [songfile] => Blur-Song2.mux
            [modname] => 
            [modfile] => 
            [thumbnail] => 
            [comment] => 
        )

    [tmx] => TMXInfoFetcher Object
        (
            [section] => TMN
            [prefix] => nations
            [uid] => 4LUvw9elxtfWUQ6yMXZ_mbAOBJd
            [id] => 811871
            [records] => 1
            [name] => XXX Community Track
            [userid] => 803961
            [author] => XXX Community
            [uploaded] => 2007-02-28 12:45:47
            [updated] => 2007-02-28 12:45:47
            [visible] => 1
            [type] => Race
            [envir] => Stadium
            [mood] => Day
            [style] => Race
            [routes] => Single
            [length] => 45s
            [diffic] => Intermediate
            [lbrating] => 7932
            [awards] => 3
            [comments] => 2
            [custimg] => 1
            [game] => TM Nations
            [acomment] => XXX Comunity Track<br /><br />Started this afew days ago and this is what we came up with. Enjoy<br />Push Forward Start and a neat little jump with afew loops and jumps all so, Techy bit near the end<br /><br />Authors Include <br />XXX-Dazzler, XXX El Fuego, ICEMD, XXX King, XXX MARRA and XXX-MAX<br /><br />Wallrides 0<br />Loops 4<br />Jump 2<br />Posts 4<br />Turbos 13 ( 2 backwards )<br />3790 C<br />INTRO YES<br />INGAME YES<br />OUTRO YES<br />Author Time 51.74<br /><br />With Music by Blur - Song 2 1.6mg<br />Thanks for all who took part in putting this together<br /><br />Please add replays and :award: if you like it
            [pageurl] => http://nations.tm-exchange.com/main.aspx?action=trackshow&id=811871
            [replayid] => 916104
            [replayurl] => http://nations.tm-exchange.com/get.aspx?action=recordgbx&id=916104
            [imageurl] => http://nations.tm-exchange.com/get.aspx?action=trackscreen&id=811871
            [thumburl] => http://nations.tm-exchange.com/get.aspx?action=trackscreensmall&id=811871
            [dloadurl] => http://nations.tm-exchange.com/get.aspx?action=trackgbx&id=811871
            [recordlist] => Array
                (
                    [0] => Array
                        (
                            [replayid] => 916104
                            [userid] => 77155
                            [name] => jusa
                            [time] => 50220
                            [replayat] => 2007-04-30 13:03:38
                            [trackat] => 2007-02-28 12:45:47
                            [approved] => True
                            [score] => 7932
                            [expires] => 
                            [lockspan] => 
                        )

                    [1] => Array
                        (
                            [replayid] => 812352
                            [userid] => 286394
                            [name] => ICEMD
                            [time] => 51160
                            [replayat] => 2007-02-28 16:07:38
                            [trackat] => 2007-02-28 12:45:47
                            [approved] => True
                            [score] => 7041
                            [expires] => 
                            [lockspan] => 
                        )

                    [2] => Array
                        (
                            [replayid] => 811929
                            [userid] => 301646
                            [name] => XXX-KING
                            [time] => 51240
                            [replayat] => 2007-02-28 13:12:49
                            [trackat] => 2007-02-28 12:45:47
                            [approved] => True
                            [score] => 6965
                            [expires] => 
                            [lockspan] => 
                        )

                    [3] => Array
                        (
                            [replayid] => 812403
                            [userid] => 527805
                            [name] => siteguru
                            [time] => 51940
                            [replayat] => 2007-02-28 16:58:10
                            [trackat] => 2007-02-28 12:45:47
                            [approved] => True
                            [score] => 6302
                            [expires] => 
                            [lockspan] => 
                        )

                    [4] => Array
                        (
                            [replayid] => 812059
                            [userid] => 550922
                            [name] => Dazzler
                            [time] => 52570
                            [replayat] => 2007-02-28 14:03:39
                            [trackat] => 2007-02-28 12:45:47
                            [approved] => True
                            [score] => 5705
                            [expires] => 
                            [lockspan] => 
                        )

                )

        )

)

dedimania_serverinfo - serverinfo
Array
(
    [SrvName] => $W$F00XXX-$FFFAnt$0f0 Forever
    [Comment] => $wNow with a fresh new Look!$z
$l[http://www.teamspeak.com/?page=downloads&archive=1]$w$fffTeamSpeak 2$l $Zis available for voice chat here !!
Please also visit the $l[http://xxx-ant.awardspace.co.uk/]$W$F00Server $FFFWebsite$l
    [Private] => 
    [SrvIP] => 
    [SrvPort] => 0
    [XmlrpcPort] => 0
    [NumPlayers] => 0
    [MaxPlayers] => 35
    [NumSpecs] => 0
    [MaxSpecs] => 35
    [LadderMode] => 1
    [NextFiveUID] => cQSV07B3oDexgsXEvVvdBKUXko5
)

dedimania_players - players
Array
(
)

[02/03,03:34:27] forceMods: Stadium=>LoadScreen Island=>LoadScreen Speed=>LoadScreen Rally=>LoadScreen Bay=>LoadScreen Coast=>LoadScreen Alpine=>LoadScreen
[02/03,03:34:27] track changed [none] >> [XXX Community Track]
[02/03,03:34:27] currently no record on XXX Community Track
[02/03,03:34:28] Webaccess (dedimania.net:8018): send: deflate, receive: deflate
dedimania_newchallenge_cb - response
Array
(
    [Code] => 200
    [Reason] => OK
    [Headers] => Array
        (
            [Command] => Array
                (
                    [0] => HTTP/1.1
                    [1] => 200
                    [2] => OK
                )

            [date] => Array
                (
                    [0] => Wed
                    [1] =>  3 Feb 2010 03:34:14 GMT
                )

            [server] => Array
                (
                    [0] => Dedimania
                )

            [accept-ranges] => Array
                (
                    [0] => bytes
                )

            [content-length] => Array
                (
                    [0] => 386
                )

            [keep-alive] => Array
                (
                    [0] => timeout=600
                    [1] =>  max=2000
                    [timeout] => 600
                    [max] => 2000
                )

            [connection] => Array
                (
                    [0] => Keep-Alive
                )

            [content-type] => Array
                (
                    [0] => text/html; charset=UTF-8
                )

            [accept-encoding] => Array
                (
                    [0] => deflate
                    [1] =>  gzip
                )

            [content-encoding] => Array
                (
                    [0] => deflate
                )

        )

    [Message] => <?xml version="1.0" encoding="UTF-8" ?>
<methodResponse>
<params>
<param>
<value><array><data><value><array><data><value><boolean>1</boolean></value></data></array></value><value><array><data><value><struct><member><name>Uid</name><value><string>4LUvw9elxtfWUQ6yMXZ_mbAOBJd</string></value></member><member><name>TotalRaces</name><value><int>0</int></value></member><member><name>TotalPlayers</name><value><int>0</int></value></member><member><name>TimeAttackRaces</name><value><int>0</int></value></member><member><name>TimeAttackPlayers</name><value><int>0</int></value></member><member><name>NumberOfChecks</name><value><int>0</int></value></member><member><name>ServerMaxRecords</name><value><int>30</int></value></member><member><name>Records</name><value><array><data></data></array></value></member></struct></value></data></array></value><value><array><data><value><struct><member><name>globalTTR</name><value><double>0.003661</double></value></member><member><name>methods</name><value><array><data><value><struct><member><name>methodName</name><value><string>dedimania.Authenticate</string></value></member><member><name>errors</name><value><string></string></value></member><member><name>TTR</name><value><double>0.000861</double></value></member></struct></value><value><struct><member><name>methodName</name><value><string>dedimania.CurrentChallenge</string></value></member><member><name>errors</name><value><string></string></value></member><member><name>TTR</name><value><double>0.001355</double></value></member></struct></value></data></array></value></member></struct></value></data></array></value></data></array></value>
</param>
</params>
</methodResponse>
    [Data] => Array
        (
            [methodResponse] => dedimania.CurrentChallenge
            [params] => Array
                (
                    [Uid] => 4LUvw9elxtfWUQ6yMXZ_mbAOBJd
                    [TotalRaces] => 0
                    [TotalPlayers] => 0
                    [TimeAttackRaces] => 0
                    [TimeAttackPlayers] => 0
                    [NumberOfChecks] => 0
                    [ServerMaxRecords] => 30
                    [Records] => Array
                        (
                        )

                )

            [errors] => 
            [TTR] => 0.001355
            [globalTTR] => 0.003661
        )

)

dedimania_newchallenge_cb - records
Array
(
)

show_dedirecs - dedi_recs
Array
(
)
nocturne wrote:As for an autorestart on dedimania timing out, perhaps use the $dedi_db global and run a function on the main loop event to restart if(!dedi_db).
I'll look into that, but I doubt i'll get it to work to be honest :?

nocturne
solid chaser
solid chaser
Posts: 1390
Joined: 08 Jun 2007 18:48
Owned TM-games: all
Contact:

Re: [XAseco] XAseco crash rebooter

Post by nocturne » 03 Feb 2010 04:59

Oye... how high did you set the debug level..? :shock:

Nothing in that bit of logging shows any problems -- everything connected just fine it seems, at least in that instance.

Anyways, might want to check out this thread. It seemed to fix my dedimania read timeout errors, but I never got any confirmation that it's a proper fix.

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [XAseco] XAseco crash rebooter

Post by Ant » 03 Feb 2010 16:15

well I tried that fix - replacing break with return yeah? and got this

Code: Select all

[XAseco] Connection established successfully !
[Local DB] Load settings file [localdatabase.xml]
[Local DB] Try to connect to MySQL server on '127.0.0.1' with database 'xaseco'
[Local DB] MySQL Server Version is 5.1.41
[RASP] Cleaning up unused data
*-*-*-*-*-* RASP is running! *-*-*-*-*-*
|...Loading Settings
|...Loaded!
|...Checking database structure
|...Structure OK!
|...Calculating ranks
|...Done!
[RASP] Pruning records/rs_times for deleted tracks
[02/03,16:10:35] Load default style [styles/DarkBlur.xml]
[02/03,16:10:35] Load default admin panel [panels/AdminBelowChat.xml]
[02/03,16:10:35] Load default donate panel [panels/DonateBelowCPList.xml]
[02/03,16:10:35] Load default records panel [panels/RecordsRightBottom.xml]
[02/03,16:10:35] Load default vote panel [panels/VoteBelowChat.xml]
[02/03,16:10:36] ## ## ##  Lottery initialized! Ignored players: 0  ## ## ##
[02/03,16:10:36] ************* (Dedimania) *************
[02/03,16:10:36] * Dataserver connection on Dedimania ...
[02/03,16:10:36] * Try connection on http://dedimania.net:8007/Dedimania ...
[02/03,16:10:36] Webaccess (dedimania.net:80): send: deflate, receive: gzip
[02/03,16:10:36] * Connection and status ok! :)
  !!!
  !!! ...with an authentication warning: Warning in rpc.php(170): AuthWarning:
Error in method_helper.php(371): More than 1 tool: XASECO / 1.10 !
[02/03,16:10:36] * NEWS (Dedimania, 08/05): news
[02/03,16:10:36] ------------- (Dedimania) -------------
[02/03,16:10:36] Load stats panel [panels/StatsUnited.xml]
###############################################################################
  XASECO v1.10 running on 127.0.0.1:5003
  Name   : XXX-Ant Forever - xxxantunited
  Game   : TmForever United - Stadium - TimeAttack
  Version: 2.11.23 / 2009-11-19
  Authors: Florian Schnell & Assembler Maniac
  Re-Authored: Xymph
###############################################################################
Begin Challenge
[02/03,16:10:36] forceMods: Stadium=>LoadScreen Island=>LoadScreen Speed=>LoadScreen Rally=>LoadScreen Bay=>LoadScreen Coast=>LoadScreen Alpine=>LoadScreen
[02/03,16:10:36] track changed [none] >> [FierCe]
[02/03,16:10:36] current record on FierCe is 0:49.07 and held by ΣЯᄽFįĮsęķçżᄿ
[02/03,16:10:38] Webaccess (dedimania.net:8007): send: deflate, receive: deflate
xmlrpc_auth_cb() - response[Data][errors]
Error in method_helper.php(515): More than 1 tool: XASECO / 1.10 !
End Round
End Challenge
|...Calculating ranks
|...Done!
[02/03,16:11:45] set new timelimit for [MARIO KART FOREVER]: 6:41 (Author time: 1:06.85)
Begin Challenge
[02/03,16:11:46] forceMods: Stadium=>LoadScreen Island=>LoadScreen Speed=>LoadScreen Rally=>LoadScreen Bay=>LoadScreen Coast=>LoadScreen Alpine=>LoadScreen
[02/03,16:11:46] track changed [FierCe] >> [MARIO KART FOREVER]
[02/03,16:11:46] current record on MARIO KART FOREVER is 1:10.16 and held by ςτυ³º8
Begin Round
Changed it back, and then this still happened !!

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [XAseco] XAseco crash rebooter

Post by Ant » 03 Feb 2010 17:48

ok I saw this in v1.10 thread
Xymph wrote:
[TR]Lexicon wrote:Error in method_helper.php(515): More than 1 tool: XASECO / 1.10 !
Every (XAseco) server gets this, the Dedimania database crashed yesterday. Slig fixed it this afternoon by restoring the backup from yesterday early morning, but since then this new problem crops up. I've once again alerted Slig via email, but I don't know how long it'll take before he gets around to this one.
So, i'll put it back to return and see if it times out anymore.

nocturne
solid chaser
solid chaser
Posts: 1390
Joined: 08 Jun 2007 18:48
Owned TM-games: all
Contact:

Re: [XAseco] XAseco crash rebooter

Post by nocturne » 03 Feb 2010 22:04

Well, if dedimania times out or can't be connected to, there's not a whole lot that can be done besides lowering the timeout to perhaps 5-10 minutes or so. As long as the plugin is working properly, it'll attempt and reattempt to connect to DM, and eventually give up and try again after the timeout ends.

The issue with the webaccess include is that upon a read timeout, it still attempts to use the connection that's already been closed, thus holding up the script from doing anything else.

User avatar
Ant
TM-Patrol
TM-Patrol
Posts: 1845
Joined: 01 Dec 2007 17:04
Owned TM-games: TMN, TMUF, TM Wii
Location: London, England
Contact:

Re: [XAseco] XAseco crash rebooter

Post by Ant » 05 Feb 2010 03:19

nice, since your tip on that web_access.inc.php, I haven't had that timeout/connection failure problem again yet !

Maximuson
cyclist
cyclist
Posts: 43
Joined: 25 Nov 2010 05:27
Owned TM-games: TMU

Re: [XAseco] XAseco crash rebooter

Post by Maximuson » 20 Mar 2013 07:26

how to restart xaseco2? when he crash
automaticaly without admins

Naveronasis
road tourist
road tourist
Posts: 90
Joined: 01 May 2008 21:20
Owned TM-games: United

Re: [XAseco] XAseco crash rebooter

Post by Naveronasis » 13 Apr 2016 04:24

Yeah can you get this working for xaseco2? :D?

User avatar
undef.de
Pit Crew
Pit Crew
Posts: 1305
Joined: 31 Aug 2009 18:38
Owned TM-games: TMF, TM2C/S/V, SM
Manialink(s): undef, tmkarma
Location: Germany
Contact:

Re: [XAseco] XAseco crash rebooter

Post by undef.de » 13 Apr 2016 20:58

Developer of various plugins for XAseco/XAseco2 and MPAseco,
like Records-Eyepiece, TM-Karma, Alternate Scoretable...
Visit my Lab: www.undef.name

Get it now:
» TM2 Valley
» TM2 Canyon
» TM2 Stadium
» SM Storm

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 4 guests