Images prior 2022 lost

Hi

We are using the the latest Discourse version r 3.1.0.beta2, and it looks like the images prior 2022 are not displayed.

I launched some tools trying to recover them. No way.

cd /var/discourse/
./launcher enter app
rake posts:missing_uploads
Looking for missing uploads on: default
Fixing missing uploads:
:no_entry_sign::ok::ok::ok::ok::ok::ok::ok::ok::ok::no_entry_sign::no_entry_sign::no_entry_sign::no_entry_sign::no_entry_sign::no_entry_sign::no_entry_sign::no_entry_sign::no_entry_sign::no_entry_sign::no_entry_sign::no_entry_sign::no_entry_sign:

109 post uploads are missing.

101 uploads are missing.
14 of 101 are old scheme uploads.
73 of 392439 posts are affected.

rake uploads:missing
rake uploads:recover_from_tombstone

We’ve got this:

However, it looks we can edit the post and the image appears in the edit area.
The difference between image in edit and the image in the forum is.
Side Edit:
<img src="/uploads/default/original/3X/e/8/e8447f3cb3fbeadfbc1757ef6dd3da6a669f15ca.png" ....

Side Forum:
<img src="https://xxxxxxxxxxxxxxxxxx/uploads/default/optimized/3X/e/8/e8447f3cb3fbeadfbc1757ef6dd3da6a669f15ca_2_690x219.png" ...

Is there a way to fix that?

Thanks
Franck

2 Likes

It seems the FQDN is changed between the newest images and the oldest images.
The FQDN is not the same.

Is there a way to update the images with the good FQDN?

1 Like

When did your FQDN change?

Sounds like you changed domain name and didn’t remap/rebake.

1 Like

Hmmm good question,
At least more than one years ago probably.

1 Like

Shoudl we use

discourse remap talk.foo.com talk.bar.com

As into this thread : Change the domain name or rename your Discourse

That and the step below are both required when changing between domains.

Hmm I found something in app.yml with this FQDN:
It is set here: DISCOURSE_CORS_ORIGIN:
Should we change only that and rebuilt?

The FQDN is set here, and it’s no longer available.