Conforme este 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…
e as sugestões sobre como resolver o problema, alguém pode confirmar se estes são os passos corretos a serem tomados após a atualização para a versão beta atual?
rake posts:rebake
rake posts:missing_uploads
rake uploads:recover_from_tombstone
Existe algum lugar bom onde essas tarefas rake estão documentadas?
Tenho imagens quebradas neste post antigo:
E estou tentando configurar meu teclado Kinesis clássico.
Estou na versão 2.7.0.beta1.
Obrigado antecipadamente por qualquer conselho e obrigado à equipe do Discourse por um produto tão excelente!
Infelizmente, nosso histórico aqui não tem sido bom. Tenho algumas imagens permanentemente quebradas em meu próprio Discourse hospedado, que também é de aproximadamente 2014 ou por aí
Não sei se @sam ou @gerhard têm algum conselho, mas não espere muito. Desculpe
Benjamin_D
(Benjamin Decotte)
Dezembro 27, 2020, 11:29pm
3
Eu diria que o seu caso é próximo dos descritos aqui:
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…
gerhard
(Gerhard Schlager)
Dezembro 29, 2020, 7:07pm
4
Você provavelmente não tem sorte, a menos que ainda tenha um arquivo de backup muito antigo que contenha os arquivos ausentes.
Peço desculpas por ressuscitar este tópico, mas depois de tentar os métodos acima, ainda não consigo recuperar as imagens.
Talvez um olhar mais experiente sobre estas coisas possa identificar algo.
exemplo de post 1 e exemplo de post 2
No entanto, aqui está um antigo onde as imagens funcionam.