Page 1 of 1

Upgrade from 2021.1 to 2024.7 issues

Posted: Wednesday 17 July 2024 12:15
by gillesbrebre
Hello

I have to upgrade my Domoticz release from 2021.1 (2021-04-17) to the last version if it's possible, but it seem to be difficult !

From the UI Web interface, i always have an error, and from the command line, the repository seem to be wrong...

Did you have a solution to manage this upgrade ?

I'm french, so my english is not perfect, sorry for that ;-)

Re: Upgrade from 2021.1 to 2024.7 issues

Posted: Wednesday 17 July 2024 13:27
by waltervl
Between 2021 and 2024 there are some security changes that could cause strange issues when updating. https://www.domoticz.com/wiki/Security
Check also menu Setup - Users if the admin user has devices assigned as that is not the preferred way and could lead to hidden devices.

Also older Raspberries like RPi 1 is not supported anymore in the standard builds. Better buy newer hardware.

Re: Upgrade from 2021.1 to 2024.7 issues

Posted: Wednesday 17 July 2024 14:35
by user4563
waltervl wrote: Wednesday 17 July 2024 13:27 Check also menu Setup - Users if the admin user has devices assigned as that is not the preferred way and could lead to hidden devices.
Can you elaborate on that please? Do you mean devices should not be assigned to the admin user?

Re: Upgrade from 2021.1 to 2024.7 issues

Posted: Wednesday 17 July 2024 16:21
by waltervl
user4563 wrote: Wednesday 17 July 2024 14:35
waltervl wrote: Wednesday 17 July 2024 13:27 Check also menu Setup - Users if the admin user has devices assigned as that is not the preferred way and could lead to hidden devices.
Can you elaborate on that please? Do you mean devices should not be assigned to the admin user?
Correct, see also https://www.domoticz.com/wiki/User_Mana ... et_Devices
Use a separate Domoticz account for device sharing.

Re: Upgrade from 2021.1 to 2024.7 issues

Posted: Wednesday 17 July 2024 18:37
by gillesbrebre
My PI is a Raspberry Pi 2 Model B Rev 1.1

I don't understand what you mind about user !

On the web interfac, on th e same network there's no authentication, and with the command line ./updaterelease, the error is about repository not found

Re: Upgrade from 2021.1 to 2024.7 issues

Posted: Wednesday 17 July 2024 19:10
by waltervl
What is the exact error you get? If it contains "armv6" then your hardware is not supported anymore. There is a user that has build Domoticz for Armv6 https://github.com/SjoerdNLD/Domoticz-Armv6/releases

If the repository error contains another repository it could be that you are using an old Operating System. Perhaps update your RPI also to a newer Operating System. See also https://www.domoticz.com/wiki/Raspberry_Pi

Re: Upgrade from 2021.1 to 2024.7 issues

Posted: Wednesday 17 July 2024 23:10
by PierreT
gillesbrebre wrote: Wednesday 17 July 2024 18:37 My PI is a Raspberry Pi 2 Model B Rev 1.1

I don't understand what you mind about user !

On the web interfac, on th e same network there's no authentication, and with the command line ./updaterelease, the error is about repository not found
I get you. Had the same feeling when moving to a newer version. Devs made a big issue about Domoticz being exposed to the internet and totally forgot about the possibility of it being used exclusively in a private network. I start Domoticz with the `-nowwwpwd` option and the log always starts with telling me how I am `unsafe` from internet hackers who can't possibly ever access my installation or even be aware of it even existing.

Re: Upgrade from 2021.1 to 2024.7 issues

Posted: Wednesday 17 July 2024 23:38
by waltervl
PierreT wrote: Wednesday 17 July 2024 23:10

I get you. Had the same feeling when moving to a newer version. Devs made a big issue about Domoticz being exposed to the internet and totally forgot about the possibility of it being used exclusively in a private network. I start Domoticz with the `-nowwwpwd` option and the log always starts with telling me how I am `unsafe` from internet hackers who can't possibly ever access my installation or even be aware of it even existing.
This is probably unrelated to his issue of TS (giving his repository error). Second you do not need the nowwwpwd option. Just put your local network IP range in the trusted network setting and set basic http authorisation on in the same security settings page.

You do not want to know how many Domoticz users have opened up their Domoticz environment unsafe to the internet!

Re: Upgrade from 2021.1 to 2024.7 issues

Posted: Thursday 18 July 2024 8:51
by gillesbrebre
waltervl wrote: Wednesday 17 July 2024 19:10 What is the exact error you get? If it contains "armv6" then your hardware is not supported anymore. There is a user that has build Domoticz for Armv6 https://github.com/SjoerdNLD/Domoticz-Armv6/releases

If the repository error contains another repository it could be that you are using an old Operating System. Perhaps update your RPI also to a newer Operating System. See also https://www.domoticz.com/wiki/Raspberry_Pi
Raspberry Pi 2 is a Arm7, so no problem !
Operating System is up to date, without any problem
The config for internal access is correct, define by network subnet on general parameter.

Re: Upgrade from 2021.1 to 2024.7 issues

Posted: Thursday 18 July 2024 9:08
by waltervl
So what is exactly that repository error?

Re: Upgrade from 2021.1 to 2024.7 issues

Posted: Thursday 18 July 2024 10:28
by gillesbrebre
I'm not at home before tonight, so y post the error line when i'm back home

As i say before, the error about the repository is when i use the command line with putty, directly on the directory Domotics, with the command ./updaterelease
error is about https://www.domoticz.com/xxxxxxx with no file found for this upgrade... i don't remeber exacly

Thanks

Re: Upgrade from 2021.1 to 2024.7 issues

Posted: Thursday 18 July 2024 17:42
by PierreT
waltervl wrote: Wednesday 17 July 2024 23:38 This is probably unrelated to his issue of TS (giving his repository error). Second you do not need the nowwwpwd option. Just put your local network IP range in the trusted network setting and set basic http authorisation on in the same security settings page.

You do not want to know how many Domoticz users have opened up their Domoticz environment unsafe to the internet!
Don't know. The frustrating part at the time was that I got completely locked out and all my scripts failed and the only way back in was to set `-nowwwpwd`, at which time the web interface still only showed an empty screen except for the settings link. After I managed to get it fully functional again I never looked back to make an attempt at configuring it in a way that the devs apparently consider appropriate for internet exposed systems.

Either way this is how it works for me and when I require remote access I use a VPN.

Re: Upgrade from 2021.1 to 2024.7 issues

Posted: Thursday 18 July 2024 19:10
by gillesbrebre
the error message on command line is (i replace www by xxx because of restriction) :

pi@raspberrypi:~/domoticz $ sudo ./updaterelease
Updating to latest release version...
Please Standby...
--2024-07-17 18:33:06-- https://www.domoticz.com/download.php?c ... ine=armv7l
Résolution de xxx.domoticz.com (xxx.domoticz.com)… 188.114.97.2, 188.114.96.2
Connexion à xxx.domoticz.com (xxx.domoticz.com)|188.114.97.2|:443… échec : Aucun chemin d'accès pour atteindre l'hôte cible.
Connexion à xxx.domoticz.com (xxx.domoticz.com)|188.114.96.2|:443… échec : Aucun chemin d'accès pour atteindre l'hôte cible.
Checking file Integrity...

gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Problem in downloaded Domoticz archive. Stopping update!

Re: Upgrade from 2021.1 to 2024.7 issues

Posted: Thursday 18 July 2024 21:41
by waltervl
Looks like something on your side is blocking access to download the Domoticz tar file.

Can you download it from the rpi or from your PC (click on the download link in your previous message)?