Update error from version 6 to 8

Hi all,
Can anyone help me to resolve the below mentioned update error?
I am trying to update erpnext verion 6 to 8.

frappe@ubuntu:~$ bench init frappe-bench
INFO:bench.utils:virtualenv -q env -p /usr/bin/python
Already using interpreter /usr/bin/python
INFO:bench.utils:./env/bin/pip -q install --upgrade pip
INFO:bench.utils:./env/bin/pip -q install wheel
INFO:bench.utils:./env/bin/pip -q install six
INFO:bench.utils:./env/bin/pip -q install -e git+https://github.com/frappe/python-pdfkit.git#egg=pdfkit
INFO:bench.app:getting app frappe
INFO:bench.utils:git clone GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --origin upstream
Cloning into ‘frappe’…
remote: Counting objects: 134444, done.
remote: Compressing objects: 100% (39/39), done.
remote: Total 134444 (delta 6), reused 2 (delta 0), pack-reused 134405
Receiving objects: 100% (134444/134444), 104.95 MiB | 656.00 KiB/s, done.
Resolving deltas: 100% (101702/101702), done.
Checking connectivity… done.
(‘installing’, u’frappe’)
INFO:bench.app:installing frappe
INFO:bench.utils:frappe-bench/env/bin/pip install -q -e frappe-bench/apps/frappe --no-cache-dir
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by ‘ReadTimeoutError(“HTTPSConnectionPool(host=‘pypi.python.org’, port=443): Read timed out. (read timeout=15)”,)’: /simple/chardet/
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-zUndEE/mysqlclient/
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/bench-repo/bench/cli.py”, line 40, in cli
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 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-repo/bench/commands/make.py”, line 19, in init
verbose=verbose, clone_from=clone_from)
File “/home/frappe/bench-repo/bench/utils.py”, line 56, in init
get_app(frappe_path, branch=frappe_branch, bench_path=path, build_asset_files=False, verbose=verbose)
File “/home/frappe/bench-repo/bench/app.py”, line 76, in get_app
install_app(app=app_name, bench_path=bench_path, verbose=verbose)
File “/home/frappe/bench-repo/bench/app.py”, line 107, in install_app
File “/home/frappe/bench-repo/bench/utils.py”, line 130, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: frappe-bench/env/bin/pip install -q -e frappe-bench/apps/frappe --no-cache-dir

Connection timed out.

If you want to update erp, you should use bench update --upgrade instead of bench init

Sorry for inconvenience,
Actually i was trying to install fresh erp and then i had plan to restore the database from version 6.
When I try to create a bench using bench init frappe-bench while installing, I got above error.

I don’t think your v6 database will work out of the box with v8. I think you will need to go sequentially through the versions ie v6 → v7 → v8. That way, all of the changes to the database schema will be applied to your database and your database will not be left in an unusable state.

Also note that when upgrading, it is a very good idea to backup your database and copy it to a safe location. In fact, it’s a must :smile: