Error in Bench Start

While i was running the bench start command the following error occurs
06:08:01 system | watch.1 started
06:08:01 system | redis_cache.1 started (pid=2145)
06:08:01 redis_socketio.1 | 2136:M 11 Aug 06:08:01.825 * The server is now ready to accept connections on port 12000
06:08:01 redis_cache.1 | 2146:M 11 Aug 06:08:01.832 * Increased maximum number of open files to 10032 (it was originally set to 1024).
06:08:01 system | worker_short.1 started (pid=2140)
06:08:01 system | socketio.1 started (pid=2144)
06:08:01 redis_cache.1 | .
06:08:01 redis_cache.1 | .-__ ''-._ 06:08:01 redis_cache.1 | _.- .. ‘’-._ Redis 3.0.6 (00000000/0) 64 bit
06:08:01 redis_cache.1 | .-.-```. ```\/ _.,_ ''-._ 06:08:01 redis_cache.1 | ( ' , .-` | `, ) Running in standalone mode 06:08:01 redis_cache.1 | |`-._`-...-` __...-.-.|’_.-'| Port: 13000 06:08:01 redis_cache.1 | |-. ._ / _.-' | PID: 2146 06:08:01 redis_cache.1 |-._ -._-./ .-’ .-’
06:08:01 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 06:08:01 redis_cache.1 | |-.
-._ _.-'_.-' | http://redis.io 06:08:01 redis_cache.1 |-._ -._-..-’.-’ .-’
06:08:01 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 06:08:01 redis_cache.1 | |-.
-._ _.-'_.-' | 06:08:01 redis_cache.1 |-._ -._-.
.-’_.-’ _.-’
06:08:01 redis_cache.1 | -._-..-’ _.-’
06:08:01 redis_cache.1 | -._ _.-' 06:08:01 redis_cache.1 |-.
.-’
06:08:01 redis_cache.1 |
06:08:01 redis_cache.1 | 2146:M 11 Aug 06:08:01.863 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
06:08:01 redis_cache.1 | 2146:M 11 Aug 06:08:01.864 # Server started, Redis version 3.0.6
06:08:01 redis_cache.1 | 2146:M 11 Aug 06:08:01.864 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
06:08:01 redis_cache.1 | 2146:M 11 Aug 06:08:01.864 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command ‘echo never > /sys/kernel/mm/transparent_hugepage/enabled’ as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
06:08:01 redis_cache.1 | 2146:M 11 Aug 06:08:01.864 * The server is now ready to accept connections on port 13000
06:08:04 socketio.1 | listening on *: 9000
06:08:07 worker_default.1 | Traceback (most recent call last):
06:08:07 worker_default.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 64, in get_app_commands
06:08:07 worker_default.1 | app_command_module = importlib.import_module(app + ‘.commands’)
06:08:07 worker_default.1 | File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
06:08:07 worker_default.1 | import(name)
06:08:07 worker_default.1 | File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/init.py”, line 5, in
06:08:07 worker_default.1 | from erpnext.hooks import regional_overrides
06:08:07 worker_default.1 | ImportError: cannot import name regional_overrides
06:08:07 worker_default.1 | Traceback (most recent call last):
06:08:07 schedule.1 | Traceback (most recent call last):
06:08:07 worker_default.1 | File “/usr/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
06:08:07 worker_default.1 | “main”, fname, loader, pkg_name)
06:08:07 worker_default.1 | File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
06:08:07 worker_default.1 | exec code in run_globals
06:08:07 worker_default.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 94, in
06:08:07 worker_default.1 | main()
06:08:07 worker_default.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
06:08:07 worker_default.1 | click.Group(commands=commands)(prog_name=‘bench’)
06:08:07 worker_default.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
06:08:07 worker_default.1 | return self.main(*args, **kwargs)
06:08:07 worker_default.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
06:08:07 worker_default.1 | rv = self.invoke(ctx)
06:08:07 worker_default.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
06:08:07 worker_default.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
06:08:07 worker_default.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
06:08:07 worker_default.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
06:08:07 worker_default.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
06:08:07 worker_default.1 | return ctx.invoke(self.callback, **ctx.params)
06:08:07 worker_default.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
06:08:07 worker_default.1 | return callback(*args, **kwargs)
06:08:07 worker_default.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/commands/scheduler.py”, line 157, in start_worker
06:08:07 worker_default.1 | start_worker(queue)
06:08:07 worker_default.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/background_jobs.py”, line 105, in start_worker
06:08:07 worker_default.1 | with frappe.init_site():
06:08:07 worker_default.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 212, in enter
06:08:07 worker_default.1 | init(self.site)
06:08:07 worker_default.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 158, in init
06:08:07 worker_default.1 | setup_module_map()
06:08:07 worker_default.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 855, in setup_module_map
06:08:07 worker_default.1 | for module in get_module_list(app):
06:08:07 worker_default.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 729, in get_module_list
06:08:07 worker_default.1 | return get_file_items(os.path.join(os.path.dirname(get_module(app_name).file), “modules.txt”))
06:08:07 worker_default.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 687, in get_module
06:08:07 worker_default.1 | return importlib.import_module(modulename)
06:08:07 worker_default.1 | File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
06:08:07 worker_default.1 | import(name)
06:08:07 worker_default.1 | File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/init.py”, line 5, in
06:08:07 worker_default.1 | from erpnext.hooks import regional_overrides
06:08:07 web.1 | Traceback (most recent call last):
06:08:07 worker_default.1 | ImportError: cannot import name regional_overrides
06:08:07 schedule.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 64, in get_app_commands
06:08:07 schedule.1 | app_command_module = importlib.import_module(app + ‘.commands’)
06:08:07 schedule.1 | File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
06:08:07 schedule.1 | import(name)
06:08:07 schedule.1 | File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/init.py”, line 5, in
06:08:07 schedule.1 | from erpnext.hooks import regional_overrides
06:08:07 schedule.1 | ImportError: cannot import name regional_overrides
06:08:07 schedule.1 | Traceback (most recent call last):
06:08:07 web.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 64, in get_app_commands
06:08:07 web.1 | app_command_module = importlib.import_module(app + ‘.commands’)
06:08:07 web.1 | File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
06:08:07 web.1 | import(name)
06:08:07 web.1 | File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/init.py”, line 5, in
06:08:07 web.1 | from erpnext.hooks import regional_overrides
06:08:07 web.1 | ImportError: cannot import name regional_overrides
06:08:07 worker_long.1 | Traceback (most recent call last):
06:08:07 worker_long.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 64, in get_app_commands
06:08:07 worker_long.1 | app_command_module = importlib.import_module(app + ‘.commands’)
06:08:07 worker_long.1 | File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
06:08:07 worker_long.1 | import(name)
06:08:07 worker_long.1 | File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/init.py”, line 5, in
06:08:07 worker_long.1 | from erpnext.hooks import regional_overrides
06:08:07 worker_long.1 | ImportError: cannot import name regional_overrides
06:08:07 worker_long.1 | Traceback (most recent call last):
06:08:07 schedule.1 | File “/usr/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
06:08:07 schedule.1 | “main”, fname, loader, pkg_name)
06:08:07 schedule.1 | File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
06:08:07 schedule.1 | exec code in run_globals
06:08:07 schedule.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 94, in
06:08:07 schedule.1 | main()
06:08:07 schedule.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
06:08:07 schedule.1 | click.Group(commands=commands)(prog_name=‘bench’)
06:08:07 schedule.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
06:08:07 schedule.1 | return self.main(*args, **kwargs)
06:08:07 schedule.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
06:08:07 schedule.1 | rv = self.invoke(ctx)
06:08:07 schedule.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
06:08:07 schedule.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
06:08:07 schedule.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
06:08:07 schedule.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
06:08:07 schedule.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
06:08:07 worker_long.1 | File “/usr/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
06:08:07 worker_long.1 | “main”, fname, loader, pkg_name)
06:08:07 worker_long.1 | File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
06:08:07 worker_long.1 | exec code in run_globals
06:08:07 worker_long.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 94, in
06:08:07 worker_long.1 | main()
06:08:07 worker_long.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
06:08:07 schedule.1 | return ctx.invoke(self.callback, **ctx.params)
06:08:07 schedule.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
06:08:07 worker_long.1 | click.Group(commands=commands)(prog_name=‘bench’)
06:08:07 worker_long.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
06:08:07 schedule.1 | return callback(*args, **kwargs)
06:08:07 schedule.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/commands/scheduler.py”, line 151, in start_scheduler
06:08:07 worker_long.1 | return self.main(*args, **kwargs)
06:08:07 worker_long.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
06:08:07 schedule.1 | start_scheduler()
06:08:07 schedule.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/scheduler.py”, line 33, in start_scheduler
06:08:07 schedule.1 | interval = frappe.get_conf().scheduler_interval or 240
06:08:07 schedule.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 203, in get_conf
06:08:07 schedule.1 | with init_site(site):
06:08:07 schedule.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 212, in enter
06:08:07 worker_long.1 | rv = self.invoke(ctx)
06:08:07 schedule.1 | init(self.site)
06:08:07 worker_long.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
06:08:07 schedule.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 158, in init
06:08:07 schedule.1 | setup_module_map()
06:08:07 schedule.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 855, in setup_module_map
06:08:07 schedule.1 | for module in get_module_list(app):
06:08:07 schedule.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 729, in get_module_list
06:08:07 worker_long.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
06:08:07 schedule.1 | return get_file_items(os.path.join(os.path.dirname(get_module(app_name).file), “modules.txt”))
06:08:07 schedule.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 687, in get_module
06:08:07 schedule.1 | return importlib.import_module(modulename)
06:08:07 schedule.1 | File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
06:08:07 schedule.1 | import(name)
06:08:07 schedule.1 | File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/init.py”, line 5, in
06:08:07 schedule.1 | from erpnext.hooks import regional_overrides
06:08:07 schedule.1 | ImportError: cannot import name regional_overrides
06:08:07 worker_long.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
06:08:07 worker_long.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
06:08:07 worker_long.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
06:08:07 worker_long.1 | return ctx.invoke(self.callback, **ctx.params)
06:08:07 worker_long.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
06:08:07 worker_long.1 | return callback(*args, **kwargs)
06:08:07 worker_long.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/commands/scheduler.py”, line 157, in start_worker
06:08:07 worker_long.1 | start_worker(queue)
06:08:07 worker_long.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/background_jobs.py”, line 105, in start_worker
06:08:07 worker_long.1 | with frappe.init_site():
06:08:07 worker_long.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 212, in enter
06:08:07 worker_long.1 | init(self.site)
06:08:07 worker_long.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 158, in init
06:08:07 worker_long.1 | setup_module_map()
06:08:07 worker_long.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 855, in setup_module_map
06:08:07 worker_long.1 | for module in get_module_list(app):
06:08:07 worker_long.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 729, in get_module_list
06:08:07 worker_long.1 | return get_file_items(os.path.join(os.path.dirname(get_module(app_name).file), “modules.txt”))
06:08:07 worker_long.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 687, in get_module
06:08:07 worker_long.1 | return importlib.import_module(modulename)
06:08:07 worker_long.1 | File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
06:08:07 worker_long.1 | import(name)
06:08:07 worker_long.1 | File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/init.py”, line 5, in
06:08:07 worker_long.1 | from erpnext.hooks import regional_overrides
06:08:07 worker_long.1 | ImportError: cannot import name regional_overrides
06:08:07 web.1 | Traceback (most recent call last):
06:08:07 web.1 | File “/usr/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
06:08:07 web.1 | “main”, fname, loader, pkg_name)
06:08:07 web.1 | File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
06:08:07 web.1 | exec code in run_globals
06:08:07 web.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 94, in
06:08:07 web.1 | main()
06:08:07 web.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
06:08:07 web.1 | click.Group(commands=commands)(prog_name=‘bench’)
06:08:07 web.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
06:08:07 web.1 | return self.main(*args, **kwargs)
06:08:07 web.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
06:08:07 web.1 | rv = self.invoke(ctx)
06:08:07 web.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
06:08:07 web.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
06:08:07 web.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
06:08:07 web.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
06:08:07 web.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
06:08:07 web.1 | return ctx.invoke(self.callback, **ctx.params)
06:08:07 web.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
06:08:07 web.1 | return callback(*args, **kwargs)
06:08:07 web.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
06:08:07 web.1 | return f(get_current_context(), *args, **kwargs)
06:08:07 web.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/commands/init.py”, line 24, in _func
06:08:07 web.1 | ret = f(frappe._dict(ctx.obj), *args, **kwargs)
06:08:07 web.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/commands/utils.py”, line 353, in serve
06:08:07 web.1 | import frappe.app
06:08:07 web.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/app.py”, line 19, in
06:08:07 web.1 | import frappe.auth
06:08:07 web.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/auth.py”, line 20, in
06:08:07 web.1 | from twofactor import (should_run_2fa, authenticate_for_2factor,
06:08:07 web.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/twofactor.py”, line 8, in
06:08:07 web.1 | import pyotp, os
06:08:07 web.1 | ImportError: No module named pyotp
06:08:07 worker_short.1 | Traceback (most recent call last):
06:08:07 watch.1 | Traceback (most recent call last):
06:08:07 watch.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 64, in get_app_commands
06:08:07 watch.1 | app_command_module = importlib.import_module(app + ‘.commands’)
06:08:07 watch.1 | File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
06:08:07 watch.1 | import(name)
06:08:07 watch.1 | File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/init.py”, line 5, in
06:08:07 watch.1 | from erpnext.hooks import regional_overrides
06:08:07 watch.1 | ImportError: cannot import name regional_overrides
06:08:07 watch.1 | Traceback (most recent call last):
06:08:07 watch.1 | File “/usr/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
06:08:07 watch.1 | “main”, fname, loader, pkg_name)
06:08:07 watch.1 | File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
06:08:07 watch.1 | exec code in run_globals
06:08:07 watch.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 94, in
06:08:07 watch.1 | main()
06:08:07 watch.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
06:08:07 watch.1 | click.Group(commands=commands)(prog_name=‘bench’)
06:08:07 watch.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
06:08:07 worker_short.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 64, in get_app_commands
06:08:07 worker_short.1 | app_command_module = importlib.import_module(app + ‘.commands’)
06:08:07 worker_short.1 | File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
06:08:07 worker_short.1 | import(name)
06:08:07 worker_short.1 | File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/init.py”, line 5, in
06:08:07 worker_short.1 | from erpnext.hooks import regional_overrides
06:08:07 worker_short.1 | ImportError: cannot import name regional_overrides
06:08:07 watch.1 | return self.main(*args, **kwargs)
06:08:07 watch.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
06:08:07 watch.1 | rv = self.invoke(ctx)
06:08:07 watch.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
06:08:07 worker_short.1 | Traceback (most recent call last):
06:08:07 worker_short.1 | File “/usr/lib/python2.7/runpy.py”, line 174, in _run_module_as_main
06:08:07 worker_short.1 | “main”, fname, loader, pkg_name)
06:08:07 worker_short.1 | File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
06:08:07 worker_short.1 | exec code in run_globals
06:08:07 worker_short.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 94, in
06:08:07 worker_short.1 | main()
06:08:07 worker_short.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
06:08:07 worker_short.1 | click.Group(commands=commands)(prog_name=‘bench’)
06:08:07 worker_short.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
06:08:07 watch.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
06:08:07 watch.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
06:08:07 watch.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
06:08:07 watch.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
06:08:07 watch.1 | return ctx.invoke(self.callback, **ctx.params)
06:08:07 watch.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
06:08:07 watch.1 | return callback(*args, **kwargs)
06:08:07 watch.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/commands/utils.py”, line 24, in watch
06:08:07 watch.1 | frappe.init(’’)
06:08:07 watch.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 158, in init
06:08:07 watch.1 | setup_module_map()
06:08:07 watch.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 855, in setup_module_map
06:08:07 watch.1 | for module in get_module_list(app):
06:08:07 watch.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 729, in get_module_list
06:08:07 watch.1 | return get_file_items(os.path.join(os.path.dirname(get_module(app_name).file), “modules.txt”))
06:08:07 watch.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 687, in get_module
06:08:07 watch.1 | return importlib.import_module(modulename)
06:08:07 watch.1 | File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
06:08:07 watch.1 | import(name)
06:08:07 watch.1 | File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/init.py”, line 5, in
06:08:07 watch.1 | from erpnext.hooks import regional_overrides
06:08:07 watch.1 | ImportError: cannot import name regional_overrides
06:08:07 worker_short.1 | return self.main(*args, **kwargs)
06:08:07 worker_short.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
06:08:07 worker_short.1 | rv = self.invoke(ctx)
06:08:07 worker_short.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
06:08:07 worker_short.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
06:08:07 worker_short.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
06:08:07 worker_short.1 | return _process_result(sub_ctx.command.invoke(sub_ctx))
06:08:07 worker_short.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
06:08:07 worker_short.1 | return ctx.invoke(self.callback, **ctx.params)
06:08:07 worker_short.1 | File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
06:08:07 worker_short.1 | return callback(*args, **kwargs)
06:08:07 worker_short.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/commands/scheduler.py”, line 157, in start_worker
06:08:07 worker_short.1 | start_worker(queue)
06:08:07 worker_short.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/background_jobs.py”, line 105, in start_worker
06:08:07 worker_short.1 | with frappe.init_site():
06:08:07 worker_short.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 212, in enter
06:08:07 worker_short.1 | init(self.site)
06:08:07 worker_short.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 158, in init
06:08:07 worker_short.1 | setup_module_map()
06:08:07 worker_short.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 855, in setup_module_map
06:08:07 worker_short.1 | for module in get_module_list(app):
06:08:07 worker_short.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 729, in get_module_list
06:08:07 worker_short.1 | return get_file_items(os.path.join(os.path.dirname(get_module(app_name).file), “modules.txt”))
06:08:07 worker_short.1 | File “/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 687, in get_module
06:08:07 worker_short.1 | return importlib.import_module(modulename)
06:08:07 worker_short.1 | File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
06:08:07 worker_short.1 | import(name)
06:08:07 worker_short.1 | File “/home/ubuntu/frappe-bench/apps/erpnext/erpnext/init.py”, line 5, in
06:08:07 worker_short.1 | from erpnext.hooks import regional_overrides
06:08:07 worker_short.1 | ImportError: cannot import name regional_overrides
06:08:07 system | worker_default.1 stopped (rc=1)
06:08:07 system | sending SIGTERM to redis_socketio.1 (pid 2125)
06:08:07 system | sending SIGTERM to worker_long.1 (pid 2117)
06:08:07 system | sending SIGTERM to watch.1 (pid 2119)
06:08:07 system | sending SIGTERM to redis_queue.1 (pid 2118)
06:08:07 system | sending SIGTERM to web.1 (pid 2120)
06:08:07 system | sending SIGTERM to schedule.1 (pid 2124)
06:08:07 system | sending SIGTERM to socketio.1 (pid 2144)
06:08:07 system | sending SIGTERM to redis_cache.1 (pid 2145)
06:08:07 system | sending SIGTERM to worker_short.1 (pid 2140)
06:08:07 redis_socketio.1 | 2136:signal-handler (1502431687) Received SIGTERM scheduling shutdown…
06:08:07 redis_queue.1 | 2128:signal-handler (1502431687) Received SIGTERM scheduling shutdown…
06:08:07 redis_cache.1 | 2146:signal-handler (1502431687) Received SIGTERM scheduling shutdown…
06:08:07 system | socketio.1 stopped (rc=-15)
06:08:07 system | watch.1 stopped (rc=-15)
06:08:07 system | worker_short.1 stopped (rc=-15)
06:08:07 system | schedule.1 stopped (rc=-15)
06:08:07 system | web.1 stopped (rc=-15)
06:08:07 system | worker_long.1 stopped (rc=-15)
06:08:07 redis_socketio.1 | 2136:M 11 Aug 06:08:07.332 # User requested shutdown…
06:08:07 redis_socketio.1 | 2136:M 11 Aug 06:08:07.332 # Redis is now ready to exit, bye bye…
06:08:07 system | redis_socketio.1 stopped (rc=-15)
06:08:07 redis_queue.1 | 2128:M 11 Aug 06:08:07.345 # User requested shutdown…
06:08:07 redis_queue.1 | 2128:M 11 Aug 06:08:07.346 # Redis is now ready to exit, bye bye…
06:08:07 system | redis_queue.1 stopped (rc=-15)
06:08:07 redis_cache.1 | 2146:M 11 Aug 06:08:07.374 # User requested shutdown…
06:08:07 redis_cache.1 | 2146:M 11 Aug 06:08:07.374 # Redis is now ready to exit, bye bye…
06:08:07 system | redis_cache.1 stopped (rc=-15)

Sorry to put all the code ,the errors are
ImportError: cannot import name regional_overrides
ImportError: No module named pyotp

try to rerun bench update again

when i run bench update
Cannot proceed with update: You have local changes in app “frappe” that are not committed.

Here are your choices:

  1. Merge the frappe app manually with “git pull” / “git pull --rebase” and fix conflicts.
  2. Temporarily remove your changes with “git stash” or discard them completely
    with “bench update --reset” or for individual repositries “git reset --hard”
  3. If your changes are helpful for others, send in a pull request via GitHub and
    wait for them to be merged in the core.

did you done any code level changes in frappe,if yes then commit the same

how to commit ,can u help me with it i already tried 1st method

I think you are not aware about git before installing and updating ERPNext or Frappe you should have the knowledge about Git
have a look at this look to have a basic idea about that
https://try.github.io

DId i have to commit to a repository that i have

yes but before doing that just try to know about git without knowing it may get you in wrong direction

And the errors are coming when i am following the steps in bench switching from production to development
Will there any other solution

@NAGENDRA_KOMMIREDDI @hereabdulla

I have same issue while running bench migrate command.

Now i am having a different error

it seems strange,try to run a fresh install

How do you start bench ? if you do it by entering /home/user/$user-bench and execute bench start command you have to ensure that supervisor is not running > check with cat /var/run/supervisord.pid if running then kill first. ( I really dont like this command kill, why not stop LOL ). and run bench start again.

Why don’t use
service supervisor stop

kill or stop give us the same result