Most likely the USB stick is corrupted. They are not designed to be primary storage, so it has probably worn out and failed.
One thing to try. The error occurred while dumping the daily summaries, which need not be saved --- they can recreated from the archive. So, you can try just dumping the archive: echo '.dump archive' | sqlite 3 ./weewx.sdb If that does not work, you will have to restore from a backup. Then use a top-quality SD card or, better yet, a SSD or hard drive. -tk On Sat, Sep 2, 2017 at 6:17 AM, 'Ralf Buck' via weewx-user < [email protected]> wrote: > echo '.dump' | sqlite3 ./weewx.sdb > > .... > INSERT INTO "archive_day_wind" VALUES(1494972000,0.0, > 1494973048,13.7,1495019248,3.62385185185185498824e+02,288, > 3.62385185185185498824e+02,288,NULL,2.34090915588452297413e+02,-8. > 79672687838567135543e+01,259,9.18866833690265671918e+02,9. > 18866833690265671918e+02); > /**** ERROR: (11) database disk image is malformed *****/ > COMMIT; > > -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
