Jump to content

Recommended Posts

Posted

Good Monday to you all...

 

I'm getting a message with the following cron failure message:

 

subject: Cron <username@server#> mysqldump -u database_name -ppassword table_name | gzip -c > /home/username/backups/backup-bkclub-Monday.sql.gz

 

Message body: mysqldump: Can't get CREATE TABLE for table `wp_bad_behavior_log` (Can't open file: 'wp_bad_behavior_log.MYI'. (errno: 145))

 

 

This cron job has been working for months, and just stopped working late last week. I've been getting daily cron failures with the same message since that date. (With the obvious slight difference of the backup day and file name.)

 

Any suggestions on what may be causing this cron failure or what I could do to make it work again?

Posted

At the risk of sounding stupid: what for? Meaning: what am I looking for in the error logs. I feel like I'd have more success reading "War and Peace" in Russian than reading my error logs... :D

 

[And I don't even know the cyrilic alphabet!]

Posted

In the error logs, there are only 3 errors: all of them are looking for a robots.txt file.

 

No error logs earlier than [Mon Mar 20 13:14:52 2006]

 

Wonder what happened to my error logs?

Posted

The CPanel Error Log is only a web server error log, so your cron job would not record any errors there. (The cron job runs outside of the web server.)

 

It appears that the 'wp_bad_behavior_log' table has become damaged or corrupted, as indicated by the error number included with the error (errno: 145):

145 = Table was marked as crashed and should be repaired

I'd suggest attempting to repair the table in phpMyAdmin.

Posted

Yea, it sounds like your table got corrupted somehow.

 

Try going into phpmyadmin as David suggested, select your 'wp_bad_behavior_log' table, select operations, and you should have an option to repair table in there. That will most likely fix your problem. You can try a check table after that to see if it still reports any problems.

Posted

Thanks everybody for the help.

 

I've repaired the table. I tested a cron job, and I didn't get any messages, so I guess it is fixed. I'll verify when my daily cron job runs tomorrow morning. If I'm still having trouble, I'll get back to you!

Posted

Thanks Bruce.

 

No problem. You had a better guess at what to do than I did! ;)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...