Previous Thread
Next Thread
Print Thread
Hop To
Joined: Oct 2006
Posts: 49
W
journeyman
journeyman
W Offline
Joined: Oct 2006
Posts: 49
I have an emergency with my boards. They are down with this error: SQL Error: Table 't1' is marked as crashed and should be repaired

Can anyone help me figure out what's going on?

Thanks,

Wayne

Joined: Oct 2006
Posts: 49
W
journeyman
journeyman
W Offline
Joined: Oct 2006
Posts: 49
This is the error message:

Script: /var/www/bitog/forums/scripts/cfrm.inc.php
Line#: 346
SQL Error: Table 't1' is marked as crashed and should be repaired
SQL Error #: 1194
Query: select COUNT(t1.POST_ID) as posts, sum(t1.POST_IS_TOPIC) as topics from ubbt_POSTS as t1, ubbt_TOPICS as t2 where t2.FORUM_ID = '1' and t1.TOPIC_ID = t2.TOPIC_ID and t1.POST_IS_APPROVED = '1' and t1.POST_POSTED_TIME > '1194669713'

Joined: Oct 2006
Posts: 49
W
journeyman
journeyman
W Offline
Joined: Oct 2006
Posts: 49
All,

Was able to fix with:

server:/var/lib/mysql/bitog# myisamchk -r ubbt_POSTS.MYI
- recovering (with sort) MyISAM-table 'ubbt_POSTS.MYI'
Data records: 1026271
- Fixing index 1
Key 1 - Found wrong stored record at 1102838896

Anybody have any idea why this corruption happened?

Wayne

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
It's a fact of reality that tables sometimes get currupted, the only way to fix them is as you did with a repair on the table (which shouldn't take long at all).


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Dec 2003
Posts: 1,796
Pooh-Bah
Pooh-Bah
Joined: Dec 2003
Posts: 1,796
Yeah, sometimes the server will 'hiccup' and corrupt your data, could be a lot of reasons - one more reason for a good backup system.


- Allen
- ThreadsDev | PraiseCafe
Joined: Oct 2006
Posts: 49
W
journeyman
journeyman
W Offline
Joined: Oct 2006
Posts: 49
Seems that it's the RAID controller that is causing the corruption. It's been replaced, but now the master drive in the RAID 1 stripe has corruption. This hurts.... boards down for hours...

Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
Sorry to hear. Good luck and hope that get the drive replaced and up and running soon for you.


Joined: Oct 2006
Posts: 49
W
journeyman
journeyman
W Offline
Joined: Oct 2006
Posts: 49
Thanks - we were back up in about 8 hrs, but lost 36 hrs worth of posts. I'm very thankful that I did a backup when I did...

Wayne


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Nightcrawler), 445 guests, and 142 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)