This is how I did migration: Migrate Discourse Forum to Another Server - Gulshan Kumar
AI-generated summary
After a server migration, all images on the forum became broken. Gulshan_Kumar followed a migration guide and used a full local backup, with images stored locally and no CDN. Despite trying rebuild and rebake options, images remain broken, especially on older posts. pfaffman asked about the scope of the issue—whether it affects all images or only resized ones—and confirmed the backup included uploads. Gulshan_Kumar noted that new topics only show broken images until rebuilt, suggesting a setup issue post-migration. Examples of broken images are provided in links to specific topics here and here.
Did the he forum appear to work before you restored the backup?
You have images stored locally and not in S3?
Does either site have a cdn?
If you click the wrench on a topic and rebuild html does it fix the images?
-
My images was locally (default state)
-
I was not using any CDN.
-
Tried rebuild and rebake as well but didn’t helped at all.
I was using S3 only for backup purpose. But for the sake migration in lowest possible cost, I created a local backup which I did scp. I have done similar and it used to work not sure what wrong this time happened.
Is it all images or just things that need to be resized like avatars?
You did a full backup with uploads, or did you try to move the uploads separately?
I did full backup.
One thing I want to bring in to your attention that even after migration, the newest Topic posted in past 24 hrs are appearing as broken until I do rebuild html.
After migration, it looks like setup has broken at some extend
An example of how it looks broken at new Topic
At old post sadly images are totally broken, I cannot even click on it. Ref: Contact - Gulshan Kumar
