Broken image after brand header component upgrade

After upgrading Brand Header theme component, the image that contained our logo is now a 404 not found.

The URL resembles:
https://forums.redacted.com/uploads/default/original/1X/5daddec8bbf6d8bca7a7e85d46ebdc756fe7b2757.png

Most of the searching seems to indicate an issue with migrations, in this instance we are simply working through the recommended upgrades in the Admin panel / docker all on the same server.

I did see some indications there may be a mechanism for deleting images automatically and our logo file may have been removed because the clean up mechanism thought it was unused.

From my searches I have tried various rake commands to no avail.

Questions:

  1. Is there a way to recover the image?
  2. How do I re-upload the image to brand header component? There does not seem to be an upload function.
  3. How do we prevent the image from being auto removed in the future?

Thanks

Found the image in

/var/discourse/shared/standalone/uploads/tombstone/default/original/1X

I have re uploaded it via the Themes → Upload

Hopefully that keeps the image in place in the future. Seems like a potential bug in Brand Header Component.

1 Like

Thank you @martym for the info how to fix it. We experienced a similar issue with our header. I also noticed that some other files are not accessible (403 error), which look like default Discourse images (or from the Mint theme we’re using).

Since the image was in the tombstone, would rake uploads:recover_from_tombstone be likely able to fix such an issue?

I’m asking to people who know more than me :stuck_out_tongue: