the 'database disk image is malformed' message is coming from sqlite, and indicates a problem with your database file.
make a copy of it immediately, preferable to a disk other than the one it is on. then see if you can get any details about the corruption: sqlite3 weewx.sdb "pragma integrity_check" if you're lucky, you might be able to dump the database and reload it into a new database file, as tom instructs in this thread: https://groups.google.com/forum/#!topic/weewx-user/TfjBW8vJuXU the root cause could be a failing sd card, or an abrupt shutdown while a transaction was in progress, or ? m -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.