CSS Not Loading After Site Setup on New Machine (Only HTML Displayed)

I am currently setting up my site on a new machine. The installation and configuration process has been completed successfully — all the required steps to create the site have been carried out, and the site is now visible and accessible in the browser.

However, the issue I’m facing is that the site only displays the HTML structure without any CSS styling. In other words, the layout and design are missing, and the page appears plain and unstyled.

To resolve this, I have already tried several troubleshooting steps, including:

  • Running the command bench build and bench build --force to rebuild assets.
  • Restarting the bench processes.
  • Clearing the cache using bench clear-cache.
  • Running database migrations with bench migrate.
  • Verifying that Nginx and Redis services are running properly.

Despite all these actions, the problem persists — the CSS files are still not being applied or loaded correctly.


This happens randomly sometimes. bench build and then bench --site your_site clear-website-cache Then restart the container and it should work. Clearing the caches in Redis (restarting the container) can also fix it.

Hi @vijayasuriyan

Check permissions over bench folder … check this.

Hope this helps.