collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18363
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: New install on linux/ubuntu need some help  (Read 5358 times)

0 Members and 1 Guest are viewing this topic.

Offline Ankou

  • BeBot User
  • **
  • Posts: 23
  • Karma: +0/-0
New install on linux/ubuntu need some help
« on: July 17, 2013, 07:16:54 pm »
Hello,
i have installed all mysql, php5, apache2 and phpmyadmin and it run.
Since PhpMyAdmin i have created a new user and a new DB and it run.
I have installed the bebot folder like it come on the zip (0.6.8) and configured bot.conf and mysql.conf. have configured startbot.php to like in the instructions and installed a new serverlist.php (the most recently i have found.

When i try to start the bot, with startbot or startdebugbot, a new window open and close imediatly, with some lines of text but no time to take any picture. where do i need to find the error?does the bot run with .bat to start? it look like php5 config problem? TY for your help.
« Last Edit: July 17, 2013, 07:54:35 pm by Ankou »

Offline ioannes

  • BeBot Rookie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: New install on linux/ubuntu need some help
« Reply #1 on: July 18, 2013, 02:01:02 am »
Hello Ankou,

I just recently launched my own bebot on a linux system, so am still something of a noob; however, would like to try to help.

When I start the bot, I do so in a terminal window (am using ssh to connect to the server,) via the following:

php StartBot.php

This leaves it running in the foreground, of course, but you will hopefully be able to see any error messages that result. You can use screen once you figure out what the problem is.

Here is an old post I found that may be of interest (much outdated, though:)
http://bebot.link/helpful-posts/bebot-on-linux/

Also, I opted to run this version of bebot since I have php 5.4
http://bebot.link/coding-and-development-discussion/bebot-on-php-5-4/

Hope this is helpful!

Ioannes

Offline Shelly

  • BeBot Apprentice
  • ***
  • Posts: 192
  • Karma: +0/-0
Re: New install on linux/ubuntu need some help
« Reply #2 on: July 18, 2013, 03:19:13 am »
I also recommend the post.
http://bebot.link/helpful-posts/bebot-on-linux/

Scroll down to the section where I put the start_bot scripts for a way to create a log of what is happening when you try to start the bot. That way we can help you better. :)

I created a small perl script to make sure my bot is running and haven't seen anything like it on the boards, so I am sharing it here.  8)

Shelly

*edit 16 Nov 2011 --->
I made a different version that is just tied to the bash shell... See below: This one is a bit easier to configure than my original above...

start_bot.sh
Code: [Select]
#!/bin/bash
 
#
##
### Check FC Bots and start if necessary
##
#
# This script looks to see if your bot is actually running and does nothing if it is
# already running.
# If it is not running, it will email you the previous log, then compress it to conserve space.
#

# The BOT* items you will need to configure for your bot.
BOTHOME="/home/bot/OrgBots"
BOTNAME="Your Bot Name here"
# I use the account I use to run the bots' home directory here
BOTLOGS="/home/bot"
# Where you want to save the old logs to.
BOTLOG_Archive=${BOTLOGS}/logs
someone_who_cares="[email protected]"

mdate=`date +%b-%d-%Y`;
hdate=`date +%b-%d-%Y_%H%M_hrs`;

z=`ps -ef |grep ${BOTNAME} |grep -v grep`;
if [[ $z == "" ]]
then {
  # comment this next line out if you don't want the previous log emailed to you.
  mailx -s "Starting ${BOTNAME} bot " ${someone_who_cares} <${BOTLOGS}/${BOTNAME}.log ;
  if [ -e "${BOTLOGS}/${BOTNAME}.log-${mdate}.gz" ]
  then {
    mv ${BOTLOGS}/${BOTNAME}.log ${BOTLOG_Archive}/${BOTNAME}.log-${mdate};
    /bin/gzip ${BOTLOG_Archive}/${BOTNAME}.log-${mdate};
  }
  else {
    mv ${BOTLOGS}/${BOTNAME}.log ${BOTLOG_Archive}/${BOTNAME}.log-${hdate};
    /bin/gzip ${BOTLOG_Archive}/${BOTNAME}.log-${hdate};
  };
  fi
  cd ${BOTHOME}; /usr/bin/php -f ${BOTHOME}/StartBot.php ${BOTNAME} 2>&1 > ${BOTLOGS}/${BOTNAME}.log &
}
fi

#EOF

Shelly

Offline Ankou

  • BeBot User
  • **
  • Posts: 23
  • Karma: +0/-0
Re: New install on linux/ubuntu need some help
« Reply #3 on: July 19, 2013, 09:52:18 am »
ty for the answer.
I think my problem come from an other point. ATM when i do an ls i can see than bebot is present but if i do cd /bebot i have "bash: cd: bebot: no such file or directory"
i m runing ubuntu in 32 bit and i think bebot dont have problem with it.


I cannot change the setup for bebot folder atm...
« Last Edit: July 19, 2013, 10:31:12 am by Ankou »

Offline Ankou

  • BeBot User
  • **
  • Posts: 23
  • Karma: +0/-0
Re: New install on linux/ubuntu need some help
« Reply #4 on: July 19, 2013, 05:02:23 pm »
Ok, it run now, after read all the helps on this forum i have reinstalled all and bot seems runing, just need to find the correct aoc server:) ty for your help!

Quote
Slavebot [LOGIN]   [STATUS]   Connecting to aoc server dm10-nj4.ageofconan.com:7000
Slavebot [LOGIN]   [STATUS]   Authenticating
Sending RPCPacket:0
Read error: EOF

Warning: Error while reading rpc header. () in /home/bot/BeBot/Sources/AOChat.php on line 503

Warning: handleRPCPackets: Packet is not an object (no RPCPacket?) in /home/bot/BeBot/Sources/AOChat.php on line 725
Slavebot [CONN]   [ERROR]   Failed authenticating to server. Retrying in 60 seconds.

BTW i have tried with the server= dm02-sto.ageofconan.com and have a different error message:
Quote
Slavebot [LOGIN]   [STATUS]   Connecting to aoc server dm02-sto.ageofconan.com:7000

Warning: Could not connect to the AOC Chat server (dm02-sto.ageofconan.com:7000): Connection timed out in /home/bot/BeBot/Sources/AOChat.php on line 253
Slavebot [CONN]   [ERROR]   Can't connect to server. Retrying in 60 seconds.
« Last Edit: July 19, 2013, 07:03:21 pm by Ankou »

Offline Shelly

  • BeBot Apprentice
  • ***
  • Posts: 192
  • Karma: +0/-0
Re: New install on linux/ubuntu need some help
« Reply #5 on: July 19, 2013, 10:53:13 pm »

Offline Ankou

  • BeBot User
  • **
  • Posts: 23
  • Karma: +0/-0
Re: New install on linux/ubuntu need some help
« Reply #6 on: July 20, 2013, 08:20:57 am »
Have read and tried it.
atm the only configuration that start the authenticating fase is the one i had before trying it.
with the solutions i can see here i have error before that part.

Offline Ankou

  • BeBot User
  • **
  • Posts: 23
  • Karma: +0/-0
Re: New install on linux/ubuntu need some help
« Reply #7 on: July 20, 2013, 01:57:28 pm »
have removed all, inlude DB and reinstalled all and now it run :)
thank you very much for your help  :D

Offline Shelly

  • BeBot Apprentice
  • ***
  • Posts: 192
  • Karma: +0/-0
Re: New install on linux/ubuntu need some help
« Reply #8 on: July 21, 2013, 06:49:47 pm »
 :D Yay! Glad to hear that you got it going again.

Shelly

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 506
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal