L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 01, 2008, 11:57:53 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.2 support > Topic: Error
Pages: [1]   Go Down
« previous next »
Print
Author Topic: Error  (Read 637 times)
0 Members and 1 Guest are viewing this topic.
Aesgaard
Rookie
**
Offline Offline

Gender: Male
Posts: 73


.:.Alpha.:.


Error
« on: July 11, 2007, 01:39:53 PM »

Doing an !items 34 nano controller unit causes the bot to crash completely (all bots, not just mine, had Mr. P test it for me since mine didnt reply first time cause a massive "retrieval error" and made the bot lock up completely (not responding to !online etc.) after, wtb a fix please
Logged

-*tinkers*-
porter
Rookie
**
Offline Offline

Posts: 28


Re: Error
« Reply #1 on: July 11, 2007, 02:12:20 PM »

You can't say "all bots" but I did try that !items request on one of my 0.2.11 bots (running the standard items module that came with it) and it stopped responding completely for a minute and 11 seconds, then it sent a tell "Unable to query database". It also only responded to any other events that took place during that time and two further !items queries that could not query database after spending just about exactly two minutes timing out on each of those subsequent queries.

Log shows no other errors. Bot did not crash and restart, just was slow and continued just fine after these queries.

I don't think it mattered what the !items query was. Haven't yet looked at the code but the other queries sent to the bot while it was frozen with the first one were quite different. Maybe the Central Items DB was unresponsive or offline...

EDIT: looked at the simple module and here we see that if the bot does not get a result from trying to retrieve the URL (which is the items request) it returns the above mentioned error message:
Code:
$result = file_get_contents($url);
if (!empty($result)) return $result;
else return "Unable to query database";
« Last Edit: July 11, 2007, 02:22:34 PM by porter » Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: Error
« Reply #2 on: July 11, 2007, 02:49:31 PM »

Sounds like you have some trouble connecting to Vhab's server.
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: Error
« Reply #3 on: July 11, 2007, 03:55:22 PM »

The cause of this is that 0.2.x still uses file_get_contents which basically will cause the bot to freeze until a response is received, or the request times out. In which case you could end up loosing connecting to the AO chatserver due to inactivity.

With 0.4 being slated for release this weekend or so i don't really plan on looking into backporting 0.3.x items.
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Aesgaard
Rookie
**
Offline Offline

Gender: Male
Posts: 73


.:.Alpha.:.


Re: Error
« Reply #4 on: July 12, 2007, 12:02:33 AM »

Should I upgrade from 0.2.11 to 0.3 ? will that fix this ?
Logged

-*tinkers*-
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: Error
« Reply #5 on: July 12, 2007, 04:30:55 AM »

Most devs are using the SVN version I think, and no longer 0.2.x.

So the chances of anything in the 0.2 branch getting fixed fast aren't the best.

That said - I don't know if moving to 0.3.5+ would solve the problem. Though I got no trouble using the items command in my bots.
Logged
Aesgaard
Rookie
**
Offline Offline

Gender: Male
Posts: 73


.:.Alpha.:.


Re: Error
« Reply #6 on: July 12, 2007, 04:46:19 AM »

I'll try upgrading, if not mistaken I need to redo the entire mysql db or delete it and build a new one for the 0.3+ build ? or would you reccomend waiting for 0.4 as Khalem said would probably be released this weekend ?
Logged

-*tinkers*-
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1085


Re: Error
« Reply #7 on: July 12, 2007, 05:18:20 AM »

There won't be any major changes till 0.4 anymore, only some error fixing and internal cleanup. Besides, with 0.3.4 we started to include automatic table updates where needed, which means even if some table changes till 0.4 (which is extremely unlikely), it will automatically update the schema on the next startup.

You'll need to redo quite a bit though, yes. Some things can be reused if you know how to rename SQL tables.
Just get a clean copy of 0.3.5 or 0.4 running, and check tables - if they got the same schema you can just reuse them.
Logged
Aesgaard
Rookie
**
Offline Offline

Gender: Male
Posts: 73


.:.Alpha.:.


Re: Error
« Reply #8 on: July 12, 2007, 08:17:03 AM »

I better just clear it Tongue
Logged

-*tinkers*-
porter
Rookie
**
Offline Offline

Posts: 28


Re: Error
« Reply #9 on: July 12, 2007, 02:31:02 PM »

By the way, as far as I can tell this was an anomaly, what I saw in the logs before and soon after the incident is extremely quick responses to any !items queries. We are also not even in the same country, Aesgaard and I, so the same timeout issue hitting us both would seem to indicate a problem somewhere closer to the items database server. Regardless, similar might of course happen again with the way this particular module queries the external database. I'm too busy IRL to upgrade right now but I also do not see it as a major problem currently.
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > Support for older versions > BeBot 0.2 support > Topic: Error
« previous next »
 
Jump to:  

Recent
[request] Raid timers
by Elesar1
[Today at 04:41:09 PM]

Shared DB online list
by Temar
[Today at 01:55:47 AM]

relay colors
by Temar
[Today at 01:54:56 AM]

BeBot v0.6.0 released
by Alreadythere
[November 30, 2008, 05:32:00 PM]

Change to Bid.php
by Temar
[November 30, 2008, 11:41:44 AM]

OnlineOrg
by Jiheld
[November 29, 2008, 12:44:27 PM]

Silly Newbie Question.
by Temar
[November 29, 2008, 12:00:02 PM]

massive_pvp_time_table 1
by gerborg
[November 29, 2008, 06:55:35 AM]

Bot not see Guild Chat
by Delvar
[November 28, 2008, 08:30:34 AM]

Starting Bot
by Allisande
[November 28, 2008, 07:08:21 AM]
Stats
Members
Total Members: 1243
Latest: Whackoeng
Stats
Total Posts: 11144
Total Topics: 1505
Online Today: 21
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 2
Guests: 14
Total: 16
Temar
Elesar1

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.535 seconds with 30 queries. (Pretty URLs adds 0.027s, 4q)
Loading...