Crash in NewUsersDigestWorker: "no match of right hand value" in Oban
Environment
- Installation type (OTP or From Source): OTP
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): 2.3.50-504-g891d2d22
- Elixir version (
elixir -v
for from source installations, N/A for OTP): OTP - Operating system: Debian 10.2
- PostgreSQL version (
psql -V
): 11.5 (Debian 11.5-1+deb10u1)
Bug description
Pleroma crashed with this error:
Jul 19 17:00:24 bbs.kawa-kun.com mix[13957]: ** (MatchError) no match of right hand side value: {{:and, [], [{:==, [], [{{:., [], [{:&, [], [0]}, :worker]}, [], []}, {:^, [], [0]}]}, {:^, [], [1]}]}, [{"Pleroma.Workers.Cron.NewUsersDigestWorker", {0, :worker}}, {%Inspect.Error{message: "got MatchError with message \"no match of right hand side value: {{:and, [], [{:==, [], [{{:., [], [{:&, [], [0]}, :queue]}, [], []}, {:^, [], [0]}]}, {:^, [], [1]}]}, [{\\\"new_users_digest\\\", {0, :queue}}, {%{__struct__: Ecto.Query.DynamicExpr, binding: [{:j, [line: 290], nil}], file: \\\"/opt/pleroma/deps/oban/lib/oban/query.ex\\\", fun: #Function<8.74301835/1 in Oban.Query.unique_field/2>, line: 290}, :boolean}]}\" while inspecting %{__struct__: Ecto.Query.DynamicExpr, binding: [{:j, [line: 290], nil}], file: \"/opt/pleroma/deps/oban/lib/oban/query.ex\", fun: #Function<8.74301835/1 in Oban.Query.unique_field/2>, line: 290}"}, :boolean}]}
More logs are in pleroma.log.xz.
Edited by Neil E. Hodges