Failure trying to rebuild. Server dead in the water

One of your plugins (user-custom-preferences, perhaps?) is incompatible with the most recent version of Discourse. Remove it (or update it to be compatible) and your rebuild shouldl work just fine.