そこで、私はまず小規模な 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)