Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Appfog mysql tunnel error - Encryption not available on this event-machine

We've established a connection to appfog using caldecott and af tunnel command. We try to connect to a mysql service to load and execute a big .sql file to populate the db.

We tried it from 3 different machines Ubuntu on VirtualBox, Feora 18 on VirtualBox and native Ubuntu. We also tried it on another account, but we keep getting this error:

Launching 'mysql --protocol=TCP --host=localhost --port=10000 --user=uZVQhGhbYEzyb --password=pNu1l6xbXVhbj d39d6d0e6344b41a4aaeada16dfca2a46'

terminate called after throwing an instance of 'std::runtime_error'
 what():  Encryption not available on this event-machine
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0

Aborted (core dumped)
like image 836
JohnnyM Avatar asked Apr 02 '13 14:04

JohnnyM


2 Answers

Thanks to appfog customer support I managed to solve this problem. My distro lacked an ssl provider.

To solve this on fedora

yum install openssl openssl-devel
gem uninstall eventmachine
gem install eventmachine

However I still had a problem with executing big sql scripts. Does anyone know a neat solution to this issue?

like image 122
JohnnyM Avatar answered Nov 07 '22 21:11

JohnnyM


For a Windows system, I got it to run by doing the following:

  1. Install Win32 OpenSSL v1.0.1e Light from here

  2. Install Visual C++ 2008 Redistributables from the same link if not already installed.

  3. Re-install eventmachine in Ruby with the newly installed open-ssl.

gem install eventmachine -- --with-ssl-dir=C:\OpenSSL-Win32

(you might need C:\OpenSSL-Win32\bin)

After the installation is complete, you're ready to tunnel to any service! (In my case postgresql)

like image 41
Anup Chaudhari Avatar answered Nov 07 '22 20:11

Anup Chaudhari