Bench Start Not Working...!

Hello,

I am not able to run the setup using bench start

Here is the traceback…

11:57:02 system           | watch.1 started (pid=6023)
11:57:02 system           | redis_socketio.1 started (pid=6019)
11:57:02 redis_socketio.1 | 6026:M 27 Apr 11:57:02.003 * Increased maximum number of open files to 10032 (it was originally set to 1024).
11:57:02 redis_socketio.1 |                 _._                                                  
11:57:02 redis_socketio.1 |            _.-``__ ''-._                                             
11:57:02 redis_socketio.1 |       _.-``    `.  `_.  ''-._           Redis 3.0.6 (00000000/0) 64 bit
11:57:02 redis_socketio.1 |   .-`` .-```.  ```\/    _.,_ ''-._                                   
11:57:02 redis_socketio.1 |  (    '      ,       .-`  | `,    )     Running in standalone mode
11:57:02 redis_socketio.1 |  |`-._`-...-` __...-.``-._|'` _.-'|     Port: 12000
11:57:02 redis_socketio.1 |  |    `-._   `._    /     _.-'    |     PID: 6026
11:57:02 redis_socketio.1 |   `-._    `-._  `-./  _.-'    _.-'                                   
11:57:02 redis_socketio.1 |  |`-._`-._    `-.__.-'    _.-'_.-'|                                  
11:57:02 redis_socketio.1 |  |    `-._`-._        _.-'_.-'    |           http://redis.io        
11:57:02 redis_socketio.1 |   `-._    `-._`-.__.-'_.-'    _.-'                                   
11:57:02 redis_socketio.1 |  |`-._`-._    `-.__.-'    _.-'_.-'|                                  
11:57:02 redis_socketio.1 |  |    `-._`-._        _.-'_.-'    |                                  
11:57:02 redis_socketio.1 |   `-._    `-._`-.__.-'_.-'    _.-'                                   
11:57:02 redis_socketio.1 |       `-._    `-.__.-'    _.-'                                       
11:57:02 redis_socketio.1 |           `-._        _.-'                                           
11:57:02 redis_socketio.1 |               `-.__.-'                                               
11:57:02 redis_socketio.1 | 
11:57:02 redis_socketio.1 | 6026:M 27 Apr 11:57:02.004 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
11:57:02 redis_socketio.1 | 6026:M 27 Apr 11:57:02.004 # Server started, Redis version 3.0.6
11:57:02 redis_socketio.1 | 6026:M 27 Apr 11:57:02.004 # 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:57:02 redis_socketio.1 | 6026:M 27 Apr 11:57:02.004 # 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.
11:57:02 redis_socketio.1 | 6026:M 27 Apr 11:57:02.005 * The server is now ready to accept connections on port 12000
11:57:02 system           | redis_queue.1 started (pid=6025)
11:57:02 redis_queue.1    | 6031:M 27 Apr 11:57:02.014 * Increased maximum number of open files to 10032 (it was originally set to 1024).
11:57:02 redis_queue.1    |                 _._                                                  
11:57:02 redis_queue.1    |            _.-``__ ''-._                                             
11:57:02 redis_queue.1    |       _.-``    `.  `_.  ''-._           Redis 3.0.6 (00000000/0) 64 bit
11:57:02 redis_queue.1    |   .-`` .-```.  ```\/    _.,_ ''-._                                   
11:57:02 redis_queue.1    |  (    '      ,       .-`  | `,    )     Running in standalone mode
11:57:02 redis_queue.1    |  |`-._`-...-` __...-.``-._|'` _.-'|     Port: 11000
11:57:02 redis_queue.1    |  |    `-._   `._    /     _.-'    |     PID: 6031
11:57:02 redis_queue.1    |   `-._    `-._  `-./  _.-'    _.-'                                   
11:57:02 redis_queue.1    |  |`-._`-._    `-.__.-'    _.-'_.-'|                                  
11:57:02 redis_queue.1    |  |    `-._`-._        _.-'_.-'    |           http://redis.io        
11:57:02 redis_queue.1    |   `-._    `-._`-.__.-'_.-'    _.-'                                   
11:57:02 redis_queue.1    |  |`-._`-._    `-.__.-'    _.-'_.-'|                                  
11:57:02 redis_queue.1    |  |    `-._`-._        _.-'_.-'    |                                  
11:57:02 redis_queue.1    |   `-._    `-._`-.__.-'_.-'    _.-'                                   
11:57:02 redis_queue.1    |       `-._    `-.__.-'    _.-'                                       
11:57:02 redis_queue.1    |           `-._        _.-'                                           
11:57:02 redis_queue.1    |               `-.__.-'                                               
11:57:02 redis_queue.1    | 
11:57:02 redis_queue.1    | 6031:M 27 Apr 11:57:02.015 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
11:57:02 redis_queue.1    | 6031:M 27 Apr 11:57:02.015 # Server started, Redis version 3.0.6
11:57:02 redis_queue.1    | 6031:M 27 Apr 11:57:02.015 # 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:57:02 redis_queue.1    | 6031:M 27 Apr 11:57:02.015 # 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.
11:57:02 redis_queue.1    | 6031:M 27 Apr 11:57:02.015 * The server is now ready to accept connections on port 11000
11:57:02 system           | schedule.1 started (pid=6038)
11:57:02 system           | worker_long.1 started (pid=6021)
11:57:02 system           | socketio.1 started (pid=6043)
11:57:02 system           | web.1 started (pid=6034)
11:57:02 system           | worker_short.1 started (pid=6056)
11:57:02 system           | worker_default.1 started (pid=6059)
11:57:02 system           | redis_cache.1 started (pid=6055)
11:57:02 redis_cache.1    | 6057:M 27 Apr 11:57:02.076 * Increased maximum number of open files to 10032 (it was originally set to 1024).
11:57:02 redis_cache.1    |                 _._                                                  
11:57:02 redis_cache.1    |            _.-``__ ''-._                                             
11:57:02 redis_cache.1    |       _.-``    `.  `_.  ''-._           Redis 3.0.6 (00000000/0) 64 bit
11:57:02 redis_cache.1    |   .-`` .-```.  ```\/    _.,_ ''-._                                   
11:57:02 redis_cache.1    |  (    '      ,       .-`  | `,    )     Running in standalone mode
11:57:02 redis_cache.1    |  |`-._`-...-` __...-.``-._|'` _.-'|     Port: 13000
11:57:02 redis_cache.1    |  |    `-._   `._    /     _.-'    |     PID: 6057
11:57:02 redis_cache.1    |   `-._    `-._  `-./  _.-'    _.-'                                   
11:57:02 redis_cache.1    |  |`-._`-._    `-.__.-'    _.-'_.-'|                                  
11:57:02 redis_cache.1    |  |    `-._`-._        _.-'_.-'    |           http://redis.io        
11:57:02 redis_cache.1    |   `-._    `-._`-.__.-'_.-'    _.-'                                   
11:57:02 redis_cache.1    |  |`-._`-._    `-.__.-'    _.-'_.-'|                                  
11:57:02 redis_cache.1    |  |    `-._`-._        _.-'_.-'    |                                  
11:57:02 redis_cache.1    |   `-._    `-._`-.__.-'_.-'    _.-'                                   
11:57:02 redis_cache.1    |       `-._    `-.__.-'    _.-'                                       
11:57:02 redis_cache.1    |           `-._        _.-'                                           
11:57:02 redis_cache.1    |               `-.__.-'                                               
11:57:02 redis_cache.1    | 
11:57:02 redis_cache.1    | 6057:M 27 Apr 11:57:02.077 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
11:57:02 redis_cache.1    | 6057:M 27 Apr 11:57:02.077 # Server started, Redis version 3.0.6
11:57:02 redis_cache.1    | 6057:M 27 Apr 11:57:02.077 # 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:57:02 redis_cache.1    | 6057:M 27 Apr 11:57:02.077 # 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.
11:57:02 redis_cache.1    | 6057:M 27 Apr 11:57:02.077 * The server is now ready to accept connections on port 13000
11:57:06 web.1            |  * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
11:57:06 web.1            |  * Restarting with inotify reloader
11:57:06 worker_short.1   | Error: no such option: --quiet
11:57:06 worker_long.1    | Error: no such option: --quiet
11:57:06 system           | worker_short.1 stopped (rc=2)
11:57:06 system           | sending SIGTERM to redis_socketio.1 (pid 6019)
11:57:06 system           | sending SIGTERM to worker_long.1 (pid 6021)
11:57:06 system           | sending SIGTERM to watch.1 (pid 6023)
11:57:06 system           | sending SIGTERM to redis_queue.1 (pid 6025)
11:57:06 system           | sending SIGTERM to web.1 (pid 6034)
11:57:06 system           | sending SIGTERM to schedule.1 (pid 6038)
11:57:06 system           | sending SIGTERM to worker_default.1 (pid 6059)
11:57:06 system           | sending SIGTERM to socketio.1 (pid 6043)
11:57:06 system           | sending SIGTERM to redis_cache.1 (pid 6055)
11:57:06 redis_socketio.1 | 6026:signal-handler (1524810426) Received SIGTERM scheduling shutdown...
11:57:06 system           | worker_default.1 stopped (rc=-15)
11:57:06 system           | worker_long.1 stopped (rc=-15)
11:57:06 redis_queue.1    | 6031:signal-handler (1524810426) Received SIGTERM scheduling shutdown...
11:57:06 redis_queue.1    | 6031:M 27 Apr 11:57:06.534 # User requested shutdown...
11:57:06 redis_queue.1    | 6031:M 27 Apr 11:57:06.534 # Redis is now ready to exit, bye bye...
11:57:06 redis_cache.1    | 6057:signal-handler (1524810426) Received SIGTERM scheduling shutdown...
11:57:06 system           | schedule.1 stopped (rc=-15)
11:57:06 system           | redis_queue.1 stopped (rc=-15)
11:57:06 system           | watch.1 stopped (rc=-15)
11:57:06 system           | socketio.1 stopped (rc=-15)
11:57:06 redis_cache.1    | 6057:M 27 Apr 11:57:06.597 # User requested shutdown...
11:57:06 redis_cache.1    | 6057:M 27 Apr 11:57:06.597 # Redis is now ready to exit, bye bye...
11:57:06 system           | redis_cache.1 stopped (rc=-15)
11:57:06 system           | web.1 stopped (rc=-15)
11:57:06 redis_socketio.1 | 6026:M 27 Apr 11:57:06.624 # User requested shutdown...
11:57:06 redis_socketio.1 | 6026:M 27 Apr 11:57:06.624 # Redis is now ready to exit, bye bye...
11:57:06 system           | redis_socketio.1 stopped (rc=-15)

Are you still facing this issue?

Please check by pulling latest updates.

@Onkar_Mirajkar can you post your rq version. In the frappe-bench folder execute this command

./env/bin/rq --version

Hello @Onkar_Mirajkar,

I think some process are being used by other thread, so better is stop all the process first using below command.
sudo supervisorctl stop all
then after start the bench using :
bench start
Thanks.

1 Like

It gives output as ---- rq, version 0.10.0

No, Still not Working…!!!

@Onkar_Mirajkar is this production setup or development setup?

Check if bench serve --port 9090 is working or not?

After using the port 9090, Login screen is appearing and after entering password it only showing “verifying”

I have used production setup.

Hi @Onkar_Mirajkar, did you fixed this problem? :slight_smile:

In your procfile if you can remove --quiet from all three workers, bench start will work

1 Like

Thanks @root13F it worked!! :smiley:

1 Like