Hi Rohit,
I tried but it also didn’t work see the below errors:
vishnu@vishnu-VirtualBox:~/frappe-bench$ bench --site site1.local reinstall
Installing frappe…
Updating frappe : [========================================]
Updating country info : [========================================]
Set Administrator password:
Re-enter Administrator password:
Installing fixtures…
*** Scheduler is disabled ***
vishnu@vishnu-VirtualBox:~/frappe-bench$ bench --force --site site1.local restore /home/vishnu/frappe-bench/20160708_10266608_database.sql
MySQL root password:
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/vishnu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
main()
File “/home/vishnu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/vishnu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/home/vishnu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/home/vishnu/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/vishnu/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/vishnu/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/vishnu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/vishnu/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/vishnu/frappe-bench/apps/frappe/frappe/commands.py”, line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/commands.py”, line 130, in restore
_new_site(db_name, site, mariadb_root_username=mariadb_root_username, mariadb_root_password=mariadb_root_password, admin_password=admin_password, verbose=context.verbose, install_apps=install_app, source_sql=sql_file_path, force=context.force)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/commands.py”, line 89, in _new_site
_install_app(“frappe”, verbose=verbose, set_as_patched=not source_sql)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/installer.py”, line 93, in install_app
frappe.clear_cache()
File “/home/vishnu/frappe-bench/apps/frappe/frappe/init.py”, line 425, in clear_cache
for fn in frappe.get_hooks(“clear_cache”):
File “/home/vishnu/frappe-bench/apps/frappe/frappe/init.py”, line 721, in get_hooks
hooks = _dict(cache().get_value(“app_hooks”, load_app_hooks))
File “/home/vishnu/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py”, line 68, in get_value
val = generator()
File “/home/vishnu/frappe-bench/apps/frappe/frappe/init.py”, line 689, in load_app_hooks
for app in [app_name] if app_name else get_installed_apps(sort=True):
File “/home/vishnu/frappe-bench/apps/frappe/frappe/init.py”, line 669, in get_installed_apps
installed = json.loads(db.get_global(“installed_apps”) or “[]”)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/database.py”, line 642, in get_global
return self.get_default(key, user)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/database.py”, line 654, in get_default
d = self.get_defaults(key, parent)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/database.py”, line 660, in get_defaults
defaults = frappe.defaults.get_defaults(parent)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/defaults.py”, line 72, in get_defaults
globald = get_defaults_for()
File “/home/vishnu/frappe-bench/apps/frappe/frappe/defaults.py”, line 179, in get_defaults_for
where parent = %s order by creation"“”, (parent,), as_dict=1)
File “/home/vishnu/frappe-bench/apps/frappe/frappe/database.py”, line 136, in sql
self._cursor.execute(query, values)
File “/home/vishnu/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
self.errorhandler(self, exc, value)
File “/home/vishnu/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaulterrorhandler
raise errorclass, errorvalue
_mysql_exceptions.ProgrammingError: (1146, “Table ‘1bd3e0294d.tabDefaultValue’ doesn’t exist”)
vishnu@vishnu-VirtualBox:~/frappe-bench$