Database 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
JuanUil
Posts: 500
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Database malformed?

Post by JuanUil »

Hi there,

since a few days I find the following in my log.
2019-11-12 15:00:00.947 Status: Starting automatic database backup procedure...
2019-11-12 15:00:01.363 Error: SQL Query("VACUUM") : database disk image is malformed
2019-11-12 15:00:04.693 Status: Ending automatic database backup procedure...
everything is working well so anybody any idea how to fix this?

Thnx in advance

Jan
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
JuanUil
Posts: 500
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Re: Database malformed?

Post by JuanUil »

allways when I post a problem the new posts are refreshed and my post is gone :oops: :oops: :oops:
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
User avatar
jvdz
Posts: 2445
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Database malformed?

Post by jvdz »

Are you using a RAMDrive for TMP and could it be this is not large enough anymore to hold a copy of your domoticz.db for the vacuum operation?
Check available space with: df -k
And the size of your domoticz.db with : ls -l /home/pi/domoticz

EDIT: actually I guess your DB is really having issue and needs to be checked. Will search for the post on that made earlier and post back.
EDIT2: check out this thread: https://www.domoticz.com/forum/viewtopi ... ed#p202504

Jos
JuanUil
Posts: 500
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Re: Database malformed?

Post by JuanUil »

Hi Jos,

Thnx for your reply.
no I have no ramdrive.
I will check the supposed procdure with sqlite, thnx!!

jan
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
JuanUil
Posts: 500
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.11083
Location: Asten NB Nederland
Contact:

Re: Database malformed?

Post by JuanUil »

Thnx Jos,

everything is normal again!!

Jan :D :D :D
Your mind is like a parachute,
It only works when it is opened!

RPI4 several Fibaro, KaKu, Neocoolcam switches, Z-Wave, Zigbee2Mqtt, Ikea bulbs and remote, Zigbee temp nodes
Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Bing [Bot] and 1 guest