importing database not working
Posted: Wednesday 21 October 2020 15:35
Hello,
I've been using Domoticz on the same Raspberry pi (2B) since 2015, unfortunately about 3 weeks ago the sd-card got corrupt and went into "read-only" mode. Since then Domoticz and some other services went offline (probably because no logging can't be written).
I can acces the data via ssh and ftp but both are very (VERY) slow (booting the old raspberry with the broken sd takes about 30 minutes).
To stay up date I bought a new raspbery (4B) and flashed a blanc installation to a new sd, installed domoticz, etc.
So far so good, but when trying to "restore" the domoticz.db file the problems started..
I stopped domoticz, renamed the "blanc" domoticz.db file and placed back the domoticz.db from the old pi.
Started domoticz again and... nothing. No devices, no configuration (double checked in private session).
Next step was activating the fresh domoticz.db again and try to upload the backup file via the frontend.
Direct after uploading, domoticz crashed (logging is attached, but this goes way beyond my raspberry knowledge) and doesn't work unless I restore the "blanc" .db file. I tried 1 backup file from the hourly backup-dir, but same result.
What can I try to get back my "old" configuration (please say there are options.... 5 years of scriting, configurating and expanding).
What I noticed:
domoticz.db: 1,4MB
files in hourly backup folder: eveything between 2 and 6MB (why the large difference, is this normal?)
I've been using Domoticz on the same Raspberry pi (2B) since 2015, unfortunately about 3 weeks ago the sd-card got corrupt and went into "read-only" mode. Since then Domoticz and some other services went offline (probably because no logging can't be written).
I can acces the data via ssh and ftp but both are very (VERY) slow (booting the old raspberry with the broken sd takes about 30 minutes).
To stay up date I bought a new raspbery (4B) and flashed a blanc installation to a new sd, installed domoticz, etc.
So far so good, but when trying to "restore" the domoticz.db file the problems started..
I stopped domoticz, renamed the "blanc" domoticz.db file and placed back the domoticz.db from the old pi.
Started domoticz again and... nothing. No devices, no configuration (double checked in private session).
Next step was activating the fresh domoticz.db again and try to upload the backup file via the frontend.
Direct after uploading, domoticz crashed (logging is attached, but this goes way beyond my raspberry knowledge) and doesn't work unless I restore the "blanc" .db file. I tried 1 backup file from the hourly backup-dir, but same result.
What can I try to get back my "old" configuration (please say there are options.... 5 years of scriting, configurating and expanding).
What I noticed:
domoticz.db: 1,4MB
files in hourly backup folder: eveything between 2 and 6MB (why the large difference, is this normal?)