Page 1 of 1

[Domoticz] update to Beta 10717 (new scripts for update)

Posted: Mon Jul 01, 2019 6:41 pm
by father.mande
Hi,

NOW solution is provide in next message

Philippe.

Re: [Domoticz] update to Beta 10717 (new scrippts for update)

Posted: Tue Jul 02, 2019 5:56 pm
by father.mande
Hi,

Please find here information to update Domoticz to last version (beta or stable)
BEFORE trying to update

1) with 10717 an extra library is require (provide in full Linux distribution BUT not in Asustor, nor in my own added libraries)
==== THIS CAN BE APPLY ON ANY VERSION (just not used for previous one)
GET the file hereafter and put it in your Public share
FOR ARM :
The attachment libcurl-gnutls_armhf.tar is no longer available
FOR X86_64 :
download_update.sh.tar
updated download script
(10 KiB) Downloaded 562 times
Open a terminal : ssh with root / your_password
cd /usr/local/AppCentral/domoticz/lib/
tar xf libcurl-gnutls_armhf.tar
OR tar xf libcurl-gnutls_x86_64.tar
rm -f /share/Public/libcurl-gnutls*.tar


It's all for this first part.

2) scripts provide by Domoticz are build for default Linux distribution and ca-certificate (SSL) this is not compatible with Asustor delivery
download script :
... wget is use but with an unknown (Asustor) certificate so we have to add option to don't check it
... test of checksum failed due to the Asustor Busybox version of sha256sum that ADD A SPACE in result (between hash and file name)
... in old version some update use an alternate name for the archive
AT END
update script
... try to restart domoticz as Linux service ... false in Asustor NAS THIS IMPLY to use AppCentral (or apkg command) to disable domoticz then wait 15 sec. (recommanded to really finish domoticz) then enable again the APKG.

NEW DON'T use previous modified script THIS ONE incorporate all potentials problems
Modified download_script to (try to) solve all problem (available for any installed version)
GET the file hereafter and put it in your Public share
The attachment download_update.sh.tar is no longer available
cd /usr/local/AppCentral/domoticz/scripts
mv download_update.sh download_update.sh.ori
tar xf /share/Public/download_update.sh.tar

DON'T REMOVE the tar, because AFTER UPDATE the script is overwrite by the update , so for the next (if no new problems) you will have to reuse it

NOW you can update domoticz using it's own internal update mechanism
DON'T forget at end to :
Disable APKG, wait for 15 sec., Enable APKG in "App Central"

Philippe.
NB in case of problem start manually the script to see errors

Re: [Domoticz] update to Beta 10717 (new scripts for update)

Posted: Wed Aug 28, 2019 12:39 am
by rezza
Hello.
I am currently in beta version 4. 1169 and never applied your fix.

As I didn't noticed any problem, what should be the symptoms of the problem you are describing?

Regards

RezzA

Re: [Domoticz] update to Beta 10717 (new scripts for update)

Posted: Wed Aug 28, 2019 5:25 am
by father.mande
Hi,
rezza wrote:Hello.
I am currently in beta version 4. 1169 and never applied your fix.
As I didn't noticed any problem, what should be the symptoms of the problem you are describing?
Regards
RezzA
my patch is perhaps now not necessary :roll: :D because it's :
... a change in download script to avoid problem with let's encrypt certificate not accepted (ca-certificates) by A.D.M. from Asustor
... ... perhaps and I hope this is now obsolete
... ... my patch change the shell script to bypass certificate verification.

The second point (no more) is :
... Domoticz in the past don't use internal restart mechanism but try to use Linux rc file or systemd ... not supported by Asustor
... ... so my recommendation is to disable / wait / enable again Domoticz to restart gracefully it
... ... if Domoticz now use an internal restart mechanism .. nothing are necessary anymore ...

So all this patch are only to supply lack in A.D.M. or Domoticz ... so I hope time after time ... now not necessary

I don't really use Domoticz, but port on Asustor for a friend ... so I just run new test when feedback return some problem.

Philippe.