Clean install of discourse resulting in failure

That means you have an invalid value on the MaxMind API key on your app.yml file. Try removing that line.