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

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

Author Topic: Persistent Whois cache with out-of-bot upgrading  (Read 85094 times)

0 Members and 2 Guests are viewing this topic.

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: Persistent Whois cache with out-of-bot upgrading
« Reply #120 on: December 27, 2006, 02:47:51 pm »
First check whether you do actually have a whois table in your database. Second, check the console for errors on startup when it is trying to create the table.
Eternalist
General of The Syndicate

Offline ilon

  • BeBot User
  • **
  • Posts: 22
  • Karma: +0/-0
Re: Persistent Whois cache with out-of-bot upgrading
« Reply #121 on: December 27, 2006, 03:00:44 pm »
ok, i assumed that the script would create the tables for me, since most ppl know how to handle mysql (including me), and everything else was done by the script.. :/

so the script dosnt create the tables in the database, you have to do it manualy?

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: Persistent Whois cache with out-of-bot upgrading
« Reply #122 on: December 27, 2006, 03:13:08 pm »
The whois-update script doesn't create the table. The WhoisCache.php module creates the table.
Eternalist
General of The Syndicate

Offline ilon

  • BeBot User
  • **
  • Posts: 22
  • Karma: +0/-0
Re: Persistent Whois cache with out-of-bot upgrading
« Reply #123 on: December 27, 2006, 03:33:13 pm »
AHHH, tyvm then, i'll try to get it running then :]

Offline nebhyper

  • BeBot User
  • **
  • Posts: 62
  • Karma: +0/-0
Re: Persistent Whois cache with out-of-bot upgrading
« Reply #124 on: December 27, 2006, 05:10:58 pm »
stupid question I know, but how do I run a php script outside the bot?

What program? Or as I assume I use php.exe via cmd prompt but how?

Thanks in advance
Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: Persistent Whois cache with out-of-bot upgrading
« Reply #125 on: December 27, 2006, 05:14:17 pm »
php blahblah.php

It's as simple as that. What you would want to do however is make a batch file to run the updater and add that updater to a scheduler to run at a specific time every day.
Eternalist
General of The Syndicate

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Persistent Whois cache with out-of-bot upgrading
« Reply #126 on: December 27, 2006, 05:16:31 pm »
You need to call php with the script as parameter.

Should be similar to the following (replace PathToPhp with the correct path):
Code: [Select]
PathToPhp\php whois-update.php
It needs some entries in the database to work with though :)

Offline nebhyper

  • BeBot User
  • **
  • Posts: 62
  • Karma: +0/-0
Re: Persistent Whois cache with out-of-bot upgrading
« Reply #127 on: December 27, 2006, 07:40:48 pm »
ok I did what you said.

A dos prompt window appears and goes away in about 1 second.  Is this correct?

Edit:  Whois table is already in the db as I have been using the modififed whois and cache since I first switched to BeBot 3 weeks ago.
« Last Edit: December 27, 2006, 07:44:23 pm by nebhyper »
Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: Persistent Whois cache with out-of-bot upgrading
« Reply #128 on: December 27, 2006, 08:12:51 pm »
Go to a command prompt first, don't run it via start -> run. That way if you get errors you'll be able to see them without the window just closing immediately. And make sure your running the update script in the command console, not the module itself :)

Also the update lakes a long time. I have my delay set at 1000ms and it takes about 3 hours to complete (but I also have 85k lines in my whois db).
« Last Edit: December 27, 2006, 08:14:39 pm by Malosar »
Eternalist
General of The Syndicate

Offline nebhyper

  • BeBot User
  • **
  • Posts: 62
  • Karma: +0/-0
Re: Persistent Whois cache with out-of-bot upgrading
« Reply #129 on: December 27, 2006, 08:16:53 pm »
Yes it appears that once I set it up in a batch fle with PAUSE I caught my errors.

I had to update my php.ini file and then it worked.


However, FC is having issues as a response from them timed out!!   I went to the forums and it took forever to load and sometimes timed out.


It is running right now, so I guess it will just take the 3hours as you said and who knows since it seems FC is crashing.



Thanks!!!!
Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.

Offline ilon

  • BeBot User
  • **
  • Posts: 22
  • Karma: +0/-0
Re: Persistent Whois cache with out-of-bot upgrading
« Reply #130 on: January 07, 2007, 02:05:46 am »
i get a somewhat strange error:
"Warning: fopen(http://www.anarchy-online.com/org/stats/d/rk1/name/2232322/basicstats.xml): failed to open stream: HTTP request failed! HTTP/1.0 500 Internal Server Error
 in /home/bebot/whois-update.php on line 10

Warning: fgets(): supplied argument is not a valid stream resource in /home/bebot/whois-update.php on line 13"
when i try to run the script...

Code: [Select]
/* Line */
/* 08 */ unction get_site($url)
/* 09 */ {
/* 10 */         $fp = fopen($url, "r");
/* 11 */        $content = ""; //11
/* 12 */
/* 13 */        while ($buffer = fgets($fp, 1024))
/* 14 */                $content .= $buffer;
/* 15 */
/* 16 */        return $content;
/* 17 */ }

the line notice isnt actually in the script, just for this post :)

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: Persistent Whois cache with out-of-bot upgrading
« Reply #131 on: January 07, 2007, 04:15:47 am »
I get a few of those as well. Like 10-50 when updating over 50K entries. Was guessing that FC site was slow to respond or something like that.
Luuv  Bot-Keeper of Vengeance ^^*

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Persistent Whois cache with out-of-bot upgrading
« Reply #132 on: January 07, 2007, 11:39:09 am »
Those are just warnings, no errors.

There are two possible reasons for this behavior:
1) the character or org doesn't exist.
2) FCs server is slow.

I'm just ignoring those warnings as the cache and updating still works.

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: Persistent Whois cache with out-of-bot upgrading
« Reply #133 on: January 10, 2007, 04:59:48 pm »
================================================
739 http queries for org information done!
47138 total http queries done!
42216 entries in database associated with an org modified!
87207 entries in database modified!
88570 entries in the whois cache!
232min 51sec runtime for org updates!
638min 24sec total runtime!
================================================

lol, I think "the internet" was having issues  :D
Eternalist
General of The Syndicate

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: Persistent Whois cache with out-of-bot upgrading
« Reply #134 on: January 10, 2007, 05:09:30 pm »
I run mine before work, done by the time I get home :D

-jj-

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


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 ]

* Who's Online
  • Dot Guests: 338
  • 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