Does not run on Erlang 24
Hi all,
Apparently Pleroma will not run on Erlang 24.
I was transferring my instance from a FreeBSD host to a Linux host. Everything seemed to be working + Pleroma was running up. However, I was receiving multiple 500 errors. Upon investigation with this:
iex -S mix phx.server
Logger.add_backend(:console)
I saw this error:
00:34:17.310 [error] #PID<0.1566.0> running Pleroma.Web.Endpoint (connection #PID<0.1565.0>, stream id 1) terminated
Server: islamicate.space:80 (http)
Request: GET /api/v1/timelines/public?only_media=false&with_muted=true&limit=20
** (exit) an exception was raised:
** (UndefinedFunctionError) function :crypto.hmac/3 is undefined or private
(crypto 5.0.2) :crypto.hmac/3
(plug_crypto 1.2.0) lib/plug/crypto/key_generator.ex:81: Plug.Crypto.KeyGenerator.generate/7
(plug_crypto 1.2.0) lib/plug/crypto/key_generator.ex:67: Plug.Crypto.KeyGenerator.with_cache/3
(plug_crypto 1.2.0) lib/plug/crypto/key_generator.ex:51: Plug.Crypto.KeyGenerator.generate/6
(plug 1.10.4) lib/plug/session/cookie.ex:96: Plug.Session.COOKIE.get/3
(plug 1.10.4) lib/plug/session.ex:71: anonymous fn/5 in Plug.Session.fetch_session/1
(pleroma 2.3.0-1-gb221d77a) Pleroma.Web.Router.base_api/2
(pleroma 2.3.0-1-gb221d77a) Pleroma.Web.Router.no_auth_or_privacy_expectations_api/2
After speaking with @feld, he suggested that this might be because I am running Erlang 24, which is the current Erlang in the Ubuntu repository. It is also what the installation and migration instructions will currently download.
Link to troubleshooting conversation: https://bikeshed.party/notice/A89uMBbFPu72KEBO6a