run Command on Debian always cause Problem

The next generation of server controlling with clean and powerful user interface

Moderators: oliverde8, reaby, NADEO

Mirery
Posts: 29
Joined: 27 Dec 2014, 14:28

Re: run Command on Debian always cause Problem

Post by Mirery »

w1lla wrote:did you restart apache2?
Yes restart, removed and installed again... Nothing changed...

It seems the run command can't handle the $args or what &args do i have to add there???

The Wiki says:
Now you may run the following command to start the server : ./run --start
But that is the part which isn't working that's strange cause the run_console is working...

I mean i have no Problem using screen and it's no Problem that i can't restart manialive in client... But only cause i know how to handle debian and my server... What about other People? That't why i wrote it down in Forum so anybody can check if it's just me configuratet something wrong (i strict folloed the instruction for Dedicated Servers and expansion...

Like i say it's working for me with screen run_console and btw usually I run the whole Server without apache2 ^^ Even that is working fine. I removed everything not neccessary for an fast gameserver... The Database is on a second server^^

BTW @reaby and oliver I don't won't to say your work is bad!!! It's the best Tool I know for TM since i worked with Fast2.4.7 Years ago i also testet Fast4 but it's not so cool like yours. Like i said in an other thread i saw your tool on an other server asked the admin about what tool it is and since that day i use it too. I just wanted to help with some problems cause perhaps more users would like to use it but when it isn't working like the Wiki says it's hard for linux beginners...
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: run Command on Debian always cause Problem

Post by w1lla »

did you try

Code: Select all

which php
in console?

Arguments used can be the following but its from an old manialive.
First start
To get you started very quickly most configuration is already done. In fact, if you are running a just downloaded Trackmania Dedicated Server and you haven't done any changes apart from setting a server name, you should already be good to go. If you have made some small changes for example the xml-rpc port or the Super Admin Password you can use the command line configuration. Here are the parameters you can add in the launch script

--help: displays the ManiaLive command line help
--rpcport=xxx : xxx represents the xmlrpc to use for the connection to the server
--address=xxx : xxx represents the address of the server, it should be an IP address or localhost
--user=xxx : xxx represents the name of the user to use for the communication. It should be User, Admin or SuperAdmin
--password=xxx : xxx represents the password relative to --user Argument
--dedicated_cfg=xxx : xxx represents the name of the Dedicated configuration file to use to get the connection data. This file should be present in the Dedicated's config file.
--manialive_cfg=xxx : xxx represents the name of the ManiaLive's configuration file. This file should be present in the ManiaLive's config file.
Here is a sample of how to start a ManiaLive instance:

php.exe bootstrapper.php --dedicated_cfg=dedicated_cfg.txt --manialive_cfg=config.ini
Source:

http://code.google.com/p/manialive/wiki ... tm=6#Linux

About /dev/null:

http://askubuntu.com/questions/514748/w ... ell-script
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
Mirery
Posts: 29
Joined: 27 Dec 2014, 14:28

Re: run Command on Debian always cause Problem

Post by Mirery »

w1lla wrote:did you try

Code: Select all

which php
in console?

Yes
golf995:~# which php
/usr/bin/php
But it also don't change anything if i edit the run.ini this way... Error is still the same!
reaby
Posts: 956
Joined: 29 Dec 2010, 23:26
Location: Eastern Finland
Contact:

Re: run Command on Debian always cause Problem

Post by reaby »

Mirery wrote: But it also don't change anything if i edit the run.ini this way... Error is still the same!
I found the cause :3
It was indeed yet another newline problem :oops:

to fix, change line 42:

Code: Select all

value=`echo "$line" | awk -F"=" '{print $2}'`
to following:

Code: Select all

value=`echo "$line" | awk -F"=" '{gsub(/[ \r\n]+$/, "", $2); print $2}'`
I'll add the update for the 0.9.7 zip-files.. so it will be available for new downloads later on!

*edit*
can you confirm that the fix works for you, before i rush updating :)
as for me it looks to work..
Mirery
Posts: 29
Joined: 27 Dec 2014, 14:28

Re: run Command on Debian always cause Problem

Post by Mirery »

Yes that works. Nice work and thank you!

BTW /adm manialive restart is also working after this fix!
User avatar
undef.de
Posts: 2095
Joined: 06 Apr 2011, 21:57
Location: Germany, North Sea Coast
Contact:

Re: run Command on Debian always cause Problem

Post by undef.de »

reaby wrote:
undef.de wrote: Run PHP without a php.ini with "/usr/bin/php -n ".
Hmm... Running php without the php.ini is maybe not a good solution, since the extensions are not loaded then ?
Hmmm... yes... so forget this. ;)

I have no need for extentions in my own PHP build... so...
Developer of UASECO, a controller with support of the Modescript Gamemodes for TM².
Visit the official website for more: UASECO.org


Developer of various plugins for XAseco/XAseco2 and MPAseco, visit my lab: www.undef.name

You like what I do? Then award a ManiaStar.
Post Reply

Return to “eXpansion”

Who is online

Users browsing this forum: No registered users and 1 guest