Howto: Track previous versions.

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
User avatar
FireWizard
Posts: 1968
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Howto: Track previous versions.

Post by FireWizard »

Because of recent problems caused by update to beta 13017, the question has been raised (on Github):
What build did you use before updating to build 13017?
This question might be important in order to trace the version where a possible bug could have been introduced.

In this case an answer has been given:
I don't know what build I had before. One of the beta from yesterday.
In fact, it is quite easy to find the previous installed versions.
It is explained below.

Most users will run Domoticz as a daemon, so that it starts automatically, if rebooted or if there has been a version upgrade.
Log in with ssh into a terminal and issue the following command:

Code: Select all

cat /var/log/daemon.log|grep domoticz.sh
As an example, the result will be:

Code: Select all

Feb 23 22:06:17 RPi1 domoticz.sh[20111]: 2021-02-23 22:06:17.907  Status: Domoticz V2020.2 (build 12983) (c)2012-2021 GizMoCuz
Feb 23 22:06:17 RPi1 domoticz.sh[20111]: 2021-02-23 22:06:17.913  Status: Build Hash: 20e62fd9b-modified, Date: 2021-02-23 12:29:37
Feb 23 22:06:17 RPi1 domoticz.sh[20111]: 2021-02-23 22:06:17.914  Status: Startup Path: /home/pi/domoticz/
Feb 23 22:06:17 RPi1 domoticz.sh[20111]: domoticz: Domoticz is starting up....
Feb 24 14:12:01 RPi1 domoticz.sh[16518]: 2021-02-24 14:12:01.654  Status: Domoticz V2020.2 (build 13002) (c)2012-2021 GizMoCuz
Feb 24 14:12:01 RPi1 domoticz.sh[16518]: 2021-02-24 14:12:01.660  Status: Build Hash: f33e035bf-modified, Date: 2021-02-24 08:40:49
Feb 24 14:12:01 RPi1 domoticz.sh[16518]: 2021-02-24 14:12:01.660  Status: Startup Path: /home/pi/domoticz/
Feb 24 14:12:01 RPi1 domoticz.sh[16518]: domoticz: Domoticz is starting up....
Feb 26 15:35:04 RPi1 domoticz.sh[10046]: 2021-02-26 15:35:04.280  Status: Domoticz V2020.2 (build 13017) (c)2012-2021 GizMoCuz
Feb 26 15:35:04 RPi1 domoticz.sh[10046]: 2021-02-26 15:35:04.286  Status: Build Hash: 06f5f78dd-modified, Date: 2021-02-26 10:36:14
Feb 26 15:35:04 RPi1 domoticz.sh[10046]: 2021-02-26 15:35:04.286  Status: Startup Path: /home/pi/domoticz/
Feb 26 15:35:04 RPi1 domoticz.sh[10046]: domoticz: Domoticz is starting up....
Feb 26 22:20:34 RPi1 domoticz.sh[3225]: 2021-02-26 22:20:34.762  Status: Domoticz V2020.2 (build 13016) (c)2012-2021 GizMoCuz
Feb 26 22:20:34 RPi1 domoticz.sh[3225]: 2021-02-26 22:20:34.768  Status: Build Hash: 3a983b434-modified, Date: 2021-02-26 20:56:22
Feb 26 22:20:34 RPi1 domoticz.sh[3225]: 2021-02-26 22:20:34.769  Status: Startup Path: /home/pi/domoticz/
Feb 26 22:20:34 RPi1 domoticz.sh[3225]: domoticz: Domoticz is starting up....
As you can see, the exact time that a particular version of Domoricz has been started, is shown.
This can be useful information in case of problems, which have to be tackled.

Regards
User avatar
waltervl
Posts: 6691
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2025.1
Location: NL
Contact:

Re: Howto: Track previous versions.

Post by waltervl »

I am testing with the updatebeta.sh to make a copy of the domoticz folder (without backups) to facilitate an easy roleback.

https://github.com/domoticz/domoticz/issues/4655
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest