Overview
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
Solution
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:
sudo apt-get install openssl libssl-dev
gem install eventmachine
If you're on Windows:
- Install openssl from Win64OpenSSL_Light-3_0_2.msi
- Add it to the path as per Installing OpenSSL on Windows 10 and updating PATH
- Then rebuild eventmachine by running
gem install eventmachine
The CLI operation should progress without errors once the above fix is implemented.
Comments
Article is closed for comments.