I have the same problem but while running a docker-compose run --rm myapp migrate command. Ubuntu 18.04. It fails on this line in my release_tasks.ex:
Ecto.Migrator.run(repo, migrations_path, :up, all: true)
The deployment and migration succeeded many times before so I have no idea why this happened all of a sudden. I even reverted to the last successful deployment and the issue still appeared. I tried @dokuzbir suggestion and it made no difference. I also updated to all the security and os updates. I don’t think I can use asdf because that would obviate the use of Docker. Any suggestions?
here is the pertinent part of the log:
Running migrations for db
17:16:43.739 [error] Unable to load crypto library. Failed with error:
":load_failed, Failed to load NIF library: 'Error loading shared library libcrypto.so.1.1: No such file or directory (needed by /app/lib/crypto-4.4/priv/lib/crypto.so)'"
OpenSSL might not be installed on this system.
17:16:43.752 [error] Unable to load crypto library. Failed with error:
":load_failed, Failed to load NIF library: 'Error loading shared library libcrypto.so.1.1: No such file or directory (needed by /app/lib/crypto-4.4/priv/lib/crypto.so)'"
OpenSSL might not be installed on this system.
17:16:43.761 [warn] The on_load function for module crypto returned:
{:error, {:load_failed, 'Failed to load NIF library: \'Error loading shared library libcrypto.so.1.1: No such file or directory (needed by /app/lib/crypto-4.4/priv/lib/crypto.so)\''}}
17:16:43.774 [error] GenServer #PID<0.145.0> terminating
** (RuntimeError) connect raised UndefinedFunctionError exception.The exception details are hidden, as they may contain sensitive data such as database credentials. You may set :show_sensitive_data_on_connection_error to true if you wish to see all of the details
(crypto) :crypto.hash/2
(postgrex) lib/postgrex/protocol.ex:721: Postgrex.Protocol.auth_md5/4
(postgrex) lib/postgrex/protocol.ex:576: Postgrex.Protocol.handshake/2
(db_connection) lib/db_connection/connection.ex:66: DBConnection.Connection.connect/2
(connection) lib/connection.ex:622: Connection.enter_connect/5
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Last message: nil
17:16:43.786 [error] Unable to load crypto library. Failed with error:
":load_failed, Failed to load NIF library: 'Error loading shared library libcrypto.so.1.1: No such file or directory (needed by /app/lib/crypto-4.4/priv/lib/crypto.so)'"
OpenSSL might not be installed on this system.






















