database disk image is malformed Topic is solved

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
jjnj

database disk image is malformed

Post by jjnj »

Dear all,

I have this issue for some time. Today i decided to switch to a new SD card on my Pi3. Full new install and restored the backup from my previous installation.
Now i still get multiple messages the database disk image is malformed.

I already searched to forum but the original post with the exaxt same problem doesn't exist anymore?
http://www.domoticz.com/forum/viewtopic ... 861#p26470


2018-03-29 21:20:01.011 Error: SQL Query("DELETE FROM Temperature WHERE strftime('%s',datetime('now','localtime')) - strftime('%s',Date) > (SELECT p.nValue * 86400 From Preferences AS p WHERE p.Key='5MinuteHistoryDays')") : database disk image is malformed
2018-03-29 21:20:01.103 Error: SQL Query("DELETE FROM Meter WHERE strftime('%s',datetime('now','localtime')) - strftime('%s',Date) > (SELECT p.nValue * 86400 From Preferences AS p WHERE p.Key='5MinuteHistoryDays')") : database disk image is malformed

Can somebody help me with this?
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: database disk image is malformed

Post by waaren »

Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
jannl
Posts: 825
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2025.5.x
Location: Geleen
Contact:

Re: database disk image is malformed

Post by jannl »

Normally a csv export import fixes this. Please search the forum (or internet) for the exact steps
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest