RIPE-NCC / ripe-atlas-software-probe

GNU General Public License v3.0
230 stars 57 forks source link

Ubuntu 22.04 upgrade can break Atlas software probe - libcrypto.so.1.1 #91

Open mfld-pub opened 10 months ago

mfld-pub commented 10 months ago

Certain in-place upgrade scenarios to Ubuntu 22.04 will take libssl1.1 to libssl3 as jammy is all OpenSSL 3.0

This will create issues with the probe:

Sep 11 04:48:00 mexmon ATLAS[1578240]: /usr/local/atlas/bb-13.3/bin/rchoose: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
Sep 11 04:48:00 mexmon ATLAS[1578234]: REGHOSTS reg03.atlas.ripe.net 193.0.19.246 2001:67c:2e8:11::c100:13f6 reg04.atlas.ripe.net 193.0.19.247 2001:67c:2e8:11::c100:13f7
Sep 11 04:48:00 mexmon ATLAS[1578234]: ssh -p 443 atlas@ INIT
Sep 11 04:48:00 mexmon ATLAS[1578256]: /usr/local/atlas/bb-13.3/bin/rxtxrpt: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
Sep 11 04:48:00 mexmon ATLAS[1578257]: /usr/local/atlas/bb-13.3/bin/rxtxrpt: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
Sep 11 04:48:00 mexmon ATLAS[1578258]: /usr/local/atlas/bb-13.3/bin/rptaddrs: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
Sep 11 04:48:00 mexmon ATLAS[1578259]: /usr/local/atlas/bb-13.3/bin/rptuptime: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
Sep 11 04:48:00 mexmon ATLAS[1578260]: /usr/local/atlas/bb-13.3/bin/condmv: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
Sep 11 04:48:00 mexmon ATLAS[1578261]: /usr/local/atlas/bb-13.3/bin/condmv: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
Sep 11 04:51:00 mexmon ATLAS[1578347]: /usr/local/atlas/bb-13.3/bin/onlyuptime: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

Quick 'n dirty workaround is to get the .deb from debian and install locally:

sudo wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1n-0+deb11u5_amd64.deb
sudo dpkg -i libssl1.1_1.1.1n-0+deb11u5_amd64.deb
sudo systemctl restart atlas

This seems to make the probe work again after ugrading to Ubuntu 22.04

If anyone has a more elegant solution please comment.

michel-stam commented 9 months ago

Hi @mfld-pub ,

Can you tell me on which distribution this package was compiled?

Regards,

Michel

Tuffiglig commented 3 months ago

I had the same problem after upgrading from DietPi Bullseye to Bookworm on my Raspberry Pi 1. After rebuild and reinstall ripe-atlas-software-probe, it seems to work again.

edit: Same for ripe-atlas-software-probe in my proxmox DietPi vm, after upgrading it to Bookworm. Linux xxx-RipeProbe 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.76-1 (2024-02-01) x86_64 GNU/Linux

michel-stam commented 2 weeks ago

Hi @Tuffiglig

Sorry I had not noticed your ticket before.

I've ran into the very same issue you had, which I solved by depending on libssl3 | libssl1. That does not resolve this particular issue, I think, but debian 11/12 x86_64 support is on the roadmap. I'll try and remember to release a separate 11 and 12 package.

Regards,

Michel

Tuffiglig commented 2 weeks ago

Hey @michel-stam I think I expressed myself in a misleading way.

After re-install atlas-probe it is working for me since weeks. No problem on my side.

Only had problems after upgrading the distro. but reinstall atlas-probe solved the issue.