S3 assets broken after moving forum

Yeah, sadly I don’t have the S3 credentials :frowning:

I can reproduce the steps:

  1. Installed a new Discourse Forum with discourse_docker behind Traefik
  2. Did a backup of the old forum (including some old assets)
  3. Restored the backup on the new forum
  4. Forced HTTPS
  5. Got asset URLs out of the dump.sql (from the backup)
  • egrep -o 'discuss-openhdfpv.eu-central-1.linodeobjects.com\/original\/1X\/[0-9a-z_]{0,}\.[0-9a-zA-Z]{0,}' ./dump.sql >> original.txt
  • egrep -o 'discuss-openhdfpv.eu-central-1.linodeobjects.com\/optimized\/1X\/[0-9a-z_]{0,}\.[0-9a-zA-Z]{0,}' ./dump.sql >> optimized.txt
  1. Downloaded the assets: cat optimized.txt | parallel --gnu "wget -nc -P ./optimized/1X/ {}" (same with original)
  2. Removed the S3 configurations
  3. rake posts:rebake

I can do SQL stuff at the database, when I know what to look for.