Confused by configuration

Hey, it’s me again.

I want to import a blocklist to my mrf reject policy and i can’t figure out how to do it.
My settings are stored in my database. I figured, i could export the settings and reimport them.
Sadly i seem to fail at exporting:

su akkoma -s $SHELL -lc "./bin/pleroma_ctl  config migrate_from_db"
Saving database configuration settings to /tmp/prod.exported_from_db.secret.exs. Copy it to the /etc/akkoma manually.
** (ArgumentError) errors were found at the given arguments:

  * 1st argument: bad file number (ebadf)

    (stdlib 3.17.2.1) io.erl:99: :io.put_chars(#PID<12736.1846.12>, "import Config\r\n\r\n")
    lib/mix/tasks/pleroma/config.ex:297: Mix.Tasks.Pleroma.Config.write_config/3
    (stdlib 3.17.2.1) erl_eval.erl:685: :erl_eval.do_apply/6
    (elixir 1.13.4) lib/code.ex:404: Code.validated_eval_string/3

I tried setting the path, but that failed as well

su akkoma -s $SHELL -lc "./bin/pleroma_ctl  config migrate_from_db --path=/tmp"

21:06:34.488 [debug] QUERY OK source="config" db=0.5ms idle=1467.3ms
SELECT c0."id", c0."key", c0."group", c0."value", c0."inserted_at", c0."updated_at" FROM "config" AS c0 []
** (ErlangError) Erlang error: :enoent
    (elixir 1.13.4) lib/system.ex:1044: System.cmd("mix", ["format", "/tmp/prod.exported_from_db.secret.exs"], [])
    lib/mix/tasks/pleroma/config.ex:280: Mix.Tasks.Pleroma.Config.migrate_from_db/1
    (stdlib 3.17.2.1) erl_eval.erl:685: :erl_eval.do_apply/6
    (elixir 1.13.4) lib/code.ex:404: Code.validated_eval_string/3

Anything else i could try, or am i doing this completely wrong?