Did you copy (parts of) the /var/discourse folder to the new server? That might have messed with the permissions/owner.
/var/discourse