@Falco 이 내용도 여전히 유효합니까? AWS 사용 시 최근 문제가 있었다는 내용을 읽은 것 같은데, 해당 주제를 다시 찾지 못하고 있습니다.
AWS S3를 사용할 때 관련 주제들을 참고하여 설정했는데, 여러 문제가 발생하고 있습니다.
백업은 정상적으로 작동하지만, Cloudfront를 CDN으로 사용하거나 DISCOURSE_USE_S3와/또는 DISCOURSE_S3_BUCKET 주석 해제 시 영구적으로 로딩 화면(throbber)이 계속 나타납니다.
업로드 버킷과/또는 Cloudfront 배포 설정에 오류가 있는 것 같지만, 원인을 찾지 못하고 있습니다. 업로드 버킷과 백업 버킷 모두 해당 배포(Distribution) 뒤에 있으며 백업은 정상 작동하는데 왜 이런 현상이 발생하는 걸까요?
discourse-cdn.repealobbba.org CNAME —> amazonassigned.cloudfront.net
DISCOURSE_CDN_URL: https://discourse-cdn.repealobbba.org
## S3 storage config
# DISCOURSE_USE_S3: true
DISCOURSE_S3_REGION: us-east-1
DISCOURSE_S3_ACCESS_KEY_ID: ACCESS_KEY_ID
DISCOURSE_S3_SECRET_ACCESS_KEY: SECRET_ACCESS_KEY
DISCOURSE_S3_CDN_URL: amazonassigned.cloudfront.net or
# DISCOURSE_S3_BUCKET: repeal-obbba-discuss-uploads
DISCOURSE_S3_BACKUP_BUCKET: repeal-obbba-discuss-backups
DISCOURSE_BACKUP_LOCATION: s3
추가로, 설정에 다음을 추가했을 때
after_assets_precompile:
- exec:
cd: $home
cmd:
- sudo -E -u discourse bundle exec rake s3:upload_assets
- sudo -E -u discourse bundle exec rake s3:expire_missing_assets
FAILED TO BOOTSTRAP 오류가 발생합니다.
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && sudo -E -u discourse bundle exec rake s3:upload_assets failed with return #<Process::Status: pid 8484 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.3.0/lib/pups/exec_command.rb:131:in `spawn'
exec failed with the params {"cd"=>"$home", "cmd"=>["sudo -E -u discourse bundle exec rake s3:upload_assets", "sudo -E -u discourse bundle exec rake s3:expire_missing_assets"]}
bootstrap failed with exit code 1
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
항상 그렇듯… 생각이나 제안이 있으시면 감사하겠습니다.











