Weewx still running after 3 years. Currently running ver. 3.2.1 on a Pi / Davis Vantage Pro 2 (with memory added).
I have just noticed the error as outlined below. I have a backup of weewx.sdb and it exhibits the same fault. I have a script that makes a copy
every night, it would appear both databases are corrupt.
It appears that the Pi stopped collecting data from the Davis Pro on the 18/2/2016 and there is now an error when I try to start weewx.
I can view the database on my windows 8.1 system using the DB Browser for SQLite program.
Can someone kindly advise me what actions I should take...I'm aware of wee_database but have not used it. No real experience in the DB world.
Thanks in advance.
Feb 25 18:23:57 weewx weewx[2373]: engine: StdConvert target unit is 0x1
Feb 25 18:23:57 weewx weewx[2373]: engine: Archive will use data binding wx_binding
Feb 25 18:23:57 weewx weewx[2373]: engine: Record generation will be attempted in 'hardware'
Feb 25 18:23:57 weewx weewx[2373]: engine: Using archive interval of 300 seconds
Feb 25 18:23:57 weewx weewx[2373]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Feb 25 18:23:57 weewx weewx[2373]: engine: Starting backfill of daily summaries
Feb 25 18:23:57 weewx weewx[2373]: engine: Daily summaries up to date.
Feb 25 18:23:58 weewx weewx[2373]: restx: Wunderground-RF: Data for station INEWSOUT246 will be posted
Feb 25 18:23:58 weewx weewx[2373]: engine: Starting up weewx version 3.2.1
Feb 25 18:23:58 weewx weewx[2373]: engine: Clock error is -0.68 seconds (positive is fast)
Feb 25 18:24:01 weewx weewx[2373]: manager: added record 2016-02-18 20:40:00 AEDT (1455788400) to database 'weewx.sdb'
Feb 25 18:24:02 weewx weewx[2373]: engine: Caught unrecoverable exception in engine:
Feb 25 18:24:02 weewx weewx[2373]: **** database disk image is malformed
Feb 25 18:24:02 weewx weewx[2373]: **** Traceback (most recent call last):
Feb 25 18:24:02 weewx weewx[2373]: **** File "/home/weewx/bin/weewx/engine.py", line 842, in main
Feb 25 18:24:02 weewx weewx[2373]: **** engine.run()
Feb 25 18:24:02 weewx weewx[2373]: **** File "/home/weewx/bin/weewx/engine.py", line 154, in run
Feb 25 18:24:02 weewx weewx[2373]: **** self.dispatchEvent(weewx.Event(weewx.STARTUP))
Feb 25 18:24:02 weewx weewx[2373]: **** File "/home/weewx/bin/weewx/engine.py", line 218, in dispatchEvent
Feb 25 18:24:02 weewx weewx[2373]: **** callback(event)
Feb 25 18:24:02 weewx weewx[2373]: **** File "/home/weewx/bin/weewx/engine.py", line 519, in startup
Feb 25 18:24:02 weewx weewx[2373]: **** self._catchup(self.engine.console.genStartupRecords)
Feb 25 18:24:02 weewx weewx[2373]: **** File "/home/weewx/bin/weewx/engine.py", line 634, in _catchup
Feb 25 18:24:02 weewx weewx[2373]: **** origin='hardware'))
Feb 25 18:24:02 weewx weewx[2373]: **** File "/home/weewx/bin/weewx/engine.py", line 218, in dispatchEvent
Feb 25 18:24:02 weewx weewx[2373]: **** callback(event)
Feb 25 18:24:02 weewx weewx[2373]: **** File "/home/weewx/bin/weewx/engine.py", line 595, in new_archive_record
Feb 25 18:24:02 weewx weewx[2373]: **** dbmanager.addRecord(event.record)
Feb 25 18:24:02 weewx weewx[2373]: **** File "/home/weewx/bin/weewx/manager.py", line 234, in addRecord
Feb 25 18:24:02 weewx weewx[2373]: **** self._addSingleRecord(record, cursor, log_level)
Feb 25 18:24:02 weewx weewx[2373]: **** File "/home/weewx/bin/weewx/manager.py", line 1156, in _addSingleRecord
Feb 25 18:24:02 weewx weewx[2373]: **** self._set_day_summary(_day_summary, record['dateTime'], cursor)
Feb 25 18:24:02 weewx weewx[2373]: **** File "/home/weewx/bin/weewx/manager.py", line 1429, in _set_day_summary
Feb 25 18:24:02 weewx weewx[2373]: **** cursor.execute(_sql_replace_str, _write_tuple)
Feb 25 18:24:02 weewx weewx[2373]: **** File "/home/weewx/bin/weedb/sqlite.py", line 28, in guarded_fn
Feb 25 18:24:02 weewx weewx[2373]: **** return fn(*args, **kwargs)
Feb 25 18:24:02 weewx weewx[2373]: **** File "/home/weewx/bin/weedb/sqlite.py", line 198, in execute
Feb 25 18:24:02 weewx weewx[2373]: **** return sqlite3.Cursor.execute(self, *args, **kwargs)
Feb 25 18:24:02 weewx weewx[2373]: **** DatabaseError: database disk image is malformed
Feb 25 18:24:02 weewx weewx[2373]: **** Exiting.