Bench Start problem

hello,
i am recently facing this problem. I am seeing the following message when i try to start the bench. Saying: "12:49:39 redis_cache.1 | [3824] 09 Nov 12:49:39.939 * Increased maximum number of open files to 10032 (it was originally set to 1024).
12:49:39 redis_cache.1 | [3824] 09 Nov 12:49:39.939 # Creating Server TCP listening socket *:11311: bind: Address already in use
"

i also tried to restart the bench but nothing happen. Please help me. I am at a fix.

the full message is given below:
bench start
12:49:39 system | workerbeat.1 started (pid=3815)
12:49:39 system | redis_cache.1 started (pid=3822)
12:49:39 system | web.1 started (pid=3821)
12:49:39 system | socketio.1 started (pid=3829)
12:49:39 system | redis_async_broker.1 started (pid=3828)
12:49:39 redis_cache.1 | [3824] 09 Nov 12:49:39.939 * Increased maximum number of open files to 10032 (it was originally set to 1024).
12:49:39 redis_cache.1 | [3824] 09 Nov 12:49:39.939 # Creating Server TCP listening socket *:11311: bind: Address already in use
12:49:39 system | redis_cache.1 stopped (rc=1)
12:49:39 system | worker.1 started (pid=3826)
12:49:39 system | sending SIGTERM to workerbeat.1 (pid 3815)
12:49:39 system | sending SIGTERM to worker.1 (pid 3826)
12:49:39 system | sending SIGTERM to web.1 (pid 3821)
12:49:39 system | sending SIGTERM to socketio.1 (pid 3829)
12:49:39 system | sending SIGTERM to redis_async_broker.1 (pid 3828)
12:49:39 system | redis_async_broker.1 stopped (rc=-15)
12:49:39 system | worker.1 stopped (rc=-15)
12:49:39 system | socketio.1 stopped (rc=-15)
12:49:39 system | workerbeat.1 stopped (rc=-15)
12:49:39 system | web.1 stopped (rc=-15)

Looks like redis process is already running, may be due to a bad shutdown of bench start.

Try checking

  1. ps aux | grep frappe
  2. ps aux | grep redis-server
1 Like

hello,
I tried to kill the processes which were running but still no progress. Is there any way to complete force shutdown the frappe-bench and start from the start ???

thanks in advance
biozid bostami

Are you also using production setup?

Can you share the output of those 2 commands?

Best,
Anand Doshi

ERPNext

ps aux | grep frappe
biozid 6992 0.0 0.4 64832 17148 ? S 14:37 0:00 /home/biozid/frappe-bench/env/bin/python /home/biozid/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 2 -t 120 frappe.app:application
biozid 7012 0.0 1.0 681016 40556 ? Sl 14:38 0:00 /usr/bin/nodejs /home/biozid/frappe-bench/apps/frappe/socketio.js
biozid 7014 0.0 1.0 129512 41580 ? S 14:38 0:00 /home/biozid/frappe-bench/env/bin/python -m frappe.celery_app beat -s beat.schedule
biozid 7041 0.0 0.7 99368 28264 ? S 14:39 0:00 /home/biozid/frappe-bench/env/bin/python /home/biozid/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 2 -t 120 frappe.app:application
biozid 7051 0.0 0.7 99368 28264 ? S 14:41 0:00 /home/biozid/frappe-bench/env/bin/python /home/biozid/frappe-bench/env/bin/gunicorn -b 127.0.0.1:8000 -w 2 -t 120 frappe.app:application
biozid 7054 0.2 1.0 120472 42564 ? S 14:41 0:03 /home/biozid/frappe-bench/env/bin/python -m frappe.celery_app worker
biozid 7059 0.0 1.1 124272 45456 ? S 14:41 0:00 /home/biozid/frappe-bench/env/bin/python -m frappe.celery_app worker
biozid 7060 0.0 1.1 125272 46152 ? S 14:41 0:00 /home/biozid/frappe-bench/env/bin/python -m frappe.celery_app worker
biozid 8146 1.1 1.4 904960 57772 ? Sl 15:10 0:01 pluma /home/biozid/frappe-bench/apps/frappe/socketio.js
biozid 8755 0.0 0.0 15188 2516 pts/3 S+ 15:12 0:00 grep --color=auto frappe

ps aux | grep redis-server
biozid 6918 0.0 0.2 45688 9672 ? Sl 14:33 0:02 /usr/bin/redis-server *:11311
biozid 6921 0.0 0.1 45688 7528 ? Sl 14:33 0:02 /usr/bin/redis-server *:12311
redis 6938 0.1 0.1 45684 6400 ? Ssl 14:33 0:02 /usr/bin/redis-server 127.0.0.1:6379
biozid 12658 0.0 0.0 15188 2508 pts/3 S+ 15:13 0:00 grep --color=auto redis-server

You are using production setup

Stop production using: Stop production - #3 by pdvyas https://discuss.frappe.io/t/stop-production/7993/3?u=anand

Best,
Anand Doshi

ERPNext

1 Like