Huskehhh / dayz-monitor

DayZ server monitoring discord bot
6 stars 0 forks source link

Missing OpenSSL in the docker image; unable to start #5

Closed openface closed 3 years ago

openface commented 3 years ago

Hitting this error when trying to start the docker container. (jordynnewnham/dayz-monitor:latest)

dayz-monitor_1  | ./dayz-monitor: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

The image seems to be missing OpenSSL.

openface commented 3 years ago

Update: So I went into the running container, installed openssl via apt-get, and tried running dayz-monitor manually and am hitting this:

Error when updating cache: error sending request for url (https://api.battlemetrics.com/servers/10898108): error trying to connect: error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed:../ssl/statem/statem_clnt.c:1915: (unable to get local issuer certificate)

The TLS certificate is valid on that API endpoint, I'll keep digging...

openface commented 3 years ago

apt-get install ca-certificates did the trick. So.. you're missing 2 packages. :D

Huskehhh commented 3 years ago

Cheers mate. Will fix ASAP 😀

Huskehhh commented 3 years ago

Should be resolved in the above commit. Thanks again!