Image cassée après la mise à niveau du composant d'en-tête de marque

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 « J'aime »

Merci @martym pour les informations sur la façon de résoudre le problème. Nous avons rencontré un problème similaire avec notre en-tête. J’ai également remarqué que certains autres fichiers ne sont pas accessibles (erreur 403), qui ressemblent à des images Discourse par défaut (ou du thème Mint que nous utilisons).

Puisque l’image était dans la pierre tombale, rake uploads:recover_from_tombstone serait-il susceptible de résoudre un tel problème ?

Je pose la question à des personnes qui en savent plus que moi :stuck_out_tongue: