BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => BeBot 0.5 support => Topic started by: Dracutza on June 03, 2008, 07:27:54 pm

Title: 0.5.2 Disconnects?
Post by: Dracutza on June 03, 2008, 07: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.
Title: Re: 0.5.2 Disconnects?
Post by: Blueeagle on June 05, 2008, 11:24:01 pm
Are you above the FC imposed connection limit?
Title: Re: 0.5.2 Disconnects?
Post by: Dracutza on June 06, 2008, 02:49:23 am
from what I read, no

5 bots
Title: Re: 0.5.2 Disconnects?
Post by: laen on September 01, 2008, 01:07:11 am
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: [Select]
// 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!
Title: Re: 0.5.2 Disconnects?
Post by: Alreadythere on September 02, 2008, 07:17:20 pm
Commited a similar fix.
SimplePortal 2.3.7 © 2008-2024, SimplePortal