After an upgrade to a newer version, some pages look weird

I am facing this issue Troubleshooting - Mastodon documentation

After an upgrade to a newer version, some pages look weird, like they have unstyled elements. Why?

Check that you have run RAILS_ENV=production bin/rails assets:precompile after the upgrade, and restarted Mastodon’s web process, because it looks like it’s serving outdated stylesheets and scripts. It’s also possible that the precompilation fails due to a lack of RAM, as webpack is unfortunately extremely memory-hungry. If that is the case, make sure you have some swap space assigned. Alternatively, it’s possible to precompile the assets on a different machine, then copy over the public/packs directory.

But RAILS_ENV=production bin/rails assets:precompile did not give any error.

I can connect to the instance use fedilab but not from the browser.

Can be seen at


mastodon@:~/live$ pwd
mastodon@:~/live$ du -sch public/packs/
106M public/packs/
106M total

Did you restart puma after running assets:precompile?

I am referring to this blog Update Mastodon server instance — Gytis Repečka

puma restart is part of /etc/systemd/system/mastodon-web.service. So to answer your question yes puma is restarted.


Yes, stylesheets and JavaScript files are simply not found - like this one

Can you check if they exist somewhere? What are the names in your public/packs directory? Do they have fresh timestamps?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.