Install script failing

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
jensc
Posts: 41
Joined: Saturday 12 March 2016 1:49
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.3
Location: Saint Helens, Oregon, USA
Contact:

Install script failing

Post by jensc »

When attempting to install on Lubuntu 16.10 while executing this:

sudo curl -L install.domoticz.com | bash

This happens:


% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16225 0 16225 0 0 40912 0 --:--:-- --:--:-- --:--:-- 40869
:::
::: Script called with non-root privileges. The Domoticz installs server packages and configures
::: system networking, it requires elevated rights. Please check the contents of the script for
::: any concerns with this requirement. Please be sure to download this script from a trusted source.
:::
::: Detecting the presence of the sudo utility for continuation of this install...
::: Utility sudo located.
:::
::: You are root.
::: Verifying free disk space...
:::
::: Checking apt-get for upgraded packages.... done!
:::
::: Your system is up to date! Continuing with Domoticz installation...
::: Checking for apt-utils... installed!
::: Checking for whiptail... installed!
::: Checking for git... installed!
::: Checking for curl... installed!
::: Checking for unzip... installed!
::: Checking for wget... installed!
::: Checking for sudo... installed!
::: Checking for cron... installed!
::: Checking for libudev-dev... installed!
::: Downloading Domoticz
::: Current User: jensc
HTTP Port: 8080
HTTPS Port: 443
:::
::: Destination folder=/home/jensc/domoticz
--2017-01-24 01:00:16-- http://www.domoticz.com/download.php?ch ... chine=i686
Resolving http://www.domoticz.com (http://www.domoticz.com)... 104.31.79.142, 104.31.78.142
Connecting to http://www.domoticz.com (http://www.domoticz.com)|104.31.79.142|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://releases.domoticz.com/releases/r ... x_i686.tgz [following]
--2017-01-24 01:00:16-- http://releases.domoticz.com/releases/r ... x_i686.tgz
Resolving releases.domoticz.com (releases.domoticz.com)... 104.31.78.142, 104.31.79.142
Reusing existing connection to http://www.domoticz.com:80.
HTTP request sent, awaiting response... 404 Not Found
2017-01-24 01:00:17 ERROR 404: Not Found.
hendriksalex
Posts: 2
Joined: Thursday 28 December 2017 20:40
Target OS: Linux
Domoticz version:
Location: Emmen
Contact:

Re: Install script failing

Post by hendriksalex »

I have exactly the same error:

Code: Select all

--2017-12-28 20:31:55--  http://www.domoticz.com/download.php?channel=release&type=release&system=linux&machine=i686
Resolving www.domoticz.com (www.domoticz.com)... 104.31.79.142, 104.31.78.142, 2400:cb00:2048:1::681f:4e8e, ...
Connecting to www.domoticz.com (www.domoticz.com)|104.31.79.142|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://releases.domoticz.com/releases/release/domoticz_linux_i686.tgz [following]
--2017-12-28 20:31:55--  http://releases.domoticz.com/releases/release/domoticz_linux_i686.tgz
Resolving releases.domoticz.com (releases.domoticz.com)... 104.31.79.142, 104.31.78.142, 2400:cb00:2048:1::681f:4f8e, ...
Reusing existing connection to www.domoticz.com:80.
HTTP request sent, awaiting response... 404 Not Found
2017-12-28 20:31:56 ERROR 404: Not Found.
The first URL forwards to the second one and this one is not working. Seems that is is malfunctioning for a long time yet. Probably the 32bit version isn't used that much.

I'm new at Domoticz, first time user. What should I do? Manual installation? (preferably not)
I'm hoping for and awaiting an answer, although the TS didn't get one. I hope I get one.
hendriksalex
Posts: 2
Joined: Thursday 28 December 2017 20:40
Target OS: Linux
Domoticz version:
Location: Emmen
Contact:

Re: Install script failing

Post by hendriksalex »

did an fix by changing the install script locally. On line 366 it states:

Code: Select all

       wget -O domoticz_release.tgz "http://www.domoticz.com/download.php?channel=release&type=release&system=${OS}&machine=${MACH}"
This is wrong, the machine parameter gets an wrong value. I have changed this line to this one:

Code: Select all

        wget -O domoticz_release.tgz "https://releases.domoticz.com/releases/release/domoticz_linux_x86_64.tgz"
Now it is running succesfully...
not a nice hack... but it works... :D
Keirtje
Posts: 1
Joined: Saturday 25 August 2018 19:25
Target OS: Linux
Domoticz version:
Contact:

Re: Install script failing

Post by Keirtje »

I have exact the same error. Running Ubuntu 32 bit on a older PC.

::: Destination folder=/home/gerben/domoticz
--2018-08-25 18:57:26-- http://www.domoticz.com/download.php?ch ... chine=i686
Resolving www.domoticz.com (www.domoticz.com)... 185.27.142.198
Connecting to www.domoticz.com (www.domoticz.com)|185.27.142.198|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://releases.domoticz.com/releases/ ... x_i686.tgz [following]
--2018-08-25 18:57:26-- https://releases.domoticz.com/releases/ ... x_i686.tgz
Resolving releases.domoticz.com (releases.domoticz.com)... 146.185.159.228
Connecting to releases.domoticz.com (releases.domoticz.com)|146.185.159.228|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-08-25 18:57:26 ERROR 404: Not Found.

You stated that you edited the script, as I am quite a noob, I have no idea where to find this script file.
Could you share this with me?

Thanks,
cru5h
Posts: 1
Joined: Wednesday 17 February 2021 19:48
Target OS: Linux
Domoticz version:
Contact:

Re: Install script failing

Post by cru5h »

sudo curl -sSL install.domoticz.com > install.sh
sudo sed -i 's/curl4/curl3/g' install.sh
sudo chmod 755 install.sh
sudo ./install.sh

with the sequence above you will get the error. Then:

sudo nano install.sh

and change the line 366 mentioned by the friend. After that save and run ./install.sh again
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests