Bench Start Error bench start error

Summary
(erpnext) ubuntu@ip-172-31-46-46:~/erpnext$ bench init --frappe-branch master --frappe-path https://github.com/frappe/frappe.git frappe-bench
WARN: Command not being executed in bench directory
INFO:bench.utils:virtualenv -q env -p /usr/bin/python3
INFO:bench.utils:env/bin/pip -q install -U pip wheel six
INFO:bench.utils:env/bin/pip -q install -e git+http//github.com/frappe/python-pdfkit.git#egg=pdfkit
INFO:bench.app:getting app frappe
INFO:bench.utils:git clone -q http//github.com/frappe/frappe.git --branch master --depth 1 --origin upstream
installing frappe
INFO:bench.app:installing frappe
INFO:bench.utils:frappe-bench/env/bin/pip install -q -U -e frappe-bench/apps/frappe
Updating node packages...
INFO:bench.utils:yarn install
yarn install v1.21.1
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "rollup-plugin-vue > @vue/component-compiler@3.4.4" has unmet peer dependency "postcss@>=6.0".
[4/4] Building fresh packages...
Done in 47.17s.
INFO:bench.utils:bench build
yarn run v1.21.1
$ FRAPPE_ENV=production node rollup/build.js
Production mode
✔ Built js/moment-bundle.min.js
✔ Built js/libs.min.js

Building frappe assets...

✔ Built js/print_format_v3.min.js
✔ Built js/dialog.min.js
✔ Built js/web_form.min.js
✔ Built js/form.min.js
✔ Built js/list.min.js
✔ Built js/chat.js
✔ Built js/desk.min.js
✔ Built css/frappe-rtl.css
✔ Built css/module.min.css
✔ Built css/form.min.css
✔ Built css/report.min.css
✔ Built frappe/css/email.css
✔ Built css/list.min.css
✔ Built css/web_form.css
✔ Built css/frappe-web.css
✔ Built js/control.min.js
✔ Built css/desk.min.css
✔ Built js/frappe-web.min.js
✔ Built js/report.min.js
✨  Done in 33.964s
Done in 35.63s.
INFO:bench.utils:setting up backups
no crontab for ubuntu
INFO:bench.utils:setting up auto update
no crontab for ubuntu
SUCCESS: Bench frappe-bench initialized
(erpnext) ubuntu@ip-172-31-46-46:~/erpnext$ cd frappe-bench/
(erpnext) ubuntu@ip-172-31-46-46:~/erpnext/frappe-bench$ bench get-app --branch master erpnext http/github.com/frappe/erpnext.git
INFO:bench.app:getting app erpnext
INFO:bench.utils:git clone -q httpsgithub.com/frappe/erpnext.git --branch master --depth 1 --origin upstream
installing erpnext
INFO:bench.app:installing erpnext
INFO:bench.utils:./env/bin/pip install -q -U -e ./apps/erpnext
INFO:bench.utils:bench build --app erpnext
yarn run v1.21.1
$ FRAPPE_ENV=production node rollup/build.js --app erpnext
Production mode
✔ Built js/moment-bundle.min.js
✔ Built js/libs.min.js

Building erpnext assets...

✔ Built js/erpnext-web.min.js
✔ Built js/item-dashboard.min.js
✔ Built js/erpnext.min.js
✔ Built css/erpnext-web.css
✔ Built css/erpnext.css
✔ Built css/marketplace.css
✔ Built js/marketplace.min.js
✨  Done in 15.106s
Done in 17.01s.
(erpnext) ubuntu@ip-172-31-46-46:~/erpnext/frappe-bench$ bench new-site testsiteMySQL root password:

Installing frappe...
Updating DocTypes for frappe        : [========================================]
Updating country info               : [========================================]
Set Administrator password:
Re-enter Administrator password:
*** Scheduler is disabled ***
(erpnext) ubuntu@ip-172-31-46-46:~/erpnext/frappe-bench$ bench --site testsite install-app erpnext

Installing erpnext...
Updating DocTypes for erpnext       : [========================================]
(erpnext) ubuntu@ip-172-31-46-46:~/erpnext/frappe-bench$ bench start
06:52:20 system           | worker_long.1 started (pid=24115)
06:52:20 system           | redis_queue.1 started (pid=24116)
06:52:20 system           | watch.1 started (pid=24118)
06:52:20 system           | redis_socketio.1 started (pid=24123)
06:52:20 system           | schedule.1 started (pid=24119)
06:52:20 system           | worker_default.1 started (pid=24120)
06:52:20 system           | socketio.1 started (pid=24121)
06:52:20 system           | web.1 started (pid=24117)
06:52:20 system           | redis_cache.1 started (pid=24122)
06:52:20 system           | worker_short.1 started (pid=24124)
06:52:20 redis_queue.1    | 24126:C 19 Feb 06:52:20.475 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
06:52:20 redis_queue.1    | 24126:C 19 Feb 06:52:20.475 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=24126, just started
06:52:20 redis_queue.1    | 24126:C 19 Feb 06:52:20.475 # Configuration loaded
06:52:20 redis_queue.1    | 24126:M 19 Feb 06:52:20.476 * Increased maximum number of open files to 10032 (it was originally set to 1024).
06:52:20 redis_socketio.1 | 24129:C 19 Feb 06:52:20.477 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
06:52:20 redis_socketio.1 | 24129:C 19 Feb 06:52:20.477 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=24129, just started
06:52:20 redis_socketio.1 | 24129:C 19 Feb 06:52:20.477 # Configuration loaded
06:52:20 redis_socketio.1 | 24129:M 19 Feb 06:52:20.478 * Increased maximum number of open files to 10032 (it was originally set to 1024).
06:52:20 redis_cache.1    | 24137:C 19 Feb 06:52:20.479 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
06:52:20 redis_cache.1    | 24137:C 19 Feb 06:52:20.479 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=24137, just started
06:52:20 redis_cache.1    | 24137:C 19 Feb 06:52:20.480 # Configuration loaded
06:52:20 redis_cache.1    | 24137:M 19 Feb 06:52:20.481 * Increased maximum number of open files to 10032 (it was originally set to 1024).
06:52:20 redis_queue.1    | 24126:M 19 Feb 06:52:20.496 * Running mode=standalone, port=11000.
06:52:20 redis_queue.1    | 24126:M 19 Feb 06:52:20.496 # 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:52:20 redis_queue.1    | 24126:M 19 Feb 06:52:20.497 # Server initialized
06:52:20 redis_queue.1    | 24126:M 19 Feb 06:52:20.497 # 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:52:20 redis_queue.1    | 24126:M 19 Feb 06:52:20.497 # 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:52:20 redis_socketio.1 | 24129:M 19 Feb 06:52:20.497 * Running mode=standalone, port=12000.
06:52:20 redis_socketio.1 | 24129:M 19 Feb 06:52:20.498 # 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:52:20 redis_socketio.1 | 24129:M 19 Feb 06:52:20.498 # Server initialized
06:52:20 redis_socketio.1 | 24129:M 19 Feb 06:52:20.498 # 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:52:20 redis_socketio.1 | 24129:M 19 Feb 06:52:20.499 # 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:52:20 redis_queue.1    | 24126:M 19 Feb 06:52:20.499 * Ready to accept connections
06:52:20 redis_socketio.1 | 24129:M 19 Feb 06:52:20.499 * Ready to accept connections
06:52:20 redis_cache.1    | 24137:M 19 Feb 06:52:20.499 * Running mode=standalone, port=13000.
06:52:20 redis_cache.1    | 24137:M 19 Feb 06:52:20.500 # 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:52:20 redis_cache.1    | 24137:M 19 Feb 06:52:20.500 # Server initialized
06:52:20 redis_cache.1    | 24137:M 19 Feb 06:52:20.500 # 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:52:20 redis_cache.1    | 24137:M 19 Feb 06:52:20.500 # 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:52:20 redis_cache.1    | 24137:M 19 Feb 06:52:20.500 * Ready to accept connections
06:52:22 socketio.1       | listening on *: 9000
06:52:32 web.1            | Traceback (most recent call last):
06:52:32 web.1            |   File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
06:52:32 web.1            |     "__main__", mod_spec)
06:52:32 web.1            |   File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
06:52:32 web.1            |     exec(code, run_globals)
06:52:32 web.1            |   File "/home/ubuntu/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 97, in <module>
06:52:32 web.1            |     main()
06:52:32 web.1            |   File "/home/ubuntu/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py", line 18, in main
06:52:32 web.1            |     click.Group(commands=commands)(prog_name='bench')
06:52:32 web.1            |   File "/home/ubuntu/erpnext/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 764, in __call__
06:52:32 web.1            |     return self.main(*args, **kwargs)
06:52:32 web.1            |   File "/home/ubuntu/erpnext/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 717, in main
06:52:32 web.1            |     rv = self.invoke(ctx)
06:52:32 web.1            |   File "/home/ubuntu/erpnext/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
06:52:32 web.1            |     return _process_result(sub_ctx.command.invoke(sub_ctx))
06:52:32 web.1            |   File "/home/ubuntu/erpnext/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 1137, in invoke
06:52:32 web.1            |     return _process_result(sub_ctx.command.invoke(sub_ctx))
06:52:32 web.1            |   File "/home/ubuntu/erpnext/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 956, in invoke
06:52:32 web.1            |     return ctx.invoke(self.callback, **ctx.params)
06:52:32 web.1            |   File "/home/ubuntu/erpnext/frappe-bench/env/lib/python3.6/site-packages/click/core.py", line 555, in invoke
06:52:32 web.1            |     return callback(*args, **kwargs)
06:52:32 web.1            |   File "/home/ubuntu/erpnext/frappe-bench/env/lib/python3.6/site-packages/click/decorators.py", line 17, in new_func
06:52:32 web.1            |     return f(get_current_context(), *args, **kwargs)
06:52:32 web.1            |   File "/home/ubuntu/erpnext/frappe-bench/apps/frappe/frappe/commands/__init__.py", line 25, in _func
06:52:32 web.1            |     ret = f(frappe._dict(ctx.obj), *args, **kwargs)
06:52:32 web.1            |   File "/home/ubuntu/erpnext/frappe-bench/apps/frappe/frappe/commands/utils.py", line 481, in serve
06:52:32 web.1            |     import frappe.app
06:52:32 web.1            |   File "/home/ubuntu/erpnext/frappe-bench/apps/frappe/frappe/app.py", line 13, in <module>
06:52:32 web.1            |     from werkzeug.contrib.profiler import ProfilerMiddleware
06:52:32 web.1            | ModuleNotFoundError: No module named 'werkzeug.contrib'
06:52:32 system           | web.1 stopped (rc=1)
06:52:32 system           | sending SIGTERM to redis_socketio.1 (pid 24123)
06:52:32 system           | sending SIGTERM to worker_long.1 (pid 24115)
06:52:32 system           | sending SIGTERM to watch.1 (pid 24118)
06:52:32 system           | sending SIGTERM to redis_queue.1 (pid 24116)
06:52:32 system           | sending SIGTERM to schedule.1 (pid 24119)
06:52:32 system           | sending SIGTERM to worker_default.1 (pid 24120)
06:52:32 system           | sending SIGTERM to socketio.1 (pid 24121)
06:52:32 system           | sending SIGTERM to redis_cache.1 (pid 24122)
06:52:32 system           | sending SIGTERM to worker_short.1 (pid 24124)
06:52:32 redis_socketio.1 | 24129:signal-handler (1582095152) Received SIGTERM scheduling shutdown...
06:52:32 worker_long.1    | 06:52:32 Warm shut down requested
06:52:32 redis_queue.1    | 24126:signal-handler (1582095152) Received SIGTERM scheduling shutdown...
06:52:32 worker_default.1 | 06:52:32 Warm shut down requested
06:52:32 redis_cache.1    | 24137:signal-handler (1582095152) Received SIGTERM scheduling shutdown...
06:52:32 worker_short.1   | 06:52:32 Warm shut down requested
06:52:32 system           | watch.1 stopped (rc=-15)
06:52:32 system           | schedule.1 stopped (rc=-15)
06:52:32 system           | socketio.1 stopped (rc=-15)
06:52:32 redis_queue.1    | 24126:M 19 Feb 06:52:32.533 # User requested shutdown...
06:52:32 redis_queue.1    | 24126:M 19 Feb 06:52:32.533 * Removing the pid file.
06:52:32 redis_queue.1    | 24126:M 19 Feb 06:52:32.533 # Redis is now ready to exit, bye bye...
06:52:32 redis_cache.1    | 24137:M 19 Feb 06:52:32.534 # User requested shutdown...
06:52:32 redis_cache.1    | 24137:M 19 Feb 06:52:32.534 * Removing the pid file.
06:52:32 redis_cache.1    | 24137:M 19 Feb 06:52:32.534 # Redis is now ready to exit, bye bye...
06:52:32 redis_socketio.1 | 24129:M 19 Feb 06:52:32.534 # User requested shutdown...
06:52:32 redis_socketio.1 | 24129:M 19 Feb 06:52:32.535 * Removing the pid file.
06:52:32 redis_socketio.1 | 24129:M 19 Feb 06:52:32.535 # Redis is now ready to exit, bye bye...
06:52:32 system           | redis_cache.1 stopped (rc=-15)
06:52:32 system           | redis_socketio.1 stopped (rc=-15)
06:52:32 system           | redis_queue.1 stopped (rc=-15)
06:52:32 system           | worker_default.1 stopped (rc=-15)
06:52:32 system           | worker_long.1 stopped (rc=-15)
06:52:32 system           | worker_short.1 stopped (rc=-15)

run bench pip install -U Werkzeug==0.16.1. That should fix the issue

1 Like