New (beta) version library requirement (Arm/Debian)

News and/or updates regarding Domoticz or things related to Domoticz will be placed here.
Twitter: https://twitter.com/Domoticz | Facebook: https://www.facebook.com/domoticz | Changelog: Github
User avatar
gizmocuz
Posts: 8491
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

New (beta) version library requirement (Arm/Debian)

Post by gizmocuz » Saturday 09 September 2017 12:28

For new (beta) versions it is required that libssl 1.0.0 is installed.
This might not be at your current system (for example a raspberry running rasbian jessy or older)

To install this, issue:

Code: Select all

sudo apt-get install libssl1.0.0
After this you should be able to upgrade to the new beta via the web interface, or via the command line

Code: Select all

cd domoticz
./updatebeta
for people running an armv6 system (raspberry pi 2 or below) you might need to issue

Code: Select all

wget http://mirrordirector.raspbian.org/raspbian/pool/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u6_armhf.deb
sudo dpkg -i libssl1.0.0_1.0.1t-1+deb8u6_armhf.deb
Quality outlives Quantity!

Docdigit
Posts: 4
Joined: Saturday 09 September 2017 11:36
Target OS: Raspberry Pi
Domoticz version: 3.8153
Location: Behind the dykes
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by Docdigit » Saturday 09 September 2017 12:42

thanks, that works like a charm!
With both feet on the ground to can't make any step forward...

User avatar
blacksn0w
Posts: 75
Joined: Friday 10 March 2017 23:27
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Germany
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by blacksn0w » Saturday 09 September 2017 13:02

Working like a charm on Stretch with libssl1.0.2.
Thanks for your effort!
This post was made with ♥ in Cologne. Raspberry Pi 3B, Aeotec Z-Stick Gen5, RFLink R46, MiHome

JuanUil
Posts: 228
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi
Domoticz version: 2.xx
Location: Asten NB Nederland
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by JuanUil » Saturday 09 September 2017 13:14

Hi Gizmocuz,

I followed your struggle to get this fixed CHAPEAU!!!

but....
when I give the sudo apt install libssl1.0.0 command I get: sudo: apt: command not found
What am I doing wrong?

Again many thanks for all your effort!

Jan
Your mind is like a parachute,
It only works when it is opened!

User avatar
blacksn0w
Posts: 75
Joined: Friday 10 March 2017 23:27
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Germany
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by blacksn0w » Saturday 09 September 2017 13:20

JuanUil wrote:
Saturday 09 September 2017 13:14
Hi Gizmocuz,

I followed your struggle to get this fixed CHAPEAU!!!

but....
when I give the sudo apt install libssl1.0.0 command I get: sudo: apt: command not found
What am I doing wrong?

Again many thanks for all your effort!

Jan
Use sudo apt-get install libssl1.0.0
This post was made with ♥ in Cologne. Raspberry Pi 3B, Aeotec Z-Stick Gen5, RFLink R46, MiHome

JuanUil
Posts: 228
Joined: Friday 22 May 2015 12:21
Target OS: Raspberry Pi
Domoticz version: 2.xx
Location: Asten NB Nederland
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by JuanUil » Saturday 09 September 2017 13:35

thnx blacksnow.

It returns that the library is already installed.
But when I upgrade to the latest beta domoticz won't start anymore, I get:

sudo service domoticz.sh start
/home/pi/domoticz/domoticz: error while loading shared libraries: libudev.so.1: cannot open shared object file: No such file or directory

Jan
Your mind is like a parachute,
It only works when it is opened!

User avatar
Phantom
Posts: 52
Joined: Saturday 31 December 2016 15:47
Target OS: Raspberry Pi
Domoticz version: 3.8034
Location: The Netherlands
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by Phantom » Saturday 09 September 2017 15:45

Thanks that worked here also again

Code: Select all

[email protected]:~ $ sudo lsb_release -d 
Description:    Raspbian GNU/Linux testing (buster)
, sadly had to go back to the latest stable version because i have a couple of python plugins also.
Any idea if/when that will be activated again? (https://github.com/domoticz/domoticz/co ... 317c67804f)

pvangorp
Posts: 83
Joined: Tuesday 28 March 2017 10:18
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by pvangorp » Saturday 09 September 2017 17:39

Code: Select all

[email protected]:~/domoticz $ sudo apt install libssl1.0.0
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl1.0.0 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
./updatebeta 
Still doesn't work.

Code: Select all

[email protected]:~/domoticz $ sudo service domoticz.sh status
● domoticz.service - LSB: Home Automation System
   Loaded: loaded (/etc/init.d/domoticz.sh)
   Active: active (exited) since Sat 2017-09-09 17:39:05 CEST; 6s ago
  Process: 1928 ExecStop=/etc/init.d/domoticz.sh stop (code=exited, status=0/SUCCESS)
  Process: 1937 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)

Sep 09 17:39:05 raspberrypi domoticz.sh[1937]: Illegal instruction
Sep 09 17:39:05 raspberrypi systemd[1]: Started LSB: Home Automation System.
I had not problems with 8389

Krosik
Posts: 3
Joined: Friday 07 July 2017 21:37
Target OS: Linux
Domoticz version:
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by Krosik » Saturday 09 September 2017 18:37

For raspbian users.

Add the following two lines into /etc/apt/sources.list

Code: Select all

deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
deb http://archive.raspbian.org/raspbian jessie main contrib non-free rpi

Code: Select all

apt-get update
apt-get -t jessie install openssl libssl1.0.0 openssh-client openssh-server ssh

frank3523
Posts: 3
Joined: Saturday 09 September 2017 18:47
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by frank3523 » Saturday 09 September 2017 18:59

I also have the same problem after updating to latest domoticz version

pvangorp
Posts: 83
Joined: Tuesday 28 March 2017 10:18
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by pvangorp » Saturday 09 September 2017 19:05

I took a clean Pi and did a new install, with no devices and stable was ok, but when I did an update to the latest beta. Same as on my test environment.

pvangorp
Posts: 83
Joined: Tuesday 28 March 2017 10:18
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by pvangorp » Saturday 09 September 2017 19:13

Krosik wrote:
Saturday 09 September 2017 18:37
For raspbian users.

Add the following two lines into /etc/apt/sources.list

Code: Select all

deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
deb http://archive.raspbian.org/raspbian jessie main contrib non-free rpi

Code: Select all

apt-get update
apt-get -t jessie install openssl libssl1.0.0 openssh-client openssh-server ssh
Doesn't make a difference in my case. The system says already the newest version on all.

I even did a

Code: Select all

sudo apt-get --reinstall install openssl libssl1.0.0 openssh-client openssh-server ssh
Still doesn't work on a Pi Zero W

pvangorp
Posts: 83
Joined: Tuesday 28 March 2017 10:18
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by pvangorp » Saturday 09 September 2017 19:27

I've done some testing on several Raspberry Pi's in combination with v3.8390
1. My test Pi Zero W -> Illegal instruction
2. A clean new installed Pi Zero W -> Illegal instruction
3. My production Pi 3 -> No issues
4. A clean Pi3 -> No issues

So I'm almost certain this is a Pi Zero W thing. CPU issue???

frank3523
Posts: 3
Joined: Saturday 09 September 2017 18:47
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by frank3523 » Saturday 09 September 2017 20:03

I'm using a Pi2.
I also did all the updates as told but with no luck.

pvangorp
Posts: 83
Joined: Tuesday 28 March 2017 10:18
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by pvangorp » Saturday 09 September 2017 20:04

frank3523 wrote:
Saturday 09 September 2017 20:03
I'm using a Pi2.
I also did all the updates as told but with no luck.
Looks like a hardware compatibility issue. BCM issues as with GPIO before???

frank3523
Posts: 3
Joined: Saturday 09 September 2017 18:47
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by frank3523 » Saturday 09 September 2017 20:15

reverted back to latest stable all is working fine now.

pvangorp
Posts: 83
Joined: Tuesday 28 March 2017 10:18
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by pvangorp » Saturday 09 September 2017 20:25

I looked on the internet and there are several cases that explain applications that crashes with "Illegal instruction" on ARM6 (e.g. Pi Zero W) and work fine on an ARM7 (e.g. Pi 3).

PI 3

Code: Select all

# egrep -i 'model|hardware' /proc/cpuinfo
model name      : ARMv7 Processor rev 4 (v7l)
model name      : ARMv7 Processor rev 4 (v7l)
model name      : ARMv7 Processor rev 4 (v7l)
model name      : ARMv7 Processor rev 4 (v7l)
Hardware        : BCM2835
Pi Zero W

Code: Select all

# egrep -i 'model|hardware' /proc/cpuinfo
model name      : ARMv6-compatible processor rev 7 (v6l)
Hardware        : BCM2835
Apparently the libssl1.0.0 from Raspbian Jessie has been compiled for armv7 and can't work on armv6 Pi.

User avatar
emme
Posts: 508
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by emme » Monday 11 September 2017 8:32

Thank you guys!
I did a great work!
That's one small step for a programmer, one giant leap for me!
- - - - -
Raspberry Pi3 + AeonStick G5 + RFXCOMM433 + iRTrans Server + NodeJS
There's no stress in the mess!!

vthinsel
Posts: 2
Joined: Monday 11 September 2017 9:55
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by vthinsel » Monday 11 September 2017 10:07

Hello,

Since the last beta update I'm also facing issues with libssl.
Went through the describded steps (also tried some libssl versions from https://packages.debian.org/fr/jessie/libssl1.0.0
Re-enabling static linking would probably help people having issues like me, but I guess there are good reasons to have it removed.
I'm using domoticz on an old raspberry 1, model B.

Code: Select all

[email protected]:~/domoticz $ cat /proc/cpuinfo
processor       : 0
model name      : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS        : 697.95
Features        : half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xb76
CPU revision    : 7

Hardware        : BCM2835
Revision        : 000e
Serial          : 000000008f691da8
I'll try to get another libssl for that hardware

User avatar
gizmocuz
Posts: 8491
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi
Domoticz version: beta
Location: Top of the world
Contact:

Re: New (beta) version library requirement (Arm/Debian)

Post by gizmocuz » Monday 11 September 2017 16:48

We can not static link openssl as this will break the curl library, which should also be statically linked then, and this i could not get to work.
If you can get this to work, that would be great! If both are not statically linked, HTTPS will not work
Quality outlives Quantity!

Post Reply

Who is online

Users browsing this forum: melgi and 4 guests