Per this post
Hello,
I’m trying to setup a Discourse instance (private) on a Digitalocean droplet and I’m having some problems with the uploaded images, because they are not showing in the posts.
The weird thing is that right after insert the image, when it finished to upload you can see for a second. After that, the link breaks and you can’t see it anymore. I have tried to rebuild the HTML and it didn’t work, the same thing happens: you can see the image for a second after rebuilding only. An example:
[i…
and suggestions on how to fix the issue, can anybody confirm that these are the right steps to take after upgrading to the current beta?
rake posts:rebake
rake posts:missing_uploads
rake uploads:recover_from_tombstone
Is there some good place that these rake tasks are documented?
I have broken images on this old post:
And I’m trying to set up my classic Kinesis keyboard.
I’m on 2.7.0.beta1.
Thanks in advance for any advice, and thanks Discourse team for such a great product!
1 Like
Unfortunately our track record here has not been good… I have some permanently broken images in my own hosted Discourse as well, which is also circa 2014 or so
Not sure if @sam or @gerhard has any advice, but I would not get your hopes up. Sorry
2 Likes
Benjamin_D
(Benjamin Decotte)
December 27, 2020, 11:29pm
3
I’d say your case is close to the ones described here:
I chose to move our site to a new host, and restored from backup after setting up a new DO droplet w 2gb ram and doing a stock install.
I didn’t see any errors, and didn’t think to check all the images before shutting down the host.
As it turns out, images were missing and no amount of rebaking would help. (Initially posted here & here )
The damage was more easily visible when I ran this command, to remove all empty folders:
find /var/discourse/shared/standalone/uploads/default -type d -empty…
2 Likes
gerhard
(Gerhard Schlager)
December 29, 2020, 7:07pm
4
You are probably out of luck unless you still have a very old backup file that contains the missing files.
1 Like
My apologies on resurrecting this one but after trying the above methods, I still can’t get the images back.
Perhaps a more experienced eye for these things will spot something
example post 1 and example post 2
However, here is an old one where the images work