"Zlib::BufError: buffer error" - Discourse update fails

Agreed. My rebuild failed even with DISCOURSE_MAXMIND_ACCOUNT_ID set in app.yml.

As soon as I commented out all mention of Maxmind, the rebuild succeeded.