simplexmq icon indicating copy to clipboard operation
simplexmq copied to clipboard

remove libcrypto.so.1.1 dependency from the server

Open anchelnl opened this issue 2 years ago • 7 comments

After installing 5.4.0 , I get on Ubuntu 22.04.3 LTS the error : /opt/simplex/smp-server: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

on https://stackoverflow.com/questions/72133316/libssl-so-1-1-cannot-open-shared-object-file-no-such-file-or-directory there is a solution but not recommended.

Is there a way to avoid this problem?

anchelnl avatar Nov 30 '23 08:11 anchelnl

please install openssl 1.1 to make it available

epoberezkin avatar Nov 30 '23 13:11 epoberezkin

OK I did https://gist.github.com/joulgs/c8a85bb462f48ffc2044dd878ecaa786 and it's working

SMP server v5.4.0.7 Server address: smp://HTuQjccELzATLNERawaW7jlJ9PIyqnI9XQm_jcoIy5g=:[email protected]

anchelnl avatar Nov 30 '23 14:11 anchelnl

thank you!

epoberezkin avatar Nov 30 '23 19:11 epoberezkin

passes the tests for me - do you want to have it public? if so, you can simply remove password, in which case contacts of users can see it, and possibly, use (although we didn't yet make it convenient).

If not, you should not share password publicly ;) - it's the part of the address after ":", your contacts won't see it via the app.

epoberezkin avatar Nov 30 '23 19:11 epoberezkin

Yep removed password , it can be used in public . see also https://smp.anchel.nl ;)

anchelnl avatar Nov 30 '23 20:11 anchelnl

The actual problem is that server code should not really depend on libcrypto, it's only needed in agent part.

We need to remove this dependency from the server.

epoberezkin avatar Dec 20 '23 11:12 epoberezkin

I face the same issue with self hosting the xftp server. In release 5.4.0.beta.X it starts fine. With later release versions including 5.4.0 and 5.5.0-beta.0 it won't start due to issues finding libcrypto.so.1.1.

I found the following lines in the logs that point to the root cause of the failure.

xftp-server: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

It turned out that I was using ubuntu 22.04, which introduced some issues with regard to the libssl package. The issue was resolved by following the preferred solution here.

emil-theliberatededge avatar Dec 24 '23 12:12 emil-theliberatededge