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 https://ajinkyans.in

Thanks
Yogesh

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

Did you restart puma after running assets:precompile?

Yes.
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.

Thanks
Y

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

https://ajinkyans.in/packs/js/common-2ab94bb9e0a276725713.js

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.