I’ve updated to 2.5.0.beta6 (via web interface in /admin) and now some of the images are missing because s3 returns 403.
Here’s an example page: Outlook / Folders Previewer - change / set zoom / width - SumatraPDF - Sumatra Reader Discussion Forum
Here’s what shows in JavaScript console:
ec89198b693dd221d603373294f36ea14c5c25f1.png:1 GET https://discourse-sumatra-backup.s3.dualstack.us-east-1.amazonaws.com/original/2X/e/ec89198b693dd221d603373294f36ea14c5c25f1.png 403 (Forbidden)
Image (async)
(anonymous) @ _application-f4f68c0db9c527ecb2ed2efb83107d37ca9e6e73caaadc4ab4761618775063f1.js:1
(anonymous) @ _application-f4f68c0db9c527ecb2ed2efb83107d37ca9e6e73caaadc4ab4761618775063f1.js:1
(anonymous) @ _application-f4f68c0db9c527ecb2ed2efb83107d37ca9e6e73caaadc4ab4761618775063f1.js:1
e7cb414e4237ed797a603eeea49d7ed468ac2aee.png:1 GET https://discourse-sumatra-backup.s3.dualstack.us-east-1.amazonaws.com/original/2X/e/e7cb414e4237ed797a603eeea49d7ed468ac2aee.png 403 (Forbidden)
Image (async)
(anonymous) @ _application-f4f68c0db9c527ecb2ed2efb83107d37ca9e6e73caaadc4ab4761618775063f1.js:1
(anonymous) @ _application-f4f68c0db9c527ecb2ed2efb83107d37ca9e6e73caaadc4ab4761618775063f1.js:1
(anonymous) @ _application-f4f68c0db9c527ecb2ed2efb83107d37ca9e6e73caaadc4ab4761618775063f1.js:1
5:1 Error while trying to use the following icon from the Manifest: https://forum.sumatrapdfreader.org/manifest.webmanifest (Download error or resource isn't a valid image)
Unfortunately s3 is lying and seems to return 403 for non-existing files (instead of 404) so it’s more likely the images are no longer in s3 than having their permissions mangled.
I did what Old image uploads become broken images suggests i.e.:
cd /var/discourse
./launcher enter app
rake uploads:recover_from_tombstone
That didn’t fix it.
Any ideas how to fix it?