The Day My Blog Broke

April 1, 2003 10:59 PM

Today's hint. If you wake up one morning, your MT comments pages tell you that the articles don't exist, and your login isn't accepted, perhaps your web-host has upgraded the Berkeley DB installation on the server?

Luckily, the MT Manual has the answer: you have to run db_upgrade on all the DB files.

Of course it wasn't quite that simple: I don't have ssh access on the server because for some bizarre reason, my provider wants me to fax them a copy of my ID before they let me ssh in, and I'm (a) too lazy, and (b) wary of sending anyone documentation that could later be used in identity theft. As such, I had to write a script that did the upgrade, upload it into my CGI directory, run it, and then delete it again.

4 Comments

Ah, the old CGI backdoor. ;-)
I have used that trick when I had to work on the weekend on a site and there was no sys-admin.

I ended up with a C program where I just changed the system command line and recompiled each time.
I did consider making the command a request parameter then got scared of what might happen if I forgot to remove it after.

I was tempted to upload a backdoor that would allow me to get a shell, but that would probably get my account taken away. :)

Can you please send me that script? I'd like to upgrade my db files, but do not have shell access to my account...

Thanks!

I have the same problem, but no way of gaining shell access and absolutely no skills in anything as advanced as writing scripts - any chanco of getting yours?

Comments are no longer being accepted for this blog entry. If you really want to make your voice heard, you can always email me.

Previously: Thread.run()

Next: iPod Update Fixes Battery-Life Problem