question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IoT Edge install fails on Raspian Buster - error while loading shared libraries: libssl.so.1.0.2

See original GitHub issue

Expected Behavior

Used the guide at https://docs.microsoft.com/en-us/azure/iot-edge/how-to-install-iot-edge-linux-arm to install moby and iotedge on a fresh install of Raspbian Buster.

Install should run through and I should be left with a working iotedge installation.

Confirmed it is working on Raspbian Stretch.

Current Behavior

Install runs through as expected but any iotedge commands result in the error: iotedge: error while loading shared libraries: libssl.so.1.0.2: cannot open shared object file: No such file or directory

Steps to Reproduce

  1. Set up an SD Card with Raspbian Buster
  2. Follow the guide https://docs.microsoft.com/en-us/azure/iot-edge/how-to-install-iot-edge-linux-arm to install Moby and iotedge
  3. Optional reboot - makes no difference
  4. Run sudo iotedge list

Context (Environment)

Output of iotedge check

iotedge: error while loading shared libraries: libssl.so.1.0.2: cannot open shared object file: No such file or directory

Device (Host) Operating System

Raspberry Pi 3 Model B Rev 1.2 Linux raspberrypi 4.19.50-v7+ armv7l Version:June 2019 Release date:2019-06-20 Kernel version:4.19

Architecture

arm32

Container Operating System

Linux

Runtime Versions

iotedged

1.0.7.1

Edge Agent

N/A - doesn’t get this far

Edge Hub

N/A - doesn’t get this far

Docker

Client: Version: 3.0.5 API version: 1.40 Go version: go1.12.1 Git commit: ba9934d4 Built: Thu Apr 18 23:28:44 2019 OS/Arch: linux/arm Experimental: false

Server: Engine: Version: 3.0.5 API version: 1.40 (minimum version 1.12) Go version: go1.12.1 Git commit: dbe4a30 Built: Fri Apr 19 07:14:38 2019 OS/Arch: linux/arm Experimental: false containerd: Version: v1.2.5 GitCommit: bb71b10fd8f58240ca47fbb579b9d1028eea7c84 runc: Version: 1.0.0-rc6+dev GitCommit: 2b18fe1d885ee5083ef9f0838fee39b62d653e30 docker-init: Version: 0.18.0 GitCommit: fec3683

Logs

Jul 03 14:21:56 raspberrypi iotedged[793]: /usr/bin/iotedged: error while loading shared libraries: libcrypto.so.1.0.2: cannot open shared object file: No such file or directory
Jul 03 14:21:56 raspberrypi systemd[1]: iotedge.service: Main process exited, code=exited, status=127/n/a
Jul 03 14:21:56 raspberrypi systemd[1]: iotedge.service: Failed with result 'exit-code'.
Jul 03 14:21:56 raspberrypi systemd[1]: iotedge.service: Service RestartSec=100ms expired, scheduling restart.
Jul 03 14:21:56 raspberrypi systemd[1]: iotedge.service: Scheduled restart job, restart counter is at 1.
Jul 03 14:21:56 raspberrypi systemd[1]: iotedge.socket: Succeeded.
Jul 03 14:21:56 raspberrypi systemd[1]: iotedge.mgmt.socket: Succeeded.
Jul 03 14:21:56 raspberrypi iotedged[798]: /usr/bin/iotedged: error while loading shared libraries: libcrypto.so.1.0.2: cannot open shared object file: No such file or directory
Jul 03 14:21:56 raspberrypi systemd[1]: iotedge.service: Main process exited, code=exited, status=127/n/a
Jul 03 14:21:56 raspberrypi systemd[1]: iotedge.service: Failed with result 'exit-code'.
Jul 03 14:21:56 raspberrypi systemd[1]: iotedge.service: Service RestartSec=100ms expired, scheduling restart.
Jul 03 14:21:56 raspberrypi systemd[1]: iotedge.service: Scheduled restart job, restart counter is at 2.
Jul 03 14:21:56 raspberrypi systemd[1]: iotedge.mgmt.socket: Succeeded.
Jul 03 14:21:56 raspberrypi systemd[1]: iotedge.socket: Succeeded.
Jul 03 14:21:57 raspberrypi iotedged[802]: /usr/bin/iotedged: error while loading shared libraries: libcrypto.so.1.0.2: cannot open shared object file: No such file or directory
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.service: Main process exited, code=exited, status=127/n/a
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.service: Failed with result 'exit-code'.
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.service: Service RestartSec=100ms expired, scheduling restart.
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.service: Scheduled restart job, restart counter is at 3.
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.mgmt.socket: Succeeded.
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.socket: Succeeded.
Jul 03 14:21:57 raspberrypi iotedged[809]: /usr/bin/iotedged: error while loading shared libraries: libcrypto.so.1.0.2: cannot open shared object file: No such file or directory
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.service: Main process exited, code=exited, status=127/n/a
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.service: Failed with result 'exit-code'.
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.service: Service RestartSec=100ms expired, scheduling restart.
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.service: Scheduled restart job, restart counter is at 4.
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.mgmt.socket: Succeeded.
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.socket: Succeeded.
Jul 03 14:21:57 raspberrypi iotedged[823]: /usr/bin/iotedged: error while loading shared libraries: libcrypto.so.1.0.2: cannot open shared object file: No such file or directory
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.service: Main process exited, code=exited, status=127/n/a
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.service: Failed with result 'exit-code'.
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.service: Service RestartSec=100ms expired, scheduling restart.
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.service: Scheduled restart job, restart counter is at 5.
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.socket: Succeeded.
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.mgmt.socket: Succeeded.
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.service: Start request repeated too quickly.
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.service: Failed with result 'exit-code'.
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.mgmt.socket: Failed with result 'service-start-limit-hit'.
Jul 03 14:21:57 raspberrypi systemd[1]: iotedge.socket: Failed with result 'service-start-limit-hit'.

Additional Information

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
darobscommented, Jul 17, 2019

It looks like libssl1.0.2 is present in the release version of Buster. I was able to do

sudo apt-get install libssl1.0.2

successfully. I was able to install iotedge after that.

2reactions
arsingcommented, Aug 17, 2019

1.0.9-rc1 has been released.

Read more comments on GitHub >

github_iconTop Results From Across the Web

iotedge: error while loading shared libraries: libssl.so.1.0.2
After installing Azure IoT Edge using the guide for Linux ARM32, the following error was presented: “iotedge: error while loading shared ...
Read more >
Issue after a recent update - Raspberry Pi Forums
It looks like your libbz2-1.0 package has become corrupted somehow. That's not good. It may mean your SD card is failing. As that...
Read more >
error while loading shared libraries: libssl.so.1.1: cannot ...
1 Answer. This error is because you have copied over the built executable to a new base image which does not have libssl....
Read more >
Troubleshoot Azure IoT Edge common errors
Use this article to identify and resolve common issues when using IoT Edge solutions. If you need information on how to find logs...
Read more >
utserver: error while loading shared libraries: libssl.so.1.0.0 ...
It seems that you forget to manually download required LibSSL library package. Download and install it with:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found