Running /bin/mobilizon_ctl instance gen for amd64 v3.0.0 on unbuntu 22.04 causes Unable to load crypto library error
When running the
sudo -u mobilizon ./bin/mobilizon_ctl instance gen --output /etc/mobilizon/config.exs --output-psql /tmp/setup_db.psql
from https://packages.joinmobilizon.org/3.0.0/mobilizon_3.0.0_amd64.tar.gz in accordance to the https://docs.joinmobilizon.org/administration/install/release/ documentation I get this error on Unbuntu 22.04.1 LTS (Jammy Jellyfish) :
sudo -u mobilizon ./bin/mobilizon_ctl instance gen --output /etc/mobilizon/config.exs --output-psql /tmp/setup_db.psql !!! /etc/mobilizon/config.exs not found! Please ensure it exists and that MOBILIZON_CONFIG_PATH is unset or points to an existing file 00:01:47.535 [error] Unable to load crypto library. Failed with error: ":load_failed, Failed to load NIF library /opt/mobilizon/lib/crypto-5.1.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. 00:01:47.562 [warning] The on_load function for module crypto returned: {:error, {:load_failed, 'Failed to load NIF library /opt/mobilizon/lib/crypto-5.1.2/priv/lib/crypto: 'libcrypto.so.1.1: cannot open shared object file: No such file or directory''}} ** (UndefinedFunctionError) function :crypto.strong_rand_bytes/1 is undefined (module :crypto is not available) :crypto.strong_rand_bytes(64) (mobilizon 3.0.0) lib/mix/tasks/mobilizon/instance.ex:124: Mix.Tasks.Mobilizon.Instance.run/1 nofile:1: (file) (stdlib 4.1.1) erl_eval.erl:748: :erl_eval.do_apply/7 (elixir 1.14.1) lib/code.ex:422: Code.validated_eval_string/3
And I can confirm, there is no crypto folder under /opt/mobilizon/lib/crypto-5.1.2/priv/lib/