Page 1 of 1

Update to new version

Posted: Friday 13 January 2023 17:18
by rebakker
In October 2018 I installed Domoticz on a RaspberryPi and occasionally performed the automatic updates. Somewhere in 2020 this update caused a problem or conflict with something I can't remember, which resulted in a corrupt Domoticz. Back then this was a known issue and using some forum threads I could repair this all to get a working Domoticz again, and never thought of updating any more.

But currently I would like to update Domoticz due to some new hardware, but I'm not very keen on any trail and error paths and spending many hours to get this all working.
Currently my Domoticz version info states:
Version: 4 .11665
Build Hash: ec3292db7
Compile Date: 2020-01-28 08:45:51
dzVents Version: 2 .5 .7
Python Version: None
And the uname -a via ssh returns:
Linux PiDomoticz 4 .14 .71+ #1145 Fri Sep 21 15:06:38 BST 2018 armv6l GNU/Linux
When checking for a new update it returns the availability of version #14606.

What should be done or installed, to be able to safely update my Domoticz to the new version?

Regards,

Re: Update to new version

Posted: Saturday 14 January 2023 8:10
by gizmocuz
Firtst, make a backup of your database from within the settings page

Next shutdown domoticz (sudo service domoticz stop)

Create a backup of the whole Domoticz folder (once you have shutdown domoticz)
With this you can always go back

Put this backup on another machine

Now you system is probably extreme old, if it is a raspberry pi, make a backup of the SD card so with this you also can go back anytime

Install a new clean system (take another sd card?)
Install domoticz with

Code: Select all

sudo bash -c "$(curl -sSfL https://install.domoticz.com)"
Log into domoticz (default username/password = admin/domoticz)

Restore your database

If everything is working again you can update to the latest beta version if you wish

Re: Update to new version

Posted: Saturday 14 January 2023 14:23
by HansOtten
Do not forget other parts of your system.

E.g. if you use MQTT that should also be installed. Plugins to consider.
So make a list of what you use now and how it supported with the newer version (e.g. Autodiscovery MQTT versus the zigbee2mqtt plugin).

Also RPi hardware upgrade? Think about SSD boot instead of SD Card. Not expensive, more space/speed/reliability.

It will be not a trivial update!

Re: Update to new version

Posted: Wednesday 07 February 2024 22:57
by HansF
rebakker wrote: Friday 13 January 2023 17:18 In October 2018 I installed Domoticz on a RaspberryPi and occasionally performed the automatic updates. Somewhere in 2020 this update caused a problem or conflict with something I can't remember, which resulted in a corrupt Domoticz. Back then this was a known issue and using some forum threads I could repair this all to get a working Domoticz again, and never thought of updating any more.

But currently I would like to update Domoticz due to some new hardware, but I'm not very keen on any trail and error paths and spending many hours to get this all working.
Currently my Domoticz version info states:
Version: 4 .11665
Build Hash: ec3292db7
Compile Date: 2020-01-28 08:45:51
dzVents Version: 2 .5 .7
Python Version: None
And the uname -a via ssh returns:
Linux PiDomoticz 4 .14 .71+ #1145 Fri Sep 21 15:06:38 BST 2018 armv6l GNU/Linux
When checking for a new update it returns the availability of version #14606.

What should be done or installed, to be able to safely update my Domoticz to the new version?

Regards,
Hi rebakker, pretty much the same situation here, did you get this working without any major problems?

Hans