Hi, I’m facing a strange issue, regarding to: S3 (DigitalOcean), Assets (over S3) and CDN Endpoint.
Description of the Problem:
In the case of an error, I’m only seeing the loading animation, and the errors are displayed as shown in the image below:
This is the error sceme:
/ | CDN Endpoint | “normal” Endpoint |
---|---|---|
DISCOURSE_S3_BUCKET SET | Pic1 | |
DISCOURSE_S3_BUCKET NOT SET |
- CDN Endpoint:
https://<bucket>.fra1.cdn.digitaloceanspaces.com
- “normal” Endpoint:
https://<bucket>.fra1.digitaloceanspaces.com
Current Configuration:
DISCOURSE_USE_S3: true
DISCOURSE_S3_ACCESS_KEY_ID: <token>
DISCOURSE_S3_SECRET_ACCESS_KEY: <secret>
DISCOURSE_S3_ENDPOINT: https://fra1.digitaloceanspaces.com
DISCOURSE_S3_CDN_URL: https://<bucket>.fra1.cdn.digitaloceanspaces.com
#DISCOURSE_S3_BUCKET: '<bucket>' # for assets
DISCOURSE_S3_UPLOAD_BUCKET: '<bucket>'
DISCOURSE_S3_REGION: fra1
DISCOURSE_BACKUP_LOCATION: s3
DISCOURSE_S3_BACKUP_BUCKET: '<bucket>/backups '
DISCOURSE_S3_INSTALL_CORS_RULE: false
I have also set the following hook (if I use the DISCOURSE_S3_BUCKET
variable):
hooks:
after_assets_precompile:
- exec:
cd: $home
cmd:
- sudo -E -u discourse bundle exec rake s3:upload_assets
I only encounter the error with the ‘right’ combination of configs. Any Ideas? I can also provide more information if needed.