Note that we just shipped a quick fix which would prevent the rebuild from failing when downloading the maxmind databases fail.
https://github.com/discourse/discourse/commit/3193afe7ca8f95e907b1513dbcd08a5745f42d4d
Once Discourse 3.3 has been released, we will relook into how we can make download Maxmind databases less error prone.