Forum broken for Admin - Assets missing?

I’m having a problem when logged in as the admin on my production server. I think I may have caused it myself when I changed the app.yml value for DISCOURSE_S3_CDN_URL on the staging server to the same as the production server. I’ve since changed it back and the staging server is working fine just pointing to the S3 bucket. Looking at the browser console, it appears that some assets are not being found but I’m not sure how, why or even if this is the underlying issue.

Here’s an extract from the console when I try to access main forum URL:

I’ve tried safe mode but that doersn’t halp.

I’m still very much on the learning curve with AWS. I’ll continue to try and work this problem out for myself but any advice or guidance would be appreciated.

1 Like

I encountered this problem again today after I’d copied over the production app.yml to the standby server and rebuilt Discourse on that server. I presume it’s related to the S3 bucket and Cloudfront somehow but I don’t understand why there’s a conflict just from the rebuild.

It happened during testing of a script I’ve written to switch over the forum to a standby server and set that one as production. Usually I’d complete the switchover by re-pointing the reserved IP to the other server but I didn’t test that part in this run. I rebuilt the production app and things are working normally again but I’d like to understand the problem if anyone can help.

1 Like