How do I check my domoticz.db to find out if it has errors / corrupt
Domoticz will start but almost instantly seems to crash, a fresh install is fine but as soon as I import my old db it fails again, it has been working fine, the problems seem to have started since updating zigbee2mqtt. I can install a much older database (12 months plus) but this is missing a lot of devices.
TIA
Dave
PS. Raspberry Pi 3B+ running Buster from external SSD not an SD Card.
how to check database file ?
Moderators: leecollings, remb0
- waltervl
- Posts: 6689
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: how to check database file ?
For database check see the Troubleshooting Wiki https://www.domoticz.com/wiki/Troubleshooting
but immediate crash could also be related to using python plugins on a Raspberry Pi with Bullseye OS. Did you also update your RPi OS?
but immediate crash could also be related to using python plugins on a Raspberry Pi with Bullseye OS. Did you also update your RPi OS?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
meal
- Posts: 114
- Joined: Monday 04 March 2019 14:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2025.2
- Location: France
- Contact:
Re: how to check database file ?
Hello,
To check the integrity of domoticz.db (running on RPI) I perform the following steps
1 - stop domoticz service
sudo service domoticz stop
2 - copy domoticz db to my local computer using FileZilla
3 - restart domoticz
sudo service domoticz start
4 - check the integrity of domoticz.db using DB Browser (SQL Lite)
Open the db
then select menu
Tools/integrity check
BR
To check the integrity of domoticz.db (running on RPI) I perform the following steps
1 - stop domoticz service
sudo service domoticz stop
2 - copy domoticz db to my local computer using FileZilla
3 - restart domoticz
sudo service domoticz start
4 - check the integrity of domoticz.db using DB Browser (SQL Lite)
Open the db
then select menu
Tools/integrity check
BR
meal
Who is online
Users browsing this forum: No registered users and 1 guest