ejabberd - Comments for "Newbie here! Cannot connect to my jabber server, except with one client (Jabbear) - Pidgin fails" https://www.ejabberd.im/node/4200 en Fixed by adding symbolic links to libssl and libcrypto https://www.ejabberd.im/node/4200#comment-56995 <p>I was having this issue also with ejabberd 2.1.6 -- fresh install using binary installer on an Amazon Linux micro-instance I set up for testing.<br /> Seems like ejabberd 2.1.6 wants to link to SSL v 0.9.8 and what comes installed on Amazon Linux is 1.0.0.a.</p> <p>My problem was annoying because ejabberd would start up OK, but it would not allow any connections - and it didn't crash on startup as previous versions appear to have been doing.</p> <p>When running in interactive mode (ejabberdctl live) I saw an error about being unable to load the driver tls_drv.so, but otherwise started up fine. However, I could not connect from Adium or any client I tried. When I tried to connect, there was an error in the log about parsing the XML for TLS (encryption), so I went back to the original start up error and tried to see if the libssl version was the issue. </p> <p>To see the dependencies I used ldd:</p> <div class="codeblock"><code>ldd /opt/ejabberd-2.1.6/lib/ejabberd-2.1.6/priv/linux-x86/lib/tls_drv.so <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; linux-gate.so.1 =&gt;&nbsp; (0x006c7000)<br /> libssl.so.0.9.8 =&gt; not found<br /> libcrypto.so.0.9.8 =&gt; not found<br /> libc.so.6 =&gt; /lib/i686/nosegneg/libc.so.6 (0x00110000)<br /> /lib/ld-linux.so.2 (0x0062f000)</p></code></div> <p>So we can see that it can't find "libssl.so.0.9.8" or libcrypto.so.0.9.8</p> <p>On my machine libssl and libcrypto are located in /usr/lib</p> <p>So what I did was create symbolic links from those missing filenames to the version of the libraries that I do have</p> <div class="codeblock"><code>sudo ln -s libssl.so.1.0.0a libssl.so.0.9.8<br />sudo ln -s libcrypto.so libcrypto.so.0.9.8</code></div> <p>So now ldd gives</p> <div class="codeblock"><code>host lib]$ ldd tls_drv.so <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./tls_drv.so: /usr/lib/libcrypto.so.0.9.8: no version information available (required by ./tls_drv.so)<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ./tls_drv.so: /usr/lib/libssl.so.0.9.8: no version information available (required by ./tls_drv.so)<br /> linux-gate.so.1 =&gt;&nbsp; (0x00dbc000)<br /> libssl.so.0.9.8 =&gt; /usr/lib/libssl.so.0.9.8 (0x00c89000)<br /> libcrypto.so.0.9.8 =&gt; /usr/lib/libcrypto.so.0.9.8 (0x00110000)<br /> libc.so.6 =&gt; /lib/i686/nosegneg/libc.so.6 (0x00409000)<br /> libgssapi_krb5.so.2 =&gt; /lib/libgssapi_krb5.so.2 (0x00399000)<br /> libkrb5.so.3 =&gt; /lib/libkrb5.so.3 (0x0027d000)<br /> libcom_err.so.2 =&gt; /lib/libcom_err.so.2 (0x00b10000)<br /> libk5crypto.so.3 =&gt; /lib/libk5crypto.so.3 (0x00edf000)<br /> libresolv.so.2 =&gt; /lib/libresolv.so.2 (0x0033b000)<br /> libdl.so.2 =&gt; /lib/libdl.so.2 (0x00354000)<br /> libz.so.1 =&gt; /lib/libz.so.1 (0x00359000)<br /> /lib/ld-linux.so.2 (0x0062f000)<br /> libkrb5support.so.0 =&gt; /lib/libkrb5support.so.0 (0x00f95000)<br /> libkeyutils.so.1 =&gt; /lib/libkeyutils.so.1 (0x00c43000)<br /> libpthread.so.0 =&gt; /lib/i686/nosegneg/libpthread.so.0 (0x005c8000)<br /> libselinux.so.1 =&gt; /lib/libselinux.so.1 (0x0036c000)</code></div> <p>Which is all good (mostly, except the version number warning, but it doesn't seem to matter.)</p> <p>Then, when I restart the server, all is good and I can connect.</p> Fri, 21 Jan 2011 22:37:14 +0000 lenlayton comment 56995 at https://www.ejabberd.im Can someone help out with https://www.ejabberd.im/node/4200#comment-56918 <p>Can someone help out with this please. It would be great if the original poster would post his solution in detail.<br /> I'm also having the same error (open_error,-10) and the .so files are where they should be.</p> Tue, 28 Dec 2010 12:09:16 +0000 BeerBelly comment 56918 at https://www.ejabberd.im Me, too https://www.ejabberd.im/node/4200#comment-56818 <p>Hi, </p> <p>i am having the same problem, too.<br /> It would be nice if anyone, could provide help for this.<br /> Where do i have to place the symlinks?</p> <p>Thanks in advance.</p> Thu, 18 Nov 2010 21:08:47 +0000 S14 comment 56818 at https://www.ejabberd.im Same problem https://www.ejabberd.im/node/4200#comment-56755 <p>Hi, I'm having the same problem. I do see sha_drv.so in the ejabber lib directory. </p> <p>How did you make this correction exactly? </p> <p>I'm running Centos 5.2 with OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008.</p> <p>Thanks for any tips.</p> Thu, 21 Oct 2010 22:39:45 +0000 twiggle comment 56755 at https://www.ejabberd.im Sorted https://www.ejabberd.im/node/4200#comment-56500 <p>Thanks to Jonas and deryni on the XMPP chat for your help,</p> <p>the build was pointing to an older version of SSL libraries and so I've bodged this with two symlinks and it is working just fine now.</p> <p>:D</p> Wed, 11 Aug 2010 16:47:28 +0000 simonpittock comment 56500 at https://www.ejabberd.im