Cannot load assets on login page

I have installed ERPNext with HRMS and it was working fine even after restoring some data. But when I opened it again from different web page, it cannot load assets. Screenshot is attached for the referenece.

1 Like

@usamamian440
reload the page it work

already done that but still not working

@usamamian440
try
bench update
this will - Pulls changes for bench-repo and all apps, applies patches, builds JS and CSS, and then migrates.

still unable to resolve. I have installed it using docker.

@usamamian440
-bench setup requirements
-bench build
-bench clear-cache
-bench clear-website-cache

Hi @usamamian440:

If steps well-provided by @jk_09 don’t work, maybe you have some permissions issue over assets folder.

Check logs.
Hope this helps.

1 Like

For me, the issue stemmed from incorrect “Additional Apache directives” settings in Plesk. Specifically, both the “Additional directives for HTTP” and “Additional directives for HTTPS” contained a faulty address. I had entered http://127.0.0.1:8000, but the correct format includes a trailing slash, like this: http://127.0.0.1:8000/:

<Location />
	ProxyPass http://127.0.0.1:8000/
	ProxyPassReverse http://127.0.0.1:8000/
</Location>

like those old times when we were looking for ;; lol you saved my day and many further… thank you.

I’m facing the same issue. I also followed the steps provided by @jk_09, but unfortunately, they didn’t work for me.

After going through a few forums and documentation, I realized it was a permissions issue. I was able to resolve it using the following commands:

sudo chown -R [your-user]:[your-user] ~/[my-bench-directory]
sudo chmod -R o+rX ~/[my-bench-directory]/sites/assets

Note: I’m deploying a customized CRM on an AWS instance.

When you run bench build, new asset files are created. You need to ensure these files have the correct permissions; otherwise, things (like the login page) might break again.

To avoid setting permissions manually each time, you can set the umask value to 0022. This ensures that whenever bench build creates new asset files, they will automatically have the required permissions.

lol you saved my day and many further… thank you.