ERPNEXT multitenency setup is showing 502 error with "Sorry We will be back soon." screen


I am installing ERPNEXT and trying to have multitenency with the system, As I used the dns based multitenency to serve on domain based. I am getting 502 error for the request in my server logs and in the front end “Sorry We will be back soon.” page .

I tried rechecking the steps which I follwed there’s nothing wrong in it. Please help me


Hi @Koushik_Maratha

It’s possible Supervisor didn’t start after your installation. For some strange reason, that seems to be happening quite a lot recently. Try the following command and see if that resolves the issue:

sudo systemctl enable supervisor

Kind regards,

Thanks wale, I tried your command but of no use .

Hi @Koushik_Maratha,

Are your sites named and ?

Make sure you setup nginx correctly and reload it using:
bench setup nginx
sudo service nginx reload

1 Like

Hi @Koushik_Maratha

Nginx was going to be my next suggestion. Please try the commands shared by @chdecultot

Kind regards,

Thanks @wale & @chdecultot it worked finally the both sites are working

Thanks a lot

Great :+1:

hey guys, Now I am trying to login with my credentials I am getting 500 internal server error in console

the traceback is

File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 55, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/”, line 22, in handle
if data:
UnboundLocalError: local variable ‘data’ referenced before assignment