Odd Xaseco problem

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
User avatar
Leigham
happy cruiser
happy cruiser
Posts: 139
Joined: 26 Mar 2011 01:04
Owned TM-games: TMUF, TMNF, TM²
Manialink(s): None

Odd Xaseco problem

Post by Leigham » 29 Mar 2011 17:11

Hey guys,

So here's what happens, every so often, xaseco will shut down. It doesn't write any errors in the log, it just stops working. The last thing in the log is always the beginning of a round. That would be annoying enough, but even more strangely it shuts down almost simultaneously on both servers running on our host, even though there should be nothing connecting the two.

Here's an extract of code showing what happens, although I doubt it'll help...

Code: Select all

[XAseco] PHP Version is 5.2.6-1+lenny10 on Linux
[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.stats.php]
[XAseco] Load plugin [chat.server.php]
[XAseco] Load plugin [chat.songmod.php]
[XAseco] Load plugin [chat.me.php]
[XAseco] Load plugin [plugin.matchsave.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.teamspeak3.php]
[XAseco] Load plugin [plugin.info_widget.php]
[XAseco] Load plugin [plugin.personal_best_checkpoints.php]
[XAseco] Load plugin [plugin.alternate_scoretable.php]
[XAseco] Load plugin [plugin.server_neighborhood.php]
[XAseco] Load plugin [plugin.style.php]
[XAseco] Load plugin [plugin.forceMods.php]
[XAseco] Load plugin [plugin.panels.php]
[XAseco] Load plugin [plugin.musicserver.php]
[XAseco] Load plugin [plugin.uptodate.php]
[XAseco] Load plugin [plugin.rpoints.php]
[XAseco] Load plugin [plugin.autotime.php]
[XAseco] Load plugin [jfreu.plugin.php]
[XAseco] Load plugin [plugin.milenco.php]
[XAseco] Load plugin [plugin.fufi.menu.php]
[XAseco] Load plugin [plugin.fufi.widgets.php]
[XAseco] Load plugin [plugin.bestcps.php]
[XAseco] Load plugin [plugin.tm-karma-dot-com.php]
[XAseco] Load plugin [plugin.cpinfo.php]
[XAseco] Load plugin [plugin.teamspeak3.php]
[03/27,06:56:57] Try to connect to TM dedicated server on 127.0.0.1:5002
[03/27,06:56:57] Try to authenticate with login 'SuperAdmin' and password 'Censored'
[03/27,06:56:57] Connection established successfully !
[03/27,06:56:57] [LocalDB] Load config file [localdatabase.xml]
[03/27,06:56:57] [LocalDB] Try to connect to MySQL server on 'localhost' with database 'aseco'
[03/27,06:56:57] [LocalDB] MySQL Server Version is 5.0.51a-24+lenny5
[03/27,06:56:57] [LocalDB] Checking database structure...
[03/27,06:56:57] [LocalDB] Add 'players_extra' primary key 'playerID'...
[03/27,06:56:57] [LocalDB] ...Structure OK!
[03/27,06:56:57] [RASP] Loading config file [rasp.xml]
[03/27,06:56:57] [RASP] Checking database structure...
[03/27,06:56:57] [RASP] ...Structure OK!
[03/27,06:56:57] [RASP] Cleaning up unused data
[03/27,06:56:57] Load default style [styles/DarkBlur.xml]
[03/27,06:56:57] Load default admin panel [panels/AdminCallVote.xml]
[03/27,06:56:57] Load default donate panel [panels/DonateBelowCPList.xml]
[03/27,06:56:57] Load default vote panel [panels/VoteBelowChat.xml]
[03/27,06:56:58] ************* (Dedimania) *************
[03/27,06:56:58] * Dataserver connection on Dedimania ...
[03/27,06:56:58] * Try connection on http://dedimania.net:8002/Dedimania ...
[03/27,06:56:58] Webaccess (dedimania.net:8002): send: deflate, receive: deflate
[03/27,06:56:58] * Connection and status ok! (Dedimania.8010)
[03/27,06:56:58] * NEWS (Dedimania, 08/05): news
[03/27,06:56:58] ------------- (Dedimania) -------------
[03/27,06:56:58] Load stats panel [panels/StatsUnited.xml]
[03/27,06:56:58] Load music server config [musicserver.xml]
[03/27,06:56:58] Load auto timelimit config [autotime.xml]
[03/27,06:56:59] **********************(tm-karma.com)**********************
[03/27,06:56:59] plugin.tm-karma-dot-com.php/1.0.1 for xaseco
[03/27,06:56:59] Set Server location to >United Kingdom<
[03/27,06:56:59] Trying to authenticate with central database http://worldwide.tm-karma.com/API-v2 ...
[03/27,06:56:59] Successfully started, AuthCode for this session is "2bb1f42ffa1a2ac0996b4fd8afc8884c"
[03/27,06:56:59] **********************************************************
[03/27,06:56:59] << player 160 joined the game [cdb.89 : $o$00f[ѕ$fffғ$00fт] $69fƒυ$00f$67fѕι$69fση : United Kingdom : 137767 : 217.158.255.174]
###############################################################################
  XASECO v1.12 running on 127.0.0.1:5002
  Name   : SFT - Scottish Flat Trax - notreallyfs
  Game   : TmForever United - Stadium - TimeAttack
  Version: 2.11.26 / 2010-03-15
  Authors: Florian Schnell & Assembler Maniac
  Re-Authored: Xymph
###############################################################################
Begin Challenge
[03/27,06:57:01] forceMods: Stadium=>loadscreen2
[03/27,06:57:01] track changed [none] >> [~TheJourney~]
[03/27,06:57:01] current record on ~TheJourney~ is 0:47.35 and held by [ѕғт]ΡΞρρϊ
The tracks are never the same that I can tell, but it always crashes after writing that.

Thanks for any help or opinions you can offer.

Leigham
"Never surrender, sometimes retreat"

Image

Scottish Flat Trax servers

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

Re: Odd Xaseco problem

Post by nocturne » 29 Mar 2011 18:50

I'd check your php config to make sure the error reporting bits are set up properly. As long as error reporting is enabled, you should see any error causing the script to shutdown (unless something on your setup is sending a command to 'kill' it).
Chief Janitorial Supervisor of the Let'sRock! TM community : www.LetsRock-TM.com

User avatar
Leigham
happy cruiser
happy cruiser
Posts: 139
Joined: 26 Mar 2011 01:04
Owned TM-games: TMUF, TMNF, TM²
Manialink(s): None

Re: Odd Xaseco problem

Post by Leigham » 30 Mar 2011 22:25

Nothing wrong with the error reporting, everything logs properly.
"Never surrender, sometimes retreat"

Image

Scottish Flat Trax servers

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: Odd Xaseco problem

Post by Ant » 30 Mar 2011 22:43

I noticed this line in your log

Code: Select all

[03/27,06:56:57] [LocalDB] Add 'players_extra' primary key 'playerID'...
That shouldn't keep happening, it happened to me a while back and Xymph helped me fix it.

Have a look at this post and the few related posts after it, when you've done everything (might be a long process by the way to fix your database) your problem should be (hopefully) fixed.

User avatar
Leigham
happy cruiser
happy cruiser
Posts: 139
Joined: 26 Mar 2011 01:04
Owned TM-games: TMUF, TMNF, TM²
Manialink(s): None

Re: Odd Xaseco problem

Post by Leigham » 31 Mar 2011 17:13

Hey Ant,

Thanks for the reply, in the middle of sorting through that now.

The problem exists on both databases apparently, not sure whether it would cause xaseco to shut down simultaneously though?

I'll fix it and see what happens :)

Leigham

EDIT: Ok I've fixed that, there were two duplicates, no idea how they got there, but thanks for letting me know :) It's started up fine so now we'll just wait and see if it crashes anytime soon.
"Never surrender, sometimes retreat"

Image

Scottish Flat Trax servers

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: Odd Xaseco problem

Post by Ant » 31 Mar 2011 20:13

No probs mate, hopefully you'll be fine though. Dunno about the simultaneous crashes really, but if you do get another crash you should at least get some sort of error message now to point you in the right direction of a fix.

User avatar
Leigham
happy cruiser
happy cruiser
Posts: 139
Joined: 26 Mar 2011 01:04
Owned TM-games: TMUF, TMNF, TM²
Manialink(s): None

Re: Odd Xaseco problem

Post by Leigham » 03 Apr 2011 23:42

Ok, minor update. Basically after combing through all the plugins (and fixing a couple of little errors) the problem still happens. I've managed to work out that it's something to do with both xaseco processes running at the same time. I can run either one on its own with no problems, but as soon as I start up the other they'll both eventually crash, and keep crashing. The xasecos are running to different ports, and they're running under different users and using different databases. Can anyone think of any reason they might interact and crash?
"Never surrender, sometimes retreat"

Image

Scottish Flat Trax servers

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: Odd Xaseco problem

Post by Ant » 04 Apr 2011 14:26

Nothing in either log this time ?

Anyway, try looking at the usbTMFserver 2.8 thread. That has a setup that can run multiple servers, maybe it could help ?

User avatar
Leigham
happy cruiser
happy cruiser
Posts: 139
Joined: 26 Mar 2011 01:04
Owned TM-games: TMUF, TMNF, TM²
Manialink(s): None

Re: Odd Xaseco problem

Post by Leigham » 04 Apr 2011 16:41

No there are never any errors. And our system runs on debian linux so a package that runs on windows probably won't help.

Leigham
"Never surrender, sometimes retreat"

Image

Scottish Flat Trax servers

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: Odd Xaseco problem

Post by Ant » 04 Apr 2011 17:38

I wasn't talking about using the webserver package, I meant take a look at its configuration and compare that to yours to see if there's something you missed.

Everything there (apart from MoWeS) is compatible with linux.

Post Reply