xaseco on ubuntu linux server wont start

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

Moderators: Xymph, TM-Patrol

MertenNor
pedestrian
pedestrian
Posts: 13
Joined: 13 Sep 2014 12:04
Owned TM-games: TMNF

xaseco on ubuntu linux server wont start

Post by MertenNor » 14 Sep 2014 11:02

Hi..
I have followed the guide over at: http://www.gamers.org/tmf/quickstart.html
and done all the steps..

I get 1Warning when trying to load the SQL database:

Code: Select all

Database changed
mysql> SOURCE /home/morten/tmf/xaseco/localdb/aseco.sql;
Query OK, 0 rows affected, 1 warning (0.00 sec)

Query OK, 0 rows affected, 1 warning (0.00 sec)

Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> SOURCE /home/morten/tmf/xaseco/localdb/rasp.sql;
Query OK, 0 rows affected, 1 warning (0.00 sec)

Query OK, 0 rows affected, 1 warning (0.00 sec)

Query OK, 0 rows affected, 1 warning (0.01 sec)

mysql> SOURCE /home/morten/tmf/xaseco/localdb/extra.sql;
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql>
and the logfile returns this:

Code: Select all

[XAseco] PHP Version is 5.3.10-1ubuntu3.14 on Linux
[XAseco] Load settings [config.xml]
That is all it returns..

I tried to go in to the server on LAN (because I need a FreeZone Plugin to be able to connect to the server over the internet)
but nothing changed..

if you are able to help me that would be great.
Thanks.
-MertenNor

oh btw..
I need to start the TMN Server twice before it shows up in the LAN section with I do by:

Code: Select all

./TrackmaniaServer /game_settings=MatchSettings/settings_match.txt /dedicated_cfg=dedicated_cfg.txt
Last edited by Xymph on 16 Sep 2014 16:44, edited 2 times in total.
Reason: Do NOT delete the original post that started a topic...

Xymph
Pit Crew
Pit Crew
Posts: 5698
Joined: 19 Aug 2007 12:58
Owned TM-games: TMN, TMU, TMF, TM²
Contact:

Re: xaseco on ubuntu linux server wont start

Post by Xymph » 14 Sep 2014 16:04

config.xml line 8 "format:" must remain commented out.
Developer of XASECO for TMF/TMN ESWC & XASECO2 for TM²: see XAseco.org
Find your way around the Mania community from the TMN ESWC hub, TMF hub, TM² hub, and SM hub

MertenNor
pedestrian
pedestrian
Posts: 13
Joined: 13 Sep 2014 12:04
Owned TM-games: TMNF

Re: xaseco on ubuntu linux server wont start

Post by MertenNor » 14 Sep 2014 16:05

Xymph wrote:config.xml line 8 "format:" must remain commented out.
ah ok Ill try that and see if it works.. :)

EDIT: still same error..
config file:

Code: Select all

    <masteradmins>
      <!-- /ip:port in tmlogin only needed when joining server over LAN -->
      <!-- ipaddress can be specified to guard each login against       -->
      <!-- unauthorized use of admin commands from other IP addresses   -->
    <!-- format: -->
      <tmlogin>ubuntu_server001</tmlogin> <ipaddress>192.168.1.136</ipaddress>
    </masteradmins>
aseco.log:

Code: Select all

# initialize XASECO ###########################################################
[XAseco] PHP Version is 5.3.10-1ubuntu3.14 on Linux
[XAseco] Load settings [config.xml]
PHP Fatal error:  Cannot use string offset as an array in /home/morten/tmf/xaseco/includes/xmlparser.inc.php on line 77
I tried to replace the config file with a new one and only change the things that I needed.. but I got the same error.. any help ?

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

Re: xaseco on ubuntu linux server wont start

Post by undef.de » 14 Sep 2014 16:42

Your link https://gist.github.com/MertenNor/5f8e1a152765b9c7ec1d shows:

Code: Select all

 <masteradmins>
<!-- /ip:port in tmlogin only needed when joining server over LAN -->
<!-- ipaddress can be specified to guard each login against -->
<!-- unauthorized use of admin commands from other IP addresses -->
format:
<tmlogin>ubuntu_server001</tmlogin> <ipaddress>192.168.1.138</ipaddress>
</masteradmins>
But in your last post you have:
MertenNor wrote:

Code: Select all

    <masteradmins>
      <!-- /ip:port in tmlogin only needed when joining server over LAN -->
      <!-- ipaddress can be specified to guard each login against       -->
      <!-- unauthorized use of admin commands from other IP addresses   -->
    <!-- format: -->
      <tmlogin>ubuntu_server001</tmlogin> <ipaddress>192.168.1.136</ipaddress>
    </masteradmins>
Which one is the right one?

Make sure that you have:

Code: Select all

<!-- format: -->

Btw.: This is more then the first post:
MertenNor wrote:EDIT: still same error..

Code: Select all

PHP Fatal error:  Cannot use string offset as an array in /home/morten/tmf/xaseco/includes/xmlparser.inc.php on line 77
:wink:
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

MertenNor
pedestrian
pedestrian
Posts: 13
Joined: 13 Sep 2014 12:04
Owned TM-games: TMNF

Re: xaseco on ubuntu linux server wont start

Post by MertenNor » 14 Sep 2014 17:30

The last one is the one I am using now..
So I have:

Code: Select all

<!-- format: -->
And the log file.. I didn't know that there were a aseco.log file. So I only checked logfile.txt as is says in the guide, so that is why :wink:

So still after replacing the config file with a new one and only replacing the stuff I needed + the "<!-- format: -->" I get the "Line77 Error"


EDIT:

now the logfile returns this:

Code: Select all

[XAseco] Load plugin [plugin.panels.php]
[XAseco] Load plugin [plugin.uptodate.php]
[XAseco] Load plugin [jfreu.plugin.php]
[XAseco] Load plugin [mistral.idlekick.php]
[09/15,00:09:17] Try to connect to TM dedicated server on 192.168.1.138:5000 timeout 180s
[XASECO Warning] [-32300] InitWithIp - transport error - could not open socket (error: 111, Connection refused)
[XASECO Fatal Error] Connection could not be established ! on line 714 in file /home/morten/tmf/xaseco/aseco.php
The Server is running.. I can connect to it on LAN.. it steams to get time out..

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

Re: xaseco on ubuntu linux server wont start

Post by undef.de » 15 Sep 2014 08:56

Does the dedicated Server and XAseco run on the same machine?
If yes, then setup the IP 127.0.0.1 in your config.xml.
If not, maybe a rounting/firewall problem? Does a ping work? Does a manual connect work?

Check your dedicated_cfg.txt and your config.xml to be in sync with IP and Port:

Code: Select all

    <ip>192.168.1.138</ip>
    <port>5000</port>
And make sure you start your dedicated Server with the right dedicated_cfg.txt.
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

MertenNor
pedestrian
pedestrian
Posts: 13
Joined: 13 Sep 2014 12:04
Owned TM-games: TMNF

Re: xaseco on ubuntu linux server wont start

Post by MertenNor » 15 Sep 2014 10:37

undef.de wrote:Does the dedicated Server and XAseco run on the same machine?
If yes, then setup the IP 127.0.0.1 in your config.xml.
If not, maybe a rounting/firewall problem? Does a ping work? Does a manual connect work?

Check your dedicated_cfg.txt and your config.xml to be in sync with IP and Port:

Code: Select all

    <ip>192.168.1.138</ip>
    <port>5000</port>
And make sure you start your dedicated Server with the right dedicated_cfg.txt.
still does not work.. must me something I am doing wrong.. xD

Does the dedicated Server and XAseco run on the same machine?
-Yes.
If yes, then setup the IP 127.0.0.1 in your config.xml.
-ok, here:

Code: Select all

   <ip>192.168.1.138</ip>
    <port>5000</port>
    <timeout>180</timeout>
If not, maybe a rounting/firewall problem?
-all the ports are open..
Does a ping work?
-Yes ping works..
Does a manual connect work?
-from TrackMania ? Yes.. via local IP -> 192.168.1.138 but I cant see it in the LAN tab..
I only see it in the LAN tab if I start the server 2times.. for some ward reason..

here.. I uploaded the hole thing.. if someone is willing feel free to take a look xD
http://www.solidfiles.com/d/b8ba56a89f/tmf.rar

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

Re: xaseco on ubuntu linux server wont start

Post by undef.de » 15 Sep 2014 14:28

Try this setting:

config.xml

Code: Select all

<settings>
  <tmserver>
    <ip>127.0.0.1</ip>
    <port>5000</port>
    <timeout>180</timeout>
  </tmserver>
</settings>
dedicated_cfg.txt

Code: Select all

<dedicated>
	<system_config>
		<force_ip_address></force_ip_address>
		<bind_ip_address></bind_ip_address>
	</system_config>
</dedicated>
Added only things to change, let all others as already configured.

Make sure you have only one instance of the dedicated server and xaseco running.

Btw.: After all running, change all your passwords (because you posted all of them).
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

MertenNor
pedestrian
pedestrian
Posts: 13
Joined: 13 Sep 2014 12:04
Owned TM-games: TMNF

Re: xaseco on ubuntu linux server wont start

Post by MertenNor » 15 Sep 2014 15:19

undef.de wrote: Added only things to change, let all others as already configured.

Make sure you have only one instance of the dedicated server and xaseco running.

Btw.: After all running, change all your passwords (because you posted all of them).
yeah XD I will.. Thanks
here is the logfile.txt:

Code: Select all

[XAseco] Load plugin [plugin.uptodate.php]
[XAseco] Load plugin [jfreu.plugin.php]
[XAseco] Load plugin [mistral.idlekick.php]
[09/15,17:04:21] Try to connect to TM dedicated server on 127.0.0.1:5000 timeout 180s
[09/15,17:04:21] Try to authenticate with login 'SuperAdmin' and password 'teeworlds'
[09/15,17:04:21] Connection established successfully !
[09/15,17:04:21] [LocalDB] Load config file [localdatabase.xml]
[09/15,17:04:21] [LocalDB] Try to connect to MySQL server on '192.168.1.138' with database 'aseco'
hm.. here I what I get when trying to run the sql database..

Code: Select all

mysql> SOURCE /home/morten/tmf/xaseco/localdb/aseco.sql;
Query OK, 0 rows affected, 1 warning (0.00 sec)

Query OK, 0 rows affected, 1 warning (0.00 sec)

Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql>

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

Re: xaseco on ubuntu linux server wont start

Post by undef.de » 15 Sep 2014 16:39

MertenNor wrote: hm.. here I what I get when trying to run the sql database..

Code: Select all

mysql> SOURCE /home/morten/tmf/xaseco/localdb/aseco.sql;
Query OK, 0 rows affected, 1 warning (0.00 sec)

Query OK, 0 rows affected, 1 warning (0.00 sec)

Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql>
Did you created the database 'aseco' before, as seen in http://www.gamers.org/tmf/quickstart.html at "Secondly, the XASECO system" at Pos. 1?

Don't forget to start with "USE aseco;" before "SOURCE ..."!
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

MertenNor
pedestrian
pedestrian
Posts: 13
Joined: 13 Sep 2014 12:04
Owned TM-games: TMNF

Re: xaseco on ubuntu linux server wont start

Post by MertenNor » 15 Sep 2014 19:06

undef.de wrote:
MertenNor wrote: hm.. here I what I get when trying to run the sql database..

Code: Select all

mysql> SOURCE /home/morten/tmf/xaseco/localdb/aseco.sql;
Query OK, 0 rows affected, 1 warning (0.00 sec)

Query OK, 0 rows affected, 1 warning (0.00 sec)

Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql>
Did you created the database 'aseco' before, as seen in http://www.gamers.org/tmf/quickstart.html at "Secondly, the XASECO system" at Pos. 1?

Don't forget to start with "USE aseco;" before "SOURCE ..."!
yes I have created it:

Code: Select all

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| aseco              |
+--------------------+
2 rows in set (0.00 sec)

mysql>
and yes.. I am using "USE aseco;" before "SOURCE ..."

EDIT:
hmm.. I guess I am missing this then:

Code: Select all

GRANT all ON aseco.* TO 'tmf'@'localhost';
cant seam to get it to work.. I get this:

Code: Select all

ERROR 1044 (42000): Access denied for user 'tmf'@'localhost' to database 'aseco'
tried looking it up online but dident relay find a solution.. :(

em.. Do i need to install mysql-server or mysql-client under linux ?
Last edited by MertenNor on 15 Sep 2014 21:22, edited 1 time in total.

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

Re: xaseco on ubuntu linux server wont start

Post by undef.de » 15 Sep 2014 21:22

MertenNor wrote: cant seam to get it to work.. I get this:

Code: Select all

ERROR 1044 (42000): Access denied for user 'tmf'@'localhost' to database 'aseco'
tried looking it up online but dident relay find a solution.. :(
Did you made

Code: Select all

SET PASSWORD FOR 'tmf'@'localhost' = password('MY_PASSWORD');
(replace MY_PASSWORD with your own password which you have configured in localdatabase.xml)?

Then try "FLUSH PRIVILEGES;" to let MySQL re-read the rights.

Set

Code: Select all

<mysql_server>localhost</mysql_server>
in your localdatabase.xml.
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

MertenNor
pedestrian
pedestrian
Posts: 13
Joined: 13 Sep 2014 12:04
Owned TM-games: TMNF

Re: xaseco on ubuntu linux server wont start

Post by MertenNor » 15 Sep 2014 22:01

I got the sql part..
(needed to cheat the user and all that while logged in as root.. )
that should be more clear in the guide..

now the log file returns:

Code: Select all

[XAseco] Load plugin [jfreu.plugin.php]
[XAseco] Load plugin [mistral.idlekick.php]
[09/15,23:43:49] Try to connect to TM dedicated server on 127.0.0.1:5000 timeout 180s
[09/15,23:43:49] Try to authenticate with login 'SuperAdmin' and password 'teeworlds'
[09/15,23:43:49] Connection established successfully !
[09/15,23:43:49] [LocalDB] Load config file [localdatabase.xml]
[09/15,23:43:49] [LocalDB] Try to connect to MySQL server on 'localhost' with database 'aseco'
PHP Fatal error:  Call to undefined function mysql_connect() in /home/morten/tmf/xaseco/plugins/plugin.localdatabase.php on line 71
I changed "<mysql_server>" in localdatabase.xml to:

Code: Select all

<mysql_server>localhost</mysql_server>
I can connect to the server via LAN.. but no idecation that XASECO is running..
if I try to join it via online I get:
Contacting Server...
connection to: 188.165.237.63:2350 failed or disconnected from server (10060)

witch is somewhere in France.. do I need to register my server somewhere ?
ports that I have opend to the comp. running the server are:
2350 TCP/UDP
3450 TCP/UDP
5000 TCP/UDP

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

Re: xaseco on ubuntu linux server wont start

Post by undef.de » 16 Sep 2014 13:21

MertenNor wrote:

Code: Select all

[XAseco] Load plugin [jfreu.plugin.php]
[XAseco] Load plugin [mistral.idlekick.php]
[09/15,23:43:49] Try to connect to TM dedicated server on 127.0.0.1:5000 timeout 180s
[09/15,23:43:49] Try to authenticate with login 'SuperAdmin' and password 'teeworlds'
[09/15,23:43:49] Connection established successfully !
[09/15,23:43:49] [LocalDB] Load config file [localdatabase.xml]
[09/15,23:43:49] [LocalDB] Try to connect to MySQL server on 'localhost' with database 'aseco'
PHP Fatal error:  Call to undefined function mysql_connect() in /home/morten/tmf/xaseco/plugins/plugin.localdatabase.php on line 71

Code: Select all

# apt-get install php5-mysql
MertenNor wrote: I changed "<mysql_server>" in localdatabase.xml to:

Code: Select all

<mysql_server>localhost</mysql_server>
I can connect to the server via LAN.. but no idecation that XASECO is running..
if I try to join it via online I get:
Contacting Server...
connection to: 188.165.237.63:2350 failed or disconnected from server (10060)

witch is somewhere in France.. do I need to register my server somewhere ?
ports that I have opend to the comp. running the server are:
2350 TCP/UDP
3450 TCP/UDP
5000 TCP/UDP
The IP seems to be from OVH. Can you make a manual connect from your PC @home to the IP and Port when the dedicated Server is running?
I can't, or your dedicated is currently offline.
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

MertenNor
pedestrian
pedestrian
Posts: 13
Joined: 13 Sep 2014 12:04
Owned TM-games: TMNF

Re: xaseco on ubuntu linux server wont start

Post by MertenNor » 16 Sep 2014 15:12

now I get this:

Code: Select all

[XASECO Fatal Error] [plugin.freezone.php] API Password wrong or server not registered for freezone! Check the freezone:servers manialink. on line 52 in file /home/morten/tmf/xaseco/plugins/plugin.freezone.php
I do not have a united account so I assume that I cant registrer the server for freezone? ore is there another day ?

I can direct connect via the lan ip but not via the exsternal ip.

Post Reply