Pleroma.Web.Endpoint: ArgumentError
I recently did a mix pleroma.config migrate_to_db
and noticed that once I wanted do basic CLI tasks (e.g. Pruning the DB, but also happens with mix pleroma.relay follow
)
I got greeted with a error like this:
** (ArgumentError) argument error
(stdlib) :ets.lookup(Pleroma.Web.Endpoint, :__phoenix_host__)
(phoenix) lib/phoenix/config.ex:42: Phoenix.Config.cache/3
(pleroma) lib/mix/tasks/pleroma/database.ex:92: Mix.Tasks.Pleroma.Database.run/1
(mix) lib/mix/task.ex:331: Mix.Task.run_task/3
(mix) lib/mix/cli.ex:79: Mix.CLI.run_task/2
Honestly, I don't really know if this is due to misconfiguration or simply because of the first time I ran the migrate_to_db
command and it failed, leaving the configs in the DB to be pleroma's default. Which is likely what I think is going on, eitherway, is there a way to reinitialize the DB configs and take the config from the config.exs
?