BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Age of Conan Archive => AoC 0.6 support => Topic started by: Ankou on July 17, 2013, 07:16:54 pm

Title: New install on linux/ubuntu need some help
Post by: Ankou 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.
Title: Re: New install on linux/ubuntu need some help
Post by: ioannes 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/ (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/ (http://bebot.link/coding-and-development-discussion/bebot-on-php-5-4/)

Hope this is helpful!

Ioannes
Title: Re: New install on linux/ubuntu need some help
Post by: Shelly on July 18, 2013, 03:19:13 am
I also recommend the post.
http://bebot.link/helpful-posts/bebot-on-linux/ (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
Title: Re: New install on linux/ubuntu need some help
Post by: Ankou 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...
Title: Re: New install on linux/ubuntu need some help
Post by: Ankou 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.
Title: Re: New install on linux/ubuntu need some help
Post by: Shelly on July 19, 2013, 10:53:13 pm
I would suggest reading the following posts:
http://bebot.link/aoc-0-6-support/guild-bot-is-%27broken%27-after-php-update/msg18447/#msg18447 (http://bebot.link/aoc-0-6-support/guild-bot-is-%27broken%27-after-php-update/msg18447/#msg18447)
And
http://bebot.link/aoc-0-6-support/error-while-reading-rpc-header/msg18289/#msg18289 (http://bebot.link/aoc-0-6-support/error-while-reading-rpc-header/msg18289/#msg18289)

They may not fully answer your question, but should help you. :)

Shelly
Title: Re: New install on linux/ubuntu need some help
Post by: Ankou 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.
Title: Re: New install on linux/ubuntu need some help
Post by: Ankou 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
Title: Re: New install on linux/ubuntu need some help
Post by: Shelly on July 21, 2013, 06:49:47 pm
 :D Yay! Glad to hear that you got it going again.

Shelly
SimplePortal 2.3.7 © 2008-2024, SimplePortal