I have a DO droplet. And I installed discourse with docker as recommended. It was working fine. I also restored Discourse from a backup. Still worked fine. Then, I wanted to restart the server so the new backup takes full effect, and caches clear out. I ssh-d into the droplet and gave the ‘reboot’ command. The server rebooted but the site doesn’t load anymore. White page of death. Do I have to restart Discourse or docker? Please help!
AI-generated summary
A user iraszl reports that after rebooting a DO droplet where Discourse was installed via Docker, the site shows a white page of death. codinghorror suggests the installation may not have followed the official guide and points to a possible backup restore issue. iraszl confirms JavaScript errors related to Content Security Policy (CSP) violations, specifically for scripts from www.themefair.com. dax asks whether CSP is enabled, and iraszl shows a screenshot of the CSP setting in Discourse, indicating the issue may involve CSP configuration.
The install isn’t correct as per our official installation guide; docker startup is always automatic if you’ve followed the guide.
If you followed our official install guide closely, without deviating from the install steps, and the install was running prior to restoring the backup, this is more likely some kind of backup restore issue. Are you sure there aren’t any JS errors in the F12 browser console on the “white page of death”?
You’re right! There are js errors. Any idea what is wrong? See errors below:
> Refused to load the script '<URL>' because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'report-sample' <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> <URL> https: 'unsafe-inline'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback. > > www.themefair.com/:25 Refused to load the script 'http://www.themefair.com/assets/locales/en-ed716b03cc4bab12e892d910c3a88c2d69c5f46a1184f73b09390e8cb7dbe602.js' because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'report-sample' https://www.themefair.com/logs/ https://www.themefair.com/sidekiq/ https://www.themefair.com/mini-profiler-resources/ https://www.themefair.com/assets/ https://www.themefair.com/brotli_asset/ https://www.themefair.com/extra-locales/ https://www.themefair.com/highlight-js/ https://www.themefair.com/javascripts/ https://www.themefair.com/plugins/ https://www.themefair.com/theme-javascripts/ https://www.themefair.com/svg-sprite/ https://www.google-analytics.com/analytics.js https: 'unsafe-inline'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback. ...
Is CSP turn on or off on your site?
