"crypto.mac/4 is undefined or private" error after update
Hi,
I just broke my Pleroma self hosted instance buy upgrading it (by pulling the "stable" repository). I get a lot of errors like this
Feb 3 17:02:29 mix[824932]: Request: GET /api/v1/timelines/public?only_media=false&with_muted=true&limit=20
Feb 3 17:02:29 mix[824932]: ** (exit) an exception was raised:
Feb 3 17:02:29 mix[824932]: ** (UndefinedFunctionError) function :crypto.mac/4 is undefined or private
Feb 3 17:02:29 mix[824932]: (crypto 4.5.1) :crypto.mac/4
Feb 3 17:02:29 mix[824932]: (plug_crypto 1.2.2) lib/plug/crypto/key_generator.ex:81: Plug.Crypto.KeyGenerator.generate/7
Feb 3 17:02:29 mix[824932]: (plug_crypto 1.2.2) lib/plug/crypto/key_generator.ex:67: Plug.Crypto.KeyGenerator.with_cache/3
Feb 3 17:02:29 mix[824932]: (plug_crypto 1.2.2) lib/plug/crypto/key_generator.ex:51: Plug.Crypto.KeyGenerator.generate/6
Feb 3 17:02:29 mix[824932]: (plug 1.10.4) lib/plug/session/cookie.ex:96: Plug.Session.COOKIE.get/3
Feb 3 17:02:29 mix[824932]: (plug 1.10.4) lib/plug/session.ex:71: anonymous fn/5 in Plug.Session.fetch_session/1
Feb 3 17:02:29 mix[824932]: (pleroma 2.4.2-541-g62a45747) Pleroma.Web.Router.base_api/2
Feb 3 17:02:29 mix[824932]: (pleroma 2.4.2-541-g62a45747) Pleroma.Web.Router.no_auth_or_privacy_expectations_api/2
Feb 3 17:03:20 mix[824932]: 17:03:20.404 request_id=FtBSKRXdlkw6XrsAAA3h [error] Internal server error: %UndefinedFunctionError{arity: 4, function: :mac, message: nil, module: :crypto, reason: nil}
I guess I am missing a dependancy here ? Here is the list of command I launched to update:
MIX_ENV=prod mix deps.get
MIX_ENV=prod mix ecto.migrate
I also tried a MIX_ENV=prod mix deps.update --all
just in case, but no luck.
Any help would be appreciated!