curl and openssl problems?

15 views
Skip to first unread message

Anders Persson

unread,
Oct 10, 2020, 2:38:30 PM10/10/20
to Eiffel Web Framework
I have executed a webserver for some years on one server and developed it on another Ubuntu computer. When upgrading to version 18 of Ubuntu on the server I got problems. 

On the Ubuntu server I have a neo4j database that is accessed at port 7474. 

From my Eiffel code I can access it if I execute the Eiffel code at another computer with http://ubuntu_server:7474 but at the server I get Read Timeout when trying http://localhost:7474 or (http://ubuntu_server:7474 )

When investigating the version of curl and openssl on them  I see some  differences Might it be that that is the problem. 

Server on which the above connection time out.

curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.4 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Release-Date: 2020-01-08
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets


$export LD_LIBRARY_PATH=/usr/local/lib
$openssl version
OpenSSL 1.1.0g  2 Nov 2017
$ curl --version
curl: /usr/local/lib/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /usr/lib/x86_64-linux-gnu/libcurl.so.4)
curl: /usr/local/lib/libcrypto.so.1.1: version `OPENSSL_1_1_1' not found (required by /usr/lib/x86_64-linux-gnu/libssh.so.4)
$  export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/
$ openssl version
OpenSSL 1.1.0g  2 Nov 2017 (Library: OpenSSL 1.1.1f  31 Mar 2020)
$ curl --version
curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.4 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Release-Date: 2020-01-08
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets


Client at which it works

curl 7.58.0 (x86_64-pc-linux-gnu) libcurl/7.58.0 OpenSSL/1.1.1 zlib/1.2.11 libidn2/2.0.4 libpsl/0.19.1 (+libidn2/2.0.4) nghttp2/1.30.0 librtmp/2.3
Release-Date: 2018-01-24
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp smb smbs smtp smtps telnet tftp 
Features: AsynchDNS IDN IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets HTTPS-proxy PSL


$export LD_LIBRARY_PATH=/usr/local/lib
$openssl version
OpenSSL 1.1.0g  2 Nov 2017
$ openssl version
openssl: relocation error: openssl: symbol EVP_mdc2 version OPENSSL_1_1_0 not defined in file libcrypto.so.1.1 with link time reference


Any ideas of what can be the problem?




Note that I have both executed the version of my Eiffel program (Eiffel Web Server) that was built before I upgrade from Ubuntu 16 to Ubuntu 18 on the server and then it worked very well, and then I have rebuilt and tried it with debugging etc. I use the same executable on the to different computers. The only difference is the url (at least from my investigations so far)
Reply all
Reply to author
Forward
0 new messages