Benchstart not working

when i write bench start it brings this message and my system is not working?
07:54:08 system | worker_long.1 started (pid=3040)
07:54:08 system | watch.1 started (pid=3042)
07:54:08 system | schedule.1 started (pid=3051)
07:54:08 system | redis_socketio.1 started (pid=3039)
07:54:08 redis_socketio.1 | [3048] 22 Sep 07:54:08.394 # Fatal error, can’t open config file ‘config/redis_socketio.conf’
07:54:08 system | redis_socketio.1 stopped (rc=1)
07:54:08 system | web.1 started (pid=3046)
07:54:08 system | worker_short.1 started (pid=3066)
07:54:08 system | redis_queue.1 started (pid=3044)
07:54:08 redis_queue.1 | [3058] 22 Sep 07:54:08.396 # Fatal error, can’t open config file ‘config/redis_queue.conf’
07:54:08 system | redis_queue.1 stopped (rc=1)
07:54:08 system | worker_default.1 started (pid=3057)
07:54:08 system | redis_cache.1 started (pid=3059)
07:54:08 redis_cache.1 | [3070] 22 Sep 07:54:08.399 # Fatal error, can’t open config file ‘config/redis_cache.conf’
07:54:08 system | redis_cache.1 stopped (rc=1)
07:54:08 system | socketio.1 started (pid=3065)
07:54:08 system | sending SIGTERM to worker_long.1 (pid 3040)
07:54:08 system | sending SIGTERM to watch.1 (pid 3042)
07:54:08 system | sending SIGTERM to web.1 (pid 3046)
07:54:08 system | sending SIGTERM to schedule.1 (pid 3051)
07:54:08 system | sending SIGTERM to worker_default.1 (pid 3057)
07:54:08 system | sending SIGTERM to socketio.1 (pid 3065)
07:54:08 system | sending SIGTERM to worker_short.1 (pid 3066)
07:54:08 system | worker_long.1 stopped (rc=-15)
07:54:08 system | watch.1 stopped (rc=-15)
07:54:08 system | web.1 stopped (rc=-15)
07:54:08 system | schedule.1 stopped (rc=-15)
07:54:08 system | socketio.1 stopped (rc=-15)
07:54:08 system | worker_default.1 stopped (rc=-15)
07:54:08 system | worker_short.1 stopped (rc=-15)

what shall i do please?i have restarted the pc but not working it brings this error messages again

@fikerjayz,

8000 port is being used by supervisor you will need to stop supervisor first and then try bench start
try,
sudo supervisorctl stop all
bench start

4 Likes

@makarand_b thanks for your replay but its saying the system doesnot know the command
sudo supervisorctl
thanks

1 Like

@makarand_b now it accepts the command but still not working
neham@neham-server:~$ sudo supervisorctl stop all
[sudo] password for neham:
neham@neham-server:~$ bench start
08:20:11 system | watch.1 started (pid=4534)
08:20:11 system | redis_socketio.1 started (pid=4530)
08:20:11 redis_socketio.1 | [4538] 22 Sep 08:20:11.323 # Fatal error, can’t open config file ‘config/redis_socketio.conf’
08:20:11 system | redis_socketio.1 stopped (rc=1)
08:20:11 system | worker_long.1 started (pid=4532)
08:20:11 system | worker_short.1 started (pid=4554)
08:20:11 system | socketio.1 started (pid=4551)
08:20:11 system | redis_cache.1 started (pid=4553)
08:20:11 system | worker_default.1 started (pid=4552)
08:20:11 system | schedule.1 started (pid=4544)
08:20:11 system | web.1 started (pid=4546)
08:20:11 system | redis_queue.1 started (pid=4536)
08:20:11 system | sending SIGTERM to worker_long.1 (pid 4532)
08:20:11 system | sending SIGTERM to watch.1 (pid 4534)
08:20:11 system | sending SIGTERM to redis_queue.1 (pid 4536)
08:20:11 system | sending SIGTERM to web.1 (pid 4546)
08:20:11 system | sending SIGTERM to schedule.1 (pid 4544)
08:20:11 system | sending SIGTERM to worker_default.1 (pid 4552)
08:20:11 system | sending SIGTERM to socketio.1 (pid 4551)
08:20:11 system | sending SIGTERM to redis_cache.1 (pid 4553)
08:20:11 system | sending SIGTERM to worker_short.1 (pid 4554)
08:20:11 redis_queue.1 | [4548] 22 Sep 08:20:11.323 # Fatal error, can’t open config file ‘config/redis_queue.conf’
08:20:11 system | redis_queue.1 stopped (rc=1)
08:20:11 system | worker_long.1 stopped (rc=-15)
08:20:11 system | watch.1 stopped (rc=-15)
08:20:11 system | schedule.1 stopped (rc=-15)
08:20:11 redis_cache.1 | [4560] 22 Sep 08:20:11.330 # Fatal error, can’t open config file ‘config/redis_cache.conf’
08:20:11 system | worker_default.1 stopped (rc=-15)
08:20:11 system | socketio.1 stopped (rc=-15)
08:20:11 system | web.1 stopped (rc=-15)
08:20:11 system | redis_cache.1 stopped (rc=-15)
08:20:11 system | worker_short.1 stopped (rc=-15)
neham@neham-server:~$

Can you run bench setup redis and run bench start again?

3 Likes

@KanchanChauhan thanks for your replay,but its bringing this message when i try it
neham@neham-server:~$ bench setup redis
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==4.1.0’, ‘console_scripts’, ‘bench’)()
File “/home/neham/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/neham/bench-repo/bench/commands/setup.py”, line 41, in setup_redis
generate_config(‘.’)
File “/home/neham/bench-repo/bench/config/redis.py”, line 10, in generate_config
ports[key] = urlparse.urlparse(config[key]).port
KeyError: ‘redis_cache’
neham@neham-server:~$

@fikerjayz

You will need to run this command from frappe-bench folder. It seems you are trying to execute from your HOME(~) folder. Please try running the following command from frappe-bench.

Hope this helps you :slight_smile:

1 Like

@shreyasp thanks for your replay,but please guide me how can i run this command from bench folder?
thanks in advance!

@shreyasp it brings this message,not working
neham@neham-server:~$ /frappe-bench$ bench setup redis
bash: /frappe-bench$: No such file or directory
neham@neham-server:~$

  • cd frappe-bench
  • bench setup redis

@shreyasp & @KanchanChauhan thanks for your replays
it brings this message
neham@neham-server:~$ cd frappe-bench
neham@neham-server:~/frappe-bench$ bench setup redis
neham@neham-server:~/frappe-bench$ bench start
08:51:47 system | redis_socketio.1 started (pid=4494)
08:51:47 redis_socketio.1 | [4501] 23 Sep 08:51:47.015 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
08:51:47 redis_socketio.1 | [4501] 23 Sep 08:51:47.015 # Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with ‘noeviction’ policy now.
08:51:47 redis_socketio.1 | .
08:51:47 redis_socketio.1 | .-__ ''-._ 08:51:47 redis_socketio.1 | _.- . . ‘’-._ Redis 2.8.4 (00000000/0) 32 bit
08:51:47 redis_socketio.1 | .- .-```. ```\/ _.,_ ''-._ 08:51:47 redis_socketio.1 | ( ' , .-` | `, ) Running in stand alone mode 08:51:47 redis_socketio.1 | |`-._`-...-` __...-.-.|'_.-'| Port: 12000 08:51:47 redis_socketio.1 | | -. ._ / _.-' | PID: 4501 08:51:47 redis_socketio.1 | -._ -._ -./ .-’ .-’
08:51:47 redis_socketio.1 | |-._-.
-.__.-' _.-'_.-'| 08:51:47 redis_socketio.1 | | -.
-._ _.-'_.-' | http://redis.io 08:51:47 redis_socketio.1 | -._ -._-..-'.-’ .-’
08:51:47 redis_socketio.1 | |-._-.
-.__.-' _.-'_.-'| 08:51:47 redis_socketio.1 | | -.
-._ _.-'_.-' | 08:51:47 redis_socketio.1 | -._ -._-.
.-‘.-’ .-’
08:51:47 redis_socketio.1 | -._ -..-’ _.-’
08:51:47 redis_socketio.1 | -._ _.-' 08:51:47 redis_socketio.1 | -.
.-’
08:51:47 redis_socketio.1 |
08:51:47 redis_socketio.1 | [4501] 23 Sep 08:51:47.016 # Server started, Redis version 2.8.4
08:51:47 redis_socketio.1 | [4501] 23 Sep 08:51:47.016 # 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.
08:51:47 redis_socketio.1 | [4501] 23 Sep 08:51:47.016 * The server is now ready to accept connections on port 12000
08:51:47 system | web.1 started (pid=4502)
08:51:47 system | socketio.1 started (pid=4514)
08:51:47 system | worker_long.1 started (pid=4498)
08:51:47 system | redis_queue.1 started (pid=4512)
08:51:47 redis_queue.1 | [4520] 23 Sep 08:51:47.039 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
08:51:47 redis_queue.1 | [4520] 23 Sep 08:51:47.039 # Warning: 32 bit instance detected but no memory limit set. Setting 3 GB maxmemory limit with ‘noeviction’ policy now.
08:51:47 redis_queue.1 | .
08:51:47 redis_queue.1 | .-__ ''-._ 08:51:47 redis_queue.1 | _.- . . ‘’-.
Redis 2.8.4 (00000000/0) 32 bit
08:51:47 redis_queue.1 | .- .-```. ```\/ _.,_ ''-._ 08:51:47 redis_queue.1 | ( ' , .-` | `, ) Running in stand alone mode 08:51:47 redis_queue.1 | |`-._`-...-` __...-.-.
|’_.-'| Port: 11000 08:51:47 redis_queue.1 | | -._ ._ / _.-' | PID: 4520 08:51:47 redis_queue.1 | -._ -._ -./ .-’ .-’
08:51:47 redis_queue.1 | |-._-.
-.__.-' _.-'_.-'| 08:51:47 redis_queue.1 | | -.
-._ _.-'_.-' | http://redis.io 08:51:47 redis_queue.1 | -._ -._-..-'.-’ .-’
08:51:47 redis_queue.1 | |-._-.
-.__.-' _.-'_.-'| 08:51:47 redis_queue.1 | | -.
-._ _.-'_.-' | 08:51:47 redis_queue.1 | -._ -._-.
.-‘.-’ .-’
08:51:47 redis_queue.1 | -._ -..-’ _.-’
08:51:47 redis_queue.1 | -._ _.-' 08:51:47 redis_queue.1 | -.
.-’
08:51:47 redis_queue.1 |
08:51:47 redis_queue.1 | [4520] 23 Sep 08:51:47.040 # Server started, Redis version 2.8.4
08:51:47 redis_queue.1 | [4520] 23 Sep 08:51:47.040 # 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.
08:51:47 redis_queue.1 | [4520] 23 Sep 08:51:47.040 * The server is now ready to accept connections on port 11000
08:51:47 system | watch.1 started (pid=4511)
08:51:47 system | schedule.1 started (pid=4513)
08:51:47 system | redis_cache.1 started (pid=4515)
08:51:47 redis_cache.1 | [4531] 23 Sep 08:51:47.073 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
08:51:47 redis_cache.1 | .
08:51:47 redis_cache.1 | .-__ ''-._ 08:51:47 redis_cache.1 | _.- . . ‘’-.
Redis 2.8.4 (00000000/0) 32 bit
08:51:47 redis_cache.1 | .- .-```. ```\/ _.,_ ''-._ 08:51:47 redis_cache.1 | ( ' , .-` | `, ) Running in stand alone mode 08:51:47 redis_cache.1 | |`-._`-...-` __...-.-.
|’_.-'| Port: 13000 08:51:47 redis_cache.1 | | -._ ._ / _.-' | PID: 4531 08:51:47 redis_cache.1 | -._ -._ -./ .-’ .-’
08:51:47 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 08:51:47 redis_cache.1 | | -.
-._ _.-'_.-' | http://redis.io 08:51:47 redis_cache.1 | -._ -._-..-'.-’ .-’
08:51:47 redis_cache.1 | |-._-.
-.__.-' _.-'_.-'| 08:51:47 redis_cache.1 | | -.
-._ _.-'_.-' | 08:51:47 redis_cache.1 | -._ -._-.
.-‘_.-’ _.-’
08:51:47 redis_cache.1 | -._ -..-’ _.-’
08:51:47 redis_cache.1 | -._ _.-' 08:51:47 redis_cache.1 | -.
.-’
08:51:47 redis_cache.1 |
08:51:47 redis_cache.1 | [4531] 23 Sep 08:51:47.073 # Server started, Redis version 2.8.4
08:51:47 redis_cache.1 | [4531] 23 Sep 08:51:47.073 # 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.
08:51:47 redis_cache.1 | [4531] 23 Sep 08:51:47.073 * The server is now ready to accept connections on port 13000
08:51:47 system | worker_default.1 started (pid=4508)
08:51:47 system | worker_short.1 started (pid=4530)
08:51:48 worker_default.1 | Usage: bench [OPTIONS] COMMAND [ARGS]…
08:51:48 worker_default.1 |
08:51:48 worker_default.1 | Error: No such command “worker”.
08:51:48 web.1 | Usage: bench [OPTIONS] COMMAND [ARGS]…
08:51:48 web.1 |
08:51:48 web.1 | Error: No such command “serve”.
08:51:48 schedule.1 | Usage: bench [OPTIONS] COMMAND [ARGS]…
08:51:48 schedule.1 |
08:51:48 schedule.1 | Error: No such command “schedule”.
08:51:48 system | worker_default.1 stopped (rc=2)
08:51:48 system | sending SIGTERM to redis_socketio.1 (pid 4494)
08:51:48 system | sending SIGTERM to worker_long.1 (pid 4498)
08:51:48 system | sending SIGTERM to watch.1 (pid 4511)
08:51:48 system | sending SIGTERM to redis_queue.1 (pid 4512)
08:51:48 system | sending SIGTERM to web.1 (pid 4502)
08:51:48 system | sending SIGTERM to schedule.1 (pid 4513)
08:51:48 system | sending SIGTERM to socketio.1 (pid 4514)
08:51:48 system | sending SIGTERM to redis_cache.1 (pid 4515)
08:51:48 system | sending SIGTERM to worker_short.1 (pid 4530)
08:51:48 worker_short.1 | Usage: bench [OPTIONS] COMMAND [ARGS]…
08:51:48 worker_short.1 |
08:51:48 worker_short.1 | Error: No such command “worker”.
08:51:48 redis_socketio.1 | [4501 | signal handler] (1474609908) Received SIGTERM, scheduling shutdown…
08:51:48 redis_cache.1 | [4531 | signal handler] (1474609908) Received SIGTERM, scheduling shutdown…
08:51:48 redis_cache.1 | [4531] 23 Sep 08:51:48.087 # User requested shutdown…
08:51:48 redis_cache.1 | [4531] 23 Sep 08:51:48.087 # Redis is now ready to exit, bye bye…
08:51:48 system | redis_cache.1 stopped (rc=-15)
08:51:48 system | worker_long.1 stopped (rc=-15)
08:51:48 system | web.1 stopped (rc=-15)
08:51:48 redis_queue.1 | [4520 | signal handler] (1474609908) Received SIGTERM, scheduling shutdown…
08:51:48 system | watch.1 stopped (rc=-15)
08:51:48 system | worker_short.1 stopped (rc=-15)
08:51:48 system | schedule.1 stopped (rc=-15)
08:51:48 system | socketio.1 stopped (rc=-15)
08:51:48 redis_socketio.1 | [4501] 23 Sep 08:51:48.118 # User requested shutdown…
08:51:48 redis_socketio.1 | [4501] 23 Sep 08:51:48.118 # Redis is now ready to exit, bye bye…
08:51:48 system | redis_socketio.1 stopped (rc=-15)
08:51:48 redis_queue.1 | [4520] 23 Sep 08:51:48.141 # User requested shutdown…
08:51:48 redis_queue.1 | [4520] 23 Sep 08:51:48.141 # Redis is now ready to exit, bye bye…
08:51:48 system | redis_queue.1 stopped (rc=-15)
neham@neham-server:~/frappe-bench$

thanks in advance for your helps

also i was trying to change sysctl.conf file but its saying permission denied by my account is administrator,what shall i do please?

@fikerjayz

Update your repo for bench to get these commands serve and worker which are introduced with release bench version 4.0

Please execute git pull in your bench repo


I am running in frappe-bench folder only, still getting same error

sudo supervisorctl stop all
bench start

bench setup redis
bench start

I have tried all the above commands,still getting same error.