Try ERPNext Buy Support Partners Foundation

Setup Subdomain

Hello,

I get a VPS server and a domain at Bluehost, following this post:

ERPNext worked at this point:

I’ve created a subdomain at Bluehost and set as:

sibsa.oberpro.com.mx - TTL 14400 - Type A - IP 66.70.191.249
www.sibsa.oberpro.com.mx - TTL 14400 - Type A - IP 66.70.191.249

But then, following next steps:
frappe@testsystem:~$ cd frappe-bench/sites
frappe@testsystem:~/frappe-bench/sites$ mv site1.local sibsa.oberpro.com.mx
frappe@testsystem:~/frappe-bench/sites$ nano sibsa.oberpro.com.mx/site_config.json

{
 "db_name": "1bd3e0294da19198",
 "db_password": "************"
 "host_name": "http://www.sibsa.oberpro.com.mx"
}

The IP is no longer available…

Could anyone help me on this? I’m stuck since yesterday, I even reinstalled the VPS server :disappointed_relieved:

Erpnext did not have the magento plug in that I needed so I have not fully tested the software. I went with odoo 8.

If you would like for me to setup your vps with odoo I can do it for free. Just message me. God bless you.

I’ve made three ERPNext implementations at Frappe cloud. This is the first time I try to do it on a private server.

But thanks!

OVH hosting is cheaper and one of the best in the world. Just pray and ask for the Lord’s help. It is a very easy process you may not be following it exactly as it was written.

It was a while ago but I cannot remember exactly what was done. Sorry, I can’t help. God bless you.

Finally I got it! The subdomain points to the IP server address.
Now, what could be causing “Sorry! We will be back soon”.
Any thought would be appreciated!

You need to run after renaming site

bench setup nginx
bench restart

Then access it at www.sibsa.oberpro.com.mx

On running command bench setup nginx, “Value Error: Expecting , delimiter: line 4 column 2 (char 71)

frappe@vps139933:~/frappe-bench/sites$
frappe@vps139933:~/frappe-bench$ bench setup nginx
Traceback (most recent call last):
File "/usr/local/bin/bench", line 11, in <module>
load_entry_point('bench', 'console_scripts', 'bench')()
File "/home/frappe/.bench/bench/cli.py", line 40, in cli
bench_command()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/frappe/.bench/bench/commands/setup.py", line 22, in setup_nginx
make_nginx_conf(bench_path=".", yes=yes)
File "/home/frappe/.bench/bench/config/nginx.py", line 13, in make_nginx_conf
sites = prepare_sites(config, bench_path)
File "/home/frappe/.bench/bench/config/nginx.py", line 61, in prepare_sites
sites_configs = get_sites_with_config(bench_path=bench_path)
File "/home/frappe/.bench/bench/config/nginx.py", line 151, in get_sites_with_config
site_config = get_site_config(site, bench_path=bench_path)
File "/home/frappe/.bench/bench/config/site_config.py", line 11, in get_site_config
return json.load(f)
File "/usr/lib/python2.7/json/__init__.py", line 291, in load
**kw)
File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python2.7/json/decoder.py", line 380, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting , delimiter: line 4 column 2 (char 71)

Also tried…

frappe@vps139933:~/frappe-bench/sites$ bench setup nginx
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 11, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/frappe/.bench/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/.bench/bench/commands/setup.py", line 22, in setup_nginx
    make_nginx_conf(bench_path=".", yes=yes)
  File "/home/frappe/.bench/bench/config/nginx.py", line 13, in make_nginx_conf
    sites = prepare_sites(config, bench_path)
  File "/home/frappe/.bench/bench/config/nginx.py", line 61, in prepare_sites
    sites_configs = get_sites_with_config(bench_path=bench_path)
  File "/home/frappe/.bench/bench/config/nginx.py", line 146, in get_sites_with_config
    sites = get_sites(bench_path=bench_path)
  File "/home/frappe/.bench/bench/utils.py", line 194, in get_sites
    sites = [site for site in os.listdir(sites_dir)
OSError: [Errno 2] No such file or directory: '/home/frappe/frappe-bench/sites/sites'

I think you should use https in your domain in the file above. this is what i have used and mine works fine

You also may need a currentsite.txt in your sites folder with the hostname.

Hi @Francisco_Buendia

Did you get to resolve this. I seem to be facing a similar issue though the bench setup nginx command doesn’t give any errors

The “Sorry! We will be back soon” page is still showing up

Thanks

Hi,

Have you renamed the site folder?

/home/frappe/frappe-bench/sites/ site1.local directory to sites www.domain.com
Note: ‘www.domain.com’ whatever your domain name be.

Have you point (rename) domain site1.local to www.domain.com, at “config\nginx.conf” and “site_config.json”? Check files at “/home/frappe/frappe-bench/sites” VPS folders and replace every.

Then you can try:
bench setup nginx
sudo service nginx reload
sudo service nginx restart

1 Like

Thanks @Francisco_Buendia

The issue has been resolved. It was actually from the domain settings

Kind regards,

Apologies, I am new developer here. I was wondering if I can install ERPNext in Bluehost hosting directly or do I have to get some cloud service like AWS?

You can install ERPNext on any Linux server which offers minimum 2 GB RAM and is KVM type. Keep away from OpenVZ.

Bluehost will not work.

Check out Contabo
Digital Ocean
Vultr
Google Cloud
AWS

Thanks!!!