Archive > AoC 0.6 support

New install on linux/ubuntu need some help

(1/2) > >>

Ankou:
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.

ioannes:
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

Shelly:
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. :)


--- Quote from: Shelly on September 05, 2005, 03:46:57 pm ---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: ---#!/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
--- End code ---

--- End quote ---

Shelly

Ankou:
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...

Ankou:
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.
--- End quote ---

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.
--- End quote ---

Navigation

[0] Message Index

[#] Next page

Go to full version