Migrating DB schemas
Getting:
root@pub:/opt/pleroma# su pleroma -s $SHELL -lc "./bin/pleroma_ctl migrate"
19:11:17.392 [info] == Running 20170522160642 Pleroma.Repo.Migrations.CaseInsensivtivity.up/0 forward
19:11:17.394 [info] execute "create extension if not exists citext"
19:11:17.395 [info] extension "citext" already exists, skipping
19:11:17.395 [info] alter table users
** (Postgrex.Error) ERROR 42P07 (duplicate_table) relation "users_email_index" already exists
(ecto_sql) lib/ecto/adapters/sql.ex:618: Ecto.Adapters.SQL.raise_sql_call_error/1
(elixir) lib/enum.ex:1336: Enum."-map/2-lists^map/1-0-"/2
(ecto_sql) lib/ecto/adapters/sql.ex:705: Ecto.Adapters.SQL.execute_ddl/4
(ecto_sql) lib/ecto/migration/runner.ex:302: Ecto.Migration.Runner.log_and_execute_ddl/3
(ecto_sql) lib/ecto/migration/runner.ex:111: anonymous fn/5 in Ecto.Migration.Runner.flush/0
(elixir) lib/enum.ex:1948: Enum."-reduce/3-lists^foldl/2-0-"/3
(ecto_sql) lib/ecto/migration/runner.ex:110: Ecto.Migration.Runner.flush/0
(stdlib) timer.erl:166: :timer.tc/1
Instance is up, but can't register. Using mix pleroma.user new...
from command line renders ** (Mix) The task "pleroma.user" could not be found
.