I consider myself a fairly techno-savvy kinda gal. Most of the people on the internet have used software with my code in it. I can debug with the best of them. However, I really do like it when stuff just works.

I’ve loved moveable type and the whole notion of blogging. So what if I could code a whole web site in raw HTML? I could also type in binary, but who would want to? Hey, give me a simple form to fill out and I’ll find some spare minutes in my week to collect and publish my thoughts. I don’t need to make plans or data structures or any decision beyond which words to put into the box.

Tonight my lackadaisical attitude caught up with me. I was writing a (different) blog entry when I was suddenly confronted by:

    Saving entry failed: Can’t open file: ‘mt_entry.MYD’. (errno: 145)

Eek! I rushed right back to copy and paste my latest words into a safe haven, then proceeded to investigate. Now “Sarah Allen’s Weblog Editing Menu” reports no entries, not zero, mind you, its:

    Entries: Comments: 192 Authors: 1

It’s like the entries never even showed up to play. The comments are winning and the author has surely lost. A quick glance at www.ultrasaurus.com reveals a completely blank page — I had to view source to be sure:

    <html><body></body></html>

My life flashes before my eyes. All those moments when I could have backed up my data, yet didn’t. Being able to write software makes me no more eager to back up my data than being good at algebra makes me want to balance my checkbook. It’s worse than dust bunnies in the corners, dishes in the sink, or broken windows. You don’t ever see it, until its too late.

Belatedly I back up my files and consider a future perl script to suck all those files back into a database if the situation turns out to be unrecoverable. While the files download, I berate myself for not having upgraded movable type. I dig thru Media Temple’s nifty control panel and realize that I haven’t looked at this MySQL database since I set it up two years ago. I don’t remember how to do any of this. I’ve forgotten the passwords. I notice that I’ve somehow managed to chew up almost all of my allotted disk space. That can’t be good. After a little housecleaning, the home page is still blank.

I search google but the error string yields zero results and all my natural language descriptions generate helpful solutions for other problems. I finally give up and describe my failure in detail in the movable type support forum.

This leads me to my Eliza moment when I reproduce the error above and decide to search for part of the string. I discover dozens of helpful tips on how to repair exactly this MySQL problem using PHPmyAdmin which was thoughtfully provided by my ISP. I dig up the password and have to consult three different google results in order to find the exact steps through this challenging GUI:
1) click the check box next to the offending table
2) look all the way down to the bottom where you’ll see a drop-down menu
3) choose repair

I repair two tables that had reported that they were ‘IN USE’ and all is well. I reply to my very own forum posting at movable type and resolve to rotate my log files and clear out my mailspool… tomorrow.

4 thoughts on “holy disappearing blog entries

  1. I like to couple my techno-savvy with an uncomfortable paranoia about losing my work.

    So I have a really simple MT template (in the “archive-related templates” section) that writes XML versions of all my blog entries every time I rebuild the site. Then I have a cron job at home that pulls down copies of all these files nightly. So if my server burns down, I’m covered, or if I just switch blog engines, I should have an easy-ish migration path. (that second part is a lesson learned from my move to MT from a home-grown system: don’t throw away the raw data.)

    The template is here:
    http://www.antisleep.com/templates/backup-all-xml.tmpl

    And in MT’s weblog config/archiving page, I use an archive filename template like this:
    xml/<$MTEntryDate format=”%Y-%m-%d”$>_<$MTEntryID zero_pad=”4″$>.xml

    The cron stuff is a little more complicated for other reasons but a simple rsync command will do ya.

  2. Thanks ever-so-much for this post. I’m much less tech-savvy than you, but I managed to fix the problem I was having with my blogs thanks to your documentation. Thanks!!!

  3. Another hearty thanks. The overview you presented of the solution was exactly the fix that I needed. My life was definitely flashing before my eyes as well.

Leave a reply

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

required