Deploying with discoursecharmers/discourse-v2-5-2:edge image fails

Bug #1903695 reported by Tom Haddon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
charm-k8s-discourse
Fix Released
High
Unassigned

Bug Description

Deploying into a microk8s instance with 'discoursecharmers/discourse-v2-5-2:edge' which is being created from a recipe build https://launchpad.net/~discourse-charmers/charm-k8s-discourse/+oci/discourse/+recipe/discourse I'm seeing:

discourse: NoMethodError (undefined method `size' for #<Rack::Lint::InputWrapper:0x000055a52b9caba0>)
discourse: /srv/discourse/v2.5.2/lib/middleware/anonymous_cache.rb:304:in `call'

For a more detailed look at how I've deployed things and reproduced this error, see https://paste.ubuntu.com/p/6DkYW95RvF/

Related branches

Revision history for this message
Tom Haddon (mthaddon) wrote :

I've also tested this with 'discoursecharmers/discourse-v2-5-4:edge', which (as the name suggests) is built with version 2.5.4 and I get the same failure:

discourse: NoMethodError (undefined method `size' for #<Rack::Lint::InputWrapper:0x0000563f6ab49218>)
discourse: /srv/discourse/v2.5.4/lib/middleware/anonymous_cache.rb:304:in `call'

Also seeing the same 500 error in a browser per the paste above:

==============================
Oops
The software powering this discussion forum encountered an unexpected problem. We apologize for the inconvenience.

Detailed information about the error was logged, and an automatic notification generated. We'll take a look at it.

No further action is necessary. However, if the error condition persists, you can provide additional detail, including steps to reproduce the error, by posting a discussion topic in the site's feedback category.
==============================

Changed in charm-k8s-discourse:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Tom Haddon (mthaddon) wrote :

Jay has a patch that fixes this, which I've tested locally. We'll mark this fix released once that updated image has been built and tested and we've updated the documentation (or the default discourse_image).

Changed in charm-k8s-discourse:
status: Confirmed → Fix Committed
Revision history for this message
Tom Haddon (mthaddon) wrote :

And I've confirmed I can deploy successfully with discoursecharmers/discourse-v2-5-4:edge too now (which has been built from our OCI Recipe and pushed to dockerhub).

Will leave this open until we've updated the charm to use that image as the default.

Revision history for this message
Tom Haddon (mthaddon) wrote :

This has now been done. Marking as fix released.

Changed in charm-k8s-discourse:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.