s3로 마이그레이션 후 시스템 아바타가 사라졌습니다

며칠 전에 로컬 스토리지에서 S3로 마이그레이션을 진행했습니다. 게시물과 사용자 아바타는 성공적으로 마이그레이션되었으나, 커스텀 시스템 아바타만 예외였습니다.

S3_CDN_URL이 포럼 URL 뒤에 추가되는 것으로 보아 URL 재작성이 실패한 것 같습니다.

아직 데이터베이스에서 아무것도 확인하지는 않았지만, 아바타의 상대적 글로벌 URL이 "https:{S3_URL}"인 것 같습니다.

https://forum.tosdr.org/https://tosdr-forum.s3.eu-west-2.jbcdn.net/original/1X/3662711e5030823983d25ac319ce6b9a7ad030e6.png

이 문제는 시스템 아바타에서만 발생했으며, 파일은 S3에도 존재합니다. 다만 상대 URL이 버그를 일으키고 있을 뿐입니다.

아바타 변경도 작동하지 않습니다. Gravatar를 사용하거나 글자 이미지를 사용해도 동일한 문제가 발생합니다.

이 문제에 대한 해결책이 있을까요? 참고: 이미 포럼을 이전 백업으로 재설치하고 사이트를 다시 마이그레이션했습니다.

데이터베이스를 확인해 보니 모든 업로드가 정상적이었습니다. (해당하는 아바타 업로드는 유효했습니다)

혹시 이 줄 때문일까요?

s3_cdn_url은 존재하는데, 다른 설명은 할 수 없습니다.

200 OK 응답에도 불구하고 아바타가 업데이트되지 않는 것 같습니다

Started PUT "/u/system/preferences/avatar/pick" for 87.78.131.160 at 2021-04-10 12:55:46 +0000
Processing by UsersController#pick_avatar as */*
  Parameters: {"upload_id"=>"", "type"=>"system", "username"=>"system"}
Completed 200 OK in 15ms (Views: 0.1ms | ActiveRecord: 0.0ms | Allocations: 4976)
Started PUT "/u/system/preferences/avatar/pick" for 87.78.131.160 at 2021-04-10 12:55:02 +0000
Processing by UsersController#pick_avatar as */*
  Parameters: {"upload_id"=>"1", "type"=>"gravatar", "username"=>"system"}
Completed 200 OK in 15ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 5061)
Started PUT "/u/system/preferences/avatar/pick" for 87.78.131.160 at 2021-04-10 12:54:13 +0000
Processing by UsersController#pick_avatar as */*
  Parameters: {"upload_id"=>"695", "type"=>"uploaded", "username"=>"system"}
Completed 200 OK in 17ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 4982)

위 모든 경우에서 잘못된 기본 URL에 대한 쿼리가 발생합니다:

Started GET "/u/system/preferences/https://tosdr-forum.s3.eu-west-2.jbcdn.net/original/1X/3662711e5030823983d25ac319ce6b9a7ad030e6.png" for 87.78.131.160 at 2021-04-10 12:54:15 +0000
Processing by UserBadgesController#username as JSON
  Parameters: {"username"=>"system"}
ActionController::RoutingError (No route matches [GET] "/u/system/preferences/https:/tosdr-forum.s3.eu-west-2.jbcdn.net/original/1X/3662711e5030823983d25ac319ce6b9a7ad030e6.png")
config/initializers/100-quiet_logger.rb:23:in `call'
config/initializers/100-silence_logger.rb:31:in `call'
lib/middleware/enforce_hostname.rb:23:in `call'
lib/middleware/request_tracker.rb:177:in `call'
  Rendering exceptions/not_found.html.erb within layouts/no_ember
  Rendered exceptions/not_found.html.erb within layouts/no_ember (Duration: 0.3ms | Allocations: 105)
  Rendered layouts/_head.html.erb (Duration: 1.2ms | Allocations: 262)
  Rendered common/_discourse_stylesheet.html.erb (Duration: 3.5ms | Allocations: 1094)
Completed 200 OK in 19ms (Views: 0.2ms | ActiveRecord: 0.0ms | Allocations: 4961)