@Falco I this still the case? I thought I read something about recent issues using AWS but I can’t find the topic again.
I am having numerous using AWS S3 using the various relevant topics as guides.
Backups are working as expected but using Cloudfront as CDN or uncommenting DISCOURSE_USE_S3 and/or DISCOURSE_S3_BUCKET causes a perpetual throbber to happen.
I suspect I have something misconfigured in the uploads bucket and/or the Cloudfront distribution but I have not been able to find a mistake. Both upload and backup buckets are behind the distribution and backups work fine so???
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
Additionally, adding this to config
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
Gives FAILED TO BOOTSTRAP error
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.
as always… Any thoughts or suggestions would be appreciated.











