Hi Team,
bench start giving Redis error… How to solve this …
bench@ip-X.X.X.X:~/erpnext$ bench start
13:11:08 system | watch.1 started (pid=1881)
13:11:08 system | worker_long.1 started (pid=1880)
13:11:08 system | web.1 started (pid=1883)
13:11:08 system | redis_socketio.1 started (pid=1884)
13:11:08 system | schedule.1 started (pid=1885)
13:11:08 system | socketio.1 started (pid=1887)
13:11:08 system | redis_queue.1 started (pid=1882)
13:11:08 system | worker_default.1 started (pid=1886)
13:11:08 system | redis_cache.1 started (pid=1888)
13:11:08 redis_queue.1 | 1902:C 16 Aug 13:11:08.423 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
13:11:08 redis_queue.1 | 1902:C 16 Aug 13:11:08.424 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=1902, just started
13:11:08 redis_queue.1 | 1902:C 16 Aug 13:11:08.424 # Configuration loaded
13:11:08 redis_queue.1 | 1902:M 16 Aug 13:11:08.425 * Increased maximum number of open files to 10032 (it was originally set to 1024).
13:11:08 system | worker_short.1 started (pid=1889)
13:11:08 redis_cache.1 | 1901:C 16 Aug 13:11:08.428 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
13:11:08 redis_cache.1 | 1901:C 16 Aug 13:11:08.428 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=1901, just started
13:11:08 redis_cache.1 | 1901:C 16 Aug 13:11:08.428 # Configuration loaded
13:11:08 redis_socketio.1 | 1907:C 16 Aug 13:11:08.429 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
13:11:08 redis_socketio.1 | 1907:C 16 Aug 13:11:08.429 # Redis version=4.0.9, bits=64, commit=00000000, modified=0, pid=1907, just started
13:11:08 redis_socketio.1 | 1907:C 16 Aug 13:11:08.429 # Configuration loaded
13:11:08 redis_socketio.1 | 1907:M 16 Aug 13:11:08.430 * Increased maximum number of open files to 10032 (it was originally set to 1024).
13:11:08 redis_cache.1 | 1901:M 16 Aug 13:11:08.431 * Increased maximum number of open files to 10032 (it was originally set to 1024).
13:11:08 redis_queue.1 | 1902:M 16 Aug 13:11:08.435 * Running mode=standalone, port=11000.
13:11:08 redis_queue.1 | 1902:M 16 Aug 13:11:08.436 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
13:11:08 redis_queue.1 | 1902:M 16 Aug 13:11:08.436 # Server initialized
13:11:08 redis_queue.1 | 1902:M 16 Aug 13:11:08.436 # 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.
13:11:08 redis_queue.1 | 1902:M 16 Aug 13:11:08.436 # 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.
13:11:08 redis_cache.1 | 1901:M 16 Aug 13:11:08.438 * Running mode=standalone, port=13000.
13:11:08 redis_cache.1 | 1901:M 16 Aug 13:11:08.439 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
13:11:08 redis_cache.1 | 1901:M 16 Aug 13:11:08.439 # Server initialized
13:11:08 redis_cache.1 | 1901:M 16 Aug 13:11:08.439 # 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.
13:11:08 redis_cache.1 | 1901:M 16 Aug 13:11:08.439 # 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.
13:11:08 redis_cache.1 | 1901:M 16 Aug 13:11:08.440 * Ready to accept connections
13:11:08 redis_queue.1 | 1902:M 16 Aug 13:11:08.440 * Ready to accept connections
13:11:08 redis_socketio.1 | 1907:M 16 Aug 13:11:08.440 * Running mode=standalone, port=12000.
13:11:08 redis_socketio.1 | 1907:M 16 Aug 13:11:08.441 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
13:11:08 redis_socketio.1 | 1907:M 16 Aug 13:11:08.441 # Server initialized
13:11:08 redis_socketio.1 | 1907:M 16 Aug 13:11:08.441 # 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.
13:11:08 redis_socketio.1 | 1907:M 16 Aug 13:11:08.441 # 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.
13:11:08 redis_socketio.1 | 1907:M 16 Aug 13:11:08.442 * Ready to accept connections
13:11:09 socketio.1 | module.js:550
13:11:09 socketio.1 | throw err;
13:11:09 socketio.1 | ^
13:11:09 socketio.1 |
13:11:09 socketio.1 | Error: Cannot find module ‘express’
13:11:09 socketio.1 | at Function.Module._resolveFilename (module.js:548:15)
13:11:09 socketio.1 | at Function.Module._load (module.js:475:25)
13:11:09 socketio.1 | at Module.require (module.js:597:17)
13:11:09 socketio.1 | at require (internal/module.js:11:18)
13:11:09 socketio.1 | at Object. (/opt/bench/erpnext/apps/frappe/socketio.js:1:73)
13:11:09 socketio.1 | at Module._compile (module.js:653:30)
13:11:09 socketio.1 | at Object.Module._extensions…js (module.js:664:10)
13:11:09 socketio.1 | at Module.load (module.js:566:32)
13:11:09 socketio.1 | at tryModuleLoad (module.js:506:12)
13:11:09 socketio.1 | at Function.Module._load (module.js:498:3)
13:11:09 system | socketio.1 stopped (rc=1)
13:11:09 system | sending SIGTERM to redis_socketio.1 (pid 1884)
13:11:09 system | sending SIGTERM to worker_long.1 (pid 1880)
13:11:09 system | sending SIGTERM to watch.1 (pid 1881)
13:11:09 system | sending SIGTERM to redis_queue.1 (pid 1882)
13:11:09 system | sending SIGTERM to web.1 (pid 1883)
13:11:09 system | sending SIGTERM to schedule.1 (pid 1885)
13:11:09 system | sending SIGTERM to worker_default.1 (pid 1886)
13:11:09 system | sending SIGTERM to redis_cache.1 (pid 1888)
13:11:09 system | sending SIGTERM to worker_short.1 (pid 1889)
13:11:09 redis_socketio.1 | 1907:signal-handler (1565961069) Received SIGTERM scheduling shutdown…
13:11:09 redis_queue.1 | 1902:signal-handler (1565961069) Received SIGTERM scheduling shutdown…
13:11:09 redis_cache.1 | 1901:signal-handler (1565961069) Received SIGTERM scheduling shutdown…
13:11:09 redis_socketio.1 | 1907:M 16 Aug 13:11:09.043 # User requested shutdown…
13:11:09 redis_socketio.1 | 1907:M 16 Aug 13:11:09.043 * Removing the pid file.
13:11:09 redis_socketio.1 | 1907:M 16 Aug 13:11:09.043 # Redis is now ready to exit, bye bye…
13:11:09 system | redis_socketio.1 stopped (rc=-15)
13:11:09 system | web.1 stopped (rc=-15)
13:11:09 system | schedule.1 stopped (rc=-15)
13:11:09 system | worker_short.1 stopped (rc=-15)
13:11:09 system | worker_default.1 stopped (rc=-15)
13:11:09 system | watch.1 stopped (rc=-15)
13:11:09 system | worker_long.1 stopped (rc=-15)
13:11:09 redis_cache.1 | 1901:M 16 Aug 13:11:09.141 # User requested shutdown…
13:11:09 redis_cache.1 | 1901:M 16 Aug 13:11:09.141 * Removing the pid file.
13:11:09 redis_cache.1 | 1901:M 16 Aug 13:11:09.141 # Redis is now ready to exit, bye bye…
13:11:09 redis_queue.1 | 1902:M 16 Aug 13:11:09.142 # User requested shutdown…
13:11:09 redis_queue.1 | 1902:M 16 Aug 13:11:09.142 * Removing the pid file.
13:11:09 redis_queue.1 | 1902:M 16 Aug 13:11:09.142 # Redis is now ready to exit, bye bye…
13:11:09 system | redis_queue.1 stopped (rc=-15)
13:11:09 system | redis_cache.1 stopped (rc=-15)