Migrate_to_S3 Fails on Rebake

@markersocial Thanks for your help, I think my issue because I used S3 service before (from year 2005), then local storage, and then use S3 storage again. Now when I want to uploads my local images to S3 caused a lot of trouble. My S3 bucket does’t have /uploads/default.

After uploads:migrate_to_s3 I found some /images/transparent.png broken images, When I use this rake uploads:recover_from_tombstone

I got

Warning /t/topic/6216/4 had an incorrect 338c64ada8cbb0fb99bff79e833a4cc492ead00c should be c95e4b7c08702db4593332f29b40ca07fb1d9db1 storing in custom field ‘rake uploads:fix_relative_upload_links’ can fix this

then rake aborted and:

rake uploads:fix_relative_upload_links --trace
** Invoke uploads:fix_relative_upload_links (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute uploads:fix_relative_upload_links
Upload not found /uploads/files/general/111/cours-offerts.pdf in Post 23033 - /t/certificate-technique-de-soudage-college-mathieu/11060/1

I’m confused now.

2 Likes