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: Still trouble with AOChat: not expecting login.  (Read 2734 times)

0 Members and 1 Guest are viewing this topic.

Offline hobbes

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
Still trouble with AOChat: not expecting login.
« on: March 24, 2007, 01:48:43 pm »
Hi alls,

Trying to run BeBot on Linux + still have trouble with "AOChat: not expecting login."...

Tried both PHP4.4.2 and 5.1.2, both have BCMath enabled. AOchat.php when run doesn't give me any errors - which it should if anything was missing (and if I understand the code correctly), right? Every other thread here seems to be pre-2.11 or related to other issues.

Any other ideas?

(I'm not going to use AOkex, as this bot is meant as a backup only, for the few times our orgbot is down, as it is now, someone else is running a bot on a windows machine...)

Any quick pointers would help. Thanks guys!
H


Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: Still trouble with AOChat: not expecting login.
« Reply #1 on: March 24, 2007, 05:57:23 pm »
The current version of the bot does not need aokex, so I do not really know what you are talking about. Sure you downloaded the 0.2.11 version?
Luuv  Bot-Keeper of Vengeance ^^*

Offline hobbes

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: Still trouble with AOChat: not expecting login.
« Reply #2 on: March 25, 2007, 02:03:20 pm »
Yes, I'm sure I have version 0.2.11, and one reason I chose BeBot was that it doesn't need AOkex. Still, here's the output I get:


         An Anarchy Online Chat Automaton

             v.0.2.11 - PHP 5.1.2

[... other output...]
[2007-03-25 11:38:09]   [LOGIN] [STATUS]        Connecting
[2007-03-25 11:38:09]   [LOGIN] [STATUS]        Authenticating
[2007-03-25 11:38:10]   [LOGIN] [RESULT]        Error
[2007-03-25 11:38:10]   [LOGIN] [STATUS]        Logging in
AOChat: not expecting login.


Bot has created database tables, so that seems to be ok, BCMath is enabled, I checked the username and password for the bot toon several times... What else could be the problem?

Should I try the development version?

Thanks for any help!
H

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: Still trouble with AOChat: not expecting login.
« Reply #3 on: March 25, 2007, 05:20:02 pm »
Actually, the development version is much more likely to give you headaches, unless you are a decent programmer with too much time at your hands... ;)

I vaguely remember that username and password may both be case-sensitive. AO itself doesn't mind if you write the first letter of your username in lowercase, but AOChat does. So make sure that your account name starts uppercase, and that the rest of the letters in the account name are lowercase. Also make sure you got the right dimension.

I had some trouble with php under linux. What I did, in the end, was download the bot with windows php. First get it to start with that. If the supplied php allows you to connect, but linux doesnt want to start the bot with the self same config files, then the problem may be your linux php. You can start the windows php with "php -m" to see what modules are compiled in. I had to recompile my linux php with different settings, till it showed the same, or at least similar modules. Then things started to work for me. :) I even started with getting the exact php version number, and only tried to use newer verisions after I got the bot to run with that.
« Last Edit: March 25, 2007, 05:22:48 pm by pusikas »
Luuv  Bot-Keeper of Vengeance ^^*

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: Still trouble with AOChat: not expecting login.
« Reply #4 on: March 25, 2007, 05:32:50 pm »
Are you using the cli version of php? This will not work with mod_php or php-gci afaik.

To check run: php5 --version
It should read something similar to
Quote
PHP 5.1.6 (cli) (built: Mar  7 2007 12:48:25)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

Also you might want to double check file access file permissions and ownership on your conf directory and the files contained within. If you copied them over as root and attempt to read them as an ordinary user you will get access denied.

And check the spelling and casing of username/passwords. I got that error when I had misspelled my login name. :)
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline hobbes

  • BeBot Rookie
  • *
  • Posts: 5
  • Karma: +0/-0
Re: Still trouble with AOChat: not expecting login.
« Reply #5 on: March 26, 2007, 12:48:46 am »
Thanks for the suggestions guys!

I checked login and password more than twice, because I'm likely to produce typos when tired, but that should not be it.

CLI version of PHP is running, and also needed to run PHP from the console, afaik. I'll definitely check the file permissions, that's a good idea!

If that doesn't help, Ill set it up on Windows like pusikas suggests. The Linux box is a live webserver, so I'm not sure I'm happy about changing PHP versions and stuff :P But it should at least rule out trivial problems like typos for sure, and then we'll see.

Thanks again guys for the helpful comments!
H

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Still trouble with AOChat: not expecting login.
« Reply #6 on: April 07, 2007, 04:03:25 pm »
Could you provide some more detail about the OS and platform?

Which linux distribution and version, and which platform architecture is it running on?

If you are 100% sure you have the right username and password, for some reason keys are not being generated correctly on your system for some unknown reason.
BeBot Founder and Fixer Kingpin

 

* 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: 656
  • 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