Bad API Password... ???

Discuss the Dedicated Server Tools developed by Nadeo Live such as ManiaLive, Trust Circles, Dedicated Manager, Competition Manager and Lobbies

Moderator: NADEO

User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

Re: Bad API Password... ???

Post 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.
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
farfa
Nadeo
Nadeo
Posts: 585
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: Bad API Password... ???

Post 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.
Also known as: satanasdiabolo
User avatar
Knutselmaaster
Posts: 1206
Joined: 15 Jun 2010, 18:03
Location: Somewhere between Paris and Disney in France.
Contact:

Re: Bad API Password... ???

Post 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.
giu
Posts: 16
Joined: 08 Apr 2011, 18:08

Re: Bad API Password... ???

Post 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... ^^
giu
Posts: 16
Joined: 08 Apr 2011, 18:08

Re: Bad API Password... ???

Post 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!!!
nouseforname
Posts: 32
Joined: 30 Dec 2010, 19:03

Re: Bad API Password... ???

Post 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}
mickoe
Posts: 5
Joined: 04 May 2011, 21:14

Re: Bad API Password... ???

Post 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.
giu
Posts: 16
Joined: 08 Apr 2011, 18:08

Re: Bad API Password... ???

Post 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?!!??!!?
mickoe
Posts: 5
Joined: 04 May 2011, 21:14

Re: Bad API Password... ???

Post 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..
farfa
Nadeo
Nadeo
Posts: 585
Joined: 14 Jun 2010, 16:15
Location: In front of your hood with one lap late

Re: Bad API Password... ???

Post 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).
Also known as: satanasdiabolo
Post Reply

Return to “Dedicated Server Tools”

Who is online

Users browsing this forum: No registered users and 1 guest