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

**URL:** <https://meta.discourse.org/t/zlib-buffer-error-discourse-update-fails/311347>\
**Category:** Self-hosting\
**Created:** [June 10, 2024, 6:53am UTC](https://meta.discourse.org/t/zlib-buffer-error-discourse-update-fails/311347 "2024-06-10T06:53:31Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![mcdanlj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcdanlj/32/131829_2.png) [@mcdanlj](https://meta.discourse.org/u/mcdanlj)\
**Post date:** [July 11, 2024, 1:28am UTC](https://meta.discourse.org/t/zlib-buffer-error-discourse-update-fails/311347/9 "2024-07-11T01:28:19Z")

</div>

When the 3.3.0.beta3 version was released, I got this error inconsistently; it failed once, and then the rebuild succeeded. (Not having found this post, I worried about memory corruption! 😬) Tonight, doing a rebuild, it consistently failed until I found this post and added `DISCOURSE_MAXMIND_ACCOUNT_ID` to the existing `DISCOURSE_MAXMIND_LICENSE_KEY` and then it reliably succeeded.

(I assume something like that maxmind rolled out a change with a blue/green deployment and that earlier I hit different versions of a back end service each time…)

---

_[View the full topic](https://meta.discourse.org/t/zlib-buffer-error-discourse-update-fails/311347)._
