Deleting users with "mix pleroma.user rm" doesn't work
Environment
- Installation type (OTP or From Source): Source
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): 2.0.50-2084-gf0d13fc3-develop
- Elixir version (
elixir -v
for from source installations, N/A for OTP): Elixir 1.10.4 (compiled with Erlang/OTP 22) - Operating system: Linux, Ubuntu 20.04
- PostgreSQL version (
psql -V
): psql (PostgreSQL) 12.3 (Ubuntu 12.3-1.pgdg20.04+1)
Bug description
- develop branch, commit id #f0d13fc3
- Elixir 1.10.4
I can create a user with mix pleroma.user new test test@example.com
but I can't delete it with mix pleroma.user rm test
. It throws a GenServer error: gist.
Stopping the service and trying to delete the user manually using iex
appears to work, but doesn't seem to do anything. I tried
env MIX_ENV=prod iex -S mix
[...]
alias Pleroma.User
alias Pleroma.Web.ActivityPub.{Builder, Pipeline}
user = User.get_cached_by_nickname("test")
{:ok, delete_data, _} = Builder.delete(user, user.ap_id)
{:ok, delete, _} = Pipeline.common_pipeline(delete_data, local: true)
Sometimes I get the {:ok, ...}
tuple back (the user is still there, though), sometimes I get an error like
06:51:35.031 [error] Error while fetching https://p.node.pk/users/test: {:error, "Object containment failed."}