Pleroma crashed and fails to restart
Environment
- Installation type (OTP or From Source): Source
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): 2.4.0
- Elixir version (
elixir -v
for from source installations, N/A for OTP): Erlang/OTP 23 & Elixir 1.11.2 - Operating system: Debian 10
- PostgreSQL version (
psql -V
): 11.9
Bug description
Pleroma worked fine since the 2.4.0 release two weeks ago. Today I couldn't post or upload attachments today so restarted pleroma. Now it fails to restart. I've already tried restarting the server itself as well as mix.clean --all and recompiling.
● pleroma.service - Pleroma social network
Loaded: loaded (/etc/systemd/system/pleroma.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2021-08-22 17:10:51 UTC; 1min 35s ago
Main PID: 1165 (beam.smp)
Tasks: 31 (limit: 4915)
Memory: 252.0M
CGroup: /system.slice/pleroma.service
├─1165 /usr/lib/erlang/erts-11.1.5/bin/beam.smp -- -root /usr/lib/erlang -progname erl -- -home /var/lib/pleroma -- -pa /usr/lib/elixir/bin/../lib/eex/ebin /usr/lib/elixir/bin/../lib/elixir/ebin /usr/lib/elixir/bin/../lib/ex_unit/ebin /usr/lib/elixir/bin/../lib/iex/ebin /usr/lib/elixir/bin/../lib/logger/ebin /usr/lib/elixir/bin/../lib/mix/ebin -noshell -s elixir start_cli -extra /usr/bin/mix phx.server
├─1180 erl_child_setup 1024
├─1225 /opt/pleroma/_build/prod/lib/fast_html/priv/fasthtml_worker
├─1226 /opt/pleroma/_build/prod/lib/fast_html/priv/fasthtml_worker
├─1227 /opt/pleroma/_build/prod/lib/fast_html/priv/fasthtml_worker
├─1231 inet_gethost 4
├─1232 inet_gethost 4
└─1250 /opt/pleroma/_build/prod/lib/fast_html/priv/fasthtml_worker
Aug 22 17:11:05 vps mix[1165]: (kernel 7.2) application_master.erl:277: :application_master.start_it_old/4
Aug 22 17:11:05 vps mix[1165]: 17:11:05.362 [error] GenServer Restarter.Pleroma terminating
Aug 22 17:11:05 vps mix[1165]: ** (MatchError) no match of right hand side value: {:error, {:bad_return, {{Pleroma.Application, :start, [:normal, []]}, {:EXIT, {%Pleroma.ApplicationRequirements.VerifyError{message: "System commands missing. Check logs and see `docs/installation` for more details."}, [{Pleroma.ApplicationRequirements, :handle_result, 1, [file: 'lib/pleroma/application_requirements.ex', line: 32]}, {Pleroma.Application, :start, 2, [file: 'lib/pleroma/application.ex', line: 56]}, {:application_master, :start_it_old, 4, [file: 'application_master.erl', line: 277]}]}}}}}
Aug 22 17:11:05 vps mix[1165]: (restarter 0.1.0) lib/pleroma.ex:92: Restarter.Pleroma.do_restart/1
Aug 22 17:11:05 vps mix[1165]: (restarter 0.1.0) lib/pleroma.ex:84: Restarter.Pleroma.handle_cast/2
Aug 22 17:11:05 vps mix[1165]: (stdlib 3.14) gen_server.erl:689: :gen_server.try_dispatch/4
Aug 22 17:11:05 vps mix[1165]: (stdlib 3.14) gen_server.erl:765: :gen_server.handle_msg/6
Aug 22 17:11:05 vps mix[1165]: (stdlib 3.14) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
Aug 22 17:11:05 vps mix[1165]: Last message: {:"$gen_cast", {:after_boot, :prod}}
Aug 22 17:11:05 vps mix[1165]: State: %{after_boot: false, need_reboot: false, rebooted: false}