I configured minio as image upload storage, it works well for new uploads, but I can’t migrate olds into that.
root@9c9267547230:/var/www/discourse# rake uploads:migrate_to_s3 Migrating uploads to S3 for 'default'... Some uploads were not migrated to the new scheme. Please run these commands in the rails console SiteSetting.migrate_to_new_scheme = true Jobs::MigrateUploadScheme.new.execute(nil)
when I execute
Jobs::MigrateUploadScheme.new.execute(nil) first time, it takes several hours and returned some exception, but seems finally success.
I execute it second time, it returns an empty array
and then I try to
rake uploads:migrate_to_s3 again, it still says
Some uploads were not migrated to the new scheme.