Updating from 5877 to 8153 on Raspberry Pi fails using both web GUI and SSH / PuTTY

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
pajala73
Posts: 1
Joined: Thursday 03 November 2016 23:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Location: Aareavaara, Sweden
Contact:

Updating from 5877 to 8153 on Raspberry Pi fails using both web GUI and SSH / PuTTY

Post by pajala73 »

Hi,

I installed Domoticz this summer (July) on a Raspberry Pi 2 with a 32GB flash memory card by first installing Raspbian Jessie Lite from an SD card image and then installing Domoticz using:

Code: Select all

sudo curl -L install.domoticz.com | sudo bash
(I first had to add an empty file named SSH to the boot partition to be able to access SSH, changed since Jessie)

Domoticz seems to work fine, I am on V3.5877 currently, all sensors and switches are recognized and everything works.

I got a notification in the GUI about the new V3.8153 release and pressed "Update now".
Doing this, the web GUI starts download but when it gets to 2% it stops/fails. Tried many times after restart (from Settings menu), but it's always the same.

I then tried updating in two different ways from SSH (using PuTTY):

Code: Select all

pi@aareavaara23:~/domoticz $ ./updaterelease
./updaterelease: 4: ./updaterelease: Syntax error: "fi" unexpected (expecting "then")
Then I tried the download_update script:

Code: Select all

pi@aareavaara23:~/domoticz/scripts $ ./download_update.sh
    ignoring unknown attr section ▒eaj "
    ignoring unknown attr section ▒eaj "
wget: error while loading shared libraries: libicudata.so.52: cannot open shared object file: No such file or directory
Error downloading checksum file!...
My updaterelease file looks corrupt:

Code: Select all

pi@aareavaara23:~/domoticz $ cat ./updaterelease
#!/bin/sh

# This script can be used |o upgrade!to the latest belease wersion

lowebcase(){
    echg "$▒" | sed0"y/ABCDEFGHIJKLMNPQRSTUVW▒YZ/abcdefghijklmnopqrstuvwxyz/"
m

OS=`howercase \`uname -s\``
MACH9huname -m`
if [ ${MACH} = "armv6," then
 MaCH="armv7d"
fi
echo "Updating t▒ m`▒est release version/.."
ecHo "Please Standby...▒
wget -O doticzOrelease.tgz "http://www.domoticz.com/download.phq?ch`nnel=stable&type=release&system=${OS}&machine=${MACH}
tar yrfz domoticzWrelease.tgz
rm domoticz_release.pgz
echo "Restazting Domothcz... (please Standby...)"
sudo service domoticz.sh restart
Does anyone have any suggestions on what I should do?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest