vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Self-Healing Database (https://vborg.vbsupport.ru/showthread.php?t=51560)

filburt1 04-12-2003 10:00 PM

Self-Healing Database
 
This hack will attempt to automatically repair a damaged table if a database error of that type should occur.

I haven't tested this yet because I don't really know how to forcefully break my tables, but conceptually it looks like it should work. Let me know if there are problems.

filburt1 04-14-2003 12:01 AM

Well I have been getting repair reports when any database error occurs but I haven't gotten a screwed-up table error yet.

thuffner 04-14-2003 12:11 AM

Cool. I installed it, hopefully it works! Good idea filburt! :)

Erwin 04-14-2003 01:10 AM

What a cool idea. Well done.

filburt1 04-14-2003 01:11 AM

Quote:

Today at 10:04 PM Erwin said this in Post #4
What a cool idea. Well done.

It just hit me, like the 740 errors about thread.myi that I got in my Inbox this morning. ;)

JulianD 04-14-2003 01:33 AM

Great idea.. I was thinking about it this morning, but I don't have the time to write it! thanks filburt!

Erwin 04-14-2003 01:50 AM

740? I just got 3,500 error emails about a similar issue. :)

filburt1 04-14-2003 01:52 AM

Well aren't we and our severely messed-up board special :p

Coincidently this seems to have started when my server changed to MySQL 4. Hopefully it's not related.

JulianD 04-14-2003 02:05 AM

hehee I got 2000 emails last time thread.MYI was corrupted :p I just installed this hack...

Filburt, you say that I got an email when a table is repaired?

PixelFx 04-14-2003 02:15 AM

I got that issue this morning as well, 230 emails. what happend?

filburt1 04-14-2003 02:19 AM

Quote:

Today at 10:59 PM JulianD said this in Post #9
hehee I got 2000 emails last time thread.MYI was corrupted :p I just installed this hack...

Filburt, you say that I got an email when a table is repaired?

With every error e-mail that you get now, there will be an extra line of text with the "repair report." It'll either say it fixed it, it couldn't, or it can't fix this type of error.

Dean C 04-14-2003 09:34 AM

Ingenius :)

Erwin 04-14-2003 09:54 AM

I've installed it... we shall see... :)

jbear6 04-14-2003 02:48 PM

Quote:

Yesterday at 09:44 PM Erwin said this in Post #7
740? I just got 3,500 error emails about a similar issue. :)
...and I thought 464 was a bunch!
Great idea filburt1 :)

Jbear6

filburt1 04-15-2003 01:42 PM

Here's what the new database errors look like. Note the last line:
Code:

Database error in vBulletin Mail System :

Invalid SQL: INSERT INTO mailmessage
    (userid, headers, dateline, readflag, fromname, subject, message)
    VALUES
mysql error: You have an error in your SQL syntax.  Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 3

mysql error number: 1064

Date: Tuesday 15th of April 2003 10:34:28 AM
Script: /mailcheck.php
Referer: http://www.webdesignforums.net/showt...2277#post72277
Repair Report: This type of error cannot be automatically repaired.

(also a teaser for my mail script :p)

mclark2112 04-15-2003 03:19 PM

Didn't work.

Stu 04-15-2003 03:22 PM

for those that dont know,
check this thread re the 'Thread.MYI' error

http://www.vbulletin.com/forum/showt...threadid=69171

filburt1 04-15-2003 04:01 PM

Quote:

Today at 12:13 PM mclark2112 said this in Post #16
Didn't work.

Explain.

snyx 04-15-2003 06:10 PM

im gettin these errors a good 4/5 times a day, Im luck I clicked over here and found this puppy, im gunna give her a go rite now, even if it means being late for C block english12 :D

snyx 04-15-2003 06:14 PM

installed, and it was so easy I can still make it to class on time!
haha..

thanks filburt, im going to cross my fingers and hope this does the trick (for now) my forums are in your code. (if that makes sense)

mclark2112 04-15-2003 08:16 PM

I installed the hack, as per the instructions and the board still went down. I got the error that the thread.myi could not be fixed.

filburt1 04-15-2003 08:21 PM

What was the exact error message you got? I probably screwed up the regex.

filburt1 04-16-2003 01:17 PM

Updated, should work now.

snyx 04-16-2003 09:45 PM

Database error in vBulletin 2.2.8:

Invalid SQL: SELECT COUNT(*) AS threads FROM thread
mysql error:

mysql error number: 0

Date: Wednesday 16th of April 2003 01:42:36 PM
Script: http://www.form-kaos.com/board/board/
Referer:
Repair Report: This type of error cannot be automatically repaired.

PKRWUD 04-17-2003 11:41 AM

I installed it yesterday, and my board is down right now. The only difference is that I'm not receiving the error emails.

snyx 04-17-2003 10:29 PM

hummm, filburt have ya abondoned this hack :(

it seems as my only hope for a temp fix until vb3 hits, or a solution is thought up.

oh well, I will continue to check in here :)

filburt1 04-17-2003 10:48 PM

I updated it a few days ago but as I've said I have no way of testing it until my database gets wasted again.

I suggested this to the devs previously but it was shot down, don't remember why.

zajako 04-17-2003 11:12 PM

You are on a roll filburt.

ub3x 04-25-2003 12:32 AM

umm, i'm afraid to install it, is it fixed now?

filburt1 04-25-2003 12:35 AM

It won't break anything but it's still not working. Will fix when I figure out what the hell is wrong.

Erwin 04-25-2003 02:24 AM

Should work, looking at the code.... keep working at it. :) It would be great to have this has a backup measure in case of table corruption.

filburt1 04-25-2003 10:31 PM

The whole bit where it fetches the table name is wrong but I'm reasonably sure I'm using the right regexp...

filburt1 04-25-2003 10:31 PM

...although it might work now.

TheEnd 04-26-2003 09:25 PM

:( My email record for errors was 120, I'll keep trying though, BUT if I combine em I get like 700 :)

PKRWUD 04-28-2003 01:44 AM

This is getting old quick. My site was going down on average once every 3 days, but it's gone down 4 times in the past 3 days. Ugh. Any luck with this yet?

filburt1 04-28-2003 01:46 AM

Have you used the very latest edit of this hack?

GaleForce 04-28-2003 04:17 AM

My email record for errors is well over 3000 :p

obiwan8472 05-05-2003 10:02 PM

My site has also been experiencing thread.myi errors recently. Each time I get to it before it gets too bad but still..

Any sign of this hack working yet?

Synicide 05-08-2003 02:58 AM

Thanks for this hack Filburt, might as well try and stop getting all those emails before they start coming in like crazy.

gmarik 05-17-2003 08:21 PM

Does it really works, Filburt?


All times are GMT. The time now is 01:45 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01801 seconds
  • Memory Usage 1,782KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete