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

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

Author Topic: 0.5.2 Disconnects?  (Read 2361 times)

0 Members and 1 Guest are viewing this topic.

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
0.5.2 Disconnects?
« 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.

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: 0.5.2 Disconnects?
« Reply #1 on: June 05, 2008, 11:24:01 pm »
Are you above the FC imposed connection limit?
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Dracutza

  • BeBot Apprentice
  • ***
  • Posts: 126
  • Karma: +0/-0
Re: 0.5.2 Disconnects?
« Reply #2 on: June 06, 2008, 02:49:23 am »
from what I read, no

5 bots

Offline laen

  • BeBot User
  • **
  • Posts: 24
  • Karma: +0/-0
Re: 0.5.2 Disconnects?
« Reply #3 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!

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: 0.5.2 Disconnects?
« Reply #4 on: September 02, 2008, 07:17:20 pm »
Commited a similar fix.

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 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: 336
  • 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