'Encryption not available on this event-machine' error when using the 'ey-core' CLI tool


Running the Engine Yard Core API Ruby client and CLI utility (ey-core) on Windows when deploying via the CLI or executing other operations through the CLI can sometimes throw the following error, despite successfully executing the command:

terminate called after throwing an instance of std::runtime_error   
what():  Encryption not available on this event-machine


This issue occurs when the eventmachine gem is built without openssl.

To fix the error, you need to install OpenSSL and then rebuild eventmachine.

Essentially, if you're on Ubuntu WSL:

  1. sudo apt-get install openssl libssl-dev
  2. gem install eventmachine

If you're on Windows:

  1. Install openssl from Win64OpenSSL_Light-3_0_2.msi
  2. Add it to the path as per Installing OpenSSL on Windows 10 and updating PATH
  3. Then rebuild eventmachine by running gem install eventmachine

The CLI operation should progress without errors once the above fix is implemented.


Article is closed for comments.