Web UI not loading properly

I upgraded my EC2 instance to a larger instance type (with 2 gigs of RAM) and installed again and everything works fine.

The minimum required RAM is 2GB for ERPNext.

Thanks Lawes. Its worked me

It’s Work for me.
it Means User not right’s to access some file…like css

Finally i fix the display problem after run production site.

So it just need to change the permission for the installation directory. On my case, I run this command in :~/frappe-bench$ directory. So go to cd ~/home/[youraccount]/frappe-bench then run:

sudo chmod o+x /home/[your-account-profile]/
eg: sudo chmod o+x /home/admin

The problem is, some answer on the other thread did not explain this properly, so newcomer like me can’t understand :smiley:

3 Likes

I had similar issue. On my cicd I havd 5 migaes from deployments and the assetsfrom the first one was being requsted by the browser, despite the running container had the latest in assets.json.

eg: container assets.json: “login.bundle.css”: “/assets/frappe/dist/css/login.bundle.BNLXGCOL.css”
broser was trying to fetch login.bundle.VNLPGCOL.css.

The possible issue with my environmnet was the Redis cache holding old stale outdated assets.json data.

Running these commands solved the issue:

docker exec -it redis-cli FLUSHALL
docker exec -it redis-cli FLUSHALL

The main reason for this error is related to user permissions. Frappe is unable to access required files such as CSS, JS, Python files, etc.

Additionally, if you’ve recently restored a site, make sure to update the encryption_key in the config file (sites/site_config.json) using the key from your backup.

How to Fix the Permission Issue:

Run the following commands carefully:

bash

cd /home/{your_frappe_bench_folder}
sudo chmod o+x /home/{your_frappe_bench_folder}
sudo usermod -aG sudo {your_user}
sudo supervisorctl reload
bench restart
bench --site {your-site-name} clear-cache
bench --site {your-site-name} migrate

Example:

bash

cd /home/frappe-bench
sudo chmod o+x /home/frappe-bench
sudo usermod -aG sudo frappe-user
sudo supervisorctl reload
bench restart
bench --site my-site.domain.com clear-cache
bench --site my-site.domain.com migrate

These steps ensure that the necessary user has proper access to the bench folder and can execute the required files.

Hope this will help !!!

…
…
…

ERROR LOG

Traceback (most recent call last):
File “env/lib/python3.12/site-packages/cryptography/fernet.py”, line 130, in _verify_signature
h.verify(data[-32:])
cryptography.exceptions.InvalidSignature: Signature did not match digest.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “apps/frappe/frappe/utils/password.py”, line 194, in decrypt
return cstr(cipher_suite.decrypt(encode(txt)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “env/lib/python3.12/site-packages/cryptography/fernet.py”, line 89, in decrypt
return self._decrypt_data(data, timestamp, time_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “env/lib/python3.12/site-packages/cryptography/fernet.py”, line 148, in _decrypt_data
self._verify_signature(data)
File “env/lib/python3.12/site-packages/cryptography/fernet.py”, line 132, in _verify_signature
raise InvalidToken
cryptography.fernet.InvalidToken