@msilvya @alex @matty you’re trying to run the systemctl command as the user pleroma which likely doesn’t have elevated privileges (because nowhere in the guide does it tell you to, and you shouldnt have escalated privileges on anything public facing ever)
exit sudo systemctl restart postgresql pleroma sudo -Hu pleroma bash cd /opt/pleroma MIX_ENV=prod mix pleroma.config migrate_from_db --env=prod -d --path=/opt/pleroma/config/export_prod.secret.exs