General > Helpful posts

AOChat: not expecting login.

<< < (15/16) > >>

Dracutza:

--- Quote from: Blueeagle on March 28, 2008, 04:24:48 pm ---
--- Quote from: lazarus on March 28, 2008, 02:19:07 pm ---bot [2008-03-28 12:10:08]   [LOGIN]   [STATUS]   Authenticating
bot [2008-03-28 12:10:10]   [LOGIN]   [RESULT]   Error

--- End quote ---

Seems to me you've mis-typed the username and/or password. The AO-server returns an error when you attemtp to authenticate.

In my opinion the bot should have thrown a fatal error on authentication failure.


--- End quote ---

I had this too yesterday.  I was trying to run 5 bots from the same dir.  I did diff config files for each bot.

#1 ran fine
#2 got a login error
#3 ran fine
#4 ran fine
#5 got a login error

Since it was the same dir, I assumed something was wrong in a config file.  Sure enough I had misspelled the bot name.  Made changes and tried to start the error'd bots again.

Still got login error.

deleted the config files and tables from DB

sent new config files and ran the bots... essentially "starting fresh"

something is cached somewhere, as those last two still gave me login errors.

Outside of a reboot (taking down all bots,) what can one do to recover from a failed login?

Blueeagle:
Have you tried logging in those players with the regular anarchy client?

FunCom have wiped characters before and that might have happened again, but such whipes are usually announced. Other than that I cannot see how you're getting an invalid login.

If you're logging in many bots simultaneously you might hit a flood barrier perhaps?

You could try annonymizing the configuration files and post them here and we can see if we can make sense of them.

Alreadythere:
The only time I ran into the Not expecting login error was when I had a wrong password. Maybe it's some different reason.

Try adding some debug output to Main.php after reading the config file, perhaps php gets some wrong values?


--- Quote from: Blueeagle on March 29, 2008, 01:27:39 am ---If you're logging in many bots simultaneously you might hit a flood barrier perhaps?
--- End quote ---
The limit is somewhere around 20 for RK2, doubt many reach it.

Alreadythere:

--- Quote from: Dracutza on March 28, 2008, 04:31:12 pm ---something is cached somewhere, as those last two still gave me login errors.

Outside of a reboot (taking down all bots,) what can one do to recover from a failed login?

--- End quote ---
There shouldn't be any cache outside of the php instance. And even in there all logon data besides the actual character name is whiped after the AOChat class is logging in.

Check for php instances using the misbehaving bots as command line argument, if some still exist just kill them. Though this problem can only really happen if you use some method to put the output of the bots into background.

lazarus:
hehe my issue was a wrong username ^^

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version