Was verursacht rake uploads:fix_relative_upload_links

I just did an import from smf2. It worked fine on my machine but when the client ran it, a bunch of images got tombstoned, and recover from tombstone says to run

 rake uploads:fix_relative_upload_links

Does anyone have a guess what might have gone wrong?

And now a bunch of images are just failing to render. That is, something like


![Green.jpg|1200x500](upload://6YplhQc9EFUmImEodEaVrSE7wMl.jpeg) 

is rendering https://host.com/images/transparent.png

Hallo @pfaffman, hast du hierfür eine Lösung gefunden? Ich sehe die transparent.png in diesem Thread: Rebaking old posts won't pull new S3 CDN URL after S3 bucket rename - #10 by Brad_Wood

Ja, ich habe deinen früheren Beitrag gesehen und hatte keine gute Antwort. Das S3-Ding kann tricky sein. Meine beste kostenlose Antwort ist, sicherzustellen, dass du das Beispiel in Using Object Storage for Uploads (S3 & Clones) befolgst (mit CDNs für Discourse und den Bucket). Wenn das nicht funktioniert und du ein Budget hast, kann ich genauer hinschauen (und das Erste, was ich tun würde, ist genau das, was ich gerade empfohlen habe!).

1 „Gefällt mir“