I unwisely skipped v2.7.4 and upgraded my instance from 2.7.3 straight to 2.8.0.
I’m using docker.
git checkout v2.8.0 complained that I had local changes (though I haven’t made any local changes to the code) so I ran
git checkout -f v2.8.0 which probably wasn’t a good idea but has resolved problems previously.
I now have a running instance which works fine except that the
/explore pages don’t render properly. Web Console on those pages shows:
Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”).
So looks like there’s some kind of CORS problem in the HTML?
I tried to recompile assets by running:
docker-compose run --rm web rails assets:precompile
Running this with
--trace shows there’s an error at the
Execute assets:generate_static_pages stage:
rails aborted! ActionView::Template::Error: Webpacker can't find error in /opt/mastodon/public/packs/manifest.json. Possible causes: 1. You want to set webpacker.yml value of compile to true for your environment unless you are using the `webpack -w` or the webpack-dev-server. 2. webpack has not yet re-run to reflect updates. 3. You have misconfigured Webpacker's config/webpacker.yml file. 4. Your webpack configuration is not creating a manifest.
Any suggestions for how to fix this gratefully received. I’m aware 2.8.1 has just been released but I don’t want to try a further upgrade and make the problem worse.