This might mean that you’ve used up your quota (or disk space).
I had a hard time figuring that out. Many other strange errors, but I just didn’t see the signs. Finally found out. It is weird how thoroughly the computer breaks when it hasn’t enough disk space left.
Just wrote this because it doesn’t exist on the intarwebs now.
sqlite: database disk image malformed
I also got this error from sqlite PHP and thought I’d made a database with sqlite3 and trying to use it with sqlite2. Weird, because it worked before. No-no, turns out the disk image was malformed because I didn’t have any space left.
I guess many programs break in such mysterious ways when they’re out of space.