Installing pleromabe - compilation error in lib/pleroma/web/endpoint.ex on Raspian
I'm following https://docs-develop.pleroma.social/backend/installation/debian_based_en/#install-pleromabe. However, when I try to generate the configuration I get a compilation error from the endpoint at: https://git.pleroma.social/pleroma/pleroma/blob/develop/lib/pleroma/web/endpoint.ex#L78
Could someone help debug? Thank you!
System:
Linux raspberrypi 4.19.66-v7l+ #1253 SMP Thu Aug 15 12:02:08 BST 2019 armv7l GNU/Linux
Compilation error:
pi@raspberrypi:/opt/pleroma $ sudo -Hu pleroma mix pleroma.instance gen
Compiling 272 files (.ex)
Compiling lib/pleroma/scheduled_activity_worker.ex (it's taking more than 15s)
Compiling lib/pleroma/web/activity_pub/views/user_view.ex (it's taking more than 15s)
Compiling lib/pleroma/web/mastodon_api/controllers/fallback_controller.ex (it's taking more than 15s)
Compiling lib/pleroma/web/activity_pub/views/object_view.ex (it's taking more than 15s)
Compiling lib/pleroma/user/info.ex (it's taking more than 15s)
Compiling lib/pleroma/plugs/set_user_session_id_plug.ex (it's taking more than 15s)
Compiling lib/pleroma/web/websub/websub_client_subscription.ex (it's taking more than 15s)
Compiling lib/pleroma/web/admin_api/views/config_view.ex (it's taking more than 15s)
Compiling lib/pleroma/web/mastodon_api/views/conversation_view.ex (it's taking more than 15s)
Compiling lib/pleroma/web/twitter_api/twitter_api_controller.ex (it's taking more than 15s)
Compiling lib/pleroma/web/views/streamer_view.ex (it's taking more than 15s)
Compiling lib/pleroma/web/media_proxy/media_proxy_controller.ex (it's taking more than 15s)
Compiling lib/pleroma/web/activity_pub/mrf/mention_policy.ex (it's taking more than 15s)
Compiling lib/pleroma/web/activity_pub/mrf/user_allowlist_policy.ex (it's taking more than 15s)
Compiling lib/pleroma/web/activity_pub/mrf/no_placeholder_text_policy.ex (it's taking more than 15s)
Compiling lib/pleroma/web/mastodon_api/views/list_view.ex (it's taking more than 15s)
Compiling lib/pleroma/plugs/rate_limiter.ex (it's taking more than 15s)
Compiling lib/pleroma/plugs/ensure_authenticated_plug.ex (it's taking more than 15s)
Compiling lib/pleroma/web/activity_pub/mrf/hellthread_policy.ex (it's taking more than 15s)
Compiling lib/pleroma/web/auth/pleroma_authenticator.ex (it's taking more than 15s)
Compiling lib/pleroma/web/admin_api/views/moderation_log_view.ex (it's taking more than 15s)
Compiling lib/pleroma/web/activity_pub/mrf/drop_policy.ex (it's taking more than 15s)
Compiling lib/pleroma/signature.ex (it's taking more than 15s)
Compiling lib/pleroma/moderation_log.ex (it's taking more than 15s)
Compiling lib/pleroma/web/activity_pub/utils.ex (it's taking more than 15s)
Compiling lib/pleroma/password_reset_token.ex (it's taking more than 15s)
Compiling lib/pleroma/notification.ex (it's taking more than 15s)
Compiling lib/pleroma/web/activity_pub/activity_pub_controller.ex (it's taking more than 15s)
Compiling lib/pleroma/web/channels/user_socket.ex (it's taking more than 15s)
Compiling lib/pleroma/web/activity_pub/mrf/tag_policy.ex (it's taking more than 15s)
Compiling lib/pleroma/web/auth/ldap_authenticator.ex (it's taking more than 15s)
Compiling lib/pleroma/web/views/mailer/subscription_view.ex (it's taking more than 15s)
Compiling lib/pleroma/web/activity_pub/visibility.ex (it's taking more than 15s)
Compiling lib/pleroma/plugs/legacy_authentication_plug.ex (it's taking more than 15s)
Compiling lib/pleroma/web/mastodon_api/views/account_view.ex (it's taking more than 15s)
Compiling lib/pleroma/web/federator/publisher.ex (it's taking more than 15s)
Compiling lib/pleroma/web/mastodon_api/views/app_view.ex (it's taking more than 15s)
Compiling lib/pleroma/web/push/subscription.ex (it's taking more than 15s)
Compiling lib/pleroma/web/oauth/authorization.ex (it's taking more than 15s)
Compiling lib/pleroma/web/activity_pub/mrf/mediaproxy_warming_policy.ex (it's taking more than 15s)
Compiling lib/pleroma/plugs/user_fetcher_plug.ex (it's taking more than 15s)
Compiling lib/mix/tasks/pleroma/user.ex (endpoint.exit's taking more than 15s)
Compiling lib/pleroma/web/twitter_api/views/password_view.ex (it's taking more than 15s)
Compiling lib/pleroma/web/mastodon_api/views/mastodon_view.ex (it's taking more than 15s)
Compiling lib/pleroma/web/activity_pub/mrf/keyword_policy.ex (it's taking more than 15s)
Compiling lib/pleroma/user/query.ex (it's taking more than 15s)
Compiling lib/pleroma/web/oauth/fallback_controller.ex (it's taking more than 15s)
Compiling lib/pleroma/web/mastodon_api/views/filter_view.ex (it's taking more than 15s)
Compiling lib/pleroma/web/views/error_view.ex (it's taking more than 15s)
Compiling lib/pleroma/web/websub/websub.ex (it's taking more than 15s)
Compiling lib/pleroma/web/uploader_controller.ex (it's taking more than 15s)
Compiling lib/pleroma/web/activity_pub/activity_pub.ex (it's taking more than 15s)
Compiling lib/pleroma/web/activity_pub/publisher.ex (it's taking more than 15s)
Compiling lib/pleroma/conversation/participation_recipient_ship.ex (it's taking more than 15s)
Compiling lib/pleroma/web/mongooseim/mongoose_im_controller.ex (it's taking more than 15s)
Compiling lib/pleroma/filter.ex (it's taking more than 15s)
Compiling lib/pleroma/web/admin_api/views/account_view.ex (it's taking more than 15s)
Compiling lib/pleroma/web/controller_helper.ex (it's taking more than 15s)
Compiling lib/pleroma/web/mastodon_api/views/scheduled_activity_view.ex (it's taking more than 15s)
Compiling lib/pleroma/web/mastodon_api/views/status_view.ex (it's taking more than 15s)
Compiling lib/pleroma/web/twitter_api/controllers/password_controller.ex (it's taking more than 15s)
Compiling lib/pleroma/web/mastodon_api/controllers/list_controller.ex (it's taking more than 15s)
Compiling lib/pleroma/web/web_finger/web_finger_controller.ex (it's taking more than 15s)
Compiling lib/pleroma/web/mastodon_api/controllers/subscription_controller.ex (it's taking more than 15s)
Compiling lib/pleroma/web/router.ex (it's taking more than 15s)
Compiling lib/pleroma/web/oauth/oauth_view.ex (it's taking more than 15s)
Compiling lib/pleroma/web/views/layout_view.ex (it's taking more than 15s)
Compiling lib/pleroma/web/websub/websub_controller.ex (it's taking more than 15s)
Compiling lib/pleroma/web/mastodon_api/views/push_subscription_view.ex (it's taking more than 15s)
Compiling lib/pleroma/web/mastodon_api/views/notification_view.ex (it's taking more than 15s)
Compiling lib/pleroma/web/views/email_view.ex (it's taking more than 15s)
Compiling lib/pleroma/web/admin_api/admin_api_controller.ex (it's taking more than 15s)
Compiling lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex (it's taking more than 15s)
Compiling lib/pleroma/web/endpoint.ex (it's taking more than 15s)
== Compilation error in file lib/pleroma/web/endpoint.ex ==
** (Protocol.UndefinedError) protocol Enumerable not implemented for nil of type Atom
(elixir) lib/enum.ex:1: Enumerable.impl_for!/1
(elixir) lib/enum.ex:141: Enumerable.reduce/3
(elixir) lib/enum.ex:3023: Enum.join/2
lib/pleroma/web/endpoint.ex:78: (module)
In case this is related - I couldn't install Erlang and Elixir together with default command due to conflicting dependencies. I could reproduce the above after installing Elixir only, or using Aptitude to install both together.
pi@raspberrypi:~ $ sudo apt install elixir erlang-dev erlang-parsetools erlang-xmerl erlang-tools erlang-ssh
Reading package lists... Done
Building dependency tree
Reading state information... Done
elixir is already the newest version (1.9.4-1).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
elixir : Depends: erlang-base (>= 1:21.3) but 1:21.2.6+dfsg-1 is to be installed or
erlang-base-hipe (>= 1:21.3) or
esl-erlang (>= 1:21.3) but it is not going to be installed
Depends: erlang-crypto (>= 1:21.3) or
esl-erlang (>= 1:21.3) but it is not going to be installed
Depends: erlang-inets (>= 1:21.3) or
esl-erlang (>= 1:21.3) but it is not going to be installed
Depends: erlang-ssl (>= 1:21.3) or
esl-erlang (>= 1:21.3) but it is not going to be installed
Depends: erlang-syntax-tools (>= 1:21.3) or
esl-erlang (>= 1:21.3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.