작은 규모의 Discourse 포럼을 S3로 성공적으로 이관해 보았지만, 이 더 큰 포럼을 이관하는 데 문제가 발생하고 있습니다. @marcozambi 님이 공유한 방법(Migrate_to_s3 task fails for placing too many requests - #2 by marcozambi)을 사용해야 할 것 같습니다. 가능하면 이 비공식적인 방법을 피하고 싶습니다. ![]()
혹시 이전에 이런 문제를 겪어 보셨거나 해결책에 대한 아이디어가 있으신 분 계신가요? 에러 메시지는 아래와 같습니다:
root@server-app:/var/www/discourse# rails c
[1] pry(main)> SiteSetting.migrate_to_new_scheme = true
=> true
[2] pry(main)> Jobs::MigrateUploadScheme.new.execute(nil)
=> nil
[3] pry(main)> exit
root@server-app:/var/www/discourse# rake uploads:migrate_to_s3
Checking if default already migrated...
50389 of 50511 uploads are not migrated to S3. S3 migration failed for db 'default'.
223765 posts are not remapped to new S3 upload URL. S3 migration failed for db 'default'.
Looking for missing uploads on: default
85 post uploads are missing.
82 uploads are missing.
76 of 2757605 posts are affected.
rake posts:missing_uploads identified 76 issues. S3 migration failed for db 'default'.
2693898 posts still require rebaking and will be rebaked during regular job
To speed up migrations of posts we recommend you run 'rake posts:rebake_uncooked_posts'
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)