eherman:
Какой это файл журнала?
cd /var/discourse
./launcher enter app
tail -f /shared/log/rails/production.log
Также см. эту статью о журналах Discourse.
When troubleshooting issues or errors with Discourse it is important you look at your logs. Here’s a listing of where they are and what’s in there.
Your site domain
Administration logs shown in the UI
The Discourse admin panel contains several forms of logging:
Emails that are sent, skipped, bounced, received and rejected are logged at https://=DOMAIN=/admin/email-logs and the neighboring tabs.
Staff actions are logged at https://=DOMAIN=/admin/logs/staff_action_logs
Email addresses an…
Если проблема возникает только с существующими сообщениями, но новые загруженные изображения отображаются корректно, то мне помогло выполнение следующих команд:
rake uploads:recover_from_tombstone
rake posts:rebake
Также посмотрите это обсуждение.
Lest anyone thinks that this query went unanswered, many thanks to @zogstrip for solving this. It seems that Discourse got confused about whether those uploaded images were being used and moved them for subsequent deletion.
Though you will probably never need it, the fix went something like this:
# copy the "deleted" images from their to-be-deleted staging area
cd /var/discourse
./launcher enter app
rake uploads:recover_from_tombstone
# rebake to see that it doesn't happen again
rake posts:re…