Cardano-node: error while loading shared libraries: libssl.so.1.1

I used the official docs to install the node:

everything was working last night, the cli and node compiled, CNTools was working but this morning after a reboot, I see the issue with the node

when I check the node version i get:
cardano-node: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

when i check the status:

× cnode.service - Cardano Node
     Loaded: loaded (/etc/systemd/system/cnode.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Sat 2023-03-11 16:44:02 EST; 23min ago
    Process: 8244 ExecStart=/bin/bash -l -c exec /opt/cardano/cnode/scripts/cnode.sh (code=exited, status=127)
   Main PID: 8244 (code=exited, status=127)
        CPU: 1.058s

Mar 11 16:44:02 cbcp-relay-1 systemd[1]: cnode.service: Scheduled restart job, restart counter is at 5.
Mar 11 16:44:02 cbcp-relay-1 systemd[1]: Stopped Cardano Node.
Mar 11 16:44:02 cbcp-relay-1 systemd[1]: cnode.service: Consumed 1.058s CPU time.
Mar 11 16:44:26 cbcp-relay-1 systemd[1]: cnode.service: Start request repeated too quickly.
Mar 11 16:44:26 cbcp-relay-1 systemd[1]: cnode.service: Failed with result 'exit-code'.
Mar 11 16:44:26 cbcp-relay-1 systemd[1]: Failed to start Cardano Node.

i’ve tried to rebuild the node and get

collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
cabal: Failed to build exe:cardano-node from cardano-node-1.35.5.
Failed to build test:cardano-node-test from cardano-node-1.35.5.

after doing a bunch of digging and searching on this forum and StackOverflow I finally found the solution.

for anyone who finds this post and needs a solution, here it is

wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.17_amd64.deb

if the link is expired here is the archive:
http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/?C=N;O=A

via: python - libssl.so.1.1: cannot open shared object file: No such file or directory - Stack Overflow

1 Like