Bench not starting properly

09:26:22 system | schedule.1 started (pid=7981)
09:26:22 system | worker_default.1 started (pid=7979)
09:26:22 system | socketio.1 started (pid=7970)
09:26:22 system | redis_queue.1 started (pid=7982)
09:26:22 redis_queue.1 | 7985:M 05 Nov 09:26:22.295 * Increased maximum number of open files to 10032 (it was originally set to 1024).
09:26:22 redis_queue.1 | 7985:M 05 Nov 09:26:22.295 # Creating Server TCP listening socket 127.0.0.1:11000: bind: Address already in use
09:26:22 system | redis_queue.1 stopped (rc=1)
09:26:22 system | redis_cache.1 started (pid=7994)
09:26:22 redis_cache.1 | 7997:M 05 Nov 09:26:22.320 * Increased maximum number of open files to 10032 (it was originally set to 1024).
09:26:22 redis_cache.1 | 7997:M 05 Nov 09:26:22.320 # Creating Server TCP listening socket 127.0.0.1:13000: bind: Address already in use
09:26:22 system | redis_cache.1 stopped (rc=1)
09:26:22 system | worker_long.1 started (pid=7999)
09:26:22 system | web.1 started (pid=7995)
09:26:22 system | worker_short.1 started (pid=8000)
09:26:22 system | watch.1 started (pid=8003)
09:26:22 system | redis_socketio.1 started (pid=8001)
09:26:22 system | sending SIGTERM to socketio.1 (pid 7970)
09:26:22 system | sending SIGTERM to schedule.1 (pid 7981)
09:26:22 system | sending SIGTERM to worker_default.1 (pid 7979)
09:26:22 system | sending SIGTERM to watch.1 (pid 8003)
09:26:22 system | sending SIGTERM to web.1 (pid 7995)
09:26:22 system | sending SIGTERM to worker_long.1 (pid 7999)
09:26:22 system | sending SIGTERM to worker_short.1 (pid 8000)
09:26:22 system | sending SIGTERM to redis_socketio.1 (pid 8001)
09:26:22 redis_socketio.1 | 8010:M 05 Nov 09:26:22.388 * Increased maximum number of open files to 10032 (it was originally set to 1024).
09:26:22 redis_socketio.1 | 8010:M 05 Nov 09:26:22.388 # Creating Server TCP listening socket 127.0.0.1:12000: bind: Address already in use
09:26:22 system | redis_socketio.1 stopped (rc=1)
09:26:22 system | socketio.1 stopped (rc=-15)
09:26:22 system | worker_default.1 stopped (rc=-15)
09:26:22 system | worker_long.1 stopped (rc=-15)
09:26:22 system | web.1 stopped (rc=-15)
09:26:22 system | schedule.1 stopped (rc=-15)
09:26:22 system | worker_short.1 stopped (rc=-15)
09:26:22 system | watch.1 stopped (rc=-15)

Implies that the process is already running. Try

cd ~/frappe-bench;
sudo killall -9 redis-server;
bench start

1 Like

Agree with trentmu; appears that Redis is already running. And by default when you “bench start”, it tries to launch 3 new Redis instances on ports 11000,12000, and 13000.

Now, if you don’t want ERPNext to launch Redis? (maybe you’re managing it yourself, using Docker, or hosting on another server).

Then just:

  1. Edit the Procfile.
  2. Comment-out the Redis lines at the top.

If you do that, next time you “bench start”, Supervisor won’t try to launch Redis. And you can use your own Redis.

1 Like