Karma plugin crashes server ?

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

Moderators: Xymph, TM-Patrol

Post Reply
weasel
speedy pilot
speedy pilot
Posts: 341
Joined: 11 Mar 2011 23:44
Owned TM-games: TMN, TMU, TMF,TM2all

Karma plugin crashes server ?

Post by weasel » 21 Jul 2012 13:13

My server keeps crashing cause of the karma plugin.
My log : ( part of xaseco starting )

Code: Select all

[XAseco] PHP Version is 5.3.8 on WINNT
[XAseco] Load settings [config.xml]
[XAseco] Load admin/ops lists [adminops.xml]
[XAseco] Load banned IPs list [bannedips.xml]
[XAseco] Load plugins list [plugins.xml]
[XAseco] Load plugin [plugin.localdatabase.php]
[XAseco] Load plugin [plugin.rounds.php]
[XAseco] Load plugin [chat.admin.php]
[XAseco] Load plugin [chat.help.php]
[XAseco] Load plugin [chat.records.php]
[XAseco] Load plugin [chat.records2.php]
[XAseco] Load plugin [chat.recrels.php]
[XAseco] Load plugin [chat.dedimania.php]
[XAseco] Load plugin [chat.players.php]
[XAseco] Load plugin [chat.players2.php]
[XAseco] Load plugin [chat.wins.php]
[XAseco] Load plugin [chat.laston.php]
[XAseco] Load plugin [chat.lastwin.php]
[XAseco] Load plugin [chat.stats.php]
[XAseco] Load plugin [chat.server.php]
[XAseco] Load plugin [chat.songmod.php]
[XAseco] Load plugin [chat.me.php]
[XAseco] Load plugin [plugin.tmxinfo.php]
[XAseco] Load plugin [plugin.track.php]
[XAseco] Load plugin [plugin.checkpoints.php]
[XAseco] Load plugin [plugin.dedimania.php]
[XAseco] Load plugin [plugin.rasp.php]
[XAseco] Load plugin [plugin.rasp_jukebox.php]
[XAseco] Load plugin [plugin.rasp_chat.php]
[XAseco] Load plugin [plugin.rasp_nextmap.php]
[XAseco] Load plugin [plugin.rasp_nextrank.php]
[XAseco] Load plugin [plugin.rasp_votes.php]
[XAseco] Load plugin [plugin.chatlog.php]
[XAseco] Load plugin [plugin.style.php]
[XAseco] Load plugin [plugin.panels.php]
[XAseco] Load plugin [plugin.donate.php]
[XAseco] Load plugin [plugin.uptodate.php]
[XAseco] Load plugin [jfreu.plugin.php]
[XAseco] Load plugin [mistral.idlekick.php]
[XAseco] Load plugin [plugin.fufi.menu.php]
[XAseco] Load plugin [plugin.records_eyepiece.php]
[XAseco] Load plugin [plugin.tm-karma-dot-com.php]
[XAseco] Load plugin [plugin.bestcps.php]
[XAseco] Load plugin [plugin.dbtools.php]
[XAseco] Load plugin [plugin.personal_best_medals.php]
[XAseco] Load plugin [plugin.replaycharge.php]
[XAseco] Load plugin [plugin.freezone.php]
[07/21,14:31:12] Try to connect to TM dedicated server on 127.0.0.1:5005 timeout 180s
[07/21,14:31:12] Try to authenticate with login 'my pass' and password 'my pass'
[07/21,14:31:12] Connection established successfully !
[07/21,14:31:12] [LocalDB] Load config file [localdatabase.xml]
[07/21,14:31:12] [LocalDB] Try to connect to MySQL server on 'localhost' with database 'shortmaps'
[07/21,14:31:12] [LocalDB] MySQL Server Version is 5.5.16
[07/21,14:31:12] [LocalDB] Checking database structure...
[07/21,14:31:12] [LocalDB] ...Structure OK!
[07/21,14:31:12] [RASP] Loading config file [rasp.xml]
[07/21,14:31:12] [RASP] Checking database structure...
[07/21,14:31:12] [RASP] ...Structure OK!
[07/21,14:31:12] [RASP] Cleaning up unused data
[07/21,14:31:12] Load default style [styles/DarkBlur.xml]
[07/21,14:31:12] Load default admin panel [panels/AdminBelowChat.xml]
[07/21,14:31:12] Load default donate panel [panels/DonateBelowCPList.xml]
[07/21,14:31:12] Load default records panel [panels/RecordsRightBottom.xml]
[07/21,14:31:12] Load default vote panel [panels/VoteBelowChat.xml]
[07/21,14:31:13] ************* (Dedimania) *************
[07/21,14:31:13] * Dataserver connection on Dedimania ...
[07/21,14:31:13] * Try connection on http://dedimania.net:8002/Dedimania ...
[07/21,14:31:13] Webaccess (dedimania.net:8002/Dedimania.8007): send: deflate, receive: deflate
[07/21,14:31:13] * Connection and status ok! (Dedimania.8007)
[07/21,14:31:13] * NEWS (Dedimania, 08/05): news
[07/21,14:31:13] ------------- (Dedimania) -------------
[07/21,14:31:13] ***************[plugin.records_eyepiece.php]***************
[07/21,14:31:13] >> Checking Database for required extensions...
[07/21,14:31:13] >> Updating`mostfinished` counts for each Player...
[07/21,14:31:13]    + 5 entries updated.
[07/21,14:31:13] >> Updating `mostrecords` counts for each Player...
[07/21,14:31:13]    + 5 entries updated.
[07/21,14:31:13] >> Finished.
[07/21,14:31:13] ***********************************************************
[07/21,14:31:14] **********************(tm-karma.com)**********************
[07/21,14:31:14] plugin.tm-karma-dot-com.php/1.0.7 for XAseco
[07/21,14:31:14] Set Server location to "Netherlands"
[07/21,14:31:14] Trying to authenticate with central database http://worldwide.tm-karma.com/API-3.0.0.fphp ...
[07/21,14:31:56] Connection failed with  () for url [http://worldwide.tm-karma.com/API-3.0.0.fphp?Action=Auth&login=testdrive38&name=RnJlZVpvbmUgfCAkaSRvJHckRjgwTSRGRkZpbmkkRjgwTSRGRkZhcHMgJEY4MDgwSw==&game=TmForever&zone=Netherlands%7CFrysl%C3%A2n&nation=NLD], retry again later.
[07/21,14:31:56] **********************************************************
Karma seems to fail to connect tm-karma.com and there for crashes xaseco.

What can I do about it ?
Last edited by Xymph on 21 Jul 2012 16:23, edited 1 time in total.
Reason: Use code tags for code/configs/logs...

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

Re: Karma plugin crashes server ?

Post by undef.de » 21 Jul 2012 16:15

weasel wrote:

Code: Select all

[07/21,14:31:14] **********************(tm-karma.com)**********************
[07/21,14:31:14] plugin.tm-karma-dot-com.php/1.0.7 for XAseco
[07/21,14:31:14] Set Server location to "Netherlands"
[07/21,14:31:14] Trying to authenticate with central database http://worldwide.tm-karma.com/API-3.0.0.fphp ...
[07/21,14:31:56] Connection failed with  () for url [http://worldwide.tm-karma.com/API-3.0.0.fphp?Action=Auth&login=testdrive38&name=RnJlZVpvbmUgfCAkaSRvJHckRjgwTSRGRkZpbmkkRjgwTSRGRkZhcHMgJEY4MDgwSw==&game=TmForever&zone=Netherlands%7CFrysl%C3%A2n&nation=NLD], retry again later.
[07/21,14:31:56] **********************************************************
Karma seems to fail to connect tm-karma.com and there for crashes xaseco.

What can I do about it ?
Just try it later as told in the message. The database server was flooded so there was too much connections and these are limited.
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

weasel
speedy pilot
speedy pilot
Posts: 341
Joined: 11 Mar 2011 23:44
Owned TM-games: TMN, TMU, TMF,TM2all

Re: Karma plugin crashes server ?

Post by weasel » 21 Jul 2012 16:32

Thanks Def. for responce.

When server does crash , is it possible that xaseco restart itself ?

I drive a lot on minizone and xaseco is very often off there, I find that very anoying, so is it possible to restart itself ?

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

Re: Karma plugin crashes server ?

Post by undef.de » 21 Jul 2012 16:50

weasel wrote:Thanks Def. for responce.

When server does crash , is it possible that xaseco restart itself ?

I drive a lot on minizone and xaseco is very often off there, I find that very anoying, so is it possible to restart itself ?
Yes that's possible, you just need a bash script that starts XAseco all the time when XAseco exits. Like:

Code: Select all

#! /bin/sh
# Author: undef.de
# Date: 2012-07-21

# Return the PID from THIS Script
echo $$

XASECO="/path/to/xaseco"

while [ true ]
        do
		if [ -f $XASECO/../logs/xaseco.log ]; then
			DATE=`date +"%Y-%m-%d_%H-%M-%S"`
			mv $XASECO/../logs/xaseco.log $XASECO/../logs/xaseco-$DATE.log
		fi

		if [ -f $XASECO/logfile.txt ]; then
			rm $XASECO/logfile.txt
		fi

		sleep 5s;

		/usr/bin/php $XASECO/aseco.php TMU </dev/null > $XASECO/../logs/xaseco.log 2>&1
	done
Edit: Don't ask for Windows, i never started a server under Windows. ;)
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

weasel
speedy pilot
speedy pilot
Posts: 341
Joined: 11 Mar 2011 23:44
Owned TM-games: TMN, TMU, TMF,TM2all

Re: Karma plugin crashes server ?

Post by weasel » 22 Jul 2012 00:13

mm and I'm running windows :(

Thanks anyway.

Post Reply