# Artifact creation fails with "error while loading shared libraries: libssl.so.3"

**URL:** https://hub.mender.io/t/artifact-creation-fails-with-error-while-loading-shared-libraries-libssl-so-3/6699
**Category:** General Discussions
**Tags:** mender-artifact
**Created:** [March 31, 2024, 7:30pm UTC](https://hub.mender.io/t/artifact-creation-fails-with-error-while-loading-shared-libraries-libssl-so-3/6699 "2024-03-31T19:30:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![zivkapl](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/zivkapl/32/2061_2.png) [@zivkapl](https://hub.mender.io/u/zivkapl)
#### Post date: [March 31, 2024, 7:30pm UTC](https://hub.mender.io/t/artifact-creation-fails-with-error-while-loading-shared-libraries-libssl-so-3/6699/1 "2024-03-31T19:30:43Z")

</div>

In recent changes I made to my project I encountered this issue:

```bash
sshpass -e mender-artifact-3.10 write rootfs-image \
    --file ssh://root@<PARAM>:22 \
    --software-version <PARAM> \
    --artifact-name <PARAM> \
    --output-path <PARAM> \
    --ssh-args='-o StrictHostKeyChecking=no' \
    --device-type <PARAM>

error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory
imgFilesystemType error: imgFilesystemType: blkid command failed: exit status 2

```

- The `mender-artifact` is executed on `debian-bullseye` which has openssl1
- It happens when the target host runs `ubuntu 18`. (When the target is `ubuntu 22` the artifact is created successfully)
- It is a consistent behavior, not flaky

Can someone help me understand it? What might cause it?  
Is it an issue with my `mender-client` on the host? Any tips to debug it?

Thank you!

---

<div class="post-metadata">

### Author: ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)
#### Post date: [April 3, 2024, 6:10am UTC](https://hub.mender.io/t/artifact-creation-fails-with-error-while-loading-shared-libraries-libssl-so-3/6699/2 "2024-04-03T06:10:06Z")

</div>

Hi @zivkapl,

If I had to guess, then it is a problem if the two Linux distribution versions in play are not both using the OpenSSL1.1 incarnation of `mender-artifact` or the OpenSSL3 one. Not sure about a proper solution here, maybe @lluiscampos has some thoughts.

Greetz,  
Josef

---

<div class="post-metadata">

### Author: ![zivkapl](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/zivkapl/32/2061_2.png) [@zivkapl](https://hub.mender.io/u/zivkapl)
#### Post date: [April 3, 2024, 7:57am UTC](https://hub.mender.io/t/artifact-creation-fails-with-error-while-loading-shared-libraries-libssl-so-3/6699/3 "2024-04-03T07:57:50Z")

</div>

Hi @TheYoctoJester !  
Thanks for the reply!  
I found the issue - I installed mender-client that relies on openssl3 on a VM with openssl1.  
Funny enough, the installation itself was successful as openssl is not used yet.  
Thanks!
