I am very new to Elixir and started a Phoenix project and in the process of learning to deploy. I setup a dummy build server and dummy dev server with the same specs on EC2 (Ubuntu 18.04, Erlang 22 ) and used mix release to generate an executable. I then used tarred it up and used scp to upload it to the dev server. After untarring the file, I attempted to run the executable and ran into the following error.
deploy@ip-172-30-0-172:/releases/hercules_umbrella$ bin/hercules_umbrella start
2019-11-13 20:26:01.624321
args: [load_failed,âFailed to load NIF library /releases/hercules_umbrella/lib/crypto-4.4.2/priv/lib/crypto: âlibcrypto.so.1.1: cannot open shared object file: No such file or directoryââ,âOpenSSL might not be installed on this system.\nâ]
format: âUnable to load crypto library. Failed with error:~nâ~p, ~s"~n~s"
label: {error_logger,error_msg}
Does anyone have an idea of what I did wrong or what I should I do instead?
you may want to try building openssl 1.1.1 from source. I recall having some problems with releases as a result on some distros (it might have been CentOS, though https://www.openssl.org/source/)
Can you make sure that you have libcrypto.so.1.1 in /usr/lib/x86_64-linux-gnu/