News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Incorrect key file for table 'smf_settings'; try to repair it

Started by BREZ, January 03, 2012, 10:44:48 AM

Previous topic - Next topic

BREZ

Have added no mods, cant access forum, host said nothing wrong on their side.

Tried repairing db...

Quoteaopairel_smf1.backup_smf_attachments               OK
aopairel_smf1.backup_smf_ban_groups                OK
aopairel_smf1.backup_smf_ban_items                 OK
aopairel_smf1.backup_smf_board_permissions         OK
aopairel_smf1.backup_smf_boards                    OK
aopairel_smf1.backup_smf_calendar                  OK
aopairel_smf1.backup_smf_calendar_holidays         OK
aopairel_smf1.backup_smf_categories                OK
aopairel_smf1.backup_smf_collapsed_categories      OK
aopairel_smf1.backup_smf_log_actions               OK
aopairel_smf1.backup_smf_log_activity              OK
aopairel_smf1.backup_smf_log_banned                OK
aopairel_smf1.backup_smf_log_boards                OK
aopairel_smf1.backup_smf_log_errors                OK
aopairel_smf1.backup_smf_log_floodcontrol          OK
aopairel_smf1.backup_smf_log_karma                 OK
aopairel_smf1.backup_smf_log_mark_read             OK
aopairel_smf1.backup_smf_log_notify                OK
aopairel_smf1.backup_smf_log_online                OK
aopairel_smf1.backup_smf_log_polls                 OK
aopairel_smf1.backup_smf_log_search_messages       OK
aopairel_smf1.backup_smf_log_search_results        OK
aopairel_smf1.backup_smf_log_search_subjects       OK
aopairel_smf1.backup_smf_log_search_topics         OK
aopairel_smf1.backup_smf_log_topics                OK
aopairel_smf1.backup_smf_membergroups              OK
aopairel_smf1.backup_smf_members                   OK
aopairel_smf1.backup_smf_message_icons             OK
aopairel_smf1.backup_smf_messages                  OK
aopairel_smf1.backup_smf_moderators                OK
aopairel_smf1.backup_smf_package_servers           OK
aopairel_smf1.backup_smf_permissions               OK
aopairel_smf1.backup_smf_personal_messages         OK
aopairel_smf1.backup_smf_pm_recipients             OK
aopairel_smf1.backup_smf_poll_choices              OK
aopairel_smf1.backup_smf_polls                     OK
aopairel_smf1.backup_smf_sessions                  OK
aopairel_smf1.backup_smf_settings                  OK
aopairel_smf1.backup_smf_smileys                   OK
aopairel_smf1.backup_smf_themes                    OK
aopairel_smf1.backup_smf_topics                    OK
aopairel_smf1.smf_admin_info_files                 OK
aopairel_smf1.smf_approval_queue                   OK
aopairel_smf1.smf_attachments                      OK
aopairel_smf1.smf_ban_groups
Error    : Incorrect key file for table 'smf_ban_groups'; try to repair it
error    : Corrupt
aopairel_smf1.smf_ban_items
Error    : Incorrect key file for table 'smf_ban_items'; try to repair it
error    : Corrupt
aopairel_smf1.smf_board_permissions                OK
aopairel_smf1.smf_boards                           OK
aopairel_smf1.smf_calendar                         OK
aopairel_smf1.smf_calendar_holidays                OK
aopairel_smf1.smf_categories                       OK
aopairel_smf1.smf_collapsed_categories             OK
aopairel_smf1.smf_custom_fields                    OK
aopairel_smf1.smf_fc_bans                          OK
aopairel_smf1.smf_fc_config                        OK
aopairel_smf1.smf_fc_config_chats                  OK
aopairel_smf1.smf_fc_config_instances              OK
aopairel_smf1.smf_fc_config_values                 OK
aopairel_smf1.smf_fc_connections                   OK
aopairel_smf1.smf_fc_ignors                        OK
aopairel_smf1.smf_fc_messages                      OK
aopairel_smf1.smf_fc_rooms                         OK
aopairel_smf1.smf_group_moderators                 OK
aopairel_smf1.smf_log_actions                      OK
aopairel_smf1.smf_log_activity                     OK
aopairel_smf1.smf_log_banned                       OK
aopairel_smf1.smf_log_boards                       OK
aopairel_smf1.smf_log_comments                     OK
aopairel_smf1.smf_log_digest                       OK
aopairel_smf1.smf_log_errors                       OK
aopairel_smf1.smf_log_floodcontrol                 OK
aopairel_smf1.smf_log_group_requests               OK
aopairel_smf1.smf_log_karma                        OK
aopairel_smf1.smf_log_mark_read                    OK
aopairel_smf1.smf_log_member_notices               OK
aopairel_smf1.smf_log_notify
Error    : Incorrect key file for table 'smf_log_notify'; try to repair it
error    : Corrupt
aopairel_smf1.smf_log_online                       OK
aopairel_smf1.smf_log_packages                     OK
aopairel_smf1.smf_log_polls                        OK
aopairel_smf1.smf_log_reported                     OK
aopairel_smf1.smf_log_reported_comments            OK
aopairel_smf1.smf_log_scheduled_tasks              OK
aopairel_smf1.smf_log_search_messages              OK
aopairel_smf1.smf_log_search_results               OK
aopairel_smf1.smf_log_search_subjects              OK
aopairel_smf1.smf_log_search_topics                OK
aopairel_smf1.smf_log_spider_hits                  OK
aopairel_smf1.smf_log_spider_stats                 OK
aopairel_smf1.smf_log_subscribed                   OK
aopairel_smf1.smf_log_topics                       OK
aopairel_smf1.smf_mail_queue                       OK
aopairel_smf1.smf_membergroups                     OK
aopairel_smf1.smf_members                          OK
aopairel_smf1.smf_message_icons                    OK
aopairel_smf1.smf_messages                         OK
aopairel_smf1.smf_moderators                       OK
aopairel_smf1.smf_openid_assoc                     OK
aopairel_smf1.smf_package_servers
Error    : Incorrect key file for table 'smf_package_servers'; try to repair it
error    : Corrupt
aopairel_smf1.smf_permission_profiles              OK
aopairel_smf1.smf_permissions                      OK
aopairel_smf1.smf_personal_messages                OK
aopairel_smf1.smf_pm_recipients                    OK
aopairel_smf1.smf_pm_rules                         OK
aopairel_smf1.smf_poll_choices                     OK
aopairel_smf1.smf_polls                            OK
aopairel_smf1.smf_scheduled_tasks                  OK
aopairel_smf1.smf_sessions                         OK
aopairel_smf1.smf_settings
Error    : Incorrect key file for table 'smf_settings'; try to repair it
error    : Corrupt
aopairel_smf1.smf_smileys                          OK
aopairel_smf1.smf_spiders                          OK
aopairel_smf1.smf_subscriptions                    OK
aopairel_smf1.smf_themes
Error    : Incorrect key file for table 'smf_themes'; try to repair it
error    : Corrupt
aopairel_smf1.smf_topics                           OK
aopairel_smf1.td_announcements                     OK
aopairel_smf1.td_article_rate                      OK
aopairel_smf1.td_articles                          OK
aopairel_smf1.td_asessions                         OK
aopairel_smf1.td_attachments                       OK
aopairel_smf1.td_canned                            OK
aopairel_smf1.td_categories                        OK
aopairel_smf1.td_comments                          OK
aopairel_smf1.td_depart_fields                     OK
aopairel_smf1.td_departments                       OK
aopairel_smf1.td_groups                            OK
aopairel_smf1.td_in_email_log                      OK
aopairel_smf1.td_languages                         OK
aopairel_smf1.td_logs                              OK
aopairel_smf1.td_members                           OK
aopairel_smf1.td_news_comments                     OK
aopairel_smf1.td_pages                             OK
aopairel_smf1.td_profile_fields                    OK
aopairel_smf1.td_replies                           OK
aopairel_smf1.td_reply_rate                        OK
aopairel_smf1.td_sessions                          OK
aopairel_smf1.td_settings                          OK
aopairel_smf1.td_settings_groups                   OK
aopairel_smf1.td_skins                             OK
aopairel_smf1.td_tickets                           OK
aopairel_smf1.td_tokens                            OK
aopairel_smf1.td_upg_history                       OK
aopairel_smf1.td_validation                        OK
Repair Complete

Chas Large

Check the settings with Repair Settings, there may be a problem with the username, passwords, paths etc.

What is repair_settings.php?

If this allows you to access the forum, use the Forum Maintenance > Find and Repair Errors.

If that's no good, remove your search index and create another.

Best I can come up with having never experienced this error.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

BREZ

Thanks Chas,
Not working!
My host informs me it may be a database hack message. This is exactly how i read it too!
Possibly beyond the repair stage, maybe a fresh install is the ONLY option when this message is received.

Chas Large

You could try creating a new database and linking the forum to that instead. You can manually download the settings file via FTP and making the changes there. Then maybe importing older posts from a backup prior to the problem occurring. Or even just restoring a database backup may be the answer.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

ziycon

Try running the below queries in phpmyadmin for the relevant database using the 'SQL' tab, if its a badly corrupted key file there are other ways to fix the issue, let us know how you get on.
REPAIR TABLE smf_ban_groups;
REPAIR TABLE smf_ban_items;
REPAIR TABLE smf_log_notify;
REPAIR TABLE smf_package_servers;
REPAIR TABLE smf_settings;
REPAIR TABLE smf_themes;

BREZ

Nothing worked Guys, Thanks for your assistance anyway.
Brez.

ziycon


BREZ

I already found that thread and went through it.

My problem is that the website was hacked!

ziycon

Quote from: BREZ on January 03, 2012, 09:17:14 PMMy host informs me it may be a database hack message. This is exactly how i read it too!
The errors you posted don't necessarily suggest a hack.

The error below can be caused by many different things for example an issue with a disk or a server crash while a write was being performed on the table.
QuoteIncorrect key file for table

Are there other reasons to suggest that your forum was hacked apart from your host suggesting that its a database hack message?

BREZ

Yes, My phpformcreator was cleaned out with new form created pointing to a spammers address, my image galery was cleared and advertisements appeared everywhere.

Chas Large

Sounds like a total wipe of the site and reinstall from New using a backup of the database is in order.
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.

Joker™

I haven't gone through the complete topic but from my experience the "Incorrect key file for table" message pops up when you are out of disk space.

For more info you can read this article, found it about 6 months ago but might be helpful to you ;).
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

BREZ

wish it was that simple.
I have a total of 25Gb and according to my cpanel i have used 272Mb and 84Mb in Transfer!

To make matters worse my sites last backup was AFTER the hack!

Joker™

Umm if thats the case you might try to grab the large upgrade pack and try to re-upgrade your forum once again. Worth a try ;).
Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

BREZ

Yes, thats along the line i was thinking.

Perhaps the 700+ membership can be retrieved.

ModelBoatMayhem

#15
Evening all!

I've just updated my MySQL from 4.1 to MySQL 5.1 via cpanel.... something gone badly wrong.

The forum has crashed with "Incorrect key file for table 'mbmf_members'; try to repair it"


( I have a full back - 67Mb uncompressed   -   
(forum ver 1.1.9)


Any help / guidance would be gratefully appreciated.



Martin
That's my firm opinion.... but what do I know?!

Illori

please open a separate thread for your issue, this thread belongs to someone else.

ModelBoatMayhem

That's my firm opinion.... but what do I know?!

Illori

we request everyone to open their own threads, that way we can make sure each person gets their issue resolved, otherwise we will loose track of issues that others post in someone elses thread, not to mention that it makes it more difficult to help multiple people in one thread.

ModelBoatMayhem

That's my firm opinion.... but what do I know?!

Advertisement: