Pups::ExecError: postgres ユーザーで 'psql discourse -c "alter schema public owner to discourse;"' を実行したところ、失敗しました

ypu may need to scroll up higher. Have you triedvthe safe mode procedure?

Not sure if it will work in this case or not tbh.