Bench start issue socketio.1 | SyntaxError: Use of const in strict mode

Hi all,
I hav iisue in bench start …but i tried to start with bench serve…at that in my brower no login page is dispalyed…just displayed a blank page

mdsajiimpm@ihlas:~/frappe-bench$ bench start
07:03:39 system | redis_socketio.1 started (pid=3814)
07:03:39 redis_socketio.1 | [3816] 25 Jun 07:03:39.440 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
07:03:39 redis_socketio.1 | .
07:03:39 redis_socketio.1 | .-__ ''-._ 07:03:39 redis_socketio.1 | _.- . . ‘’-._ Redis 2.8.4 (00000000/0) 64 bit
07:03:39 redis_socketio.1 | .- .-```. ```\/ _.,_ ''-._ 07:03:39 redis_socketio.1 | ( ' , .-` | `, ) Running in stand alone mode 07:03:39 redis_socketio.1 | |`-._`-...-` __...-.-.|'_.-'| Port: 12000 07:03:39 redis_socketio.1 | | -. ._ / _.-' | PID: 3816 07:03:39 redis_socketio.1 | -._ -._ -./ .-’ .-’
07:03:39 redis_socketio.1 | |-._-.
-.__.-' _.-'_.-'| 07:03:39 redis_socketio.1 | | -.
-._ _.-'_.-' | http://redis.io 07:03:39 redis_socketio.1 | -._ -._-..-'.-’ .-’
07:03:39 redis_socketio.1 | |-._-.
-.__.-' _.-'_.-'| 07:03:39 redis_socketio.1 | | -.
-._ _.-'_.-' | 07:03:39 redis_socketio.1 | -._ -._-.
.-‘.-’ .-’
07:03:39 redis_socketio.1 | -._ -..-’ _.-’
07:03:39 redis_socketio.1 | -._ _.-' 07:03:39 redis_socketio.1 | -.
.-’
07:03:39 redis_socketio.1 |
07:03:39 redis_socketio.1 | [3816] 25 Jun 07:03:39.440 # Server started, Redis version 2.8.4
07:03:39 redis_socketio.1 | [3816] 25 Jun 07:03:39.440 # 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.
07:03:39 redis_socketio.1 | [3816] 25 Jun 07:03:39.440 * The server is now ready to accept connections on port 12000
07:03:39 system | worker_long.1 started (pid=3812)
07:03:39 system | worker_short.1 started (pid=3822)
07:03:39 system | redis_cache.1 started (pid=3825)
07:03:39 redis_cache.1 | [3832] 25 Jun 07:03:39.460 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
07:03:39 redis_cache.1 | .
07:03:39 redis_cache.1 | .-__ ''-._ 07:03:39 redis_cache.1 | _.- . . ‘’-.
Redis 2.8.4 (00000000/0) 64 bit
07:03:39 redis_cache.1 | .- .-```. ```\/ _.,_ ''-._ 07:03:39 redis_cache.1 | ( ' , .-` | `, ) Running in stand alone mode 07:03:39 redis_cache.1 | |`-._`-...-` __...-.-.
|’_.-'| Port: 13000 07:03:39 redis_cache.1 | | -._ ._ / _.-' | PID: 3832 07:03:39 redis_cache.1 | -._ -._ -./ .-’ .-’
07:03:39 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 07:03:39 redis_cache.1 | | -.
-._ _.-'_.-' | http://redis.io 07:03:39 redis_cache.1 | -._ -._-..-'.-’ .-’
07:03:39 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 07:03:39 redis_cache.1 | | -.
-._ _.-'_.-' | 07:03:39 redis_cache.1 | -._ -._-.
.-‘.-’ .-’
07:03:39 redis_cache.1 | -._ -..-’ _.-’
07:03:39 redis_cache.1 | -._ _.-' 07:03:39 redis_cache.1 | -.
.-’
07:03:39 redis_cache.1 |
07:03:39 redis_cache.1 | [3832] 25 Jun 07:03:39.460 # Server started, Redis version 2.8.4
07:03:39 redis_cache.1 | [3832] 25 Jun 07:03:39.460 # 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.
07:03:39 redis_cache.1 | [3832] 25 Jun 07:03:39.460 * The server is now ready to accept connections on port 13000
07:03:39 system | socketio.1 started (pid=3831)
07:03:39 system | watch.1 started (pid=3828)
07:03:39 system | redis_queue.1 started (pid=3829)
07:03:39 redis_queue.1 | [3835] 25 Jun 07:03:39.464 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
07:03:39 redis_queue.1 | .
07:03:39 redis_queue.1 | .-__ ''-._ 07:03:39 redis_queue.1 | _.- . . ‘’-.
Redis 2.8.4 (00000000/0) 64 bit
07:03:39 redis_queue.1 | .- .-```. ```\/ _.,_ ''-._ 07:03:39 redis_queue.1 | ( ' , .-` | `, ) Running in stand alone mode 07:03:39 redis_queue.1 | |`-._`-...-` __...-.-.
|’_.-'| Port: 11000 07:03:39 redis_queue.1 | | -._ ._ / _.-' | PID: 3835 07:03:39 redis_queue.1 | -._ -._ -./ .-’ .-’
07:03:39 redis_queue.1 | |-._-.
-.__.-' _.-'_.-'| 07:03:39 redis_queue.1 | | -.
-._ _.-'_.-' | http://redis.io 07:03:39 redis_queue.1 | -._ -._-..-'.-’ .-’
07:03:39 redis_queue.1 | |-._-.
-.__.-' _.-'_.-'| 07:03:39 redis_queue.1 | | -.
-._ _.-'_.-' | 07:03:39 redis_queue.1 | -._ -._-.
.-‘_.-’ _.-’
07:03:39 redis_queue.1 | -._ -..-’ _.-’
07:03:39 redis_queue.1 | -._ _.-' 07:03:39 redis_queue.1 | -.
.-’
07:03:39 redis_queue.1 |
07:03:39 redis_queue.1 | [3835] 25 Jun 07:03:39.465 # Server started, Redis version 2.8.4
07:03:39 redis_queue.1 | [3835] 25 Jun 07:03:39.465 # 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.
07:03:39 redis_queue.1 | [3835] 25 Jun 07:03:39.465 * The server is now ready to accept connections on port 11000
07:03:39 system | schedule.1 started (pid=3840)
07:03:39 system | web.1 started (pid=3841)
07:03:39 system | worker_default.1 started (pid=3845)
07:03:40 socketio.1 | /home/mdsajiimpm/frappe-bench/node_modules/socket.io/node_modules/engine.io/node_modules/ws/index.js:9
07:03:40 socketio.1 | const WebSocket = require(‘./lib/WebSocket’);
07:03:40 socketio.1 | ^^^^^
07:03:40 socketio.1 | SyntaxError: Use of const in strict mode.
07:03:40 socketio.1 | at exports.runInThisContext (vm.js:73:16)
07:03:40 socketio.1 | at Module._compile (module.js:443:25)
07:03:40 socketio.1 | at Object.Module._extensions…js (module.js:478:10)
07:03:40 socketio.1 | at Module.load (module.js:355:32)
07:03:40 socketio.1 | at Function.Module._load (module.js:310:12)
07:03:40 socketio.1 | at Module.require (module.js:365:17)
07:03:40 socketio.1 | at require (module.js:384:17)
07:03:40 socketio.1 | at Server.init (/home/mdsajiimpm/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:119:16)
07:03:40 socketio.1 | at new Server (/home/mdsajiimpm/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:65:8)
07:03:40 socketio.1 | at Function.attach (/home/mdsajiimpm/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/engine.io.js:123:16)
07:03:40 system | socketio.1 stopped (rc=1)
07:03:40 system | sending SIGTERM to redis_socketio.1 (pid 3814)
07:03:40 system | sending SIGTERM to worker_long.1 (pid 3812)
07:03:40 system | sending SIGTERM to watch.1 (pid 3828)
07:03:40 system | sending SIGTERM to redis_queue.1 (pid 3829)
07:03:40 system | sending SIGTERM to web.1 (pid 3841)
07:03:40 system | sending SIGTERM to schedule.1 (pid 3840)
07:03:40 system | sending SIGTERM to worker_default.1 (pid 3845)
07:03:40 system | sending SIGTERM to redis_cache.1 (pid 3825)
07:03:40 system | sending SIGTERM to worker_short.1 (pid 3822)
07:03:40 redis_cache.1 | [3832 | signal handler] (1498374220) Received SIGTERM, scheduling shutdown…
07:03:40 redis_queue.1 | [3835 | signal handler] (1498374220) Received SIGTERM, scheduling shutdown…
07:03:40 redis_socketio.1 | [3816 | signal handler] (1498374220) Received SIGTERM, scheduling shutdown…
07:03:40 system | schedule.1 stopped (rc=-15)
07:03:40 system | watch.1 stopped (rc=-15)
07:03:40 system | worker_long.1 stopped (rc=-15)
07:03:40 system | worker_default.1 stopped (rc=-15)
07:03:40 system | worker_short.1 stopped (rc=-15)
07:03:40 system | web.1 stopped (rc=-15)
07:03:40 redis_socketio.1 | [3816] 25 Jun 07:03:40.351 # User requested shutdown…
07:03:40 redis_socketio.1 | [3816] 25 Jun 07:03:40.351 # Redis is now ready to exit, bye bye…
07:03:40 system | redis_socketio.1 stopped (rc=-15)
07:03:40 redis_queue.1 | [3835] 25 Jun 07:03:40.366 # User requested shutdown…
07:03:40 redis_queue.1 | [3835] 25 Jun 07:03:40.366 # Redis is now ready to exit, bye bye…
07:03:40 system | redis_queue.1 stopped (rc=-15)
07:03:40 redis_cache.1 | [3832] 25 Jun 07:03:40.368 # User requested shutdown…
07:03:40 redis_cache.1 | [3832] 25 Jun 07:03:40.368 # Redis is now ready to exit, bye bye…
07:03:40 system | redis_cache.1 stopped (rc=-15)
mdsajiimpm@ihlas:~/frappe-bench$

Looks like your nodejs version is too low.
Can you post your nodejs version ?

nodejs -v

For installing latest version:

curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs

mdsajiimpm@ihlas:~/frappe-bench$ bench start
08:22:36 system | redis_socketio.1 started (pid=7309)
08:22:36 redis_socketio.1 | [7317] 25 Jun 08:22:36.758 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
08:22:36 redis_socketio.1 | [7317] 25 Jun 08:22:36.758 # Creating Server TCP listening socket 127.0.0.1:12000: bind: Address already in use
08:22:36 system | redis_socketio.1 stopped (rc=1)
08:22:36 system | watch.1 started (pid=7319)
08:22:36 system | redis_queue.1 started (pid=7324)
08:22:36 redis_queue.1 | [7337] 25 Jun 08:22:36.794 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
08:22:36 redis_queue.1 | [7337] 25 Jun 08:22:36.794 # Creating Server TCP listening socket 127.0.0.1:11000: bind: Address already in use
08:22:36 system | redis_queue.1 stopped (rc=1)
08:22:36 system | schedule.1 started (pid=7321)
08:22:36 system | web.1 started (pid=7320)
08:22:36 system | redis_cache.1 started (pid=7328)
08:22:36 redis_cache.1 | [7331] 25 Jun 08:22:36.782 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
08:22:36 redis_cache.1 | [7331] 25 Jun 08:22:36.783 # Creating Server TCP listening socket 127.0.0.1:13000: bind: Address already in use
08:22:36 system | redis_cache.1 stopped (rc=1)
08:22:36 system | worker_long.1 started (pid=7313)
08:22:36 system | worker_short.1 started (pid=7332)
08:22:36 system | worker_default.1 started (pid=7322)
08:22:36 system | socketio.1 started (pid=7345)
08:22:36 system | sending SIGTERM to worker_long.1 (pid 7313)
08:22:36 system | sending SIGTERM to watch.1 (pid 7319)
08:22:36 system | sending SIGTERM to web.1 (pid 7320)
08:22:36 system | sending SIGTERM to schedule.1 (pid 7321)
08:22:36 system | sending SIGTERM to worker_default.1 (pid 7322)
08:22:36 system | sending SIGTERM to socketio.1 (pid 7345)
08:22:36 system | sending SIGTERM to worker_short.1 (pid 7332)
08:22:36 system | web.1 stopped (rc=-15)
08:22:36 system | worker_long.1 stopped (rc=-15)
08:22:36 system | worker_short.1 stopped (rc=-15)
08:22:36 system | watch.1 stopped (rc=-15)
08:22:36 system | worker_default.1 stopped (rc=-15)
08:22:36 system | schedule.1 stopped (rc=-15)
08:22:36 system | socketio.1 stopped (rc=-15)

Is your bench in production mode ?
sudo bench disable-production

Hi @Mohamed_Sajid

Kill process id 11000, 12000, 13000 and then run bench start command again

I get the same before you have to add more memory to the server.

Regards

mdsajiimpm@ihlas:~/frappe-bench$ sudo kill 12000
mdsajiimpm@ihlas:~/frappe-bench$ sudo kill 13000
mdsajiimpm@ihlas:~/frappe-bench$ bench start
09:26:10 system | worker_long.1 started (pid=9389)
09:26:10 system | redis_socketio.1 started (pid=9385)
09:26:10 redis_socketio.1 | [9392] 01 Jul 09:26:10.445 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
09:26:10 redis_socketio.1 | [9392] 01 Jul 09:26:10.445 # Creating Server TCP listening socket 127.0.0.1:12000: bind: Address already in use
09:26:10 system | redis_socketio.1 stopped (rc=1)
09:26:10 system | redis_cache.1 started (pid=9397)
09:26:10 redis_cache.1 | [9399] 01 Jul 09:26:10.452 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
09:26:10 redis_cache.1 | [9399] 01 Jul 09:26:10.453 # Creating Server TCP listening socket 127.0.0.1:13000: bind: Address already in use
09:26:10 system | redis_cache.1 stopped (rc=1)
09:26:10 system | worker_short.1 started (pid=9398)
09:26:10 system | socketio.1 started (pid=9405)
09:26:10 system | schedule.1 started (pid=9408)
09:26:10 system | watch.1 started (pid=9403)
09:26:10 system | redis_queue.1 started (pid=9406)
09:26:10 redis_queue.1 | [9420] 01 Jul 09:26:10.502 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
09:26:10 redis_queue.1 | [9420] 01 Jul 09:26:10.503 # Creating Server TCP listening socket 127.0.0.1:11000: bind: Address already in use
09:26:10 system | redis_queue.1 stopped (rc=1)
09:26:10 system | web.1 started (pid=9410)
09:26:10 system | worker_default.1 started (pid=9424)
09:26:10 system | sending SIGTERM to worker_long.1 (pid 9389)
09:26:10 system | sending SIGTERM to watch.1 (pid 9403)
09:26:10 system | sending SIGTERM to web.1 (pid 9410)
09:26:10 system | sending SIGTERM to schedule.1 (pid 9408)
09:26:10 system | sending SIGTERM to worker_default.1 (pid 9424)
09:26:10 system | sending SIGTERM to socketio.1 (pid 9405)
09:26:10 system | sending SIGTERM to worker_short.1 (pid 9398)
09:26:10 system | worker_long.1 stopped (rc=-15)
09:26:10 system | web.1 stopped (rc=-15)
09:26:10 system | watch.1 stopped (rc=-15)
09:26:10 system | schedule.1 stopped (rc=-15)
09:26:10 system | socketio.1 stopped (rc=-15)
09:26:10 system | worker_default.1 stopped (rc=-15)
09:26:10 system | worker_short.1 stopped (rc=-15)
mdsajiimpm@ihlas:~/frappe-bench$

These commands should kill whatever is using ports 11000,12000,13000

lsof -ti:11000 | xargs kill -9
lsof -ti:12000 | xargs kill -9
lsof -ti:13000 | xargs kill -9

After this, if bench start still doesn’t work, try rebooting your server. Worked with me.

same problrm aagain occured
how can i solve it

11:13:16 system | worker_long.1 started (pid=13876)
11:13:16 system | redis_queue.1 started (pid=13877)
11:13:16 redis_queue.1 | [13888] 10 Jul 11:13:16.277 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
11:13:16 redis_queue.1 | [13888] 10 Jul 11:13:16.277 # Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with ‘noeviction’ policy now.
11:13:16 redis_queue.1 | .
11:13:16 redis_queue.1 | .-__ ''-._ 11:13:16 redis_queue.1 | _.- . . ‘’-._ Redis 2.8.4 (00000000/0) 32 bit
11:13:16 redis_queue.1 | .- .-```. ```\/ _.,_ ''-._ 11:13:16 redis_queue.1 | ( ' , .-` | `, ) Running in stand alone mode 11:13:16 redis_queue.1 | |`-._`-...-` __...-.-.|'_.-'| Port: 11000 11:13:16 redis_queue.1 | | -. ._ / _.-' | PID: 13888 11:13:16 redis_queue.1 | -._ -._ -./ .-’ .-’
11:13:16 redis_queue.1 | |-._-.
-.__.-' _.-'_.-'| 11:13:16 redis_queue.1 | | -.
-._ _.-'_.-' | http://redis.io 11:13:16 redis_queue.1 | -._ -._-..-'.-’ .-’
11:13:16 redis_queue.1 | |-._-.
-.__.-' _.-'_.-'| 11:13:16 redis_queue.1 | | -.
-._ _.-'_.-' | 11:13:16 redis_queue.1 | -._ -._-.
.-‘.-’ .-’
11:13:16 redis_queue.1 | -._ -..-’ _.-’
11:13:16 redis_queue.1 | -._ _.-' 11:13:16 redis_queue.1 | -.
.-’
11:13:16 redis_queue.1 |
11:13:16 redis_queue.1 | [13888] 10 Jul 11:13:16.278 # Server started, Redis version 2.8.4
11:13:16 redis_queue.1 | [13888] 10 Jul 11:13:16.278 # 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.
11:13:16 redis_queue.1 | [13888] 10 Jul 11:13:16.278 * The server is now ready to accept connections on port 11000
11:13:16 system | worker_default.1 started (pid=13886)
11:13:16 system | redis_socketio.1 started (pid=13872)
11:13:16 redis_socketio.1 | [13882] 10 Jul 11:13:16.276 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
11:13:16 redis_socketio.1 | [13882] 10 Jul 11:13:16.276 # Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with ‘noeviction’ policy now.
11:13:16 redis_socketio.1 | .
11:13:16 redis_socketio.1 | .-__ ''-._ 11:13:16 redis_socketio.1 | _.- . . ‘’-.
Redis 2.8.4 (00000000/0) 32 bit
11:13:16 redis_socketio.1 | .- .-```. ```\/ _.,_ ''-._ 11:13:16 redis_socketio.1 | ( ' , .-` | `, ) Running in stand alone mode 11:13:16 redis_socketio.1 | |`-._`-...-` __...-.-.
|’_.-'| Port: 12000 11:13:16 redis_socketio.1 | | -._ ._ / _.-' | PID: 13882 11:13:16 redis_socketio.1 | -._ -._ -./ .-’ .-’
11:13:16 redis_socketio.1 | |-._-.
-.__.-' _.-'_.-'| 11:13:16 redis_socketio.1 | | -.
-._ _.-'_.-' | http://redis.io 11:13:16 redis_socketio.1 | -._ -._-..-'.-’ .-’
11:13:16 redis_socketio.1 | |-._-.
-.__.-' _.-'_.-'| 11:13:16 redis_socketio.1 | | -.
-._ _.-'_.-' | 11:13:16 redis_socketio.1 | -._ -._-.
.-‘.-’ .-’
11:13:16 redis_socketio.1 | -._ -..-’ _.-’
11:13:16 redis_socketio.1 | -._ _.-' 11:13:16 redis_socketio.1 | -.
.-’
11:13:16 redis_socketio.1 |
11:13:16 redis_socketio.1 | [13882] 10 Jul 11:13:16.277 # Server started, Redis version 2.8.4
11:13:16 redis_socketio.1 | [13882] 10 Jul 11:13:16.277 # 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.
11:13:16 redis_socketio.1 | [13882] 10 Jul 11:13:16.277 * The server is now ready to accept connections on port 12000
11:13:16 system | socketio.1 started (pid=13889)
11:13:16 system | worker_short.1 started (pid=13899)
11:13:16 system | redis_cache.1 started (pid=13887)
11:13:16 redis_cache.1 | [13890] 10 Jul 11:13:16.282 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
11:13:16 redis_cache.1 | .
11:13:16 redis_cache.1 | .-__ ''-._ 11:13:16 redis_cache.1 | _.- . . ‘’-.
Redis 2.8.4 (00000000/0) 32 bit
11:13:16 redis_cache.1 | .- .-```. ```\/ _.,_ ''-._ 11:13:16 redis_cache.1 | ( ' , .-` | `, ) Running in stand alone mode 11:13:16 redis_cache.1 | |`-._`-...-` __...-.-.
|’_.-'| Port: 13000 11:13:16 redis_cache.1 | | -._ ._ / _.-' | PID: 13890 11:13:16 redis_cache.1 | -._ -._ -./ .-’ .-’
11:13:16 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 11:13:16 redis_cache.1 | | -.
-._ _.-'_.-' | http://redis.io 11:13:16 redis_cache.1 | -._ -._-..-'.-’ .-’
11:13:16 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 11:13:16 redis_cache.1 | | -.
-._ _.-'_.-' | 11:13:16 redis_cache.1 | -._ -._-.
.-‘.-’ .-’
11:13:16 redis_cache.1 | -._ -..-’ _.-’
11:13:16 redis_cache.1 | -._ _.-' 11:13:16 redis_cache.1 | -.
.-’
11:13:16 redis_cache.1 |
11:13:16 redis_cache.1 | [13890] 10 Jul 11:13:16.283 # Server started, Redis version 2.8.4
11:13:16 redis_cache.1 | [13890] 10 Jul 11:13:16.283 # 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.
11:13:16 redis_cache.1 | [13890] 10 Jul 11:13:16.283 * The server is now ready to accept connections on port 13000
11:13:16 system | schedule.1 started (pid=13898)
11:13:16 system | watch.1 started (pid=13884)
11:13:16 system | web.1 started (pid=13900)
11:13:16 socketio.1 | /home/js20/frappe-bench/node_modules/socket.io/node_modules/engine.io/node_modules/ws/index.js:9
11:13:16 socketio.1 | const WebSocket = require(‘./lib/WebSocket’);
11:13:16 socketio.1 | ^^^^^
11:13:16 socketio.1 | SyntaxError: Use of const in strict mode.
11:13:16 socketio.1 | at exports.runInThisContext (vm.js:73:16)
11:13:16 socketio.1 | at Module.compile (module.js:443:25)
11:13:16 socketio.1 | at Object.Module.extensions…js (module.js:478:10)
11:13:16 socketio.1 | at Module.load (module.js:355:32)
11:13:16 socketio.1 | at Function.Module.load (module.js:310:12)
11:13:16 socketio.1 | at Module.require (module.js:365:17)
11:13:16 socketio.1 | at require (module.js:384:17)
11:13:16 socketio.1 | at Server.init (/home/js20/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:119:16)
11:13:16 socketio.1 | at new Server (/home/js20/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:65:8)
11:13:16 socketio.1 | at Function.attach (/home/js20/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/engine.io.js:123:16)
11:13:16 system | socketio.1 stopped (rc=1)
11:13:16 system | sending SIGTERM to redis_socketio.1 (pid 13872)
11:13:16 system | sending SIGTERM to worker_long.1 (pid 13876)
11:13:16 system | sending SIGTERM to watch.1 (pid 13884)
11:13:16 system | sending SIGTERM to redis_queue.1 (pid 13877)
11:13:16 system | sending SIGTERM to web.1 (pid 13900)
11:13:16 system | sending SIGTERM to schedule.1 (pid 13898)
11:13:16 system | sending SIGTERM to worker_default.1 (pid 13886)
11:13:16 system | sending SIGTERM to redis_cache.1 (pid 13887)
11:13:16 system | sending SIGTERM to worker_short.1 (pid 13899)
11:13:16 redis_socketio.1 | [13882 | signal handler] (1499665396) Received SIGTERM, scheduling shutdown…
11:13:16 system | web.1 stopped (rc=-15)
11:13:16 redis_queue.1 | [13888 | signal handler] (1499665396) Received SIGTERM, scheduling shutdown…
11:13:16 system | worker_short.1 stopped (rc=-15)
11:13:16 system | worker_default.1 stopped (rc=-15)
11:13:16 system | worker_long.1 stopped (rc=-15)
11:13:16 system | watch.1 stopped (rc=-15)
11:13:16 redis_cache.1 | [13890 | signal handler] (1499665396) Received SIGTERM, scheduling shutdown…
11:13:16 system | schedule.1 stopped (rc=-15)
11:13:16 redis_socketio.1 | [13882] 10 Jul 11:13:16.677 # User requested shutdown…
11:13:16 redis_socketio.1 | [13882] 10 Jul 11:13:16.677 # Redis is now ready to exit, bye bye…
11:13:16 system | redis_socketio.1 stopped (rc=-15)
11:13:16 redis_queue.1 | [13888] 10 Jul 11:13:16.678 # User requested shutdown…
11:13:16 redis_queue.1 | [13888] 10 Jul 11:13:16.678 # Redis is now ready to exit, bye bye…
11:13:16 system | redis_queue.1 stopped (rc=-15)
11:13:16 redis_cache.1 | [13890] 10 Jul 11:13:16.683 # User requested shutdown…
11:13:16 redis_cache.1 | [13890] 10 Jul 11:13:16.683 # Redis is now ready to exit, bye bye…
11:13:16 system | redis_cache.1 stopped (rc=-15)
js20@js20:~$ lsof -ti:11000 | xargs kill -9
js20@js20:~$ lsof -ti:12000 | xargs kill -9
js20@js20:~$ lsof -ti:13000 | xargs kill -9
js20@js20:~$ bench start
11:15:04 system | watch.1 started (pid=13992)
11:15:04 system | redis_queue.1 started (pid=13999)
11:15:04 system | worker_long.1 started (pid=13988)
11:15:04 redis_queue.1 | [14001] 10 Jul 11:15:04.135 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
11:15:04 redis_queue.1 | [14001] 10 Jul 11:15:04.135 # Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with ‘noeviction’ policy now.
11:15:04 redis_queue.1 | .
11:15:04 redis_queue.1 | .-__ ''-._ 11:15:04 redis_queue.1 | _.- . . ‘’-.
Redis 2.8.4 (00000000/0) 32 bit
11:15:04 redis_queue.1 | .- .-```. ```\/ _.,_ ''-._ 11:15:04 redis_queue.1 | ( ' , .-` | `, ) Running in stand alone mode 11:15:04 redis_queue.1 | |`-._`-...-` __...-.-.
|'_.-'| Port: 11000 11:15:04 redis_queue.1 | | -.
._ / _.-' | PID: 14001 11:15:04 redis_queue.1 | -.
-._ -./ .-’ .-’
11:15:04 redis_queue.1 | |-._-.
-.__.-' _.-'_.-'| 11:15:04 redis_queue.1 | | -.
-._ _.-'_.-' | http://redis.io 11:15:04 redis_queue.1 | -.
-._-..-'.-’ .-’
11:15:04 redis_queue.1 | |-._-.
-.__.-' _.-'_.-'| 11:15:04 redis_queue.1 | | -.
-._ _.-'_.-' | 11:15:04 redis_queue.1 | -._ -._-.
.-’.-’ .-’
11:15:04 redis_queue.1 | -._ -..-’ _.-’
11:15:04 redis_queue.1 | -._ _.-' 11:15:04 redis_queue.1 | -.
.-’
11:15:04 redis_queue.1 |
11:15:04 redis_queue.1 | [14001] 10 Jul 11:15:04.135 # Server started, Redis version 2.8.4
11:15:04 redis_queue.1 | [14001] 10 Jul 11:15:04.135 # 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.
11:15:04 redis_queue.1 | [14001] 10 Jul 11:15:04.135 * The server is now ready to accept connections on port 11000
11:15:04 system | web.1 started (pid=13993)
11:15:04 system | redis_socketio.1 started (pid=13986)
11:15:04 redis_socketio.1 | [14003] 10 Jul 11:15:04.133 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
11:15:04 redis_socketio.1 | [14003] 10 Jul 11:15:04.133 # Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with ‘noeviction’ policy now.
11:15:04 redis_socketio.1 | .
11:15:04 redis_socketio.1 | .-__ ''-._ 11:15:04 redis_socketio.1 | _.- . . ‘’-.
Redis 2.8.4 (00000000/0) 32 bit
11:15:04 redis_socketio.1 | .- .-```. ```\/ _.,_ ''-._ 11:15:04 redis_socketio.1 | ( ' , .-` | `, ) Running in stand alone mode 11:15:04 redis_socketio.1 | |`-._`-...-` __...-.-.
|‘_.-'| Port: 12000 11:15:04 redis_socketio.1 | | -._ ._ / _.-' | PID: 14003 11:15:04 redis_socketio.1 | -._ -._ -./ .-’ .-’
11:15:04 redis_socketio.1 | |-._-.
-.__.-' _.-'_.-'| 11:15:04 redis_socketio.1 | | -.
-._ _.-'_.-' | http://redis.io 11:15:04 redis_socketio.1 | -._ -._-..-'.-’ .-’
11:15:04 redis_socketio.1 | |-._-.
-.__.-' _.-'_.-'| 11:15:04 redis_socketio.1 | | -.
-._ _.-'_.-' | 11:15:04 redis_socketio.1 | -._ -._-.
.-’.-’ .-’
11:15:04 redis_socketio.1 | -._ -..-’ _.-’
11:15:04 redis_socketio.1 | -._ _.-' 11:15:04 redis_socketio.1 | -.
.-’
11:15:04 redis_socketio.1 |
11:15:04 redis_socketio.1 | [14003] 10 Jul 11:15:04.134 # Server started, Redis version 2.8.4
11:15:04 redis_socketio.1 | [14003] 10 Jul 11:15:04.134 # 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.
11:15:04 redis_socketio.1 | [14003] 10 Jul 11:15:04.134 * The server is now ready to accept connections on port 12000
11:15:04 system | worker_short.1 started (pid=14015)
11:15:04 system | redis_cache.1 started (pid=14022)
11:15:04 redis_cache.1 | [14023] 10 Jul 11:15:04.159 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
11:15:04 redis_cache.1 | .
11:15:04 redis_cache.1 | .-__ ''-._ 11:15:04 redis_cache.1 | _.- . . ‘’-.
Redis 2.8.4 (00000000/0) 32 bit
11:15:04 redis_cache.1 | .- .-```. ```\/ _.,_ ''-._ 11:15:04 redis_cache.1 | ( ' , .-` | `, ) Running in stand alone mode 11:15:04 redis_cache.1 | |`-._`-...-` __...-.-.
|‘_.-'| Port: 13000 11:15:04 redis_cache.1 | | -._ ._ / _.-' | PID: 14023 11:15:04 redis_cache.1 | -._ -._ -./ .-’ .-’
11:15:04 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 11:15:04 redis_cache.1 | | -.
-._ _.-'_.-' | http://redis.io 11:15:04 redis_cache.1 | -._ -._-..-'.-’ .-’
11:15:04 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 11:15:04 redis_cache.1 | | -.
-._ _.-'_.-' | 11:15:04 redis_cache.1 | -._ -._-.
.-’_.-’ _.-’
11:15:04 redis_cache.1 | -._ -..-’ _.-’
11:15:04 redis_cache.1 | -._ _.-' 11:15:04 redis_cache.1 | -.
.-’
11:15:04 redis_cache.1 |
11:15:04 redis_cache.1 | [14023] 10 Jul 11:15:04.160 # Server started, Redis version 2.8.4
11:15:04 redis_cache.1 | [14023] 10 Jul 11:15:04.160 # 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.
11:15:04 redis_cache.1 | [14023] 10 Jul 11:15:04.160 * The server is now ready to accept connections on port 13000
11:15:04 system | socketio.1 started (pid=14007)
11:15:04 system | schedule.1 started (pid=14004)
11:15:04 system | worker_default.1 started (pid=14005)
11:15:04 socketio.1 | /home/js20/frappe-bench/node_modules/socket.io/node_modules/engine.io/node_modules/ws/index.js:9
11:15:04 socketio.1 | const WebSocket = require(‘./lib/WebSocket’);
11:15:04 socketio.1 | ^^^^^
11:15:04 socketio.1 | SyntaxError: Use of const in strict mode.
11:15:04 socketio.1 | at exports.runInThisContext (vm.js:73:16)
11:15:04 socketio.1 | at Module._compile (module.js:443:25)
11:15:04 socketio.1 | at Object.Module._extensions…js (module.js:478:10)
11:15:04 socketio.1 | at Module.load (module.js:355:32)
11:15:04 socketio.1 | at Function.Module._load (module.js:310:12)
11:15:04 socketio.1 | at Module.require (module.js:365:17)
11:15:04 socketio.1 | at require (module.js:384:17)
11:15:04 socketio.1 | at Server.init (/home/js20/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:119:16)
11:15:04 socketio.1 | at new Server (/home/js20/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:65:8)
11:15:04 socketio.1 | at Function.attach (/home/js20/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/engine.io.js:123:16)
11:15:04 system | socketio.1 stopped (rc=1)
11:15:04 system | sending SIGTERM to redis_socketio.1 (pid 13986)
11:15:04 system | sending SIGTERM to worker_long.1 (pid 13988)
11:15:04 system | sending SIGTERM to watch.1 (pid 13992)
11:15:04 system | sending SIGTERM to redis_queue.1 (pid 13999)
11:15:04 system | sending SIGTERM to web.1 (pid 13993)
11:15:04 system | sending SIGTERM to schedule.1 (pid 14004)
11:15:04 system | sending SIGTERM to worker_default.1 (pid 14005)
11:15:04 system | sending SIGTERM to redis_cache.1 (pid 14022)
11:15:04 system | sending SIGTERM to worker_short.1 (pid 14015)
11:15:04 redis_socketio.1 | [14003 | signal handler] (1499665504) Received SIGTERM, scheduling shutdown…
11:15:04 system | worker_long.1 stopped (rc=-15)
11:15:04 redis_queue.1 | [14001 | signal handler] (1499665504) Received SIGTERM, scheduling shutdown…
11:15:04 system | watch.1 stopped (rc=-15)
11:15:04 system | web.1 stopped (rc=-15)
11:15:04 system | worker_short.1 stopped (rc=-15)
11:15:04 system | schedule.1 stopped (rc=-15)
11:15:04 redis_cache.1 | [14023 | signal handler] (1499665504) Received SIGTERM, scheduling shutdown…
11:15:04 system | worker_default.1 stopped (rc=-15)
11:15:04 redis_cache.1 | [14023] 10 Jul 11:15:04.560 # User requested shutdown…
11:15:04 redis_cache.1 | [14023] 10 Jul 11:15:04.560 # Redis is now ready to exit, bye bye…
11:15:04 system | redis_cache.1 stopped (rc=-15)
11:15:04 redis_socketio.1 | [14003] 10 Jul 11:15:04.634 # User requested shutdown…
11:15:04 redis_socketio.1 | [14003] 10 Jul 11:15:04.634 # Redis is now ready to exit, bye bye…
11:15:04 system | redis_socketio.1 stopped (rc=-15)
11:15:04 redis_queue.1 | [14001] 10 Jul 11:15:04.637 # User requested shutdown…
11:15:04 redis_queue.1 | [14001] 10 Jul 11:15:04.637 # Redis is now ready to exit, bye bye…

Have you did any local changes? If yes there is an issue with the code, fix the code and run the bench start again

no i didn’t

same error again come

Did you try restarting your server and then running bench start?

Welcome vijay,

The log reports this error:
11:15:04 socketio.1 | /home/js20/frappe-bench/node_modules/socket.io/node_modules/engine.io/node_modules/ws/index.js:9
11:15:04 socketio.1 | const WebSocket = require(‘./lib/WebSocket’);
11:15:04 socketio.1 | ^^^^^
11:15:04 socketio.1 | SyntaxError: Use of const in strict mode.
11:15:04 socketio.1 | at exports.runInThisContext (vm.js:73:16)
11:15:04 socketio.1 | at Module._compile (module.js:443:25)
11:15:04 socketio.1 | at Object.Module._extensions…js (module.js:478:10)
11:15:04 socketio.1 | at Module.load (module.js:355:32)
11:15:04 socketio.1 | at Function.Module._load (module.js:310:12)
11:15:04 socketio.1 | at Module.require (module.js:365:17)
11:15:04 socketio.1 | at require (module.js:384:17)
11:15:04 socketio.1 | at Server.init (/home/js20/frappe-bench/node_modules/socket.io/node_modules/engine.io/lib/server.js:119:16)

A forum search on ‘SyntaxError: Use of const in strict mode’ will give pointers to reinstall nodejs.

Hope this helps,

John

@vijay_khut Please has this issue be resolved?, i have the same problem
@clarkej i have reinstalled node.js, still having the same issue
thanks

Another search turned up reports in January that may give you pointers.

What version are you on?

What Linux environment?

@clarkej
I am using bench 4.1.10
i am using ubuntu linux 16.04

Please post the result from ‘bench version’

hi @clarkej i have attached the screen shot
i have also attached the ‘bench start’ error for further clarification