Page 3 of 6

Re: Bad API Password... ???

Posted: 05 May 2011, 12:49
by w1lla
There is a problem with the Ontick.

It happens every hour as i have seen evidence of the bug in the freezone plugin.

Also in the code there is this:

Code: Select all

if(!self::$testMod)
			{
				$data = array();
				$data['serverLogin'] = $this->storage->serverLogin;
				$data['serverName'] = $this->storage->server->name;
				$version = $this->connection->getVersion();
				$data['serverVersion'] = $version->name.','.$version->version.','.$version->build;
				$data['manialiveVersion'] = \ManiaLiveApplication\Version;
				$data['maxPlayers'] = $this->storage->server->currentMaxPlayers;
				$data['visibility'] = $this->storage->server->hideServer;
				$data['classHash'] = sha1_file(__FILE__);
				$this->wsInstance->execute('POST', '/freezone/live/', array($data));
But it just means that it will be ignored if not set.

Re: Bad API Password... ???

Posted: 05 May 2011, 13:06
by farfa
The freezone plugin call our server every hour to give us data about rules respect, so if the password is incorrect you will have the bug every hours.

Re: Bad API Password... ???

Posted: 05 May 2011, 13:10
by Knutselmaaster
well, the problem is that it is 100% sure that the pass is ok.
Freezone is working, but suddenly it starts flooding the chat (and the log of course) with the error message.
Even stranger is that it is constantly giving the message, but with irregular time varying from every second to every 30 seconds, changing constantly.
It happens on servers where everything else is running fine, and where the freezone plugin is perfectly functional.

Re: Bad API Password... ???

Posted: 05 May 2011, 14:36
by giu
Too make sure we are all talking about the same thing and in advice from farfa i updated ManiaLive on my server to the latest release and commented out line 109 of AbstractApplication.php to avoid chat command interference with xaseco
.
Everything works fine, except ... guess it^^ ... BAD API PASSWORD... ^^

Re: Bad API Password... ???

Posted: 05 May 2011, 15:38
by giu
OK thx to Farfa my problem seems to be solved for now.

It looks like the manialink thing to change my API PW does not really change my PW even if it says it did.

Farfa changed the API PW for me and now everything seems fine.

Thx Farfa!!!

Re: Bad API Password... ???

Posted: 05 May 2011, 15:57
by nouseforname
giu wrote:OK thx to Farfa my problem seems to be solved for now.

It looks like the manialink thing to change my API PW does not really change my PW even if it says it did.

Farfa changed the API PW for me and now everything seems fine.

Thx Farfa!!!
that could be a reason, i tried it as well many times. well now i tried a new registered login and it seems fine so far.
i am just wondering, how it could lose the original pwd.

EDIT:
just got it again now. not yet flodding tho.
didnt restart dedi server, just manialive cause it crashed, but the restart is done within one minute, due to i have a auto crash restarter with one min interval.

Code: Select all

 -> Exception with code 0
    API error. Check the HTTP error code.
  - in
      /home/nouse/trackmania/TSTserver/ManiaLiveTST/libraries/ManiaLib/Rest/Cli
      ent.php on line 203
  - Stack: #0
      /home/nouse/trackmania/TSTserver/ManiaLiveTST/libraries/ManiaLivePlugins/
      Freezone/Freezone/Plugin.php(564): ManiaLib\Rest\Client->execute('PUT',
      '/freezone/rules...', Array)
           #1 [internal function]:
      ManiaLivePlugins\Freezone\Freezone\Plugin->onEndChallenge(Array, Array,
      false, false, false)
           #2
      /home/nouse/trackmania/TSTserver/ManiaLiveTST/libraries/ManiaLive/Dedicat
      edApi/Callback/Event.php(28): call_user_func_array(Array, Array)
           #3
      /home/nouse/trackmania/TSTserver/ManiaLiveTST/libraries/ManiaLive/Event/D
      ispatcher.php(52):
      ManiaLive\DedicatedApi\Callback\Event->fireDo(Object(ManiaLivePlugins\Fre
      ezone\Freezone\Plugin))
           #4
      /home/nouse/trackmania/TSTserver/ManiaLiveTST/libraries/ManiaLive/Dedicat
      edApi/Connection.php(108):
      ManiaLive\Event\Dispatcher::dispatch(Object(ManiaLive\DedicatedApi\Callba
      ck\Event))
           #5
      /home/nouse/trackmania/TSTserver/ManiaLiveTST/libraries/ManiaLive/Applica
      tion/AbstractApplication.php(146):
      ManiaLive\DedicatedApi\Connection->executeCallbacks()
           #6
      /home/nouse/trackmania/TSTserver/ManiaLiveTST/bootstrapper.php(19):
      ManiaLive\Application\AbstractApplication->run()
           #7 {main}

Re: Bad API Password... ???

Posted: 06 May 2011, 19:49
by mickoe
Hello Guys,

Do you make manialife connect on a IP or did you put localhost in your config?

We switched everything to localhost and we don't have any "bad API password" anymore. I think that the error is caused by a synchronisation error.

Also, restart your manialife only when you don't have anybody on your server otherwise you will get an HTTP error... and everything will run sluggish.

OS: Ubuntu 9.04
PHP: 5.3.6 Dotdeb
xASECO : 1.13

EDIT: We also configured xAseco to connect via localhost and removed any bind_ip in the dedicated_cfg file.

Re: Bad API Password... ???

Posted: 09 May 2011, 09:00
by giu
well mickoe, that doesn't seem to have been the problem. If you look at your (any) server in freezone:servers the method to change the API password has been changed most recently. So the problem was obviously hiding somewhere there. ;)

I do encounter another annoying thing today: It's monday and i forgot to fill up my player's account with coppers from the server. That way i had enough money to pay for the weekly freezone costs of 250 coppers but not enough coppers to pay for the promotion-thingy. result: my freezone server was disabled. i was forced to delete it and create it newly. that's bad!!! it would be much nicer to drop me a message, that i wasn't having enough coppers for the promotion stuff and that my server would remain umpromoted for a week or until i pay rather than taking it completely out of the freezone.

anyways. i deleted it, created it newly. everything runs fine, no error messages but Freezone is obviously not working since i cannot join wih a nations account (error 10061) and noone else but TMU accounts or fav-list-joiners can. So it seems like it's taking a while for a moderator to test the server again, i guess?!!??!!?

Re: Bad API Password... ???

Posted: 10 May 2011, 03:26
by mickoe
Yes we got our server closed too.. without any advice.

Code: Select all

PHP Environment Compatibility Test
-----------------------------------------------------
PHP 5.3.1 or newer    -> required  -> [ Yes ] 5.3.6-6~dotdeb.0
Standard PHP Library  -> required  -> [ Yes ]
JSON                  -> required  -> [ Yes ]
OpenSSL               -> required  -> [ Yes ]
cURL with SSL         -> required  -> [ Yes ] 7.19.5 (OpenSSL/0.9.8g) (with OpenSSL/0.9.8g)
SQLite                -> optionnal -> [ Yes ]
We got the new Manialive version (got get it!). We had no errors, but it's too soon to tell..

Re: Bad API Password... ???

Posted: 10 May 2011, 06:21
by farfa
Can you give me your serverlogin mickoe ?

The FreeZone agreement is automatically disable if there is no sign of activities during 12 hours. Once there is some activity the server is back in the FreeZone but it can take some time (around 2 hours).