vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Weird and damaging SQL event - my vb_post table just randomly emptied! (https://vborg.vbsupport.ru/showthread.php?t=155154)

moonclamp 08-13-2007 10:01 PM

Weird and damaging SQL event - my vb_post table just randomly emptied!
 
Earlier on my site was running very strangely - I kept getting the following SQL error on the forum index and a couple of other pages:

Quote:

Originally Posted by my warning emails
MySQL Error : Got error 12 from storage engine Error Number : 1030
Date : Monday, August 13th 2007 @ 08:03:00 PM



Not being too sure what it was I decided to repair/optimise the tables. There was another db outage in the middle of the optimisation. There were a few like this, a couple of them actually killed phpMyadmin for a while.

When the site eventually came back to life, none of my threads had any posts - I checked the vb_post table and it was empty :eek:

"MySQL returned an empty result set (i.e. zero rows). (Query took 0.0002 sec)"

Can anyone shed any light on what happened? Are all 287000+ posts just gone in the twinkling of an eye? Or are they just moved to somewhere my forum can't find them?

Can they be retrieved? :confused:

Eikinskjaldi 08-14-2007 02:53 AM

Error 12 means the OS was unable to allocate enough memory. What OS are you running, which storage engine are you using, what kind of plan are you on (shared, vps, dedicated).

I think it likely that your posts are gone, but it could instead be a really, really corrupted index file. The best way to check is to look at the file directly. Assuming you are on some kind of vanilla linux and have root access, as root type ls -l /var/lib/mysql/<your db name>/vb_post.*

If you don't have root access or are not using myisam, this will not work.

moonclamp 08-14-2007 06:04 AM

Shared linux hosting, not sure what flavour of linux though - got cpanel and sadly no root access.

Eikinskjaldi 08-14-2007 06:38 AM

Think you are stuffed mate. Even if you have a backup, there is no guarantee it wont happen again. I'd be moving hosts.

Marco van Herwaarden 08-14-2007 07:57 AM

If the current post table really don't have any rows in it anymore, then you will need to revert to a backup.

Trying to repair the tables while you receive an error 12 is probably the cause of it being emptied.

Please contact your host for the options to repair this and prevent it from happening in the future.

moonclamp 08-14-2007 08:38 AM

yeah looks like it's time to restore from a backup - I'm kicking myself now for not making them a bit more regularly.

Ah well, you live and learn (sometimes)

deezelpope 08-14-2007 09:48 AM

Damn...Poor guy!:( I feel your pain, Moonclamp! I thought I had lost my entire board last week! A nice guy from here, ZomgStuff, helped me fix it.

Good luck to you.

moonclamp 08-14-2007 05:58 PM

I changed my mind about the backup.

My last one was a bit too old (I'd been lazy) so sent out a mass email saying we needed to work together to get back to how we were.

Anyway, in less than 12 hours we've had 120 new threads and almost 900 new posts - and the atmosphere had been better than it has for a long time - I'm almost grateful it went wrong. :)

(Good job it wasn't the memberlist that broke though)

Dismounted 08-16-2007 11:09 AM

If you're too lazy to backup, just set a cron to backup into a file. It's the "Set & Forget" way :).


All times are GMT. The time now is 11:06 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.02785 seconds
  • Memory Usage 1,725KB
  • 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_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete