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?
October 06, 2008, 08:44:38 AM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > BeBot 0.5 support > Topic: 0.5.2 Disconnects?
Pages: [1]   Go Down
« previous next »
Print
Author Topic: 0.5.2 Disconnects?  (Read 327 times)
0 Members and 1 Guest are viewing this topic.
Dracutza
Apprentice
***
Offline Offline

Posts: 126


0.5.2 Disconnects?
« on: June 03, 2008, 12:27:54 PM »

Unknown to me, the firmware for the firewall in the datacenter I use to host several bots was upgraded around the same time I started trying 0.5.2.

While I am pretty sure it is NOT funcom/bebot/server issue, I just want to make sure I can 100% eliminate Bebot as the problem.

I still have bots running 0.5.1 that were running fine Pre-firmware upgrade which are giving me problems too.  Not as much as the 0.5.2 bots, but because both strains are disconnecting I'm pretty sure I can rule out everything but the firewall.

It seems like  I get a run of these every few hours.
Quote
[02-Jun-2008 18:36:27] PHP Warning:  socket_read(): unable to read from socket
  • : An existing connection was forcibly closed by the remote host. in E:\bots\Sources\AOChat.php on line 251
[02-Jun-2008 18:37:41] PHP Warning:  socket_connect(): Host lookup failed
  • : The requested name is valid, but no data of the requested type was found. in E:\bots\main\14_Tools.php on line 137
[02-Jun-2008 18:37:41] PHP Warning:  socket_write() expects parameter 1 to be resource, null given in E:\bots\Sources\AOChat.php on line 369
[02-Jun-2008 18:37:41] PHP Warning:  socket_read() expects parameter 1 to be resource, null given in E:\bots\Sources\AOChat.php on line 251
[02-Jun-2008 18:38:32] PHP Warning:  socket_write(): unable to write to socket
  • : An existing connection was forcibly closed by the remote host. in E:\bots\Sources\AOChat.php on line 369
[02-Jun-2008 18:38:32] PHP Warning:  socket_read(): unable to read from socket
  • : An existing connection was forcibly closed by the remote host. in E:\bots\Sources\AOChat.php on line 251
[02-Jun-2008 18:54:23] PHP Warning:  socket_read(): unable to read from socket
  • : An existing connection was forcibly closed by the remote host. in E:\bots\Sources\AOChat.php on line 251
[02-Jun-2008 19:15:59] PHP Warning:  socket_read(): unable to read from socket
  • : An existing connection was forcibly closed by the remote host. in E:\bots\Sources\AOChat.php on line 251
[02-Jun-2008 19:17:39] PHP Warning:  socket_read(): unable to read from socket
  • : An existing connection was forcibly closed by the remote host. in E:\bots\Sources\AOChat.php on line 251
[02-Jun-2008 19:50:47] PHP Warning:  socket_read(): unable to read from socket
  • : An existing connection was forcibly closed by the remote host. in E:\bots\Sources\AOChat.php on line 251
[02-Jun-2008 20:16:16] PHP Warning:  socket_read(): unable to read from socket
  • : An existing connection was forcibly closed by the remote host. in E:\bots\Sources\AOChat.php on line 251
[02-Jun-2008 20:31:07] PHP Warning:  socket_read(): unable to read from socket
  • : An existing connection was forcibly closed by the remote host. in E:\bots\Sources\AOChat.php on line 251
[02-Jun-2008 20:58:01] PHP Warning:  socket_read(): unable to read from socket
  • : An existing connection was forcibly closed by the remote host. in E:\bots\Sources\AOChat.php on line 251
[02-Jun-2008 22:29:15] PHP Warning:  socket_read(): unable to read from socket
  • : An existing connection was forcibly closed by the remote host. in E:\bots\Sources\AOChat.php on line 251
[02-Jun-2008 23:33:21] PHP Warning:  socket_read(): unable to read from socket
  • : An existing connection was forcibly closed by the remote host. in E:\bots\Sources\AOChat.php on line 251
[03-Jun-2008 01:13:55] PHP Warning:  socket_read(): unable to read from socket
  • : An existing connection was forcibly closed by the remote host. in E:\bots\Sources\AOChat.php on line 251
[03-Jun-2008 01:13:56] PHP Warning:  socket_read(): unable to read from socket
  • : An existing connection was forcibly closed by the remote host. in E:\bots\Sources\AOChat.php on line 251
I'd say it certainly seems to happen when a bot starts up, and when a roster is updated.  I'm trying to get the firewall logs from around those times to see what's happening there.
Logged
Blueeagle
Omnipotent
BeBot Developer
Expert
********
Offline Offline

Gender: Male
Posts: 313



Re: 0.5.2 Disconnects?
« Reply #1 on: June 05, 2008, 04:24:01 PM »

Are you above the FC imposed connection limit?
Logged

The only problem that can't be solved by adding another wrapper is having too many wrappers.
Dracutza
Apprentice
***
Offline Offline

Posts: 126


Re: 0.5.2 Disconnects?
« Reply #2 on: June 05, 2008, 07:49:23 PM »

from what I read, no

5 bots
Logged
laen
Rookie
**
Offline Offline

Posts: 21


Re: 0.5.2 Disconnects?
« Reply #3 on: August 31, 2008, 06:07:11 PM »

After hours and hours trying to track this fscker down, thinking my Linux server was too limited, our router bugged, or the Funcom people.anarchy-online.com XML server still bugged, i only find out that the bug was actually a very very small mistake in main/14_Tools.php

So, getting socket read errors? Find the commented line, replace it with the one i put below. It's line 150 in the 0.5.2 tag release (revision 1640). The error still exists in all 14_Tools.php versions up to the latest (trunk/1673).

main/14_Tools.php
Code:
// Offcourse we don't want to GET the whole url, we want the path!
// $in = "GET $url HTTP/1.0\r\n";
$in = "GET $get_url[path] HTTP/1.0\r\n";

And Bebot devs, please change this in future releases, thanks, and less then three!
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1052


Re: 0.5.2 Disconnects?
« Reply #4 on: September 02, 2008, 12:17:20 PM »

Commited a similar fix.
Logged
Pages: [1]   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Support > BeBot 0.5 support > Topic: 0.5.2 Disconnects?
« previous next »
 
Jump to:  

Recent
!items database
by cthulhu
[October 05, 2008, 11:36:16 AM]

Supplies needed module
by viper
[October 05, 2008, 11:11:13 AM]

Assist
by Foxy
[October 05, 2008, 05:09:02 AM]

How's 0.5.x coming? Wonde...
by Hyde
[October 04, 2008, 04:59:20 PM]

TWC
by Elesar1
[October 04, 2008, 12:55:59 PM]

Org in AoC
by Alreadythere
[October 04, 2008, 04:50:00 AM]

OnlineOrg
by Slacklin
[October 04, 2008, 03:06:00 AM]

Learning .NET, Mono, C#, ...
by Vhab
[October 04, 2008, 02:39:03 AM]

guild taxes module for ag...
by Elesar1
[October 03, 2008, 09:06:09 AM]

MediaControl
by Elesar1
[October 03, 2008, 08:38:18 AM]
Stats
Members
Total Members: 983
Latest: Titerris
Stats
Total Posts: 10740
Total Topics: 1448
Online Today: 15
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 2
Guests: 32
Total: 34
cthulhu
Karsta

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