Best way to restore after crash on Pi

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
ricorico94
Posts: 94
Joined: Monday 26 October 2015 10:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Best way to restore after crash on Pi

Post by ricorico94 »

Hi,
I was still using Domoticz in a version of 2021 (updated in May 2021) using Raspberry Pi. I didn't update especially due to the new constraints on Zwave (loss of openzwave..). Last week , I wanted to make a backup, but I did so using a procedure using image_utils and an external SB key to generate a full image of the sdcard. Unfortunately, the backup gave error messages at some point and since then I can't reboot my domoticz.
I have an old full image backup from 2019.. (ok, I agree, I should have done much more often..) and I have a domoticz backup (the database only, using the menu in domoticz) from last week.
But what do you recommend me to do ?
I could:
- use my full backup of 2019
- update to 2021.x (2021.1?) : how can I do that ? Could you help me ?
- import my database backup from last week
- then upgrade to 2023.1 (and I'll do the migration from openzwave to new ZWave) ?

Or is there a way to make fresh & full install on 2023.1 and then "import" the database backup I made last week ?

What do you suggest to me ?

Thanks in advance for your support
Ricorico94
User avatar
waltervl
Posts: 5853
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Best way to restore after crash on Pi

Post by waltervl »

ricorico94 wrote: Monday 03 April 2023 12:40 Or is there a way to make fresh & full install on 2023.1 and then "import" the database backup I made last week ?

What do you suggest to me ?
Indeed: install a fresh 2023.1 installation on a new SD card and import the backup database from last week.

You did not mention scripts and python plugins you used on your old environment but those also needs to be copied/installed and running first before you restore the backup database.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
ricorico94
Posts: 94
Joined: Monday 26 October 2015 10:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Best way to restore after crash on Pi

Post by ricorico94 »

ok, thank you for your advice, I'll try that way.
ricorico94
Posts: 94
Joined: Monday 26 October 2015 10:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Best way to restore after crash on Pi

Post by ricorico94 »

Hi,
Si I installed a fresh Buster and also Pyhton, some plugins (the ones I was using, except Gcalcli which was not working anymore) (ie MYsensors, Pychromecast, Linky) then I installed Domoticz (latest version 2023.1).
Then I copy pasted in the scripts folder the scripts I had backedup.
Then I opened Domoticz which was empty of devices/hardware. I went to settings to Restore the database from backup I made last week.
Once menu comes back, I log in and.. still everything is empty (no device, no hardware,..)
Is it supposed to have migrated my backup from older version to the new version ? (note that I also connected domoticz with browser in privacy mode to avoid cache issues).

br,
Ricorico94
User avatar
waltervl
Posts: 5853
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Best way to restore after crash on Pi

Post by waltervl »

Buster is a liitle bit old. You could better install Bullseye.
But clear your browser cache as in 2023.1 a lot has changed in UI and security giving empty pages. https://www.domoticz.com/wiki/Security
Also check the logging, menu setup - Hardware, menu setup - Devices and menu setup - Users
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
ricorico94
Posts: 94
Joined: Monday 26 October 2015 10:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Best way to restore after crash on Pi

Post by ricorico94 »

Hi,
It seems working now : thanks a lot for all your help !!

This said :
- I used Buster because I had read several messages from summer 2022 stating that Domoticz had still many issues when working with latest versions of Python.. an dmaybe several of plugins I used could be impacted as well ? Is it all solved now with Bullseye ?

- I could still use with 2023.1 my openzwave devices.. and I'm glad it still works because when I started looking at how to migrate to new zwave plugin, it seems very complex.. The guides to install MQTT, configure it, then install JSwave with docker, (not talking about later migration of each device) etc. looks very complex, not documented for non experts and so I feel reluctant.. I'll have to be brave and look at it, I guess, but well..frightening perspective..

Ricorico94
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest