In base a questo 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 ai suggerimenti su come risolvere il problema, può qualcuno confermare che questi sono i passaggi corretti da compiere dopo l’aggiornamento alla beta corrente?
rake posts:rebake
rake posts:missing_uploads
rake uploads:recover_from_tombstone
Esiste un posto dove questi task rake sono documentati?
Ho immagini rotte in questo vecchio post:
E sto cercando di configurare la mia tastiera Kinesis classica.
Sto utilizzando la versione 2.7.0.beta1.
Grazie in anticipo per qualsiasi consiglio, e grazie al team di Discourse per un prodotto così fantastico!
Purtroppo, le nostre esperienze in questo ambito non sono state positive. Ho anch’io alcune immagini rotte in modo permanente nella mia installazione Discourse ospitata, risalente anch’essa al 2014 circa
Non sono sicuro che @sam o @gerhard abbiano qualche consiglio, ma non mi farei troppe speranze. Mi dispiace
Benjamin_D
(Benjamin Decotte)
27 Dicembre 2020, 11:29pm
3
Direi che il tuo caso è simile a quelli descritti qui:
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)
29 Dicembre 2020, 7:07pm
4
Probabilmente sei sfortunato, a meno che tu non abbia ancora un file di backup molto vecchio che contiene i file mancanti.
Mi scuso per aver ripreso questo argomento, ma dopo aver provato i metodi sopra indicati, non riesco ancora a recuperare le immagini.
Forse un occhio più esperto per queste cose noterà qualcosa.
esempio post 1 e esempio post 2
Tuttavia, ecco un vecchio post in cui le immagini funzionano.