ERPNext version 14 broken CSS

Hi, I know there’s a lot of questions posted here in the forum similar to my problem, yet I haven’t found a solution to my concern.

This is a fresh installed ERPNext, and seems the CSS are broken.
Already tried the ff:

bench reset
bench build
bench mysite clear-website-cache

Seems that the user have not permissions enough over files. Check it.

1 Like

Sorry, I don’t get it. This is in a production mode. What user did you mean?

Hi:

I mean the user you have created to run frappe. Usually the user name is ‘frappe’ too.

sudo chmod 755 /home/{YOURUSER}

2 Likes

For more details, check your nginx logs, usually at /var/log/nginx/error.log

1 Like

sudo chmod 701 /home/$USER

With frappe user:
sudo chmod 701 /home/frappe

2 Likes

It’s now okay. Thank you!

1 Like

The methods above were not working but this combo did:

sudo chmod 755 -R /home/frappe
sudo  chown -R frappe:frappe /home/$USER
bench restart
bench --site bantoo.app migrate
bench --site bantoo.app clear-cache

I got this error in terminal while restarting the bench “bench restart”.

:~/frappe-bench$ bench restart
$ sudo supervisorctl restart frappe:
frappe: ERROR (no such group)
frappe: ERROR (no such group)
ERROR: sudo supervisorctl restart frappe:
subprocess.CalledProcessError: Command ‘sudo supervisorctl restart frappe:’ returned non-zero exit status 2.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “/usr/local/bin/bench”, line 8, in
sys.exit(cli())
File “/usr/local/lib/python3.10/dist-packages/bench/cli.py”, line 132, in cli
bench_command()
File “/usr/local/lib/python3.10/dist-packages/bench/commands/utils.py”, line 41, in restart
Bench(“.”).reload(web, supervisor, systemd)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/render.py”, line 126, in wrapper_fn
return fn(*args, **kwargs)
File “/usr/local/lib/python3.10/dist-packages/bench/bench.py”, line 152, in reload
restart_supervisor_processes(bench_path=self.name, web_workers=web, _raise=_raise)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/bench.py”, line 342, in restart_supervisor_processes
failure = bench.run(f"{sudo}supervisorctl restart {group}", _raise=_raise)
File “/usr/local/lib/python3.10/dist-packages/bench/bench.py”, line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
File “/usr/local/lib/python3.10/dist-packages/bench/utils/init.py”, line 169, in exec_cmd
raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: sudo supervisorctl restart frappe:

INFO: A newer version of bench is available: 5.22.3 → 5.22.6