Clean Install ERPNext V6 specific

Hi,

Now that V7 is the master, how can I install V6?

I guess I have to change something in these 2 lines of the installation:

https://raw.githubusercontent.com/frappe/bench/master/install_scripts/setup_frappe.sh
sudo bash setup_frappe.sh --setup-production

The Question is what do I have to change?

Regards,

Just run the installer normally first:
Only add user option if you’re root

wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
sudo python install.py --production --user frappe

Then go to the user’s frappe-bench directory and run the following:

bench switch-to-branch "v6.x.x"
bench reinstall
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl restart all
2 Likes

I tried this one. it converted my apps to v6.
But bench reinstall throws a error. what could be the issue.

[frappe@server01~/frappe-bench]$ bench reinstall This will wipe your database. Are you sure you want to reinstall? [y/N]: y Installing frappe... Updating frappe : [========================================] Updating country info : [========================================] Set Administrator password: Re-enter Administrator password: Installing fixtures... Installing erpnext... Updating erpnext : [========= ]Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in run_globals File "/home/hlanganisa_user/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 79, in <module> main() File "/home/hlanganisa_user/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 16, in main click.Group(commands=commands)(prog_name='bench') File "/home/hlanganisa_user/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 716, in __call__ return self.main(*args, **kwargs) File "/home/hlanganisa_user/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 696, in main rv = self.invoke(ctx) File "/home/hlanganisa_user/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/hlanganisa_user/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 1060, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/hlanganisa_user/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 889, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/hlanganisa_user/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py", line 534, in invoke return callback(*args, **kwargs) File "/home/hlanganisa_user/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func return f(get_current_context(), *args, **kwargs) File "/home/hlanganisa_user/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 24, in _func File "/home/hlanganisa_user/frappe-bench/apps/frappe/frappe/commands/site.py", line 137, in reinstall s = "build/lib.%s-%.3s" % (get_platform(), sys.version) File "/home/hlanganisa_user/frappe-bench/apps/frappe/frappe/commands/site.py", line 69, in _new_site import __builtin__ as builtins TypeError: coercing to Unicode: need string or buffer, bool found

We actually got the same issue whilst trying to do something similar. Will have to take a close look.

I got it solved. just gave bench update before bench reinstall.
u may need to remove ur apps and re install it. it will install only v6.

Worked for me. :slight_smile: