Install erpnext on ubuntu 18.04

when I do : bench start I get this trace :
16:22:11 system | web.1 started (pid=2127)
16:22:11 system | redis_socketio.1 started (pid=2122)
16:22:11 redis_socketio.1 | 2129:C 02 Jan 16:22:11.369 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
16:22:11 redis_socketio.1 | 2129:C 02 Jan 16:22:11.369 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=2129, just started
16:22:11 redis_socketio.1 | 2129:C 02 Jan 16:22:11.369 # Configuration loaded
16:22:11 redis_socketio.1 | 2129:M 02 Jan 16:22:11.370 * Increased maximum number of open files to 10032 (it was originally set to 1024).
16:22:11 redis_socketio.1 | 2129:M 02 Jan 16:22:11.371 * Running mode=standalone, port=12000.
16:22:11 redis_socketio.1 | 2129:M 02 Jan 16:22:11.371 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
16:22:11 redis_socketio.1 | 2129:M 02 Jan 16:22:11.371 # Server initialized
16:22:11 redis_socketio.1 | 2129:M 02 Jan 16:22:11.371 # 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.
16:22:11 redis_socketio.1 | 2129:M 02 Jan 16:22:11.371 # 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.
16:22:11 redis_socketio.1 | 2129:M 02 Jan 16:22:11.371 * Ready to accept connections
16:22:11 system | schedule.1 started (pid=2133)
16:22:11 system | worker_long.1 started (pid=2136)
16:22:11 system | worker_default.1 started (pid=2131)
16:22:11 system | socketio.1 started (pid=2144)
16:22:11 system | watch.1 started (pid=2134)
16:22:11 system | redis_queue.1 started (pid=2132)
16:22:11 redis_queue.1 | 2148:C 02 Jan 16:22:11.388 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
16:22:11 redis_queue.1 | 2148:C 02 Jan 16:22:11.388 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=2148, just started
16:22:11 redis_queue.1 | 2148:C 02 Jan 16:22:11.388 # Configuration loaded
16:22:11 redis_queue.1 | 2148:M 02 Jan 16:22:11.391 * Increased maximum number of open files to 10032 (it was originally set to 1024).
16:22:11 redis_queue.1 | 2148:M 02 Jan 16:22:11.391 * Running mode=standalone, port=11000.
16:22:11 redis_queue.1 | 2148:M 02 Jan 16:22:11.391 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
16:22:11 redis_queue.1 | 2148:M 02 Jan 16:22:11.391 # Server initialized
16:22:11 redis_queue.1 | 2148:M 02 Jan 16:22:11.391 # 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.
16:22:11 redis_queue.1 | 2148:M 02 Jan 16:22:11.391 # 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.
16:22:11 redis_queue.1 | 2148:M 02 Jan 16:22:11.391 * Ready to accept connections
16:22:11 system | worker_short.1 started (pid=2137)
16:22:11 system | redis_cache.1 started (pid=2151)
16:22:11 redis_cache.1 | 2161:C 02 Jan 16:22:11.476 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
16:22:11 redis_cache.1 | 2161:C 02 Jan 16:22:11.476 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=2161, just started
16:22:11 redis_cache.1 | 2161:C 02 Jan 16:22:11.476 # Configuration loaded
16:22:11 redis_cache.1 | 2161:M 02 Jan 16:22:11.477 * Increased maximum number of open files to 10032 (it was originally set to 1024).
16:22:11 redis_cache.1 | 2161:M 02 Jan 16:22:11.478 * Running mode=standalone, port=13000.
16:22:11 redis_cache.1 | 2161:M 02 Jan 16:22:11.478 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
16:22:11 redis_cache.1 | 2161:M 02 Jan 16:22:11.478 # Server initialized
16:22:11 redis_cache.1 | 2161:M 02 Jan 16:22:11.478 # 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.
16:22:11 redis_cache.1 | 2161:M 02 Jan 16:22:11.478 # 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.
16:22:11 redis_cache.1 | 2161:M 02 Jan 16:22:11.478 * Ready to accept connections
16:22:16 socketio.1 | listening on *: 9000
16:22:19 web.1 | * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
16:22:19 web.1 | * Restarting with inotify reloader
16:22:19 watch.1 | yarn run v1.12.3
16:22:20 watch.1 | $ node rollup/watch.js
16:22:20 web.1 | * Debugger is active!
16:22:20 web.1 | * Debugger PIN: 497-157-813
16:22:36 watch.1 |
16:22:36 watch.1 | Rollup Watcher Started
16:22:36 watch.1 |
16:22:36 watch.1 | Watching…
16:22:41 watch.1 | Rebuilding frappe-web.css
16:22:41 watch.1 | Rebuilding chat.js
16:22:43 watch.1 | Rebuilding frappe-vue.min.js
16:22:46 watch.1 | Rebuilding frappe-web.min.js
16:22:48 watch.1 | Rebuilding control.min.js
16:22:50 watch.1 | Rebuilding dialog.min.js
16:22:52 watch.1 | Rebuilding desk.min.css
16:22:52 watch.1 | Rebuilding frappe-rtl.css
16:22:52 watch.1 | Rebuilding desk.min.js
16:22:57 watch.1 | Rebuilding module.min.css
16:22:57 watch.1 | (node:2276) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 change listeners added. Use emitter.setMaxListeners() to increase limit
16:22:57 watch.1 | Rebuilding form.min.css
16:22:57 watch.1 | Rebuilding form.min.js
16:22:58 watch.1 | Rebuilding list.min.css
16:22:58 watch.1 | Rebuilding list.min.js
16:22:59 watch.1 | Rebuilding report.min.css
16:22:59 watch.1 | Rebuilding report.min.js
16:23:00 watch.1 | Rebuilding web_form.min.js
16:23:01 watch.1 | Rebuilding web_form.css
16:23:01 watch.1 | Rebuilding print_format_v3.min.js
16:23:01 watch.1 | Rebuilding email.css
16:23:01 watch.1 | Rebuilding social.min.js
16:23:03 watch.1 | Rebuilding erpnext.css
16:23:03 watch.1 | Rebuilding marketplace.css
16:23:03 watch.1 | Rebuilding erpnext-web.min.js
16:23:04 watch.1 | Rebuilding erpnext-web.css
16:23:04 watch.1 | Rebuilding marketplace.min.js
16:23:07 watch.1 | Rebuilding erpnext.min.js
16:23:09 watch.1 | Rebuilding item-dashboard.min.js
^C16:49:18 system | SIGINT received
16:49:18 system | sending SIGTERM to redis_socketio.1 (pid 2122)
16:49:18 system | sending SIGTERM to worker_long.1 (pid 2136)
16:49:18 system | sending SIGTERM to watch.1 (pid 2134)
16:49:18 system | sending SIGTERM to redis_queue.1 (pid 2132)
16:49:18 system | sending SIGTERM to web.1 (pid 2127)
16:49:18 system | sending SIGTERM to schedule.1 (pid 2133)
16:49:18 system | sending SIGTERM to worker_default.1 (pid 2131)
16:49:18 system | sending SIGTERM to socketio.1 (pid 2144)
16:49:18 system | sending SIGTERM to redis_cache.1 (pid 2151)
16:49:18 system | sending SIGTERM to worker_short.1 (pid 2137)
16:49:18 worker_default.1 | 16:49:18 Warm shut down requested
16:49:18 system | socketio.1 stopped (rc=-15)
16:49:18 redis_cache.1 | 2161:signal-handler (1546444158) Received SIGTERM scheduling shutdown…
16:49:18 redis_socketio.1 | 2129:signal-handler (1546444158) Received SIGTERM scheduling shutdown…
16:49:18 worker_long.1 | 16:49:18 Warm shut down requested
16:49:18 redis_queue.1 | 2148:signal-handler (1546444158) Received SIGTERM scheduling shutdown…
16:49:18 worker_short.1 | 16:49:18 Warm shut down requested
16:49:18 system | schedule.1 stopped (rc=-15)
16:49:18 redis_cache.1 | 2161:M 02 Jan 16:49:18.362 # User requested shutdown…
16:49:18 redis_cache.1 | 2161:M 02 Jan 16:49:18.362 * Removing the pid file.
16:49:18 redis_cache.1 | 2161:M 02 Jan 16:49:18.362 # Redis is now ready to exit, bye bye…
16:49:18 system | redis_cache.1 stopped (rc=-15)
16:49:18 redis_queue.1 | 2148:M 02 Jan 16:49:18.368 # User requested shutdown…
16:49:18 redis_queue.1 | 2148:M 02 Jan 16:49:18.368 * Removing the pid file.
16:49:18 redis_queue.1 | 2148:M 02 Jan 16:49:18.368 # Redis is now ready to exit, bye bye…
16:49:18 system | redis_queue.1 stopped (rc=-15)
16:49:18 redis_socketio.1 | 2129:M 02 Jan 16:49:18.389 # User requested shutdown…
16:49:18 redis_socketio.1 | 2129:M 02 Jan 16:49:18.389 * Removing the pid file.
16:49:18 redis_socketio.1 | 2129:M 02 Jan 16:49:18.389 # Redis is now ready to exit, bye bye…
16:49:18 system | redis_socketio.1 stopped (rc=-15)
16:49:18 system | watch.1 stopped (rc=-15)
16:49:18 system | worker_short.1 stopped (rc=-15)
16:49:18 system | worker_default.1 stopped (rc=-15)
16:49:18 system | worker_long.1 stopped (rc=-15)
16:49:18 system | web.1 stopped (rc=-15)

please any help please, thank you in advance.

Did you press Ctrl + C by mistake? That leads to SIGINT which is a signal to stop the running process.
If you wish to run bench in background, press Ctrl + Z or execute the following command instead:

 bench start &

Here’s the Wikipedia page on SIGINT:
https://en.wikipedia.org/wiki/Signal_(IPC)#SIGINT

1 Like

I click on Ctrl + C because the process is stacking

Now I get this trace :

erpnextuser@victory-VirtualBox:/opt/erpnext/erpnext$ bench start
18:50:59 system           | redis_socketio.1 started (pid=9147)
18:50:59 redis_socketio.1 | 9157:C 02 Jan 18:50:59.516 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
18:50:59 redis_socketio.1 | 9157:C 02 Jan 18:50:59.516 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=9157, just started
18:50:59 redis_socketio.1 | 9157:C 02 Jan 18:50:59.516 # Configuration loaded
18:50:59 redis_socketio.1 | 9157:M 02 Jan 18:50:59.517 * Increased maximum number of open files to 10032 (it was originally set to 1024).
18:50:59 redis_socketio.1 | 9157:M 02 Jan 18:50:59.517 * Running mode=standalone, port=12000.
18:50:59 redis_socketio.1 | 9157:M 02 Jan 18:50:59.517 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
18:50:59 redis_socketio.1 | 9157:M 02 Jan 18:50:59.517 # Server initialized
18:50:59 redis_socketio.1 | 9157:M 02 Jan 18:50:59.517 # 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.
18:50:59 redis_socketio.1 | 9157:M 02 Jan 18:50:59.517 # 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.
18:50:59 redis_socketio.1 | 9157:M 02 Jan 18:50:59.517 * Ready to accept connections
18:50:59 system           | worker_default.1 started (pid=9156)
18:50:59 system           | worker_long.1 started (pid=9154)
18:50:59 system           | web.1 started (pid=9172)
18:50:59 system           | schedule.1 started (pid=9155)
18:50:59 system           | watch.1 started (pid=9153)
18:50:59 system           | socketio.1 started (pid=9159)
18:50:59 system           | redis_queue.1 started (pid=9186)
18:50:59 redis_queue.1    | 9187:C 02 Jan 18:50:59.568 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
18:50:59 redis_queue.1    | 9187:C 02 Jan 18:50:59.568 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=9187, just started
18:50:59 redis_queue.1    | 9187:C 02 Jan 18:50:59.568 # Configuration loaded
18:50:59 redis_queue.1    | 9187:M 02 Jan 18:50:59.569 * Increased maximum number of open files to 10032 (it was originally set to 1024).
18:50:59 redis_queue.1    | 9187:M 02 Jan 18:50:59.570 * Running mode=standalone, port=11000.
18:50:59 redis_queue.1    | 9187:M 02 Jan 18:50:59.570 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
18:50:59 redis_queue.1    | 9187:M 02 Jan 18:50:59.570 # Server initialized
18:50:59 redis_queue.1    | 9187:M 02 Jan 18:50:59.570 # 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.
18:50:59 redis_queue.1    | 9187:M 02 Jan 18:50:59.570 # 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.
18:50:59 redis_queue.1    | 9187:M 02 Jan 18:50:59.570 * Ready to accept connections
18:50:59 system           | redis_cache.1 started (pid=9168)
18:50:59 system           | worker_short.1 started (pid=9163)
18:50:59 redis_cache.1    | 9175:C 02 Jan 18:50:59.545 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
18:50:59 redis_cache.1    | 9175:C 02 Jan 18:50:59.546 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=9175, just started
18:50:59 redis_cache.1    | 9175:C 02 Jan 18:50:59.546 # Configuration loaded
18:50:59 redis_cache.1    | 9175:M 02 Jan 18:50:59.547 * Increased maximum number of open files to 10032 (it was originally set to 1024).
18:50:59 redis_cache.1    | 9175:M 02 Jan 18:50:59.547 * Running mode=standalone, port=13000.
18:50:59 redis_cache.1    | 9175:M 02 Jan 18:50:59.547 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
18:50:59 redis_cache.1    | 9175:M 02 Jan 18:50:59.547 # Server initialized
18:50:59 redis_cache.1    | 9175:M 02 Jan 18:50:59.547 # 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.
18:50:59 redis_cache.1    | 9175:M 02 Jan 18:50:59.547 # 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.
18:50:59 redis_cache.1    | 9175:M 02 Jan 18:50:59.547 * Ready to accept connections
18:51:01 socketio.1       | listening on *: 9000
18:51:08 web.1            |  * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
18:51:08 web.1            |  * Restarting with inotify reloader
18:51:08 watch.1          | Parsing scenario file run
18:51:08 watch.1          | ERROR: [Errno 2] No such file or directory: 'run'
18:51:08 system           | watch.1 stopped (rc=0)
18:51:08 system           | sending SIGTERM to redis_socketio.1 (pid 9147)
18:51:08 system           | sending SIGTERM to worker_long.1 (pid 9154)
18:51:08 system           | sending SIGTERM to redis_queue.1 (pid 9186)
18:51:08 system           | sending SIGTERM to web.1 (pid 9172)
18:51:08 system           | sending SIGTERM to schedule.1 (pid 9155)
18:51:08 system           | sending SIGTERM to worker_default.1 (pid 9156)
18:51:08 system           | sending SIGTERM to socketio.1 (pid 9159)
18:51:08 system           | sending SIGTERM to redis_cache.1 (pid 9168)
18:51:08 system           | sending SIGTERM to worker_short.1 (pid 9163)
18:51:08 worker_long.1    | 18:51:08 Warm shut down requested
18:51:08 worker_default.1 | 18:51:08 Warm shut down requested
18:51:08 system           | schedule.1 stopped (rc=-15)
18:51:08 redis_queue.1    | 9187:signal-handler (1546451468) Received SIGTERM scheduling shutdown...
18:51:08 system           | socketio.1 stopped (rc=-15)
18:51:08 redis_socketio.1 | 9157:signal-handler (1546451468) Received SIGTERM scheduling shutdown...
18:51:08 redis_cache.1    | 9175:signal-handler (1546451468) Received SIGTERM scheduling shutdown...
18:51:08 worker_short.1   | 18:51:08 Warm shut down requested
18:51:08 redis_cache.1    | 9175:M 02 Jan 18:51:08.590 # User requested shutdown...
18:51:08 redis_cache.1    | 9175:M 02 Jan 18:51:08.590 * Removing the pid file.
18:51:08 redis_cache.1    | 9175:M 02 Jan 18:51:08.590 # Redis is now ready to exit, bye bye...
18:51:08 system           | redis_cache.1 stopped (rc=-15)
18:51:08 redis_queue.1    | 9187:M 02 Jan 18:51:08.626 # User requested shutdown...
18:51:08 redis_queue.1    | 9187:M 02 Jan 18:51:08.626 * Removing the pid file.
18:51:08 redis_queue.1    | 9187:M 02 Jan 18:51:08.626 # Redis is now ready to exit, bye bye...
18:51:08 system           | redis_queue.1 stopped (rc=-15)
18:51:08 redis_socketio.1 | 9157:M 02 Jan 18:51:08.665 # User requested shutdown...
18:51:08 redis_socketio.1 | 9157:M 02 Jan 18:51:08.665 * Removing the pid file.
18:51:08 redis_socketio.1 | 9157:M 02 Jan 18:51:08.666 # Redis is now ready to exit, bye bye...
18:51:08 system           | redis_socketio.1 stopped (rc=-15)
18:51:08 system           | worker_short.1 stopped (rc=-15)
18:51:08 system           | worker_default.1 stopped (rc=-15)
18:51:08 system           | worker_long.1 stopped (rc=-15)
18:51:08 system           | web.1 stopped (rc=-15)

Please help

This is the error that is causing problems.

One more similar post found :

Although I personally don’t particularly like this solution because it ramps up RAM usage if wrong… it’s quite popular and often helps/works. Try

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

and then restart your bench

cd ~/frappe-bench; bench restart