Sorry! Back soon message on Multi tenant setup

I have used https://frappe.io/docs/user/en/bench/guides/setup-multitenancy for setting up dns based multi tenancy but after nginx reload ,i tried bench use site2 to load the new site but it loads the page
Sorry ! Back soon . I cannot recover my server from this error page .

Please help

in DNS multi-tenancy nginx tries to map your domain name to site from sites directory.

Rename site2 folder to your domain name and reset nginx configurations.

eg: if your domain is abc.xyz.com then rename site2 folder to abc.xyz.com

I tried this method with no luck.

@Obinna_Ukwueze If the site has no data, you may delete existing site and create new sites:

Step1: Delete existing site

bench drop-site site1.local
bench drop-site site2.local

Note: Execute this from frappe-bench folder. You need root mysql password. This will remove site and and database completely. In case of any issue in site_config.json you may get some issue. Check error in case of any.

Step2: Create new site

bench new-site xyz.domain.com
bench new-site abc.domain.com

Note: Use actual domain/sub-domain as site name which will be used for erpnext users.

Step3: Once again install erpnext app for new site

bench --site xyz.domain.com install-app erpnext
bench --site abc.domain.com install-app erpnext

Step4: Setup production

bench setup nginx
sudo service nginx reload
sudo bench setup production vm_user_name_goes_here

Note: Reconfigure nginx server once to avoid any configuration issue.

Sunil

2 Likes

I get

IOError: [Errno 13] Permission denied: ‘/home/frappe/frappe-bench/config/nginx.conf’

Should I use “sudo” ?

Hi @Obinna_Ukwueze

Ideally you shouldn’t need to. Are you logged in as Frappe user?

Also, have you dropped the site already? If not, we could still try a few steps to troubleshoot and get it working

Cheers!

Thank you everyone, this worked like a charm.

Grateful to @sunilsrikumar and @wale … may the force always abide.

2 Likes