• Visit Rebornbuddy
  • [BuddyCon] Self Hosting

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

    1. thalord

      thalord Community Developer

      Joined:
      Apr 24, 2011
      Messages:
      651
      Likes Received:
      11
      Trophy Points:
      0
      Jop und da links jetzt auf bot und dann auf Struktur
       
    2. Agora

      Agora New Member

      Joined:
      Jun 12, 2012
      Messages:
      123
      Likes Received:
      0
      Trophy Points:
      0
    3. thalord

      thalord Community Developer

      Joined:
      Apr 24, 2011
      Messages:
      651
      Likes Received:
      11
      Trophy Points:
      0
      Mist ist richtig... Dann fällt mir spontan nix mehr ein -.-
      Werden die namen richtig dargestellt da in phpMyAdmin (in der Bot Tabelle, bei Anzeigen)?
       
    4. Agora

      Agora New Member

      Joined:
      Jun 12, 2012
      Messages:
      123
      Likes Received:
      0
      Trophy Points:
      0
      ja in der datenbank wird es richtig angezeigt
       
    5. Agora

      Agora New Member

      Joined:
      Jun 12, 2012
      Messages:
      123
      Likes Received:
      0
      Trophy Points:
      0
      sofern du möchtest / zeit hast kannst du dich per icq/skype einmal melden bei mir, dann können wir uns das auf meinen funpic.de server einmal gemeinsam anschauen, aber im enteffekt ist es ja nur ein schönheitsfehler :)
       
    6. zuiji

      zuiji New Member

      Joined:
      Mar 1, 2012
      Messages:
      23
      Likes Received:
      0
      Trophy Points:
      1
      How do i make the upload Scrip. please help a noobie like me.
       
    7. thalord

      thalord Community Developer

      Joined:
      Apr 24, 2011
      Messages:
      651
      Likes Received:
      11
      Trophy Points:
      0
      K?nnen wir ja ma schauen
      You mean the screenshot upload? In the BuddyCon Thread is a how to?
       
    8. zuiji

      zuiji New Member

      Joined:
      Mar 1, 2012
      Messages:
      23
      Likes Received:
      0
      Trophy Points:
      1
      [bC]: Screenshot requested
      [bC]: url: http://mydon.hey/BuddyCon/upload.php
      [bC]: Fehler: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
      <html><head>
      <title>404 Not Found</title>
      </head><body>
      <h1>Not Found</h1>
      <p>The requested URL /BuddyCon/upload.php was not found on this server.</p>
      </body></html>

      how to fix it ?



      And does we Get Battelnet and Hbrelog kill in selfhost too?
       
      Last edited: Feb 27, 2013
    9. thalord

      thalord Community Developer

      Joined:
      Apr 24, 2011
      Messages:
      651
      Likes Received:
      11
      Trophy Points:
      0
      @Error:
      The url is wrong... put it in your Browser to test it (should show a little error)

      @Battlenet and kill hbrelog
      Battlenet yes 8because it doesnt need a change to show it). KillHbrelog maybe later
       
    10. noglory

      noglory New Member

      Joined:
      Jan 31, 2011
      Messages:
      137
      Likes Received:
      0
      Trophy Points:
      0
      Hi,

      thx for sharing :)

      I tested this configuration but got any problems.

      After i configured my webserver and created my MySQL DB i tested to create an buddycon user

      .../buddycon/index.php?r=user/create

      I got this error:

      CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

      ...
      .../buddycon/yii/framework/yiilite.php(7924)

      7912 if(empty($this->connectionString))
      7913 throw new CDbException('CDbConnection.connectionString cannot be empty.');
      7914 try
      7915 {
      7916 $this->_pdo=$this->createPdoInstance();
      7917 $this->initConnection($this->_pdo);
      7918 $this->_active=true;
      7919 }
      7920 catch(PDOException $e)
      7921 {
      7922 if(YII_DEBUG)
      7923 {
      7924 throw new CDbException('CDbConnection failed to open the DB connection: '.
      7925 $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
      7926 }
      7927 else
      7928 {
      7929 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
      7930 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
      7931 }
      7932 }
      7933 }
      7934 }
      7935 protected function close()
      7936 {


      Could you help me pls. thx
       
    11. thalord

      thalord Community Developer

      Joined:
      Apr 24, 2011
      Messages:
      651
      Likes Received:
      11
      Trophy Points:
      0
      First guess: MySQL Server not running
      2. Wrong mysql connection data in the config/main.php file
       
    12. mat53

      mat53 New Member

      Joined:
      Jul 14, 2010
      Messages:
      377
      Likes Received:
      2
      Trophy Points:
      0
      It would be awesome If you could update it, there are many improvements done on buddycon.eu that I would love to see on selfhosted server :)
       
    13. thalord

      thalord Community Developer

      Joined:
      Apr 24, 2011
      Messages:
      651
      Likes Received:
      11
      Trophy Points:
      0
      what do you mean particular?
      Some of feature will not be in the self hosted buddycon. Simply because you need a dedicated server an some linux admin skills
       
    14. mat53

      mat53 New Member

      Joined:
      Jul 14, 2010
      Messages:
      377
      Likes Received:
      2
      Trophy Points:
      0
      On self hosted version bots are splited by 10, and they are sorted by pages. Also Delete all button is missing I'm tweaking buddycon1 plugin to work as I set Buddycon2 (servers and factions instead of nicks, gb gold instead of bag gold) so I might overlooked something. I have few XEN linux VPS'es I would give it a try if you could share buddycon2 server version.

      Edit:
      on buddycon.eu character name is show as
      Nickname - Server
      on selfhosted only
      Nickname

      I think I would need only this 3 things to be changed...

      Edit2: I added server column, so 2 things left: delete all, and most important disabling spliting by 10 bots per page
       
      Last edited: Mar 24, 2013
    15. mat53

      mat53 New Member

      Joined:
      Jul 14, 2010
      Messages:
      377
      Likes Received:
      2
      Trophy Points:
      0
      I played a littlebit with server side config, I got rid of some stats I dont need, but I cant disable pagination (sorting by pages), can you point me where did you implement it?
       
      Last edited: Mar 26, 2013
    16. smjohnson1211

      smjohnson1211 New Member

      Joined:
      Jun 1, 2012
      Messages:
      17
      Likes Received:
      0
      Trophy Points:
      0
    17. thalord

      thalord Community Developer

      Joined:
      Apr 24, 2011
      Messages:
      651
      Likes Received:
      11
      Trophy Points:
      0
      Which one exactly? I guess the Bots overview page?
      In the BotController.php:
      Line ~ 403-414:
      PHP:
      public function actionIndex()
          {
              
      //Yii::app()->user->setFlash('success', '<strong>Well done!</strong> You successfully read this important alert message.');
              
      $dataProvider=new CActiveDataProvider('Bot',array(
                  
      'criteria'=>array(
                      
      'condition'=>'user_id='.Yii::app()->user->id,
                      
      'order'=>'latestupdate DESC',
                  )));
              
      $this->render('index',array(
                  
      'dataProvider'=>$dataProvider,
              ));
          }
      to:
      PHP:
      public function actionIndex()
          {
              
      //Yii::app()->user->setFlash('success', '<strong>Well done!</strong> You successfully read this important alert message.');
              
      $dataProvider=new CActiveDataProvider('Bot',array(
                  
      'criteria'=>array(
                      
      'condition'=>'user_id='.Yii::app()->user->id,
                      
      'order'=>'latestupdate DESC',
                  ),
      'pagination'=>array(
              
      'pageSize'=>20,
          )
      ));
              
      $this->render('index',array(
                  
      'dataProvider'=>$dataProvider,
              ));
          }
      And change pagesize to.. idk 100?!
      PHP Version?
      Edit: Test that http://www.thebuddyforum.com/honorb...78952-buddycon-self-hosting-3.html#post809509
       
      Last edited: Mar 26, 2013
    18. mat53

      mat53 New Member

      Joined:
      Jul 14, 2010
      Messages:
      377
      Likes Received:
      2
      Trophy Points:
      0
      Thanks a lot, its perfect now :) Well, almost, last thing I would change is not showing outdated servers (red last update status), but its polishing. Thanks!
       
    19. zonpan

      zonpan Banned

      Joined:
      Jan 12, 2012
      Messages:
      128
      Likes Received:
      0
      Trophy Points:
      0
      I keep getting this on honorbuddy bot log:
      I don't know if thats an error or not.

      Anyhow, It works perfectly on my website, but for some reason I can't seem to be able to add more than one bot to the list. Like, I've configured the plugin on each one of the running bots but only the LAST I've configured actually works.
       
    20. jackrabbit

      jackrabbit New Member

      Joined:
      Nov 2, 2012
      Messages:
      1
      Likes Received:
      0
      Trophy Points:
      1
      get buddycon connect to db via socket

      Hi,
      i'm trying to get buddycon working but i don't know how to change the way it connects to db. My host only let me connect to db's via the socket path.

      Does anybody knows how to change this

      Code:
      'db'=>array(
         'connectionString' => 'mysql:host=localhost;dbname=db',
      
      to something like that:

      Code:
      'db'=>array(
         'connectionString' => 'mysql:host='/var/mysql/socket/;dbname=db',
      
      thanks.

      Edit1: Got it working now !
      replace host by unix_socket like this

      Code:
      'db'=>array(
         'connectionString' => 'mysql:unix_socket=/var/mysql/socket/;dbname=db',
      
       
      Last edited: Apr 13, 2013

    Share This Page