• Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • [BuddyCon] Self Hosting

    Discussion in 'Monitoring' started by thalord, Oct 20, 2012.

    1. ahoekstra

      ahoekstra Member

      Joined:
      Jun 28, 2010
      Messages:
      92
      Likes Received:
      0
      Trophy Points:
      6
      Also having the "[bC]: {"response":"No User"}" message in honorbuddy.
      Have created a new API key yet.

      Any suggestions?
       
    2. Duskfall

      Duskfall New Member

      Joined:
      Dec 8, 2012
      Messages:
      25
      Likes Received:
      0
      Trophy Points:
      0
      Confirming "[bC]: {"response":"No User"} error i saw that no user returns in
      Line 63: if(!$bot)ApiController::respond("No User");
      Line 220: Yii::log("No User", "info", "test");
      Line 221: ApiController::respond("No User");
      of apicontroller.php
      Checked for permissions all are ok
       
    3. ahoekstra

      ahoekstra Member

      Joined:
      Jun 28, 2010
      Messages:
      92
      Likes Received:
      0
      Trophy Points:
      6
      I think the writer died, or so..
       
    4. thalord

      thalord Community Developer

      Joined:
      Apr 24, 2011
      Messages:
      651
      Likes Received:
      11
      Trophy Points:
      0
      Oh shit... mhh no still alive

      the main problem (and i said that already) is that my main priorities are BuddyCon.eu and the Android App.
      Althougth i looked in the code, there is only one possibilty that "no user" is returned. If there is no user with the api key you inserted in the database.
      So check that, if you want any further help i need logs (no hb logs) which are located at protected/runtime/application.log
      If you want faster help then look at the line 44 to 47 in ApiController:
      Just remove the /* and */then start your bot and let it print some no user errors.

      Also there is a BuddyCon Version 2 Coming (Beta is in the Plugin thread) but this will only work wirth buddycon.eu
       
    5. Iwannatank

      Iwannatank New Member

      Joined:
      Dec 11, 2012
      Messages:
      8
      Likes Received:
      0
      Trophy Points:
      1
      Hi! nice addon!
      I just installed this server and the plugin and its working nice!
      But i too get the "No user" respons. So i removed the log thingy you wanted and since i have som php/mysql experience i tried to find the error but couldent. So heres the log:

      Code:
      2012/12/13 00:16:23 [info] [test] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (44)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] version - 1.0.65
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] name - NoName
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] level - 22
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] xp - 14192
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] xp_needed - 19200
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] chat_message - 
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] chat_type - 
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] chat_from - 
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] screen - 
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] nodeh - {}
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] runningtime - 1868.9968165
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] xph - 47392
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] timeolevel - 
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] kills - 39
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] killsh - 75
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] honor - 0
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] honorh - 0
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] death - 
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] deathh - 
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] bgwin - 0
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] bglost - 0
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] server - Auchindoun
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] gbankmoney - 0
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] apikey - DELETED!
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] timetolevel - 380
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] gold - 906652
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] status - {}
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [api] 0 - 0
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (372)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] Success
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (376)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [api] 1 - 0
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (372)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:23 [info] [test] Success
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (376)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (44)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] version - 1.0.65
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] name - NoName
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] level - 22
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] xp - 14192
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] xp_needed - 19200
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] chat_message - 
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] chat_type - 
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] chat_from - 
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] screen - 
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] nodeh - {}
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] runningtime - 1884.7208258
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] xph - 46997
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] timeolevel - 
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] kills - 39
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] killsh - 74
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] honor - 0
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] honorh - 0
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] death - 
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] deathh - 
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] bgwin - 0
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] bglost - 0
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] server - Auchindoun
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] gbankmoney - 0
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] apikey - DELETED!
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] timetolevel - 384
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] gold - 906652
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] status - {}
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (46)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [api] 0 - 0
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (372)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] Success
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (376)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [api] 1 - 0
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (372)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      2012/12/13 00:16:38 [info] [test] Success
      in /customers/d/2/1/secret!/httpd.www/hb/protected/controllers/ApiController.php (376)
      in /customers/d/2/1/secret!/httpd.www/hb/index.php (13)
      
      I also uncommeted the Yii::log("Success", "info", "test");
      since i think the problem lies with the

      foreach(Yii::app()->db->getStats() as $k=>$v){
      Yii::log($k." - ".$v, "info", "api");
      Yii::app()->db->active = false;

      Btw bought the bot two days ago (long time pirox user) and love it! And kicks does an amazing job!
       
    6. thalord

      thalord Community Developer

      Joined:
      Apr 24, 2011
      Messages:
      651
      Likes Received:
      11
      Trophy Points:
      0
      Cant be that part, because it is later executed ...
      You changed that for security, right? (if not that would be the problem ;) )
       
    7. Iwannatank

      Iwannatank New Member

      Joined:
      Dec 11, 2012
      Messages:
      8
      Likes Received:
      0
      Trophy Points:
      1
      Yeah thats for security;) everything works as it should so its no biggie just a little annoying.
       
    8. wizardslayer

      wizardslayer Member

      Joined:
      Nov 3, 2010
      Messages:
      325
      Likes Received:
      0
      Trophy Points:
      16
      So if we want to keep up to date with the code from the git server, what should we run, since "git clone" complains there are already files?
       
    9. thalord

      thalord Community Developer

      Joined:
      Apr 24, 2011
      Messages:
      651
      Likes Received:
      11
      Trophy Points:
      0
      First of all there was no update since the initial upload and i dont know when there will be an update, so new features might not work!
      (if i understand the question correct:)
      Usally you would use a "git pull" so every change would get downloaded.
       
      wizardslayer likes this.
    10. wizardslayer

      wizardslayer Member

      Joined:
      Nov 3, 2010
      Messages:
      325
      Likes Received:
      0
      Trophy Points:
      16
      Ah, thanks for the info! Just wanted to make sure I was staying on top of updates (if there happened to be any).

      Thanks for the great work!
       
    11. ahoekstra

      ahoekstra Member

      Joined:
      Jun 28, 2010
      Messages:
      92
      Likes Received:
      0
      Trophy Points:
      6
    12. thalord

      thalord Community Developer

      Joined:
      Apr 24, 2011
      Messages:
      651
      Likes Received:
      11
      Trophy Points:
      0
      And posting your site doesnt help me tbh. There is no backdoor shit so i could check your configuration or anything
       
    13. HipDrahve

      HipDrahve New Member

      Joined:
      Nov 10, 2012
      Messages:
      250
      Likes Received:
      0
      Trophy Points:
      0
      I do not seem to be able to receive/send/monitor whispers. While on your host, buddycon.eu it's working perfectly fine - what could have went wrong in my own installation?

      Gold, nodes per hour, etc. works just fine, just the events (like whispers and bot start/stop) doesn't show up.
       
    14. thalord

      thalord Community Developer

      Joined:
      Apr 24, 2011
      Messages:
      651
      Likes Received:
      11
      Trophy Points:
      0
      Look into the protected/runtime dir there are application.log files. Could u upload me the newest and send me the link via PM.
       
    15. HipDrahve

      HipDrahve New Member

      Joined:
      Nov 10, 2012
      Messages:
      250
      Likes Received:
      0
      Trophy Points:
      0
      I have installed another completely fresh BuddyCon suite, and I am able to send whispers whispers now. For all suffering similar problems - I think I figured out what's up. Once you switch APIs or URLs within the plugin around, only the data within the BOT table gets updated - so you need to trash the row with the unresponsive bot, and have the plugin create a new one (by one I mean two, because some why duplicate entries get created all the time).

      Another issue I am experiencing is that regardless of how many events I make, the column "New" for all bots in the bot page is still showing 0, even though on your website, BuddyCon.eu, has values changing and updating when there's a new event. When you browse the individual bot info, it does show all those things, so I think the issue is purely in the GUI (plugin provides the data). Any pointers where I should look?


      Edit: seems like I spoke too soon - after a while bot is not able to send or receive whispers again - only works if you delete it's entry in the DB...



      Regarding the event showing, i think it is something to do with this code views/bot/index.php

      PHP:
      array(
                  
      'name'=>'New',
                  
      'type'=>'html',
                  
      'htmlOptions'=>array('style'=>'width: 40px'),
                  
      'value'=>function($data,$row){ // declare signature so that we can use $data, and $row within this function
                      
      $chat Chat::model()->countByAttributes(array('bot_id'=>$data->id),'sended > :last',array('last'=>$data->lastvisit));
                      
      $status Status::model()->countByAttributes(array('bot_id'=>$data->id),'latestupdate > :last  AND message NOT LIKE "Xp gain: %"',array('last'=>$data->lastvisit));

                      
      $ret $chat+$status;
                      return 
      $ret;
                  } ),
      It just prints zeros in the website...
       
      Last edited: Jan 28, 2013
    16. Agora

      Agora New Member

      Joined:
      Jun 12, 2012
      Messages:
      123
      Likes Received:
      0
      Trophy Points:
      0
      Hallo und erstmal gro?en Dank an diesem System, habe es heute auf einen Funpic.de Server gespielt und ohne Gro?e probleme zum laufen bekommen, super arbeit :)

      Jedoch habe ich ein Problem das er mir Umlaute und Sonderbuchstaben nicht richtig anzeigt wie zb "Königsblut" oder Nicknamen mit Sonderzeichen "Atórian", hast du eventuel einen Tip f?r mich was ich da machen kann ?

      lg
       
    17. thalord

      thalord Community Developer

      Joined:
      Apr 24, 2011
      Messages:
      651
      Likes Received:
      11
      Trophy Points:
      0
      Hmm welche Zeichensatz haben die spalten in der bot tabelle (entweder was mit ut8 oder latin vermutlich)?
       
    18. Agora

      Agora New Member

      Joined:
      Jun 12, 2012
      Messages:
      123
      Likes Received:
      0
      Trophy Points:
      0
      eigentlich mit allen zeichen was nicht normal sind :) leider kenn ich mich mit datenbanken nicht so aus
       
    19. thalord

      thalord Community Developer

      Joined:
      Apr 24, 2011
      Messages:
      651
      Likes Received:
      11
      Trophy Points:
      0
      Hast du da bei funpic phpMyAdmin? wenn du da eine Tabelle anklickst (bot zb) kannst du noch irgendwo Struktur anwählen. da stehen einige Sachen zb auch Zeichensatz bzw Charset
       
    20. Agora

      Agora New Member

      Joined:
      Jun 12, 2012
      Messages:
      123
      Likes Received:
      0
      Trophy Points:
      0
      screen.jpg

      meinst du das hier ?
       

    Share This Page