collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18365
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: roster update hanging bot up  (Read 10311 times)

0 Members and 3 Guests are viewing this topic.

Offline plugz

  • BeBot User
  • **
  • Posts: 35
  • Karma: +0/-0
Re: roster update hanging bot up
« Reply #15 on: November 23, 2009, 12:25:29 am »
Please test http://bazaar.launchpad.net/~bebot-devel/bebot/stable-0.6/annotate/head%3A/main/14_Tools.php
It should default to curl if it is available, and should also timeout normal socket operations.

testing this fix now as well


Offline plugz

  • BeBot User
  • **
  • Posts: 35
  • Karma: +0/-0
Re: roster update hanging bot up
« Reply #16 on: November 23, 2009, 12:35:45 am »
with new tools.php loaded, the following spam of errors:

Code: [Select]
in *\main\14_Tools.php on line 165
[22-Nov-2009 17:39:43] PHP Warning:  socket_connect(): unable to connect [0]: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
 in *\main\14_Tools.php on line 165
[22-Nov-2009 17:45:30] PHP Warning:  socket_read(): unable to read from socket [0]: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
 in *\main\14_Tools.php on line 204
[22-Nov-2009 17:45:56] PHP Warning:  socket_connect(): unable to connect [0]: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
 in *\main\14_Tools.php on line 165
« Last Edit: November 23, 2009, 12:47:19 am by plugz »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: roster update hanging bot up
« Reply #17 on: November 24, 2009, 06:06:30 pm »
Just for the record. I highly recommend upgrading from PHP 5.1 to at the very least PHP 5.2.11, and preferably PHP 5.3.1

PHP 5.1.6 which was the last release in the 5.1 series is 3 years old.
BeBot Founder and Fixer Kingpin

Offline clashbot

  • BeBot Expert
  • ****
  • Posts: 295
  • Karma: +0/-0
    • Ascension's Home
Re: roster update hanging bot up
« Reply #18 on: November 24, 2009, 06:09:43 pm »
yeah I was running the watered down version of 5.2, and finally did the full upgrade to 5.3.1, moving the php.exe and all dll's to the bot folder, copying all the extensions to the php_extensions folder, and just adding in the extension plugin info to the php.ini file in the bot folder. (Running it on windows....)

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: roster update hanging bot up
« Reply #19 on: November 24, 2009, 06:27:40 pm »
Just to clarify. The fix is not to remove the error message. (the error still occurs just as before, Funcoms servers does not respond)
The fix is to prevent the bot from freezing up for 60 seconds at a time when Funcom servers does not respond (which seems to be most of the time atm)

Since this seems to be confusing i modified the code (untested atm) to supress the PHP error messages and user our own error messages instead which should be more informative.

Please give this a whirl:
http://bazaar.launchpad.net/~bebot-devel/bebot/stable-0.6/annotate/head%3A/main/14_Tools.php

Please note, it will spam just as much, most likely, it will just be the bot handling the error message output instead of PHP.
BeBot Founder and Fixer Kingpin

Offline clashbot

  • BeBot Expert
  • ****
  • Posts: 295
  • Karma: +0/-0
    • Ascension's Home
Re: roster update hanging bot up
« Reply #20 on: November 24, 2009, 06:40:12 pm »
khalem, could we merge this topic and the the other one concerning the sockets: http://bebot.link/index.php/topic,2098.msg14324.html#msg14324 as I believe these are both related...

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: roster update hanging bot up
« Reply #21 on: November 24, 2009, 06:48:22 pm »
Done
BeBot Founder and Fixer Kingpin

Offline clashbot

  • BeBot Expert
  • ****
  • Posts: 295
  • Karma: +0/-0
    • Ascension's Home
Re: roster update hanging bot up
« Reply #22 on: November 24, 2009, 07:13:27 pm »
ty sir! Just trying to keep the board clean...

Offline Shelly

  • BeBot Apprentice
  • ***
  • Posts: 192
  • Karma: +0/-0
Re: roster update hanging bot up
« Reply #23 on: November 25, 2009, 06:31:15 am »
the sockets function doesn't seem to have a timeout in it
on my bots i changed the setting under !set tools
to use cURL which does have a timeout

I did this for my bots and it has helped them not hang also.

hum... this setting of the tools seems to have broken the !items module. "cannot connect to the database"

I am still running the 0.6.5 bot... is this fixed in the 0.6.6 code? Anyone else seeing this behavior?
« Last Edit: November 25, 2009, 06:32:52 am by Shelly »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: roster update hanging bot up
« Reply #24 on: November 26, 2009, 12:14:31 am »
I doubt the item module is broken.

However what i suspect is happening is that you have a slow connection to the items database webserver causing the more agressive timeouts to stop waiting before the server can respond.
Was the bot always slow in responding with the items result previously?

Using cURL myself on all my bots and am not having a similar issue.
BeBot Founder and Fixer Kingpin

Offline Shelly

  • BeBot Apprentice
  • ***
  • Posts: 192
  • Karma: +0/-0
Re: roster update hanging bot up
« Reply #25 on: November 27, 2009, 02:14:27 am »
The response for the items module has always been pretty quick. but now the error is even faster :)

Offline clashbot

  • BeBot Expert
  • ****
  • Posts: 295
  • Karma: +0/-0
    • Ascension's Home
Re: roster update hanging bot up
« Reply #26 on: November 27, 2009, 02:16:43 am »
Shelly just to clarify, is this the default items module for the bot for AO or are you talking about a different items module?

Offline Shelly

  • BeBot Apprentice
  • ***
  • Posts: 192
  • Karma: +0/-0
Re: roster update hanging bot up
« Reply #27 on: November 28, 2009, 01:19:52 am »
Yes, This is the default items module... the one that has the icons... against vhab's database I think.

/*
* Central Items Database v1.1, By Vhab
* Latest version can always be found at: http://bebot.link/index.php/topic,380.0.html
* Details about the database itself: http://aodevs.com/index.php/topic,84.0.html
*
* BeBot - An Anarchy Online & Age of Conan Chat Automaton
* Copyright (C) 2004 Jonas Jax
* Copyright (C) 2005-2007 Thomas Juberg Stensås, ShadowRealm Creations and the BeBot development team.
*
* Developed by:
* - Alreadythere (RK2)
* - Blondengy (RK1)
* - Blueeagl3 (RK1)
* - Glarawyn (RK1)
* - Khalem (RK1)
* - Naturalistic (RK1)
* - Temar (RK1)
*
* See Credits file for all aknowledgements.
*
*  This program is free software; you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation; version 2 of the License only.
*
*  This program is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with this program; if not, write to the Free Software
*  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
*  USA
*
* File last changed at $LastChangedDate: 2008-11-30 23:09:06 +0100 (Sun, 30 Nov 2008) $
* Revision: $Id: Items.php 1833 2008-11-30 22:09:06Z alreadythere $
*/

Offline clashbot

  • BeBot Expert
  • ****
  • Posts: 295
  • Karma: +0/-0
    • Ascension's Home
Re: roster update hanging bot up
« Reply #28 on: November 28, 2009, 01:23:16 am »
k, just wanted to double check, my items was working ok, but that is not to say that there may have been a ping issue to vhab's base

Offline Shelly

  • BeBot Apprentice
  • ***
  • Posts: 192
  • Karma: +0/-0
Re: roster update hanging bot up
« Reply #29 on: November 28, 2009, 02:42:51 am »
I set tools back to Sockets and all is working once more... might be something wrong with my cURL application. I'll look at that later and let everyone know.

 

* Recent Posts
0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 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: 376
  • 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