Most likely, the SD card in your RPi is beginning to fail. Hopefully, you
have a backup.

You may be able to save it by dumping it, then restoring, using the tool
sqlite3.

sudo apt-get install sqlite3
echo '.dump' | sqlite3 /var/lib/weewx/weewx.sdb | sqlite3 /var/tmp/weewx.sdb
sudo mv /var/lib/weewx/weewx.sdb /var/lib/weewx/weewx.sdb.old
sudo mv /var/tmp/weewx.sdb /var/lib/weewx/weewx.sdb


It's a long shot, but you might get lucky.

-tk

On Thu, Mar 23, 2017 at 10:33 AM, Juan Antonio Mosquera <
[email protected]> wrote:

> I have a problem after install...
>
>
> Mar 23 18:23:37 raspberrypi weewx[17770]:         ****    File
> "/usr/share/weewx/weewx/reportengine.py", line 239, in run
> Mar 23 18:23:37 raspberrypi weewx[17770]:         ****      obj.start()
> Mar 23 18:23:37 raspberrypi weewx[17770]:         ****    File
> "/usr/share/weewx/weewx/reportengine.py", line 273, in start
> Mar 23 18:23:37 raspberrypi weewx[17770]:         ****      self.run()
> Mar 23 18:23:37 raspberrypi weewx[17770]:         ****    File
> "/usr/share/weewx/weewx/imagegenerator.py", line 31, in run
> Mar 23 18:23:37 raspberrypi weewx[17770]:         ****
>  self.genImages(self.gen_ts)
> Mar 23 18:23:37 raspberrypi weewx[17770]:         ****    File
> "/usr/share/weewx/weewx/imagegenerator.py", line 141, in genImages
> Mar 23 18:23:37 raspberrypi weewx[17770]:         ****
>  aggregate_interval=aggregate_interval)
> Mar 23 18:23:37 raspberrypi weewx[17770]:         ****    File
> "/usr/share/weewx/weewx/manager.py", line 512, in getSqlVectors
> Mar 23 18:23:37 raspberrypi weewx[17770]:         ****
>  aggregate_type, aggregate_interval)
> Mar 23 18:23:37 raspberrypi weewx[17770]:         ****    File
> "/usr/share/weewx/weewx/manager.py", line 739, in _getSqlVectors
> Mar 23 18:23:37 raspberrypi weewx[17770]:         ****
>  _cursor.execute(sql_str, stamp)
> Mar 23 18:23:37 raspberrypi weewx[17770]:         ****    File
> "/usr/share/weewx/weedb/sqlite.py", line 29, in guarded_fn
> Mar 23 18:23:37 raspberrypi weewx[17770]:         ****      return
> fn(*args, **kwargs)
> Mar 23 18:23:37 raspberrypi weewx[17770]:         ****    File
> "/usr/share/weewx/weedb/sqlite.py", line 211, in execute
> Mar 23 18:23:37 raspberrypi weewx[17770]:         ****      return
> sqlite3.Cursor.execute(self, *args, **kwargs)
> Mar 23 18:23:37 raspberrypi weewx[17770]:         ****  DatabaseError:
> database disk image is malformed
> Mar 23 18:23:37 raspberrypi weewx[17770]: copygenerator: copied 0 files to
> /var/www/html/weewx/
>
>
> Thanks!
>
> --
> 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.

Reply via email to