Imagem quebrada após atualização do componente de cabeçalho da marca

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 curtida

Obrigado @martym pelas informações sobre como corrigir. Tivemos um problema semelhante com nosso cabeçalho. Também notei que alguns outros arquivos não estão acessíveis (erro 403), que parecem ser imagens padrão do Discourse (ou do tema Mint que estamos usando).

Como a imagem estava na lápide, o comando rake uploads:recover_from_tombstone seria capaz de corrigir esse tipo de problema?

Estou perguntando para pessoas que sabem mais do que eu :stuck_out_tongue: