Bench setup production Login Problem

Server:Ubuntu 22.04

frappe@cjrserver:~/frappe-bench$ bench version
erpnext 15.15.0
frappe 15.16.1
payments 0.0.1

First,run bench start ,this is Login very good!

But ,when use “sudo bench setup production frappe”,
frappe@cjrserver:~/frappe-bench$ sudo supervisorctl status
frappe-bench-redis:frappe-bench-redis-cache RUNNING pid 13236, uptime 0:00:05
frappe-bench-redis:frappe-bench-redis-queue RUNNING pid 13237, uptime 0:00:05
frappe-bench-web:frappe-bench-frappe-web RUNNING pid 13238, uptime 0:00:05
frappe-bench-web:frappe-bench-node-socketio RUNNING pid 13239, uptime 0:00:05
frappe-bench-workers:frappe-bench-frappe-long-worker-0 RUNNING pid 13242, uptime 0:00:05
frappe-bench-workers:frappe-bench-frappe-schedule RUNNING pid 13240, uptime 0:00:05
frappe-bench-workers:frappe-bench-frappe-short-worker-0 RUNNING pid 13241, uptime 0:00:05

Then logging into the system will result in an incorrect page

How to do?
Help me

try so setup permision for your frappe user

ex:

chmod -R o+rx /home/frappe

Or simply run this command :

bench build --production
1 Like

Very Good !
try
chmod -R o+rx /home/frappe
and
bench build --production

then:
sudo bench setup production frappe
sudo supervisorctl restart all

Now,Production Login Ok

2 Likes