品牌头部组件升级后图片损坏

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 个赞

感谢 @martym 提供修复信息。我们遇到了类似的标题问题。我还注意到其他一些文件无法访问(403 错误),这些文件看起来像是默认的 Discourse 图片(或者来自我们正在使用的 Mint 主题)。

既然图片已在墓碑中,rake uploads:recover_from_tombstone 是否有可能解决此类问题?

我是在问比我懂得多的人 :stuck_out_tongue: