libracore / erpnextswiss

ERPNext application for Switzerland-specific use cases
GNU Affero General Public License v3.0
74 stars 63 forks source link

Break During Update #87

Closed deepak727 closed 3 years ago

deepak727 commented 3 years ago

I am updating the erpnext using bench update but getting below error.

Traceback (most recent call last): File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "/usr/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 99, in main() File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main click.Group(commands=commands)(prog_name='bench') File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 764, in call return self.main(args, kwargs) File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 717, in main rv = self.invoke(ctx) File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 956, in invoke return ctx.invoke(self.callback, ctx.params) File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 555, in invoke return callback(args, kwargs) File "/home/frappe/frappe-bench/env/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func return f(get_current_context(), *args, *kwargs) File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/init.py", line 26, in _func ret = f(frappe._dict(ctx.obj), args, kwargs) File "/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py", line 287, in migrate migrate(context.verbose, rebuild_website=rebuild_website, skip_failing=skip_failing) File "/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py", line 40, in migrate clear_global_cache() File "/home/frappe/frappe-bench/apps/frappe/frappe/cache_manager.py", line 54, in clear_global_cache clear_website_cache() File "/home/frappe/frappe-bench/apps/frappe/frappe/website/render.py", line 328, in clear_cache for method in frappe.get_hooks("website_clear_cache"): File "/home/frappe/frappe-bench/apps/frappe/frappe/init.py", line 968, in get_hooks hooks = _dict(cache().get_value("app_hooks", load_app_hooks)) File "/home/frappe/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py", line 75, in get_value val = pickle.loads(val) ModuleNotFoundError: No module named 'erpnextswiss.domains.check_domains'

lasalesi commented 3 years ago

This is a known migration issue from the new domain controller. It is actually a bench issue, which uses the old files from cache rather the new definitions.

Please run

$ bench clear-cache
$ bench update