A user reports that images, including the logo, avatars, and post images, have disappeared from their Discourse installation. Despite attempts to recover them using commands like rake uploads:recover, rake posts:rebake, and rebuilding the Docker image, the issue persists. The user mentions that the images were stored on a block storage device mounted via app.yml, and while new images are present, the old ones are missing. The discussion suggests the issue may be related to losing access to the block storage. The user is advised to check if the old images exist in the storage and to look for a tombstone directory, which may contain deleted files. A potential recovery method is suggested using rake uploads:recover_from_tombstonemeglio, pfaffman, meglio, pfaffman, meglio, meglio, pfaffman.
One thing is that might or might not be important is that I attached a block storage when setting up Discourse, and mapped directories in app.yml like this:
Then it worked just fine for ~2-3 months or so. Then one day images just disappeared without me doing anything (except maybe rebuilding in order to update Discourse to the latest version).